pike.git / src / pike_macros.h

version» Context lines:

pike.git/src/pike_macros.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id$ +    */      #ifndef MACROS_H   #define MACROS_H      #include "global.h"      #ifdef HAVE_SYS_PARAM_H   #include <sys/param.h>   #endif
pike.git/src/pike_macros.h:34:      #define MINIMUM(X,Y) ((X)<(Y)?(X):(Y))   #define MAXIMUM(X,Y) ((X)>(Y)?(X):(Y))         PMOD_EXPORT extern const char Pike_is8bitalnum_vector[];   #define is8bitalnum(X) (Pike_is8bitalnum_vector[((unsigned)(X))&0xff] == '1')      #define isidchar(X) is8bitalnum(X)    - #ifndef HAVE_ISGRAPH - #define isgraph(X) (ispunct(X) || isupper(X) || islower(X) || isdigit(X)) - #endif /* !HAVE_ISGRAPH */ +        -  +    #define DO_ALIGN(X,Y) (((size_t)(X)+((Y)-1)) & ~((Y)-1))   #define CONSTANT_STRLEN(X) (sizeof(X) - sizeof(""))      #define SET_NEXT_AND_FREE(p,free_item) do{ \    next=p->next; \    while(p->refs == 1 && (next=p->next)) \    { \    add_ref(next); \    free_item(p); \    p=next; \