- Timestamp:
- May 27, 2014, 4:05:49 PM (11 years ago)
- Location:
- trunk/zoo-project
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal.c
r476 r478 26 26 #ifdef USE_MS 27 27 #include "service_internal_ms.h" 28 #else 29 #include "cpl_vsi.h" 28 30 #endif 29 31 … … 165 167 i++; 166 168 } 169 #ifdef DEBUG 167 170 fprintf(stderr,"READING STRING S %s\n",lpszBuf); 171 #endif 168 172 return (char*)lpszBuf; 169 173 } … … 2940 2944 tmpMap->value=(char*)malloc((fsize+1)*sizeof(char)); 2941 2945 if(tmpMap->value==NULL) 2942 fprintf(stderr,"Unable to allocate memory!\n");2946 return errorException(*m, _("Unable to allocate memory."), "InternalError",NULL); 2943 2947 //snprintf(tmpMap->value,(fsize+1)*sizeof(char),fcontent); 2944 2948 memcpy(tmpMap->value,fcontent,(fsize+1)*sizeof(char)); … … 2971 2975 } 2972 2976 2973 #ifdef USE_MS2974 2977 char *readVSIFile(maps* conf,const char* dataSource){ 2975 2978 VSILFILE * fichier=VSIFOpenL(dataSource,"rb"); … … 2989 2992 return res1; 2990 2993 } 2991 #endif2992 2994 2993 2995 void parseIdentifier(maps* conf,char* conf_dir,char *identifier,char* buffer){ -
trunk/zoo-project/zoo-kernel/service_internal.h
r476 r478 31 31 #define TIME_SIZE 40 32 32 33 #include "cgic.h"34 33 #include <libintl.h> 35 34 #include <locale.h> … … 39 38 #include <sys/stat.h> 40 39 #include <sys/types.h> 40 #include "cgic.h" 41 41 #ifndef WIN32 42 42 #include <sys/ipc.h> … … 145 145 int loadRemoteFile(maps**,map**,HINTERNET,char*); 146 146 147 #ifdef USE_MS148 147 char *readVSIFile(maps*,const char*); 149 #endif150 148 void parseIdentifier(maps*,char*,char*,char*); 151 149 int updateStatus( maps*,const int,const char*); -
trunk/zoo-project/zoo-kernel/service_internal_python.c
r474 r478 285 285 PyErr_Clear(); 286 286 res=-1; 287 //exit(-1);288 287 } 289 288 #if PY_MAJOR_VERSION < 3 290 289 PyGILState_Release(gstate); 291 PyEval_ ReleaseLock();290 PyEval_AcquireLock(); 292 291 #endif 293 292 PyThreadState_Swap(mainstate); -
trunk/zoo-project/zoo-kernel/ulinet.c
r471 r478 229 229 sprintf(filename,"/tmp/ZOO_Cache%d",(int)time(NULL)); 230 230 filename[24]=0; 231 fprintf(stderr,"file=%s",filename);232 231 #ifdef MSG_LAF_VERBOSE 233 232 fprintf(stderr,"file=%s",filename); … … 267 266 #ifdef ULINET_DEBUG 268 267 fprintf(stderr,"DEBUG MIMETYPE: %s\n",hInternet.mimeType); 268 fflush(stderr); 269 269 #endif 270 270 return hInternet; -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r473 r478 297 297 298 298 void donothing(int sig){ 299 #ifdef DEBUG 299 300 fprintf(stderr,"Signal %d after the ZOO-Kernel returned result !\n",sig); 301 #endif 300 302 exit(0); 301 303 } … … 376 378 DWORD errstr; 377 379 errstr = GetLastError(); 378 fprintf(stderr,"%s loaded (%d) \n",tmps1,errstr);379 380 #else 380 381 char *errstr; 381 382 errstr = dlerror(); 383 #endif 384 #ifdef DEBUG 385 fprintf(stderr,"%s loaded (%d) \n",tmps1,errstr); 382 386 #endif 383 387 if( so != NULL ) { … … 461 465 errorException(m, tmpMsg, "InternalError",NULL); 462 466 free(tmpMsg); 467 #ifdef DEBUG 463 468 fprintf(stderr,"Function %s error %s\n",r_inputs->value,errstr); 469 #endif 464 470 return; 465 471 } -
trunk/zoo-project/zoo-services/utils/status/makefile.vc
r384 r478 2 2 !INCLUDE $(ZOOK_DIR)/nmake.opt 3 3 4 FILES=$(ZOOK_DIR)/ dirent.obj $(ZOOK_DIR)/service_internal.obj $(ZOOK_DIR)/ulinet.obj4 FILES=$(ZOOK_DIR)/service_internal.obj $(ZOOK_DIR)/ulinet.obj 5 5 !IFDEF JS_DIR 6 6 FILES=$(FILES) $(ZOOK_DIR)$(JS_FILE) -
trunk/zoo-project/zoo-services/utils/status/service.c
r471 r478 104 104 */ 105 105 char *tmpStr=getStatus(atoi(tmpMap->value)); 106 #ifdef DEBUG 106 107 fprintf(stderr,"DEBUG: %s \n",tmpStr); 108 #endif 107 109 if(tmpStr!=NULL && strncmp(tmpStr,"-1",2)!=0){ 108 110 char *tmpStr1=strdup(tmpStr);
Note: See TracChangeset
for help on using the changeset viewer.