Changeset 301 for branches/branch-1.2/zoo-kernel/service.h
- Timestamp:
- Aug 5, 2011, 3:02:43 PM (13 years ago)
- Location:
- branches/branch-1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1.2
-
branches/branch-1.2/zoo-kernel/service.h
r268 r301 203 203 } 204 204 205 205 206 static map* getLastMap(map* m){ 206 207 map* tmp=m; … … 497 498 } 498 499 500 static map* getMapOrFill(map* m,const char *key,char* value){ 501 map* tmp=m; 502 map* tmpMap=getMap(tmp,key); 503 if(tmpMap==NULL){ 504 if(tmp!=NULL) 505 addToMap(tmp,key,value); 506 else 507 tmp=createMap(key,value); 508 tmpMap=getMap(tmp,key); 509 } 510 return tmpMap; 511 } 512 499 513 static bool contains(map* m,map* i){ 500 514 while(i!=NULL){
Note: See TracChangeset
for help on using the changeset viewer.