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/service_internal_js.c

    r410 r453  
    483483
    484484        tres=(maps*)malloc(MAPS_SIZE);
    485         tres->name=strdup(JS_EncodeString(cx,jsmsg));
     485        tres->name=zStrdup(JS_EncodeString(cx,jsmsg));
    486486        tres->content=NULL;
    487487        tres->next=NULL;
     
    578578#endif
    579579          if(strcasecmp(JS_EncodeString(cx,jsmsg1),"[object Object]")==0){
    580             tres->name=strdup(JS_EncodeString(cx,jsmsg));
     580            tres->name=zStrdup(JS_EncodeString(cx,jsmsg));
    581581            tres->content=mapFromJSObject(cx,nvp1j);
    582582          }
    583583          else
    584584            if(strcasecmp(JS_EncodeString(cx,jsmsg),"name")==0){
    585               tres->name=strdup(JS_EncodeString(cx,jsmsg1));
     585              tres->name=zStrdup(JS_EncodeString(cx,jsmsg1));
    586586            }
    587587            else{
     
    775775  }
    776776  else{
    777     method=strdup("GET");
     777    method=zStrdup("GET");
    778778    url=JSValToChar(cx,argv);
    779779  }
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