Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

my_global.h File Reference

#include <my_config.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <errno.h>
#include <assert.h>
#include <my_dbug.h>

Go to the source code of this file.

Defines

#define HAVE_REPLICATION
#define HAVE_EXTERNAL_CLIENT
#define C_MODE_START
#define C_MODE_END
#define NETWARE_SET_SCREEN_MODE(A)
#define __builtin_expect(x, expected_value)   (x)
#define likely(x)   __builtin_expect((x),1)
#define unlikely(x)   __builtin_expect((x),0)
#define __EXTENSIONS__   1
#define __STDC_EXT__   1
#define FIX_GCC_LINKING_PROBLEM
#define USE_MYFUNC   1
#define MASTER   1
#define ENGLISH   1
#define POSIX_MISTAKE   1
#define USE_REGEX   1
#define USE_BMOVE512   1
#define QUOTE_ARG(x)   #x
#define STRINGIFY_ARG(x)   QUOTE_ARG(x)
#define DONT_REMEMBER_SIGNAL
#define VOID(X)   (X)
#define LINT_INIT(var)
#define PURIFY_OR_LINT_INIT(var)
#define max(a, b)   ((a) > (b) ? (a) : (b))
#define min(a, b)   ((a) < (b) ? (a) : (b))
#define HAVE_UINT
#define CMP_NUM(a, b)   (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1)
#define sgn(a)   (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
#define swap_variables(t, a, b)   { register t dummy; dummy= a; a= b; b= dummy; }
#define test(a)   ((a) ? 1 : 0)
#define set_if_bigger(a, b)   do { if ((a) < (b)) (a)=(b); } while(0)
#define set_if_smaller(a, b)   do { if ((a) > (b)) (a)=(b); } while(0)
#define test_all_bits(a, b)   (((a) & (b)) == (b))
#define set_bits(type, bit_count)   (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))
#define array_elements(A)   ((uint) (sizeof(A)/sizeof(A[0])))
#define rint(A)   floor((A)+(((A) < 0)? -0.5 : 0.5))
#define TRUE   (1)
#define FALSE   (0)
#define my_reinterpret_cast(A)   (A)
#define my_const_cast(A)   (A)
#define __attribute__(A)
#define _VARARGS(X)   X
#define _STATIC_VARARGS(X)   X
#define _PC(X)   X
#define MIN_ARRAY_SIZE   0
#define ASCII_BITS_USED   8
#define NEAR_F
#define INVALID_SOCKET   -1
#define sig_handler   RETSIGTYPE
#define qsort_t   RETQSORTTYPE
#define SOCKOPT_OPTLEN_TYPE   size_socket
#define O_SHARE   0
#define O_BINARY   0
#define FILE_BINARY   O_BINARY
#define O_TEMPORARY   0
#define O_SHORT_LIVED   0
#define O_NOFOLLOW   0
#define UNSINT8
#define UNSINT16
#define UNSINT32
#define SC_MAXWIDTH   256
#define FN_LEN   256
#define FN_HEADLEN   253
#define FN_EXTLEN   20
#define FN_REFLEN   512
#define FN_EXTCHAR   '.'
#define FN_HOMELIB   '~'
#define FN_CURLIB   '.'
#define FN_PARENTDIR   ".."
#define FN_DEVCHAR   ':'
#define FN_LIBCHAR   '/'
#define FN_ROOTDIR   "/"
#define MY_NFILE   64
#define OS_FILE_LIMIT   65535
#define IO_SIZE   4096
#define MALLOC_OVERHEAD   8
#define ONCE_ALLOC_INIT   (uint) (4096-MALLOC_OVERHEAD)
#define RECORD_CACHE_SIZE   (uint) (64*1024-MALLOC_OVERHEAD)
#define KEY_CACHE_SIZE   (uint) (8*1024*1024-MALLOC_OVERHEAD)
#define KEY_CACHE_BLOCK_SIZE   (uint) 1024
#define NO_HASH
#define closesocket(A)   close(A)
#define ulonglong2double(A)   ((double) (ulonglong) (A))
#define my_off_t2double(A)   ((double) (my_off_t) (A))
#define offsetof(TYPE, MEMBER)   ((size_t) &((TYPE *)0)->MEMBER)
#define ulong_to_double(X)   ((double) (ulong) (X))
#define SET_STACK_SIZE(X)
#define strtok_r(A, B, C)   strtok((A),(B))
#define INT_MIN32   (~0x7FFFFFFFL)
#define INT_MAX32   0x7FFFFFFFL
#define UINT_MAX32   0xFFFFFFFFL
#define INT_MIN24   (~0x007FFFFF)
#define INT_MAX24   0x007FFFFF
#define UINT_MAX24   0x00FFFFFF
#define INT_MIN16   (~0x7FFF)
#define INT_MAX16   0x7FFF
#define UINT_MAX16   0xFFFF
#define INT_MIN8   (~0x7F)
#define INT_MAX8   0x7F
#define DBL_MIN   4.94065645841246544e-324
#define FLT_MIN   ((float)1.40129846432481707e-45)
#define DBL_MAX   1.79769313486231470e+308
#define FLT_MAX   ((float)3.40282346638528860e+38)
#define isinf(X)   0
#define MY_ALIGN(A, L)   (((A) + (L) - 1) & ~((L) - 1))
#define ALIGN_SIZE(A)   MY_ALIGN((A),sizeof(double))
#define ALIGN_PTR(A, t)   ((t*) MY_ALIGN((A),sizeof(t)))
#define OFFSET(t, f)   ((size_t)(char *)&((t *)0)->f)
#define ADD_TO_PTR(ptr, size, type)   (type) ((byte*) (ptr)+size)
#define PTR_BYTE_DIFF(A, B)   (my_ptrdiff_t) ((byte*) (A) - (byte*) (B))
#define NullS   (char *) 0
#define NEAR
#define FAR
#define STDCALL
#define SYSTEM_SIZEOF_OFF_T   SIZEOF_OFF_T
#define MY_FILEPOS_ERROR   (~(my_off_t) 0)
#define socket_errno   errno
#define closesocket(A)   close(A)
#define SOCKET_EINTR   EINTR
#define SOCKET_EAGAIN   EAGAIN
#define SOCKET_EWOULDBLOCK   EWOULDBLOCK
#define SOCKET_ENFILE   ENFILE
#define SOCKET_EMFILE   EMFILE
#define INT8(v)   (int8) (v)
#define INT16(v)   (int16) (v)
#define INT32(v)   (int32) (v)
#define MYF(v)   (myf) (v)
#define LL(A)   A ## L
#define ULL(A)   A ## UL
#define reg1   register
#define reg2   register
#define reg3   register
#define reg4   register
#define reg5   register
#define reg6   register
#define reg7   register
#define reg8   register
#define reg9   register
#define reg10   register
#define reg11   register
#define reg12   register
#define reg13   register
#define reg14   register
#define reg15   register
#define reg16   register
#define dbug_volatile   volatile
#define SCALE_SEC   100
#define SCALE_USEC   10000
#define MY_HOW_OFTEN_TO_ALARM   2
#define MY_HOW_OFTEN_TO_WRITE   1000
#define set_timespec(ABSTIME, SEC)
#define sint2korr(A)
#define sint3korr(A)
#define sint4korr(A)
#define sint8korr(A)   (longlong) uint8korr(A)
#define uint2korr(A)
#define uint3korr(A)
#define uint4korr(A)
#define uint5korr(A)
#define uint8korr(A)
#define int2store(T, A)
#define int3store(T, A)
#define int4store(T, A)
#define int5store(T, A)
#define int8store(T, A)
#define float4get(V, M)   memcpy_fixed((byte*) &V,(byte*) (M),sizeof(float))
#define float4store(V, M)   memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float))
#define float8get(V, M)   doubleget((V),(M))
#define float8store(V, M)   doublestore((V),(M))
#define int4net(A)
#define ushortget(V, M)   do { V = uint2korr(M); } while(0)
#define shortget(V, M)   do { V = sint2korr(M); } while(0)
#define longget(V, M)   do { V = sint4korr(M); } while(0)
#define ulongget(V, M)   do { V = uint4korr(M); } while(0)
#define shortstore(T, V)   int2store(T,V)
#define longstore(T, V)   int4store(T,V)
#define floatstore(T, V)   memcpy_fixed((byte*)(T), (byte*)(&V), sizeof(float))
#define doubleget(V, M)   memcpy_fixed((byte*) &V,(byte*) (M),sizeof(double))
#define doublestore(T, V)   memcpy_fixed((byte*) (T),(byte*) &V,sizeof(double))
#define longlongget(V, M)   memcpy_fixed((byte*) &V,(byte*) (M),sizeof(ulonglong))
#define longlongstore(T, V)   memcpy_fixed((byte*) (T),(byte*) &V,sizeof(ulonglong))
#define my_sprintf(buff, args)   ((ulong) sprintf args, (ulong) strlen(buff))
#define thread_safe_increment(V, L)   (V)++
#define thread_safe_add(V, C, L)   (V)+=(C)
#define thread_safe_sub(V, C, L)   (V)-=(C)
#define statistic_increment(V, L)   (V)++
#define statistic_add(V, C, L)   (V)+=(C)
#define MYSQL_UNIVERSAL_CLIENT_CHARSET   MYSQL_DEFAULT_CHARSET_NAME

