Ignore:
Timestamp:
Dec 19, 2016, 6:01:06 PM (7 years ago)
Author:
djay
Message:

Add support for nested inputs and outputs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_php.c

    r784 r790  
    306306  while(tmp!=NULL){
    307307    map* sMap=getMapArray(tmp,"size",0);   
    308         if(strncmp(tmp->name,"value",5)==0 && sMap!=NULL && tmp->value != NULL){
     308    if(strncmp(tmp->name,"value",5)==0 && sMap!=NULL && tmp->value != NULL){
    309309      tres=add_assoc_stringl(mapArray,tmp->name,tmp->value,atoi(sMap->value),1);
    310         }
    311         else if (tmp->value != NULL) {
     310    }
     311    else if (tmp->value != NULL) {
    312312      tres=add_assoc_string(mapArray,tmp->name,tmp->value,1);
    313         }
     313    }
    314314    tmp=tmp->next;
    315315  }
     
    362362       * String Key / Associative
    363363       */
    364       cursor=(maps*)malloc(MAPS_SIZE);
    365       cursor->name=strdup(key);
    366     }
     364      cursor=createMaps(key);
    367365#ifdef DEBUG   
    368     fprintf(stderr,"key : %s\n",key);
     366      fprintf(stderr,"key : %s\n",key);
    369367#endif 
    370     HashTable* t=HASH_OF(*ppzval);
    371 #ifdef DEBUG
    372     fprintf(stderr,"key : %s\n",key);
    373 #endif
    374     cursor->content=php_map_from_HasTable(t);
    375     cursor->next=NULL;
    376     if(final_res==NULL)
    377       final_res=cursor;
    378     else{
    379       addMapsToMaps(&final_res,cursor);
     368      HashTable* t=HASH_OF(*ppzval);
     369#ifdef DEBUG
     370      fprintf(stderr,"key : %s\n",key);
     371#endif
     372      cursor->content=php_map_from_HasTable(t);
     373      cursor->next=NULL;
     374      if(final_res==NULL)
     375        final_res=dupMaps(&cursor);
     376      else{
     377        addMapsToMaps(&final_res,cursor);
     378      }
    380379      freeMaps(&cursor);
    381380      free(cursor);
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