comparison ParamBag.c @ 16:93b017e30c76

adjust #defines to avoid double defs
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Mon, 29 Oct 2012 16:55:57 +0100
parents d46150af45ad
children c6544bc64a7c
comparison
equal deleted inserted replaced
3:5576551e3f11 6:6357a528c5e8
19 void freeParamBagHashEntry( ParamBagHashEntry *entry ); 19 void freeParamBagHashEntry( ParamBagHashEntry *entry );
20 ParamBagHashEntry * lookupKeyInHash( char *key, ParamBag * bag ); 20 ParamBagHashEntry * lookupKeyInHash( char *key, ParamBag * bag );
21 unsigned int hashThisKey( char *s, int hashSz ); 21 unsigned int hashThisKey( char *s, int hashSz );
22 void nullOutParamBagHashEntries( ParamBag *bag ); 22 void nullOutParamBagHashEntries( ParamBag *bag );
23 23
24 //TODO: Bug -- need internal, App/WL, and external versions
24 ParamBag * 25 ParamBag *
25 makeParamBag() 26 makeParamBag()
26 { ParamBag * retBag; 27 { ParamBag * retBag;
27 retBag = malloc( sizeof( ParamBag ) ); 28 retBag = malloc( sizeof( ParamBag ) );
28 retBag->entries = malloc( PARAM_BAG_HASHSIZE * sizeof( ParamBagHashEntry *) ); 29 retBag->entries = malloc( PARAM_BAG_HASHSIZE * sizeof( ParamBagHashEntry *) );