Changeset 284 for trunk/zoo-kernel
- Timestamp:
- Aug 1, 2011, 7:08:27 PM (13 years ago)
- Location:
- trunk/zoo-kernel
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/Makefile.in
r114 r284 2 2 ifeq ($(OS),Darwin) 3 3 MACOS_LD_FLAGS=-lintl -framework SystemConfiguration -framework CoreFoundation 4 MACOS_CFLAGS=-arch i386 -arch ppc -arch x86_644 MACOS_CFLAGS=-arch $(shell uname -m) 5 5 endif 6 6 -
trunk/zoo-kernel/configure.ac
r276 r284 122 122 [PYTHON_PATH="$withval"; PYTHON_ENABLED="-DUSE_PYTHON"], [PYTHON_ENABLED=""]) 123 123 124 AC_ARG_WITH([python-version], 125 [AS_HELP_STRING([--with-python-version=NUMBER], [To enable python support using a speficific version of python])], 126 [PYTHON_VERS="$withval"], [PYTHON_VERS=""]) 127 124 128 125 129 if test -z "$PYTHON_ENABLED" … … 127 131 PYTHON_FILE="" 128 132 else 129 PYTHONCONFIG="$PYTHON_PATH/bin/python -config"133 PYTHONCONFIG="$PYTHON_PATH/bin/python${PYTHON_VERS}-config" 130 134 PYTHON_FILE="service_internal_python.o" 131 135 if test "$PYTHON_PATH" = "yes" 132 136 then 133 137 # PHP was not specified, so search within the current path 134 AC_PATH_PROG([PYTHONCONFIG], [python -config])135 else 136 PYTHONCONFIG="$PYTHON_PATH/bin/python -config"138 AC_PATH_PROG([PYTHONCONFIG], [python${PYTHON_VERS}-config]) 139 else 140 PYTHONCONFIG="$PYTHON_PATH/bin/python${PYTHON_VERS}-config" 137 141 fi 138 142 … … 366 370 367 371 AC_CONFIG_FILES([Makefile]) 368 #AC_CONFIG_FILES([ZOOMakefile.opts])372 AC_CONFIG_FILES([ZOOMakefile.opts]) 369 373 AC_OUTPUT -
trunk/zoo-kernel/service.h
r282 r284 502 502 map* tmpMap=getMap(tmp,key); 503 503 if(tmpMap==NULL){ 504 addToMap(tmp,key,value); 504 if(tmp!=NULL) 505 addToMap(tmp,key,value); 506 else 507 tmp=createMap(key,value); 505 508 tmpMap=getMap(tmp,key); 506 509 } -
trunk/zoo-kernel/service_internal.c
r283 r284 1117 1117 if(hasDefault!=true && strncmp(type,"Input",5)==0) 1118 1118 xmlAddChild(nc3,xmlNewNode(ns_ows, BAD_CAST "AnyValue")); 1119 xmlFreeNodeList(nc5);1120 xmlFreeNodeList(nc4);1121 1119 } 1122 1120 … … 2416 2414 } 2417 2415 2416 int errorException(maps *m, const char *message, const char *errorcode) 2417 { 2418 map* errormap = createMap("text", message); 2419 addToMap(errormap,"code", errorcode); 2420 printExceptionReportResponse(m,errormap); 2421 freeMap(&errormap); 2422 free(errormap); 2423 return -1; 2424 } -
trunk/zoo-kernel/service_internal.h
r281 r284 121 121 char* addDefaultValues(maps**,elements*,maps*,int); 122 122 123 /*defined in zoo_loader.c*/124 123 int errorException(maps *m, const char *message, const char *errorcode); 125 124 -
trunk/zoo-kernel/zoo_loader.c
r280 r284 54 54 55 55 using namespace std; 56 57 /* ************************************************************************* */58 59 int errorException(maps *m, const char *message, const char *errorcode)60 {61 map* errormap = createMap("text", message);62 addToMap(errormap,"code", errorcode);63 printExceptionReportResponse(m,errormap);64 freeMap(&errormap);65 free(errormap);66 return -1;67 }68 69 /* ************************************************************************* */70 71 56 72 57 #define TRUE 1
Note: See TracChangeset
for help on using the changeset viewer.