Ignore:
Timestamp:
Feb 11, 2015, 11:29:35 AM (9 years ago)
Author:
djay
Message:

Code cleanup, description of some functon included in the code, addition of support for multiple error output, beter internal gesture of MapArray?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service.h

    r554 r576  
    22 * Author : Gérald FENOY
    33 *
    4  * Copyright (c) 2009-2012 GeoLabs SARL
     4 * Copyright (c) 2009-2015 GeoLabs SARL
    55 *
    66 * Permission is hereby granted, free of charge, to any person obtaining a copy
     
    475475    tmp->value[size]=0;
    476476    char sin[128];
    477     sprintf(sin,"%ld",size);
     477    sprintf(sin,"%d",size);
    478478    addToMap(m,"size",sin);
    479479  }
     
    611611      if(size!=NULL)
    612612        loadMapBinary(out,in,-1);
    613     char* tmpSized=NULL;
    614    
    615613  }
    616614
     
    672670
    673671
    674   static void setMapArray(map* m,char* key,int index,char* value){
     672  static void setMapArray(map* m,const char* key,int index,const char* value){
    675673    char tmp[1024];
    676     if(index>0)
     674    if(index>0){
    677675      sprintf(tmp,"%s_%d",key,index);
     676      map* len=getMap(m,"length");
     677      if((len!=NULL && atoi(len->value)<index+1) || len==NULL){
     678        char tmp0[5];
     679        sprintf(tmp0,"%d",index+1);
     680        addToMap(m,"length",tmp0);
     681      }
     682    }
    678683    else
    679684      sprintf(tmp,"%s",key);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png