c_lib.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <stdlib.h>
00024 #include <string.h>
00025
00026 #include "c_macro.h"
00027 #include "c_alloc.h"
00028 #include "c_dir.h"
00029 #include "c_file.h"
00030 #include "c_list.h"
00031 #include "c_path.h"
00032 #include "c_rbtree.h"
00033 #include "c_string.h"
00034 #include "c_time.h"
00035 #include "c_private.h"
00036
00037 #ifndef UNIT_TESTING
00038 #ifdef malloc
00039 #undef malloc
00040 #endif
00041 #define malloc(x) DO_NOT_CALL_MALLOC__USE_C_MALLOC_INSTEAD
00042
00043 #ifdef calloc
00044 #undef calloc
00045 #endif
00046 #define calloc(x,y) DO_NOT_CALL_CALLOC__USE_C_CALLOC_INSTEAD
00047
00048 #endif
00049
00050 #ifdef realloc
00051 #undef realloc
00052 #endif
00053 #define realloc(x,y) DO_NOT_CALL_REALLOC__USE_C_REALLOC_INSTEAD
00054
00055 #ifdef dirname
00056 #undef dirname
00057 #endif
00058 #define dirname(x) DO_NOT_CALL_MALLOC__USE_C_DIRNAME_INSTEAD
00059
00060 #ifdef basename
00061 #undef basename
00062 #endif
00063 #define basename(x) DO_NOT_CALL_MALLOC__USE_C_BASENAME_INSTEAD
00064
00065 #ifdef strdup
00066 #undef strdup
00067 #endif
00068 #define strdup(x) DO_NOT_CALL_STRDUP__USE_C_STRDUP_INSTEAD
00069