Changeset 226


Ignore:
Timestamp:
Jun 4, 2011, 3:11:00 PM (13 years ago)
Author:
djay
Message:

Accept <Default /> nodes when no default value are available for a service.

File:
1 edited

Legend:

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

    r216 r226  
    356356//======================================================
    357357EmptyElemTag
    358  : INFCAR ID Attributeetoile SLASH SUPCAR       {}
     358 : INFCAR ID Attributeetoile SLASH SUPCAR       {
     359   if(strncasecmp($2,"Default",7)==0){
     360     wait_defaults=false;
     361     current_data=previous_data;
     362     if(current_element->defaults==NULL){
     363       current_element->defaults=(iotype*)malloc(IOTYPE_SIZE);
     364       current_element->defaults->content=NULL;
     365     }
     366     addMapToMap(&current_element->defaults->content,current_content);
     367     freeMap(&current_content);
     368     free(current_content);
     369     current_element->defaults->next=NULL;
     370     wait_defaults=false;
     371     current_content=NULL;
     372     current_element->supported=NULL;
     373     current_element->next=NULL;
     374   }
     375 }
    359376 ;
    360377
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