Typedefs

typedef unsigned int uint
typedef unsigned short ushort
typedef int File
typedef int my_socket
typedef uint puchar
typedef int pbool
typedef int pshort
typedef double pfloat
typedef int(* qsort_cmp2 )(void *, const void *, const void *)
typedef SOCKET_SIZE_TYPE size_socket
typedef long long my_ptrdiff_t
typedef char * gptr
typedef signed char int8
typedef short int16
typedef unsigned char uchar
typedef unsigned char uint8
typedef unsigned short uint16
typedef unsigned long ulonglong
typedef long longlong
typedef unsigned long long my_ulonglong
typedef unsigned long my_off_t
typedef off_t os_off_t
typedef uint8 int7
typedef short int15
typedef char * my_string
typedef unsigned long size_s
typedef int myf
typedef char byte
typedef char my_bool
typedef char bool

Variables

C_MODE_START typedef void(* sig_return )()
C_MODE_END typedef int pchar
C_MODE_START typedef int(* qsort_cmp )(const void *, const void *)
error Neither int or long
is of bytes width typedef
unsigned long 
ulong


Define Documentation

#define __attribute__  ) 
 

Definition at line 418 of file my_global.h.

#define __builtin_expect x,
expected_value   )     (x)
 

Definition at line 97 of file my_global.h.

