Ignore:
Timestamp:
Dec 23, 2012, 11:50:33 AM (11 years ago)
Author:
djay
Message:

Fix handling of multiple outputs. Small fix to build with bleeding edge gcc. Add missing copyright in service_internal_ms.c/h. Better gesture of session data. Update HISTORY.txt content.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_conf.y

    r226 r379  
    151151: INFCAR ID Attributeetoile SUPCAR
    152152{
     153#ifdef DEBUG_SERVICE_CONF
     154  fprintf(stderr,"(%s %d) %s\n",__FILE__,__LINE__,$2);
     155  fflush(stderr);
     156#endif
    153157  if(my_service->content==NULL){
    154158#ifdef DEBUG_SERVICE_CONF
     
    226230#ifdef DEBUG_SERVICE_CONF
    227231        fprintf(stderr,"(DATAOUTPUTS - %d) ALLOCATE current_element (%s)\n",__LINE__,$2);
     232        fflush(stderr);
    228233#endif
    229234        current_element=(elements*)malloc(ELEMENTS_SIZE);
     
    272277          if(wait_metadata==true){
    273278            if(current_content!=NULL){
     279#ifdef DEBUG_SERVICE_CONF
     280              fprintf(stderr,"add current_content to current_element->content\n");
     281              fprintf(stderr,"LINE %d",__LINE__);
     282#endif
    274283              addMapToMap(&current_element->metadata,current_content);
    275284              current_element->next=NULL;
     
    290299            current_element->next=NULL;
    291300            if($2!=NULL)
    292             current_element->format=strdup($2);
     301              current_element->format=strdup($2);
    293302            current_element->defaults=NULL;
    294303            current_element->supported=NULL;
     
    312321#ifdef DEBUG_SERVICE_CONF
    313322  printf("* Identifiant : %s\n",$2);
     323  fflush(stdout);
    314324#endif
    315325}
     
    357367EmptyElemTag
    358368 : INFCAR ID Attributeetoile SLASH SUPCAR       {
     369#ifdef DEBUG_SERVICE_CONF
     370  fprintf(stderr,"(%s %d)\n",__FILE__,__LINE__);
     371#endif
    359372   if(strncasecmp($2,"Default",7)==0){
    360373     wait_defaults=false;
     
    386399 : INFCAR SLASH ID SUPCAR
    387400{
     401#ifdef DEBUG_SERVICE_CONF
     402  fprintf(stderr,"(%s %d)\n",__FILE__,__LINE__);
     403#endif
    388404  if(strcmp($3,"DataInputs")==0){
    389405    current_data=1;
     
    495511| EPAIR {
    496512#ifdef DEBUG_SERVICE_CONF
     513  fprintf(stderr,"(%s %d)\n",__FILE__,__LINE__);
    497514  fprintf(stderr,"EPAIR FOUND !! \n");
    498515  fprintf(stderr,"[%s=>%s]\n",curr_key,$1);
     
    510527      fprintf(stderr,"[ZOO: service_conf.y line %d free(%s)]\n",__LINE__,curr_key);
    511528#endif
    512       //current_content->next=NULL;
    513529    }
    514530    else{
     
    524540  }
    525541#ifdef DEBUG_SERVICE_CONF
    526   fprintf(stderr,"EPAIR FOUND !! \n");
    527542  fprintf(stderr,"[%s=>%s]\n",curr_key,$1);
    528543  fprintf(stderr,"[ZOO: service_conf.y line %d free(%s)]\n",__LINE__,curr_key);
     544  dumpMap(current_content);
    529545  fflush(stderr);
    530546#endif
     
    540556processid
    541557: ANID  {
     558#ifdef DEBUG_SERVICE_CONF
     559  fprintf(stderr,"(%s %d)\n",__FILE__,__LINE__);
     560#endif
    542561  if(data==-1){
    543562    data=1;
     
    690709            free(current_element);
    691710            current_element=NULL;
     711            current_element=(elements*)malloc(ELEMENTS_SIZE);
     712            char *cen=strdup($1);
     713            current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char));
     714            cen[strlen(cen)-1]=0;
     715            cen+=1;
     716            sprintf(current_element->name,"%s",cen);
     717            cen-=1;
     718            free(cen);
     719            current_element->content=NULL;
     720            current_element->metadata=NULL;
     721            current_element->format=NULL;
     722            current_element->defaults=NULL;
     723            current_element->supported=NULL;
     724            current_element->next=NULL;
    692725          }
    693726          else{
    694727#ifdef DEBUG_SERVICE_CONF
    695728            fprintf(stderr,"NAME OUT %s\n",$1);
    696             fprintf(stderr,"(DATAOUTPUTS - 545) SET NAME OF current_element\n");
     729            fprintf(stderr,"(DATAOUTPUTS - %d) SET NAME OF current_element %s\n",__LINE__,$1);
    697730#endif
    698731            if($1!=NULL){
    699732              char *cen=strdup($1);
    700               current_element->name=(char*)malloc((strlen(cen)-1)*sizeof(char*));
     733              current_element->name=(char*)malloc((strlen(cen))*sizeof(char*));
    701734              cen[strlen(cen)-1]=0;
    702735#ifdef DEBUG
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