Changeset 466
- Timestamp:
- Apr 23, 2014, 4:21:28 AM (11 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/Makefile.in
r465 r466 12 12 JAVA_FILE=@JAVA_FILE@ 13 13 14 CFLAGS= -fpic ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF14 CFLAGS=@DEB_DEF@ -fpic ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF 15 15 LDFLAGS=-lcurl -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS} ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} ${YAML_LDFLAGS} 16 16 … … 30 30 31 31 version.h: 32 echo "#define ZOO_VERSION \"`svnversion -q -c -n .`\"" > version.h32 echo "#define ZOO_VERSION \"`svnversion`\"" > version.h 33 33 34 34 main_conf_read.tab.c: main_conf_read.y service.h -
trunk/zoo-project/zoo-kernel/configure.ac
r465 r466 36 36 AC_FUNC_REALLOC 37 37 AC_CHECK_FUNCS([dup2 getcwd memset setenv strdup strstr]) 38 39 #============================================================================ 40 # Detect if run on debian / ubuntu 41 #============================================================================ 42 if test -f "/usr/bin/dpkg" 43 then 44 DEB_DEF=-DDEB 45 fi 46 AC_SUBST([DEB_DEF]) 38 47 39 48 #============================================================================ -
trunk/zoo-project/zoo-kernel/service.h
r465 r466 733 733 static void dumpElementsAsYAML(elements* e){ 734 734 elements* tmp=e; 735 while(tmp!=NULL){ 736 for(int i=0;i<2;i++) 735 int i; 736 while(tmp!=NULL){ 737 for(i=0;i<2;i++) 737 738 fprintf(stderr," "); 738 739 fprintf(stderr,"%s:\n",tmp->name); 739 740 map* mcurs=tmp->content; 740 741 while(mcurs!=NULL){ 741 for(i nt i=0;i<4;i++)742 for(i=0;i<4;i++) 742 743 fprintf(stderr," "); 743 744 _dumpMap(mcurs); … … 746 747 mcurs=tmp->metadata; 747 748 if(mcurs!=NULL){ 748 for(i nt i=0;i<4;i++)749 for(i=0;i<4;i++) 749 750 fprintf(stderr," "); 750 751 fprintf(stderr,"MetaData:\n"); 751 752 while(mcurs!=NULL){ 752 for(i nt i=0;i<6;i++)753 for(i=0;i<6;i++) 753 754 fprintf(stderr," "); 754 755 _dumpMap(mcurs); … … 756 757 } 757 758 } 758 for(i nt i=0;i<4;i++)759 for(i=0;i<4;i++) 759 760 fprintf(stderr," "); 760 761 fprintf(stderr,"%s:\n",tmp->format); … … 762 763 int ioc=0; 763 764 while(tmpio!=NULL){ 764 for(i nt i=0;i<6;i++)765 for(i=0;i<6;i++) 765 766 fprintf(stderr," "); 766 767 fprintf(stderr,"default:\n"); 767 768 mcurs=tmpio->content; 768 769 while(mcurs!=NULL){ 769 for(i nt i=0;i<8;i++)770 for(i=0;i<8;i++) 770 771 fprintf(stderr," "); 771 772 if(strcasecmp(mcurs->name,"range")==0){ … … 781 782 ioc=0; 782 783 while(tmpio!=NULL){ 783 for(i nt i=0;i<6;i++)784 for(i=0;i<6;i++) 784 785 fprintf(stderr," "); 785 786 fprintf(stderr,"supported:\n"); 786 787 mcurs=tmpio->content; 787 788 while(mcurs!=NULL){ 788 for(i nt i=0;i<8;i++)789 for(i=0;i<8;i++) 789 790 fprintf(stderr," "); 790 791 if(strcasecmp(mcurs->name,"range")==0){ … … 881 882 static void dumpServiceAsYAML(service* s){ 882 883 int level=0; 884 int i; 883 885 fprintf(stderr,"# %s\n\n",s->name); 884 886 if(s->content!=NULL){ … … 889 891 fprintf(stderr,"MetaData:\n"); 890 892 while(mcurs!=NULL){ 891 for(i nt i=0;i<2;i++)893 for(i=0;i<2;i++) 892 894 fprintf(stderr," "); 893 895 _dumpMap(mcurs); … … 997 999 else{ 998 1000 if(hasLength!=NULL){ 999 for(int j=0;j<atoi(hasLength->value);j++){ 1001 int j; 1002 for(j=0;j<atoi(hasLength->value);j++){ 1000 1003 map* tmp0=getMapArray(curs->content,"value",j); 1001 1004 if(j==0) -
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r465 r466 606 606 char *tmp=zStrdup(r_inputs->value); 607 607 setMapInMaps(m,"main","language",tmp); 608 #ifdef DEB 609 char tmp2[12]; 610 sprintf(tmp2,"%s.utf-8",tmp); 611 translateChar(tmp2,'-','_'); 612 setlocale (LC_ALL, tmp2); 613 #else 608 614 translateChar(tmp,'-','_'); 609 615 setlocale (LC_ALL, tmp); 616 #endif 610 617 #ifndef WIN32 611 618 setenv("LC_ALL",tmp,1);
Note: See TracChangeset
for help on using the changeset viewer.