#define __EXTENSIONS__   1
 

Definition at line 124 of file my_global.h.

#define __STDC_EXT__   1
 

Definition at line 126 of file my_global.h.

#define _PC  )     X
 

Definition at line 430 of file my_global.h.

#define _STATIC_VARARGS  )     X
 

Definition at line 429 of file my_global.h.

#define _VARARGS  )     X
 

Definition at line 428 of file my_global.h.

#define ADD_TO_PTR ptr,
size,
type   )     (type) ((byte*) (ptr)+size)
 

Definition at line 699 of file my_global.h.

#define ALIGN_PTR A,
 )     ((t*) MY_ALIGN((A),sizeof(t)))
 

Definition at line 696 of file my_global.h.

#define ALIGN_SIZE  )     MY_ALIGN((A),sizeof(double))
 

Definition at line 694 of file my_global.h.

#define array_elements  )     ((uint) (sizeof(A)/sizeof(A[0])))
 

Definition at line 398 of file my_global.h.

#define ASCII_BITS_USED   8
 

Definition at line 443 of file my_global.h.

#define C_MODE_END
 

Definition at line 61 of file my_global.h.

#define C_MODE_START
 

Definition at line 60 of file my_global.h.

#define closesocket  )     close(A)
 

Definition at line 813 of file my_global.h.

#define closesocket  )     close(A)
 

Definition at line 813 of file my_global.h.

#define CMP_NUM a,
 )     (((a) < (b)) ? -1 : ((a) == (b)) ? 0 : 1)
 

Definition at line 390 of file my_global.h.

#define DBL_MAX   1.79769313486231470e+308
 

Definition at line 675 of file my_global.h.

#define DBL_MIN   4.94065645841246544e-324
 

Definition at line 671 of file my_global.h.

#define dbug_volatile   volatile
 

Definition at line 884 of file my_global.h.

#define DONT_REMEMBER_SIGNAL
 

Definition at line 351 of file my_global.h.

#define doubleget V,
 )     memcpy_fixed((byte*) &V,(byte*) (M),sizeof(double))
 

Definition at line 1164 of file my_global.h.

#define doublestore T,
 )     memcpy_fixed((byte*) (T),(byte*) &V,sizeof(double))
 

Definition at line 1165 of file my_global.h.

#define ENGLISH   1
 

Definition at line 332 of file my_global.h.

#define FALSE   (0)
 

Definition at line 406 of file my_global.h.

#define FAR
 

Definition at line 706 of file my_global.h.

#define FILE_BINARY   O_BINARY
 

Definition at line 503 of file my_global.h.

#define FIX_GCC_LINKING_PROBLEM
 

Definition at line 214 of file my_global.h.

#define float4get V,
 )     memcpy_fixed((byte*) &V,(byte*) (M),sizeof(float))
 

Definition at line 1075 of file my_global.h.

#define float4store V,
 )     memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float))
 

Definition at line 1076 of file my_global.h.

#define float8get V,
 )     doubleget((V),(M))
 

