00001 00002 /* 00003 COPYRIGHT DISCLAIMER 00004 00005 Vincent Le Guilloux, Peter Schmidtke and Pierre Tuffery, hereby 00006 disclaim all copyright interest in the program “fpocket” (which 00007 performs protein cavity detection) written by Vincent Le Guilloux and Peter 00008 Schmidtke. 00009 00010 Vincent Le Guilloux 28 November 2008 00011 Peter Schmidtke 28 November 2008 00012 Pierre Tuffery 28 November 2008 00013 00014 GNU GPL 00015 00016 This file is part of the fpocket package. 00017 00018 fpocket is free software: you can redistribute it and/or modify 00019 it under the terms of the GNU General Public License as published by 00020 the Free Software Foundation, either version 3 of the License, or 00021 (at your option) any later version. 00022 00023 fpocket is distributed in the hope that it will be useful, 00024 but WITHOUT ANY WARRANTY; without even the implied warranty of 00025 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00026 GNU General Public License for more details. 00027 00028 You should have received a copy of the GNU General Public License 00029 along with fpocket. If not, see <http://www.gnu.org/licenses/>. 00030 00031 **/ 00032 00033 #ifndef DH_MEMHANDLER 00034 #define DH_MEMHANDLER 00035 00036 /* -----------------------------INCLUDES--------------------------------------*/ 00037 00038 #include <stdio.h> 00039 #include <stdlib.h> 00040 #include <unistd.h> 00041 #include <string.h> 00042 #include <ctype.h> 00043 #include <limits.h> 00044 00045 00046 /* -------------------------------MACROS--------------------------------------*/ 00047 00048 #define M_EXIT 1 /**< exit flag*/ 00049 #define M_CONTINUE 0 /**< continue flag */ 00050 00051 /* ------------------------- PUBLIC STRUCTURES ------------------------------ */ 00052 00053 /* ----------------------------PROTOTYPES-------------------------------------*/ 00054 00055 void* my_malloc(size_t nb) ; 00056 void* my_calloc(size_t nb, size_t s) ; 00057 void* my_realloc(void *ptr, size_t nb) ; 00058 void my_free(void *bloc) ; 00059 void my_exit(void) ; 00060 void print_number_of_objects_in_memory(void); 00061 void free_all(void) ; 00062 void print_ptr_lst(void) ; 00063 00064 #endif