diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-11-16 00:13:02 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-11-16 00:13:02 +0000 |
commit | 224f91f66df502dbb6f1d793fd09f4421cbd4043 (patch) | |
tree | 2b5ed56f22621e2ffca6fbf318772e10290988f5 /contrib/intarray/_int.h | |
parent | 7d4c99b4146f81f638b702ac80846db0b23dfd82 (diff) |
Modify LOOPBYTE/LOOPBIT macros to be more logical; rather than have the
for() body passed as a parameter, make the macros act as simple headers
to code blocks.
This allows pgindent to be run on these files.
Diffstat (limited to 'contrib/intarray/_int.h')
-rw-r--r-- | contrib/intarray/_int.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/contrib/intarray/_int.h b/contrib/intarray/_int.h index 97e6fe642fc..0a1888da3b1 100644 --- a/contrib/intarray/_int.h +++ b/contrib/intarray/_int.h @@ -66,10 +66,8 @@ typedef char BITVEC[SIGLEN]; typedef char *BITVECP; -#define LOOPBYTE(a) \ - for(i=0;i<SIGLEN;i++) {\ - a;\ - } +#define LOOPBYTE \ + for(i=0;i<SIGLEN;i++) /* beware of multiple evaluation of arguments to these macros! */ #define GETBYTE(x,i) ( *( (BITVECP)(x) + (int)( (i) / BITS_PER_BYTE ) ) ) |