Ignore:
Timestamp:
Feb 25, 2019, 1:57:11 PM (5 years ago)
Author:
knut
Message:

Added some recent changes from trunk (r889), including some new utility functions and exception handling and new (conditional) definition of type bool. Added some new logic concerning Python and Mono environment and search paths. Fixed problem with Mono updateStatus function. Changed response_print.h to #include locale.h unconditionally and xlocale.h conditionally; xlocale.h is non-standard and can probably be dropped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/zoo_service_loader.c

    r893 r896  
    229229  fread (tmps1, flen, 1, f2);
    230230#ifdef WIN32
     231  /* knut: I think this block can be dropped; pchr may be NULL if result is not in XML format
    231232  char *pchr=strrchr(tmps1,'>');
    232233  flen=strlen(tmps1)-strlen(pchr)+1;
    233234  tmps1[flen]=0;
     235  */
    234236#endif
    235237  fwrite (tmps1, 1, flen, f3);
     
    483485#endif
    484486
    485   map* libp = getMapFromMaps(m, "main", "libPath");
    486 
     487  map* libp = getMapFromMaps(m, "main", "libPath"); 
    487488  if (strlen (r_inputs->value) == 1
    488489      && strncasecmp (r_inputs->value, "C", 1) == 0)
     
    707708#ifdef USE_PYTHON
    708709  if (strncasecmp (r_inputs->value, "PYTHON", 6) == 0)
    709     {    
     710    {            
    710711      *eres =
    711712        zoo_python_support (&m, request_inputs, s1,
    712713                            &request_input_real_format,
    713                             &request_output_real_format);
     714                            &request_output_real_format);         
    714715    }
    715716  else
     
    798799    }
    799800  *myMap = m;
    800   *ioutputs = request_output_real_format;
     801  *ioutputs = request_output_real_format; 
    801802}
    802803
     
    23592360        dumpMapsValuesToFiles(&m,&request_input_real_format);
    23602361      loadServiceAndRun (&m, s1, request_inputs, &request_input_real_format,
    2361                          &request_output_real_format, &eres);
     2362                         &request_output_real_format, &eres);     
    23622363
    23632364#ifdef META_DB
     
    25932594        }
    25942595    }
    2595 
     2596       
    25962597#ifdef DEBUG
    25972598  fprintf (stderr, "RUN IN BACKGROUND MODE %s %d \n",__FILE__,__LINE__);
     
    26022603  rewind(stdout);
    26032604
    2604   //fprintf(stderr,"%s %d %d\n",__FILE__,__LINE__,eres);
    2605 
     2605  //fprintf(stderr,"%s %d %d\n",__FILE__,__LINE__,eres); 
    26062606  if (eres != -1)
    26072607    outputResponse (s1, request_input_real_format,
     
    26092609                    cpid, m, eres);
    26102610  fflush (stdout);
    2611 
     2611 
    26122612  /**
    26132613   * Ensure that if error occurs when freeing memory, no signal will return
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