Definition at line 1100 of file my_global.h.

#define float8store V,
 )     doublestore((V),(M))
 

Definition at line 1101 of file my_global.h.

#define floatstore T,
 )     memcpy_fixed((byte*)(T), (byte*)(&V), sizeof(float))
 

Definition at line 1161 of file my_global.h.

#define FLT_MAX   ((float)3.40282346638528860e+38)
 

Definition at line 676 of file my_global.h.

#define FLT_MIN   ((float)1.40129846432481707e-45)
 

Definition at line 672 of file my_global.h.

#define FN_CURLIB   '.'
 

Definition at line 540 of file my_global.h.

#define FN_DEVCHAR   ':'
 

Definition at line 542 of file my_global.h.

#define FN_EXTCHAR   '.'
 

Definition at line 538 of file my_global.h.

#define FN_EXTLEN   20
 

Definition at line 532 of file my_global.h.

#define FN_HEADLEN   253
 

Definition at line 531 of file my_global.h.

#define FN_HOMELIB   '~'
 

Definition at line 539 of file my_global.h.

#define FN_LEN   256
 

Definition at line 530 of file my_global.h.

#define FN_LIBCHAR   '/'
 

Definition at line 549 of file my_global.h.

#define FN_PARENTDIR   ".."
 

Definition at line 541 of file my_global.h.

#define FN_REFLEN   512
 

Definition at line 536 of file my_global.h.

#define FN_ROOTDIR   "/"
 

Definition at line 550 of file my_global.h.

#define HAVE_EXTERNAL_CLIENT
 

Definition at line 24 of file my_global.h.

#define HAVE_REPLICATION
 

Definition at line 23 of file my_global.h.

#define HAVE_UINT
 

Definition at line 385 of file my_global.h.

#define INT16  )     (int16) (v)
 

Definition at line 835 of file my_global.h.

#define int2store T,
 ) 
 

Value:

do { uint def_temp= (uint) (A) ;\
                                  *((uchar*) (T))=  (uchar)(def_temp); \
                                   *((uchar*) (T)+1)=(uchar)((def_temp >> 8)); \
                             } while(0)

Definition at line 1022 of file my_global.h.

#define INT32  )     (int32) (v)
 

Definition at line 836 of file my_global.h.

#define int3store T,
 ) 
 

Value:

do { /*lint -save -e734 */\
                                  *((uchar*)(T))=(uchar) ((A));\
                                  *((uchar*) (T)+1)=(uchar) (((A) >> 8));\
                                  *((uchar*)(T)+2)=(uchar) (((A) >> 16)); \
                                  /*lint -restore */} while(0)

Definition at line 1026 of file my_global.h.

#define int4net  ) 
 

Value:

(int32) (((uint32) ((uchar) (A)[3]))        |\
                                  (((uint32) ((uchar) (A)[2])) << 8)  |\
                                  (((uint32) ((uchar) (A)[1])) << 16) |\
                                  (((uint32) ((uchar) (A)[0])) << 24))

Definition at line 1110 of file my_global.h.

#define int4store T,
 ) 
 

Value:

do { *((char *)(T))=(char) ((A));\
                                  *(((char *)(T))+1)=(char) (((A) >> 8));\
                                  *(((char *)(T))+2)=(char) (((A) >> 16));\
                                  *(((char *)(T))+3)=(char) (((A) >> 24)); } while(0)

Definition at line 1031 of file my_global.h.

#define int5store T,
 ) 
 

Value:

do { *((char *)(T))=((A));\
                                  *(((char *)(T))+1)=(((A) >> 8));\
                                  *(((char *)(T))+2)=(((A) >> 16));\
                                  *(((char *)(T))+3)=(((A) >> 24)); \
                                  *(((char *)(T))+4)=(((A) >> 32)); } while(0)

Definition at line 1035 of file my_global.h.

#define INT8  )     (int8) (v)
 

Definition at line 834 of file my_global.h.

#define int8store T,
 ) 
 

Value:

do { uint def_temp= (uint) (A), def_temp2= (uint) ((A) >> 32); \
                                  int4store((T),def_temp); \
                                  int4store((T+4),def_temp2); } while(0)

Definition at line 1040 of file my_global.h.

#define INT_MAX16   0x7FFF
 

Definition at line 664 of file my_global.h.

#define INT_MAX24   0x007FFFFF
 

Definition at line 661 of file my_global.h.

#define INT_MAX32   0x7FFFFFFFL
 

Definition at line 658 of file my_global.h.

#define INT_MAX8   0x7F
 

Definition at line 667 of file my_global.h.

