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_conf.y

    r393 r453  
    283283              current_element->next=NULL;
    284284              if($2!=NULL)
    285                 current_element->format=strdup($2);
     285                current_element->format=zStrdup($2);
    286286             
    287287              current_element->defaults=NULL;
     
    298298            current_element->next=NULL;
    299299            if($2!=NULL)
    300               current_element->format=strdup($2);
     300              current_element->format=zStrdup($2);
    301301            current_element->defaults=NULL;
    302302            current_element->supported=NULL;
     
    549549  }
    550550  }
    551 | SPAIR  { if(curr_key!=NULL) {free(curr_key);curr_key=NULL;} if($1!=NULL) curr_key=strdup($1);if(debug) fprintf(stderr,"SPAIR FOUND !!\n"); }
     551| SPAIR  { if(curr_key!=NULL) {free(curr_key);curr_key=NULL;} if($1!=NULL) curr_key=zStrdup($1);if(debug) fprintf(stderr,"SPAIR FOUND !!\n"); }
    552552 ;
    553553
     
    561561    data=1;
    562562    if($1!=NULL){
    563       char *cen=strdup($1);
     563      char *cen=zStrdup($1);
    564564      my_service->name=(char*)malloc((strlen(cen)-1)*sizeof(char*));
    565565      cen[strlen(cen)-1]=0;
     
    615615#endif
    616616        if($1!=NULL){
    617           char *cen=strdup($1);
     617          char *cen=zStrdup($1);
    618618          current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char*));
    619619          cen[strlen(cen)-1]=0;
     
    677677#endif
    678678            if($1!=NULL){
    679               char *cen=strdup($1);
     679              char *cen=zStrdup($1);
    680680              current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char));
    681681              cen[strlen(cen)-1]=0;
     
    709709            current_element=NULL;
    710710            current_element=(elements*)malloc(ELEMENTS_SIZE);
    711             char *cen=strdup($1);
     711            char *cen=zStrdup($1);
    712712            current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char));
    713713            cen[strlen(cen)-1]=0;
     
    729729#endif
    730730            if($1!=NULL){
    731               char *cen=strdup($1);
     731              char *cen=zStrdup($1);
    732732              current_element->name=(char*)malloc((strlen(cen))*sizeof(char*));
    733733              cen[strlen(cen)-1]=0;
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