Ignore:
Timestamp:
Jul 13, 2015, 3:42:39 PM (9 years ago)
Author:
knut
Message:

Redefined the API function addToMapWithSize to fix problem with Python/PHP support. Added some variable initializations and NULL pointer checks.

File:
1 edited

Legend:

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

    r712 r738  
    455455 * @param v the corresponding value to add
    456456 * @param size the size of the given value
    457  */
    458 void addToMapWithSize(map* m,const char* n,const char* v,int size){
     457 * @return a pointer to the updated map m
     458 */
     459map* addToMapWithSize(map* m,const char* n,const char* v,int size){
    459460  if(hasKey(m,n)==false){
    460461    map* _cursor=m;
     
    477478  sprintf(sin,"%d",size);
    478479  addToMap(m,sname,sin);
     480  return m;
    479481}
    480482
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