Mercurial > libpst
comparison src/define.h @ 176:ac6e22c8a9cf
build separate libpst, libpst-libs, libpst-devel rpms.
remove many functions from the interface by making them static.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Wed, 08 Apr 2009 14:13:06 -0700 |
parents | 6954d315aaa8 |
children | d360f96f71f6 |
comparison
equal
deleted
inserted
replaced
175:03dbd449290f | 176:ac6e22c8a9cf |
---|---|
139 #ifdef HAVE_DIRENT_H | 139 #ifdef HAVE_DIRENT_H |
140 #include <dirent.h> | 140 #include <dirent.h> |
141 #endif | 141 #endif |
142 | 142 |
143 | 143 |
144 void pst_debug(const char *fmt, ...); | 144 void pst_debug(const char *fmt, ...); |
145 void pst_debug_hexdumper(FILE* out, char* buf, size_t size, int col, int delta); | 145 void pst_debug_hexdumper(FILE* out, char* buf, size_t size, int col, int delta); |
146 void pst_debug_hexprint(char *data, int size); | 146 void pst_debug_hexprint(char *data, int size); |
147 | 147 void pst_debug_init(const char *fname); |
148 void pst_debug_init(const char *fname); | 148 void pst_debug_msg_info (int line, const char *file, int type); |
149 void pst_debug_msg_info (int line, const char *file, int type); | 149 void pst_debug_msg_text(const char* fmt, ...); |
150 void pst_debug_msg_text(const char* fmt, ...); | 150 void pst_debug_hexdump(char *x, size_t y, int cols, int delta); |
151 void pst_debug_hexdump(char *x, size_t y, int cols, int delta); | 151 void pst_debug_func(const char *function); |
152 void pst_debug_func(const char *function); | 152 void pst_debug_func_ret(); |
153 void pst_debug_func_ret(); | 153 void pst_debug_close(void); |
154 void pst_debug_close(void); | 154 void* pst_malloc(size_t size); |
155 void pst_debug_write(); | |
156 size_t pst_debug_fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream); | |
157 void* pst_malloc(size_t size); | |
158 | 155 |
159 #define MESSAGEPRINT(x,y) {pst_debug_msg_info(__LINE__,__FILE__,y);\ | 156 #define MESSAGEPRINT(x,y) {pst_debug_msg_info(__LINE__,__FILE__,y);\ |
160 pst_debug_msg_text x;} | 157 pst_debug_msg_text x;} |
161 | 158 |
162 #define LOGSTOP() {MESSAGESTOP();DEBUGSTOP();} | 159 #define LOGSTOP() {MESSAGESTOP();DEBUGSTOP();} |