#define INT_MIN16   (~0x7FFF)
 

Definition at line 663 of file my_global.h.

#define INT_MIN24   (~0x007FFFFF)
 

Definition at line 660 of file my_global.h.

#define INT_MIN32   (~0x7FFFFFFFL)
 

Definition at line 657 of file my_global.h.

#define INT_MIN8   (~0x7F)
 

Definition at line 666 of file my_global.h.

#define INVALID_SOCKET   -1
 

Definition at line 451 of file my_global.h.

Referenced by ip_close(), and ip_open().

#define IO_SIZE   4096
 

Definition at line 567 of file my_global.h.

#define isinf  )     0
 

Definition at line 680 of file my_global.h.

#define KEY_CACHE_BLOCK_SIZE   (uint) 1024
 

Definition at line 584 of file my_global.h.

#define KEY_CACHE_SIZE   (uint) (8*1024*1024-MALLOC_OVERHEAD)
 

Definition at line 582 of file my_global.h.

#define likely  )     __builtin_expect((x),1)
 

Definition at line 100 of file my_global.h.

#define LINT_INIT var   ) 
 

Definition at line 368 of file my_global.h.

#define LL  )     A ## L
 

Definition at line 843 of file my_global.h.

#define longget V,
 )     do { V = sint4korr(M); } while(0)
 

Definition at line 1156 of file my_global.h.

#define longlongget V,
 )     memcpy_fixed((byte*) &V,(byte*) (M),sizeof(ulonglong))
 

Definition at line 1167 of file my_global.h.

#define longlongstore T,
 )     memcpy_fixed((byte*) (T),(byte*) &V,sizeof(ulonglong))
 

Definition at line 1168 of file my_global.h.

#define longstore T,
 )     int4store(T,V)
 

Definition at line 1159 of file my_global.h.

#define MALLOC_OVERHEAD   8
 

Definition at line 575 of file my_global.h.

#define MASTER   1
 

Definition at line 331 of file my_global.h.

#define max a,
 )     ((a) > (b) ? (a) : (b))
 

Definition at line 379 of file my_global.h.

Referenced by fw_loop().

#define min a,
 )     ((a) < (b) ? (a) : (b))
 

Definition at line 380 of file my_global.h.

#define MIN_ARRAY_SIZE   0
 

Definition at line 442 of file my_global.h.

#define MY_ALIGN A,
 )     (((A) + (L) - 1) & ~((L) - 1))
 

Definition at line 693 of file my_global.h.

#define my_const_cast  )     (A)
 

Definition at line 415 of file my_global.h.

#define MY_FILEPOS_ERROR   (~(my_off_t) 0)
 

Definition at line 791 of file my_global.h.

#define MY_HOW_OFTEN_TO_ALARM   2
 

Definition at line 892 of file my_global.h.

#define MY_HOW_OFTEN_TO_WRITE   1000
 

Definition at line 893 of file my_global.h.

#define MY_NFILE   64
 

Definition at line 553 of file my_global.h.

#define my_off_t2double  )     ((double) (my_off_t) (A))
 

Definition at line 606 of file my_global.h.

#define my_reinterpret_cast  )     (A)
 

Definition at line 414 of file my_global.h.

#define my_sprintf buff,
args   )     ((ulong) sprintf args, (ulong) strlen(buff))
 

Definition at line 1179 of file my_global.h.

#define MYF  )     (myf) (v)
 

Definition at line 837 of file my_global.h.

#define MYSQL_UNIVERSAL_CLIENT_CHARSET   MYSQL_DEFAULT_CHARSET_NAME
 

Definition at line 1194 of file my_global.h.

#define NEAR
 

Definition at line 705 of file my_global.h.

#define NEAR_F
 

Definition at line 444 of file my_global.h.

#define NETWARE_SET_SCREEN_MODE  ) 
 

Definition at line 84 of file my_global.h.

#define NO_HASH
 

Definition at line 589 of file my_global.h.

#define NullS   (char *) 0
 

Definition at line 702 of file my_global.h.

#define O_BINARY   0
 

Definition at line 500 of file my_global.h.

#define O_NOFOLLOW   0
 

Definition at line 518 of file my_global.h.

#define O_SHARE   0
 

Definition at line 498 of file my_global.h.

#define O_SHORT_LIVED   0
 

Definition at line 515 of file my_global.h.

#define O_TEMPORARY   0
 

Definition at line 512 of file my_global.h.

#define OFFSET t,
 )     ((size_t)(char *)&((t *)0)->f)
 

Definition at line 698 of file my_global.h.

