c_lib.h

Go to the documentation of this file.
00001 /*
00002  * cynapses libc functions
00003  *
00004  * Copyright (c) 2008      by Andreas Schneider <mail@cynapses.org>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * as published by the Free Software Foundation; either version 2
00009  * of the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software Foundation,
00018  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019  *
00020  * vim: ts=2 sw=2 et cindent
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 

Generated on Mon Aug 18 13:53:10 2014 for doc by  doxygen 1.5.6