Changeset 34 for trunk/include
- Timestamp:
- May 19, 2006, 8:09:51 PM (19 years ago)
- Location:
- trunk/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/samhain.h
r30 r34 302 302 */ 303 303 int safe_logger (int signal, int method, char * details); 304 void safe_fatal ( int signal, int method,char * details, char *f, int l);304 void safe_fatal (char * details, char *f, int l); 305 305 306 306 #define SH_VALIDATE_EQ(a,b) \ 307 307 do { \ 308 if ((a) != (b)) safe_fatal( 0, 0,#a " != " #b, FIL__, __LINE__);\308 if ((a) != (b)) safe_fatal(#a " != " #b, FIL__, __LINE__);\ 309 309 } while (0) 310 310 311 311 #define SH_VALIDATE_NE(a,b) \ 312 312 do { \ 313 if ((a) == (b)) safe_fatal( 0, 0,#a " == " #b, FIL__, __LINE__);\313 if ((a) == (b)) safe_fatal(#a " == " #b, FIL__, __LINE__);\ 314 314 } while (0) 315 315 -
trunk/include/sh_utils.h
r22 r34 144 144 /* returns freshly allocated memory, return value should be free'd 145 145 */ 146 char * sh_util_ filename(char * fullpath);146 char * sh_util_dirname(const char * fullpath); 147 147 148 148 /* returns freshly allocated memory, return value should be free'd … … 160 160 /* returns freshly allocated memory, return value should be free'd 161 161 */ 162 char * sh_util_basename(c har * fullpath);162 char * sh_util_basename(const char * fullpath); 163 163 164 164 #endif -
trunk/include/slib.h
r20 r34 401 401 int sl_ok_subi (int a, int b); 402 402 403 int sl_ok_muls (size_t a, size_t b); 404 int sl_ok_adds (size_t a, size_t b); 405 406 403 407 #ifdef __cplusplus 404 408 }
Note:
See TracChangeset
for help on using the changeset viewer.