#define offsetof TYPE,
MEMBER   )     ((size_t) &((TYPE *)0)->MEMBER)
 

Definition at line 611 of file my_global.h.

#define ONCE_ALLOC_INIT   (uint) (4096-MALLOC_OVERHEAD)
 

Definition at line 578 of file my_global.h.

#define OS_FILE_LIMIT   65535
 

Definition at line 555 of file my_global.h.

#define POSIX_MISTAKE   1
 

Definition at line 333 of file my_global.h.

#define PTR_BYTE_DIFF A,
 )     (my_ptrdiff_t) ((byte*) (A) - (byte*) (B))
 

Definition at line 700 of file my_global.h.

#define PURIFY_OR_LINT_INIT var   ) 
 

Definition at line 374 of file my_global.h.

#define qsort_t   RETQSORTTYPE
 

Definition at line 480 of file my_global.h.

#define QUOTE_ARG  )     #x
 

Definition at line 340 of file my_global.h.

#define RECORD_CACHE_SIZE   (uint) (64*1024-MALLOC_OVERHEAD)
 

Definition at line 580 of file my_global.h.

#define reg1   register
 

Definition at line 860 of file my_global.h.

#define reg10   register
 

Definition at line 869 of file my_global.h.

#define reg11   register
 

Definition at line 870 of file my_global.h.

#define reg12   register
 

Definition at line 871 of file my_global.h.

#define reg13   register
 

Definition at line 872 of file my_global.h.

#define reg14   register
 

Definition at line 873 of file my_global.h.

#define reg15   register
 

Definition at line 874 of file my_global.h.

#define reg16   register
 

Definition at line 875 of file my_global.h.

#define reg2   register
 

Definition at line 861 of file my_global.h.

#define reg3   register
 

Definition at line 862 of file my_global.h.

#define reg4   register
 

Definition at line 863 of file my_global.h.

#define reg5   register
 

Definition at line 864 of file my_global.h.

#define reg6   register
 

Definition at line 865 of file my_global.h.

#define reg7   register
 

Definition at line 866 of file my_global.h.

#define reg8   register
 

Definition at line 867 of file my_global.h.

#define reg9   register
 

Definition at line 868 of file my_global.h.

#define rint  )     floor((A)+(((A) < 0)? -0.5 : 0.5))
 

Definition at line 400 of file my_global.h.

#define SC_MAXWIDTH   256
 

Definition at line 529 of file my_global.h.

#define SCALE_SEC   100
 

Definition at line 890 of file my_global.h.

#define SCALE_USEC   10000
 

Definition at line 891 of file my_global.h.

#define set_bits type,
bit_count   )     (sizeof(type)*8 <= (bit_count) ? ~(type) 0 : ((((type) 1) << (bit_count)) - (type) 1))
 

Definition at line 397 of file my_global.h.

#define set_if_bigger a,
 )     do { if ((a) < (b)) (a)=(b); } while(0)
 

Definition at line 394 of file my_global.h.

#define set_if_smaller a,
 )     do { if ((a) > (b)) (a)=(b); } while(0)
 

Definition at line 395 of file my_global.h.

#define SET_STACK_SIZE  ) 
 

Definition at line 614 of file my_global.h.

#define set_timespec ABSTIME,
SEC   ) 
 

Value:

{\
  struct timeval tv;\
  gettimeofday(&tv,0);\
  (ABSTIME).tv_sec=tv.tv_sec+(time_t) (SEC);\
  (ABSTIME).tv_nsec=tv.tv_usec*1000;\
}

Definition at line 899 of file my_global.h.

#define sgn  )     (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
 

Definition at line 391 of file my_global.h.

#define shortget V,
 )     do { V = sint2korr(M); } while(0)
 

Definition at line 1155 of file my_global.h.

#define shortstore T,
 )     int2store(T,V)
 

Definition at line 1158 of file my_global.h.

#define sig_handler   RETSIGTYPE
 

Definition at line 454 of file my_global.h.

#define sint2korr  ) 
 

Value:

(int16) (((int16) ((uchar) (A)[0])) +\
                                 ((int16) ((int16) (A)[1]) << 8))

Definition at line 984 of file my_global.h.

#define sint3korr  ) 
 

Value:

((int32) ((((uchar) (A)[2]) & 128) ? \
                                  (((uint32) 255L << 24) | \
                                   (((uint32) (uchar) (A)[2]) << 16) |\
                                   (((uint32) (uchar) (A)[1]) << 8) | \
                                   ((uint32) (uchar) (A)[0])) : \
                                  (((uint32) (uchar) (A)[2]) << 16) |\
                                  (((uint32) (uchar) (A)[1]) << 8) | \
                                  ((uint32) (uchar) (A)[0])))

