Changeset 476 for trunk/zoo-project
- Timestamp:
- May 27, 2014, 10:33:43 AM (11 years ago)
- Location:
- trunk/zoo-project
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/LICENSE
r434 r476 130 130 -------------------- 131 131 132 Copyright Kevlin Henney, 1997, 2003. All rights reserved.132 Copyright (C) 2006 Toni Ronkko 133 133 134 Permission to use, copy, modify, and distribute this software and its 135 documentation for any purpose is hereby granted without fee, provided 136 that this copyright and permissions notice appear in all copies and 137 derivatives. 138 139 This software is supplied "as is" without express or implied warranty. 134 Permission is hereby granted, free of charge, to any person obtaining 135 a copy of this software and associated documentation files (the 136 ``Software''), to deal in the Software without restriction, including 137 without limitation the rights to use, copy, modify, merge, publish, 138 distribute, sublicense, and/or sell copies of the Software, and to 139 permit persons to whom the Software is furnished to do so, subject to 140 the following conditions: 140 141 141 But that said, if there are any problems please get in touch. 142 The above copyright notice and this permission notice shall be included 143 in all copies or substantial portions of the Software. 144 145 THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS 146 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 147 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 148 IN NO EVENT SHALL TONI RONKKO BE LIABLE FOR ANY CLAIM, DAMAGES OR 149 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 150 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 151 OTHER DEALINGS IN THE SOFTWARE. -
trunk/zoo-project/zoo-kernel/makefile.vc
r467 r476 68 68 $(CPP) /EHsc /c $(CFLAGS) zoo_loader.c 69 69 70 dirent.obj: 71 $(CPP) /EHsc /c $(CFLAGS) ..\..\thirds\dirent-win32\dirent.c70 zoo_loader.cgi: version.h zoo_loader.obj zoo_service_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj 71 link zoo_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj zoo_service_loader.obj /out:zoo_loader.cgi $(LDFLAGS) $(LDFLAGSCGI) 72 72 73 zoo_loader.cgi: version.h zoo_loader.obj zoo_service_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj dirent.obj 74 link zoo_loader.obj dirent.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj zoo_service_loader.obj /out:zoo_loader.cgi $(LDFLAGS) $(LDFLAGSCGI) 75 76 zcfg2yaml.exe: version.h zcfg2yaml.obj zoo_service_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj dirent.obj 77 link zcfg2yaml.obj dirent.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj /out:zcfg2yaml.exe $(LDFLAGS) $(LDFLAGSCGI) 73 zcfg2yaml.exe: version.h zcfg2yaml.obj zoo_service_loader.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj lex.cr.obj lex.sr.obj service_conf.tab.obj main_conf_read.tab.obj 74 link zcfg2yaml.obj service_internal.obj $(PY_FILE) $(JAVA_FILE) $(MS_FILE) $(JS_FILE) $(RUBY_FILE) ulinet.obj main_conf_read.tab.obj lex.cr.obj service_conf.tab.obj lex.sr.obj /out:zcfg2yaml.exe $(LDFLAGS) $(LDFLAGSCGI) 78 75 79 76 clean: -
trunk/zoo-project/zoo-kernel/service_conf.l
r465 r476 118 118 119 119 120 <INITIAL,DANSBALISE,HORSBALISE>.|\n {lmsg=(char*)malloc(1024*sizeof(char));sprintf(lmsg,"error: line %d: character not allowed '%s'",srlineno,yytext);fprintf(stderr,"%s \n",lmsg);srlval.chaine=lmsg; return -1;}120 <INITIAL,DANSBALISE,HORSBALISE>.|\n {lmsg=(char*)malloc(1024*sizeof(char));sprintf(lmsg,"error: line %d: character not allowed '%s'",srlineno,yytext);fprintf(stderr,"%s \n",lmsg);srlval.chaine=lmsg;fprintf(stderr,"%s \n",lmsg);return -1;} 121 121 122 122 %% -
trunk/zoo-project/zoo-kernel/service_conf.y
r469 r476 807 807 808 808 int resultatYYParse = srparse() ; 809 809 fprintf(stderr,"%s %d %d\n",__FILE__,__LINE__,resultatYYParse); 810 810 811 #ifdef DEBUG_SERVICE_CONF 811 812 fprintf(stderr,"RESULT: %d %d\n",resultatYYParse,wait_outputs); … … 825 826 addToElements(&my_service->outputs,current_element); 826 827 } 828 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 827 829 #ifdef DEBUG_SERVICE_CONF 828 830 fprintf(stderr,"(DATAOUTPUTS - %d) FREE current_element\n",__LINE__); … … 835 837 #endif 836 838 } 839 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 837 840 if(current_element!=NULL){ 838 841 freeElements(¤t_element); … … 840 843 current_element=NULL; 841 844 } 845 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 842 846 if(current_content!=NULL){ 843 847 freeMap(¤t_content); … … 845 849 current_content=NULL; 846 850 } 851 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 847 852 fclose(srin); 848 853 #ifdef DEBUG_SERVICE_CONF … … 850 855 #endif 851 856 if(wait_outputs<0 || my_service==NULL || my_service->name==NULL || my_service->content==NULL || my_service->outputs==NULL){ 857 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 852 858 setMapInMaps(conf,"lenv","message",srlval.chaine); 859 dumpMaps(conf); 853 860 #ifndef WIN32 854 861 srlex_destroy(); … … 858 865 else 859 866 *service=my_service; 867 dumpService(my_service); 868 fprintf(stderr,"%s %d\n",__FILE__,__LINE__); 860 869 861 870 #ifndef WIN32 -
trunk/zoo-project/zoo-kernel/service_internal.c
r471 r476 68 68 69 69 #include <windows.h> 70 #include <fcgi_stdio.h> 70 71 #include <stdio.h> 71 72 #include <conio.h> … … 1154 1155 xmlAddChild(nc6,nc8); 1155 1156 _tmp0=e->supported; 1156 tmp1=_tmp0->content; 1157 goto doRange; 1157 if(getMap(_tmp0->content,"range")!=NULL || 1158 getMap(_tmp0->content,"rangeMin")!=NULL || 1159 getMap(_tmp0->content,"rangeMax")!=NULL || 1160 getMap(_tmp0->content,"rangeClosure")!=NULL ){ 1161 tmp1=_tmp0->content; 1162 goto doRange; 1163 } 1158 1164 }else{ 1159 1165 _tmp0=_tmp0->next; 1160 1166 if(_tmp0!=NULL){ 1161 1167 xmlAddChild(nc6,nc8); 1162 tmp1=_tmp0->content; 1163 goto doRange; 1168 if(getMap(_tmp0->content,"range")!=NULL || 1169 getMap(_tmp0->content,"rangeMin")!=NULL || 1170 getMap(_tmp0->content,"rangeMax")!=NULL || 1171 getMap(_tmp0->content,"rangeClosure")!=NULL ){ 1172 tmp1=_tmp0->content; 1173 goto doRange; 1174 } 1164 1175 } 1165 1176 } -
trunk/zoo-project/zoo-kernel/service_internal.h
r471 r476 31 31 #define TIME_SIZE 40 32 32 33 #include " fcgi_stdio.h"33 #include "cgic.h" 34 34 #include <libintl.h> 35 35 #include <locale.h> … … 39 39 #include <sys/stat.h> 40 40 #include <sys/types.h> 41 #include "cgic.h"42 41 #ifndef WIN32 43 42 #include <sys/ipc.h>
Note: See TracChangeset
for help on using the changeset viewer.