00001 /*************************************************************************** 00002 charlist.h 00003 ------------------- 00004 begin : Sun Jan 20 2002 00005 copyright : (C) 2002 by Christian Hoenig & Gunter Ohrner 00006 email : pdepp@CustomCDROM.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00023 /* 00024 Define all macros unconditionally. That does no harm but helps 00025 "--enable-final" builds where all c-files are concatenated together 00026 */ 00027 00028 00029 00030 #undef MlCargo 00031 00032 #define MlCargo char* 00033 00034 #undef ML_LIST_NAME 00035 00036 #define ML_LIST_NAME CharList 00037 00038 #undef ML_FUNC_PFX 00039 00040 #define ML_FUNC_PFX charList 00041 00042 /* #undef ML_CREATE_CARGO 00043 #define ML_CREATE_CARGO(cargo) cargo 00044 */ 00045 00046 #undef ML_COPY_CARGO 00047 00048 #define ML_COPY_CARGO(dest, source) { \ 00049 dest = pd_malloc(strlen(source)); \ 00050 strcpy(dest, source); \ 00051 } 00052 00053 #undef ML_FREE_CARGO 00054 00055 #define ML_FREE_CARGO(cargo) pd_free(cargo) 00056 00057 00058 #ifndef CHARLIST_H_FLAG 00059 #define CHARLIST_H_FLAG 00060 00061 #include "mlist_tmpl_h.inc" 00062 00063 #endif