Definition at line 986 of file my_global.h.

#define sint4korr  ) 
 

Value:

(int32) (((int32) ((uchar) (A)[0])) +\
                                (((int32) ((uchar) (A)[1]) << 8)) +\
                                (((int32) ((uchar) (A)[2]) << 16)) +\
                                (((int32) ((int16) (A)[3]) << 24)))

Definition at line 994 of file my_global.h.

#define sint8korr  )     (longlong) uint8korr(A)
 

Definition at line 998 of file my_global.h.

#define SOCKET_EAGAIN   EAGAIN
 

Definition at line 815 of file my_global.h.

#define SOCKET_EINTR   EINTR
 

Definition at line 814 of file my_global.h.

#define SOCKET_EMFILE   EMFILE
 

Definition at line 818 of file my_global.h.

#define SOCKET_ENFILE   ENFILE
 

Definition at line 817 of file my_global.h.

#define socket_errno   errno
 

Definition at line 812 of file my_global.h.

#define SOCKET_EWOULDBLOCK   EWOULDBLOCK
 

Definition at line 816 of file my_global.h.

#define SOCKOPT_OPTLEN_TYPE   size_socket
 

Definition at line 492 of file my_global.h.

#define statistic_add V,
C,
 )     (V)+=(C)
 

Definition at line 1188 of file my_global.h.

#define statistic_increment V,
 )     (V)++
 

Definition at line 1187 of file my_global.h.

#define STDCALL
 

Definition at line 715 of file my_global.h.

#define STRINGIFY_ARG  )     QUOTE_ARG(x)
 

Definition at line 341 of file my_global.h.

#define strtok_r A,
B,
 )     strtok((A),(B))
 

Definition at line 617 of file my_global.h.

Referenced by FindCodePage(), and MapCodePoints().

#define swap_variables t,
a,
 )     { register t dummy; dummy= a; a= b; b= dummy; }
 

Definition at line 392 of file my_global.h.

#define SYSTEM_SIZEOF_OFF_T   SIZEOF_OFF_T
 

Definition at line 783 of file my_global.h.

#define test  )     ((a) ? 1 : 0)
 

Definition at line 393 of file my_global.h.

#define test_all_bits a,
 )     (((a) & (b)) == (b))
 

Definition at line 396 of file my_global.h.

#define thread_safe_add V,
C,
 )     (V)+=(C)
 

Definition at line 1185 of file my_global.h.

#define thread_safe_increment V,
 )     (V)++
 

Definition at line 1184 of file my_global.h.

#define thread_safe_sub V,
C,
 )     (V)-=(C)
 

Definition at line 1186 of file my_global.h.

#define TRUE   (1)
 

Definition at line 405 of file my_global.h.

#define uint2korr  ) 
 

Value:

(uint16) (((uint16) ((uchar) (A)[0])) +\
                                  ((uint16) ((uchar) (A)[1]) << 8))

Definition at line 999 of file my_global.h.

#define uint3korr  ) 
 

Value:

(uint32) (((uint32) ((uchar) (A)[0])) +\
                                  (((uint32) ((uchar) (A)[1])) << 8) +\
                                  (((uint32) ((uchar) (A)[2])) << 16))

Definition at line 1001 of file my_global.h.

#define uint4korr  ) 
 

Value:

(uint32) (((uint32) ((uchar) (A)[0])) +\
                                  (((uint32) ((uchar) (A)[1])) << 8) +\
                                  (((uint32) ((uchar) (A)[2])) << 16) +\
                                  (((uint32) ((uchar) (A)[3])) << 24))

Definition at line 1004 of file my_global.h.

#define uint5korr  ) 
 

Value:

((ulonglong)(((uint32) ((uchar) (A)[0])) +\
                                    (((uint32) ((uchar) (A)[1])) << 8) +\
                                    (((uint32) ((uchar) (A)[2])) << 16) +\
                                    (((uint32) ((uchar) (A)[3])) << 24)) +\
                                    (((ulonglong) ((uchar) (A)[4])) << 32))

Definition at line 1008 of file my_global.h.

#define uint8korr  ) 
 

Value:

((ulonglong)(((uint32) ((uchar) (A)[0])) +\
                                    (((uint32) ((uchar) (A)[1])) << 8) +\
                                    (((uint32) ((uchar) (A)[2])) << 16) +\
                                    (((uint32) ((uchar) (A)[3])) << 24)) +\
                        (((ulonglong) (((uint32) ((uchar) (A)[4])) +\
                                    (((uint32) ((uchar) (A)[5])) << 8) +\
                                    (((uint32) ((uchar) (A)[6])) << 16) +\
                                    (((uint32) ((uchar) (A)[7])) << 24))) <<\
                                    32))

