comparison src/define.h @ 289:cc8ee701f190

pst_block_offset elements are unsigned; consistent usage of pst_malloc and pst_realloc
author Carl Byington <carl@five-ten-sg.com>
date Fri, 27 May 2011 11:36:49 -0700
parents 67b24d6a45d6
children 7a91e30826d8
comparison
equal deleted inserted replaced
288:fa7fc1ac6385 289:cc8ee701f190
141 void pst_debug(int line, const char *file, const char *fmt, ...); 141 void pst_debug(int line, const char *file, const char *fmt, ...);
142 void pst_debug_hexdump(int line, const char *file, const char* buf, size_t size, int cols, int delta); 142 void pst_debug_hexdump(int line, const char *file, const char* buf, size_t size, int cols, int delta);
143 void pst_debug_hexdumper(FILE* out, const char* buf, size_t size, int cols, int delta); 143 void pst_debug_hexdumper(FILE* out, const char* buf, size_t size, int cols, int delta);
144 void pst_debug_close(void); 144 void pst_debug_close(void);
145 void* pst_malloc(size_t size); 145 void* pst_malloc(size_t size);
146 void *pst_realloc(void *ptr, size_t size);
146 147
147 #define MESSAGEPRINT(...) pst_debug(__LINE__, __FILE__, __VA_ARGS__) 148 #define MESSAGEPRINT(...) pst_debug(__LINE__, __FILE__, __VA_ARGS__)
148 149
149 #define WARN(x) { \ 150 #define WARN(x) { \
150 MESSAGEPRINT x; \ 151 MESSAGEPRINT x; \