Ignore:
Timestamp:
Jun 14, 2019, 10:08:22 PM (5 years ago)
Author:
djay
Message:

Fix const decelaration to build on windows, pass full children content for text/* ComplexData?.

File:
1 edited

Legend:

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

    r928 r939  
    355355#endif
    356356    char *pStrErrorMessage = PyString_AsString(pvalue);
    357   char *tmp0=_("Python module %s cannot be loaded. Message: %s\n");
     357  const char *tmp0=_("Python module %s cannot be loaded. Message: %s\n");
    358358 
    359359  PyObject *trace=PyObject_Str(pvalue);
     
    393393      if(pbt!=NULL)
    394394        free(pbt);
    395       char* format=_("%s\nUnable to run your python process properly. Please check the following messages : %s");
     395      const char* format=_("%s\nUnable to run your python process properly. Please check the following messages : %s");
    396396      pbt=(char*)malloc((strlen(format)+strlen(tpbt)+strlen(PyString_AsString(trace))+1)*sizeof(char));
    397397      sprintf(pbt,format,tpbt,PyString_AsString(trace));
     
    400400      if(pbt!=NULL)
    401401        free(pbt);
    402       char* format=_("%s \n Unable to run your python process properly. Unable to provide any further information.");
     402      const char* format=_("%s \n Unable to run your python process properly. Unable to provide any further information.");
    403403      pbt=(char*)malloc((strlen(format)+strlen(tpbt)+strlen(PyString_AsString(trace))+1)*sizeof(char));
    404404      sprintf(pbt,format,tpbt);
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