diff options
author | Bruce Momjian | 2006-07-13 16:49:20 +0000 |
---|---|---|
committer | Bruce Momjian | 2006-07-13 16:49:20 +0000 |
commit | a22d76d96adaa98ab20de290a1b710a199805ddc (patch) | |
tree | 0c54c219cae248d98b5fffb1189ac5af559468b7 /src/include/utils/pg_lzcompress.h | |
parent | 70e2e3d8b1189c2c74007b39137ba475ae9f1cbb (diff) |
Allow include files to compile own their own.
Strip unused include files out unused include files, and add needed
includes to C files.
The next step is to remove unused include files in C files.
Diffstat (limited to 'src/include/utils/pg_lzcompress.h')
-rw-r--r-- | src/include/utils/pg_lzcompress.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/include/utils/pg_lzcompress.h b/src/include/utils/pg_lzcompress.h index 027025f939d..0b94c9c5b72 100644 --- a/src/include/utils/pg_lzcompress.h +++ b/src/include/utils/pg_lzcompress.h @@ -1,7 +1,7 @@ /* ---------- * pg_lzcompress.h - * - * $PostgreSQL: pgsql/src/include/utils/pg_lzcompress.h,v 1.11 2005/05/25 21:40:42 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/pg_lzcompress.h,v 1.12 2006/07/13 16:49:20 momjian Exp $ * * Definitions for the builtin LZ compressor * ---------- @@ -180,7 +180,8 @@ extern PGLZ_Strategy *PGLZ_strategy_never; * Initialize a decomp state from a compressed input. * ---------- */ -#define pglz_decomp_init(_ds,_lz) do { \ +#define pglz_decomp_init(_ds,_lz) \ +do { \ (_ds)->cp_in = ((unsigned char *)(_lz)) \ + sizeof(PGLZ_Header); \ (_ds)->cp_end = (_ds)->cp_in + (_lz)->varsize \ @@ -205,7 +206,8 @@ extern PGLZ_Strategy *PGLZ_strategy_never; * Deallocate resources after decompression. * ---------- */ -#define pglz_decomp_end(_ds) do { \ +#define pglz_decomp_end(_ds) \ +do { \ if ((_ds)->temp_buf != NULL) \ pfree((void *)((_ds)->temp_buf)); \ } while (0) |