Ignore:
Timestamp:
Feb 12, 2014, 3:25:15 PM (10 years ago)
Author:
djay
Message:

Add the optional Ruby Language Support to the ZOO-Kernel with an API similar to the Python ZOO-API. Small rewrite of Python support. Fix issue #86 and #87. Add usid in [lenv] section, this value is used to generate an unique identifier based on time and the process identifier. This usid is now used to name the stored result or the mapfile generated. Remove *some* warning messages displayed at compilation time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_loader.c

    r403 r453  
    8686  char *strQuery=NULL;
    8787  if(cgiQueryString!=NULL)
    88     strQuery=strdup(cgiQueryString);
     88    strQuery=zStrdup(cgiQueryString);
    8989  map* tmpMap=NULL;
    9090
     
    104104         else{
    105105           res=(char*)realloc(res,(cgiContentLength+1)*sizeof(char));
    106            char *tmp=strdup(res);
     106           char *tmp=zStrdup(res);
    107107           sprintf(res,"%s%s",tmp,buffer);
    108108           free(tmp);
     
    136136            sprintf(buffer,"%s",tmpValueFinal);
    137137          }else{
    138             char *tmp=strdup(buffer);
     138            char *tmp=zStrdup(buffer);
    139139            sprintf(buffer,"%s&%s",tmp,tmpValueFinal);
    140140            free(tmp);
     
    240240#endif
    241241          if(req!=NULL && req->nodeNr==1){
    242             t1->value=strdup(requests[j]);
     242            t1->value=zStrdup(requests[j]);
    243243            j=2;
    244244          }
     
    271271              xmlChar* content=xmlNodeListGetString(doc, id->nodeTab[k]->xmlChildrenNode,1);
    272272              if(strlen(identifiers)>0){
    273                 char *tmp=strdup(identifiers);
     273                char *tmp=zStrdup(identifiers);
    274274                snprintf(identifiers,strlen(tmp)+xmlStrlen(content)+2,"%s,%s",tmp,content);
    275275                free(tmp);
     
    303303      while(token1!=NULL){
    304304        if(name==NULL)
    305           name=strdup(token1);
     305          name=zStrdup(token1);
    306306        else
    307           value=strdup(token1);
     307          value=zStrdup(token1);
    308308        token1=strtok_r(NULL,"=",&saveptr1);
    309309      }
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