Changeset 34 for trunk/include


Ignore:
Timestamp:
May 19, 2006, 8:09:51 PM (18 years ago)
Author:
rainer
Message:

Code cleanup and minor fixes

Location:
trunk/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/samhain.h

    r30 r34  
    302302 */
    303303int  safe_logger (int signal, int method, char * details);
    304 void safe_fatal  (int signal, int method, char * details, char *f, int l);
     304void safe_fatal  (char * details, char *f, int l);
    305305
    306306#define SH_VALIDATE_EQ(a,b) \
    307307     do { \
    308          if ((a) != (b)) safe_fatal(0, 0, #a " != " #b, FIL__, __LINE__);\
     308         if ((a) != (b)) safe_fatal(#a " != " #b, FIL__, __LINE__);\
    309309     } while (0)
    310310
    311311#define SH_VALIDATE_NE(a,b) \
    312312     do { \
    313          if ((a) == (b)) safe_fatal(0, 0, #a " == " #b, FIL__, __LINE__);\
     313         if ((a) == (b)) safe_fatal(#a " == " #b, FIL__, __LINE__);\
    314314     } while (0)
    315315
  • trunk/include/sh_utils.h

    r22 r34  
    144144/* returns freshly allocated memory, return value should be free'd
    145145 */
    146 char * sh_util_filename(char * fullpath);
     146char * sh_util_dirname(const char * fullpath);
    147147
    148148/* returns freshly allocated memory, return value should be free'd
     
    160160/* returns freshly allocated memory, return value should be free'd
    161161 */
    162 char * sh_util_basename(char * fullpath);
     162char * sh_util_basename(const char * fullpath);
    163163
    164164#endif
  • trunk/include/slib.h

    r20 r34  
    401401  int sl_ok_subi (int a, int b);
    402402
     403  int sl_ok_muls (size_t a, size_t b);
     404  int sl_ok_adds (size_t a, size_t b);
     405
     406
    403407#ifdef  __cplusplus
    404408}
Note: See TracChangeset for help on using the changeset viewer.