Definition at line 1013 of file my_global.h.

#define UINT_MAX16   0xFFFF
 

Definition at line 665 of file my_global.h.

#define UINT_MAX24   0x00FFFFFF
 

Definition at line 662 of file my_global.h.

#define UINT_MAX32   0xFFFFFFFFL
 

Definition at line 659 of file my_global.h.

#define ULL  )     A ## UL
 

Definition at line 851 of file my_global.h.

#define ulong_to_double  )     ((double) (ulong) (X))
 

Definition at line 613 of file my_global.h.

#define ulongget V,
 )     do { V = uint4korr(M); } while(0)
 

Definition at line 1157 of file my_global.h.

#define ulonglong2double  )     ((double) (ulonglong) (A))
 

Definition at line 605 of file my_global.h.

#define unlikely  )     __builtin_expect((x),0)
 

Definition at line 101 of file my_global.h.

#define UNSINT16
 

Definition at line 525 of file my_global.h.

#define UNSINT32
 

Definition at line 526 of file my_global.h.

#define UNSINT8
 

Definition at line 524 of file my_global.h.

#define USE_BMOVE512   1
 

Definition at line 337 of file my_global.h.

#define USE_MYFUNC   1
 

Definition at line 330 of file my_global.h.

#define USE_REGEX   1
 

Definition at line 334 of file my_global.h.

#define ushortget V,
 )     do { V = uint2korr(M); } while(0)
 

Definition at line 1154 of file my_global.h.

#define VOID  )     (X)
 

Definition at line 361 of file my_global.h.


Typedef Documentation

typedef char bool
 

Definition at line 831 of file my_global.h.

typedef char byte
 

Definition at line 827 of file my_global.h.

typedef int File
 

Definition at line 448 of file my_global.h.

typedef char* gptr
 

Definition at line 723 of file my_global.h.

typedef short int15
 

Definition at line 822 of file my_global.h.

typedef short int16
 

Definition at line 727 of file my_global.h.

typedef uint8 int7
 

Definition at line 821 of file my_global.h.

typedef signed char int8
 

Definition at line 726 of file my_global.h.

typedef long longlong
 

Definition at line 758 of file my_global.h.

typedef char my_bool
 

Definition at line 829 of file my_global.h.

typedef unsigned long my_off_t
 

Definition at line 789 of file my_global.h.

typedef long long my_ptrdiff_t
 

Definition at line 690 of file my_global.h.

typedef int my_socket
 

Definition at line 450 of file my_global.h.

typedef char* my_string
 

Definition at line 823 of file my_global.h.

typedef unsigned long long my_ulonglong
 

Definition at line 767 of file my_global.h.

typedef int myf
 

Definition at line 825 of file my_global.h.

typedef off_t os_off_t
 

Definition at line 793 of file my_global.h.

typedef int pbool
 

Definition at line 467 of file my_global.h.

typedef double pfloat
 

Definition at line 469 of file my_global.h.

typedef int pshort
 

Definition at line 468 of file my_global.h.

typedef uint puchar
 

Definition at line 466 of file my_global.h.

typedef int(* qsort_cmp2)(void *, const void *, const void *)
 

Definition at line 473 of file my_global.h.

typedef unsigned long size_s
 

Definition at line 824 of file my_global.h.

typedef SOCKET_SIZE_TYPE size_socket
 

Definition at line 488 of file my_global.h.

typedef unsigned char uchar
 

Definition at line 730 of file my_global.h.

typedef unsigned int uint
 

Definition at line 386 of file my_global.h.

typedef unsigned short uint16
 

Definition at line 733 of file my_global.h.

typedef unsigned char uint8
 

Definition at line 732 of file my_global.h.

typedef unsigned long ulonglong
 

Definition at line 757 of file my_global.h.

typedef unsigned short ushort
 

Definition at line 387 of file my_global.h.


Variable Documentation

C_MODE_END typedef int pchar
 

Definition at line 465 of file my_global.h.

C_MODE_START typedef int(* qsort_cmp)(const void *, const void *)
 

Definition at line 472 of file my_global.h.

C_MODE_START typedef void(* sig_return)()
 

Definition at line 456 of file my_global.h.

error Neither int or long is of bytes width typedef unsigned long ulong
 

Definition at line 750 of file my_global.h.


Generated on Sun May 14 14:51:28 2006 by  doxygen 1.4.2