Changeset 20 for trunk/zoo-kernel


Ignore:
Timestamp:
Sep 17, 2010, 1:21:37 PM (14 years ago)
Author:
djay
Message:

Small cleanup.

Location:
trunk/zoo-kernel
Files:
2 edited

Legend:

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

    r9 r20  
    133133 : STag contentetoile ETag     
    134134{
    135   /*if (strcasecmp($1,$3) != 0)
    136     {
    137       fprintf(stderr,"Opening and ending tag mismatch\n  ::details : tag '%s' et '%s' \n",$1,$3);
    138       //lattribute.clear();
    139       //return 1;
    140       }*/
    141135  free($3);
    142136}
     137
    143138// pour neutre
    144139// on a rien a faire, meme pas renvoyer l identificateur de balise
     
    146141 | EmptyElemTag          {}
    147142 ;
     143
    148144//======================================================
    149145// STag
     
    157153: INFCAR ID Attributeetoile SUPCAR
    158154{
    159   /* l'astuce consiste a vider le contenu du vector ici !! */
    160   /* parce que cet element est reconnu AVANT la balise fermante */
    161   /* et APRES l'analyse des eventuelles balises internes ou successeur */
    162   //lattribute.clear();
    163 
    164155  if(my_service->content==NULL){
    165156#ifdef DEBUG_SERVICE_CONF
     
    173164    wait_maincontent=false;
    174165  }
    175 
    176166  if(strncasecmp($2,"DataInputs",10)==0){
    177167    if(wait_mainmetadata==true){
     
    318308  /* avec la balise jumelle fermante ! */
    319309  $$ = $2 ;
    320   /*if($2!=NULL)
    321     free($2);*/
    322310}
    323311 ;
     312
    324313//======================================================
    325314// Attributeetoile
     
    333322 |                                {/* Epsilon */}
    334323 ;
     324
    335325//======================================================
    336326// attribute
     
    345335 : ID Eq ATTVALUE               
    346336{
    347         // on verifie que les attributst ne sont pas en double
    348         // sinon on ajoute au vector
    349337#ifdef DEBUG_SERVICE_CONF
    350338  printf ("attribute : %s\n",$1) ;
    351339#endif
    352   /*for(int i=0;i < lattribute.size(); i++)
    353     {
    354       if (strcmp($1,lattribute.at(i)) == 0)
    355         {
    356           fprintf (stderr,"attributs identiques : %d -- %s , %s",i,lattribute.at(i),$1) ;
    357         }
    358     }
    359     lattribute.push_back($1);*/
    360340  free($1);
    361341}
    362342 ;
     343
    363344//======================================================
    364345// EmptyElemTag
     
    373354 : INFCAR ID Attributeetoile SLASH SUPCAR       {/*lattribute.clear();/* voir Stag */}
    374355 ;
     356
    375357//======================================================
    376358// ETag
     
    459441}
    460442 ;
     443
    461444//======================================================
    462445// contentetoile
     
    486469 | {/* Epsilon */}
    487470 ;
     471
    488472//======================================================
    489473// texteinterbalise
  • trunk/zoo-kernel/zoo_service_loader.c

    r19 r20  
    18411841                   cpid,m,eres);
    18421842
    1843   //if(getpid()==cpid){
    18441843  freeService(&s1);
    18451844  free(s1);
    18461845  freeMaps(&m);
    18471846  free(m);
    1848   freeMaps(&tmpmaps);
    1849   free(tmpmaps);
    18501847 
    18511848  freeMaps(&request_input_real_format);
    18521849  free(request_input_real_format);
    1853  
    1854   //freeMap(&request_inputs);
    1855   //free(request_inputs);
    1856    
     1850
    18571851  /* The following is requested but get issue using with Python support :/ */
    1858   /* freeMaps(&request_output_real_format);
    1859      free(request_output_real_format);
    1860   */
     1852  /*freeMaps(&request_output_real_format);
     1853  free(request_output_real_format);*/
    18611854 
    18621855  free(REQUEST);
     
    18671860  fflush(stderr);
    18681861#endif
    1869     //}
    18701862
    18711863  return 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