diff options
| author | Zeev Suraski <zeev@php.net> | 2001-08-11 16:39:07 +0000 | 
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-08-11 16:39:07 +0000 | 
| commit | f6f6c4d7e63d2eaf4ece7aee66f46a013b29bffa (patch) | |
| tree | 4013e29cc962a2f0363f61d764da46d8302d828e /ext/hyperwave/debug.h | |
| parent | bafa98109cb7ac4c95a4d47e010139f4cd100bde (diff) | |
| download | php-git-f6f6c4d7e63d2eaf4ece7aee66f46a013b29bffa.tar.gz | |
Whitespace
Diffstat (limited to 'ext/hyperwave/debug.h')
| -rw-r--r-- | ext/hyperwave/debug.h | 31 | 
1 files changed, 20 insertions, 11 deletions
diff --git a/ext/hyperwave/debug.h b/ext/hyperwave/debug.h index b596cbf522..5b72dbb194 100644 --- a/ext/hyperwave/debug.h +++ b/ext/hyperwave/debug.h @@ -17,6 +17,15 @@  * -----------------  *  * $Log$ +* Revision 1.2  2000/07/02 23:46:41  sas +* Change header protection macros to conform to standard. +* +* Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment" +* +*   All identifiers that begin with an underscore and either an uppercase +*   letter or another underscore are always reserved for any use by the +*   implementation. +*  * Revision 1.1  1999/04/21 23:37:47  ssb  * moved db  * @@ -141,35 +150,35 @@  #define  NUMELE(a)    (sizeof(a)/sizeof(*(a)))  #define  LASTELE(a)    ((a) + (NUMELE(a)-1))  #ifdef  LDATA -#define  TOOHIGH(a,p)  ((long)PHYS(p) - (long)PHYS(a) > (long)(NUMELE(a)-1)) -#define  TOOLOW(a,p)    ((long)PHYS(p) - (long)PHYS(a) < 0) +#define  TOOHIGH(a, p)  ((long)PHYS(p) - (long)PHYS(a) > (long)(NUMELE(a)-1)) +#define  TOOLOW(a, p)    ((long)PHYS(p) - (long)PHYS(a) < 0)  #else -#define  TOOHIGH(a,p)  ((long)(p) - (long)(a) > (long)(NUMELE(a)-1)) -#define  TOOLOW(a,p)    ((long)(p) - (long)(a) < 0) +#define  TOOHIGH(a, p)  ((long)(p) - (long)(a) > (long)(NUMELE(a)-1)) +#define  TOOLOW(a, p)    ((long)(p) - (long)(a) < 0)  #endif -#define  INBOUNDS(a,p)  ( ! (TOOHIGH(a,p) || TOOLOW(a,p)) ) +#define  INBOUNDS(a, p)  ( ! (TOOHIGH(a, p) || TOOLOW(a, p)) ) -#define  _IS(t,x) (((t)1 << (x)) != 0)  /* Evaluates true if the width of */ +#define  _IS(t, x) (((t)1 << (x)) != 0)  /* Evaluates true if the width of */                      /* variable of type t is < x.    */                      /* The != 0 assures that the      */                      /* answer is 1 or 0          */ -#define  NBITS(t) (4 * (1 + _IS(t,4) + _IS(t,8) + _IS(t,12) + _IS(t,16) \ -             + _IS(t,20) + _IS(t,24) + _IS(t,28) + _IS(t,32))) +#define  NBITS(t) (4 * (1 + _IS(t, 4) + _IS(t, 8) + _IS(t, 12) + _IS(t, 16) \ +             + _IS(t, 20) + _IS(t, 24) + _IS(t, 28) + _IS(t, 32)))  #define  MAXINT      (((unsigned)~0) >> 1)  #ifndef  MAX -#    define MAX(a,b)  ( ((a) > (b)) ? (a) : (b)) +#    define MAX(a, b)  ( ((a) > (b)) ? (a) : (b))  #endif  #ifndef  MIN -#    define MIN(a,b) ( ((a) < (b)) ? (a) : (b)) +#    define MIN(a, b) ( ((a) < (b)) ? (a) : (b))  #endif  #ifndef  ABS  #    define ABS(a)  ((a) >= 0 ? (a) : -(a))  #endif -#define  RANGE(a,b,c)  ( (a) <= (b) && (b) <= (c) ) +#define  RANGE(a, b, c)  ( (a) <= (b) && (b) <= (c) )  /* General typedefs  */  | 
