00001 /*************************************************************************** 00002 keypvalplist.c 00003 ------------------- 00004 begin : Sun Nov 24 2001 00005 copyright : (C) 2001-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 #include "common.h" 00024 00025 #include <stdlib.h> 00026 00027 #include "keypvalplist.h" 00028 00029 #undef ML_INVALID 00030 00031 #define ML_INVALID kpvpListReturnInvalid() 00032 00033 #undef ML_IS_VALID_CARGO 00034 00035 #define ML_IS_VALID_CARGO(cargo) (cargo.key != NULL) 00036 00037 #undef ML_CREATE_CARGO 00038 00039 #undef ML_COPY_CARGO 00040 00041 #undef ML_FREE_CARGO 00042 00044 inline MlCargo kpvpListReturnInvalid() 00045 { 00046 MlCargo kvp; 00047 kvp.key = NULL; 00048 kvp.val = NULL; 00049 return kvp; 00050 } 00051 00052 #include "mlist_tmpl_c.inc"