zero progress
authorxchaos <xchaos@4bb87942-c103-4e5a-b51c-0ebff58f8515>
Mon, 21 Jan 2008 17:29:09 +0000 (17:29 +0000)
committerxchaos <xchaos@4bb87942-c103-4e5a-b51c-0ebff58f8515>
Mon, 21 Jan 2008 17:29:09 +0000 (17:29 +0000)
git-svn-id: https://dev.arachne.cz/repos/cll1h/trunk@19 4bb87942-c103-4e5a-b51c-0ebff58f8515

cll1.h

diff --git a/cll1.h b/cll1.h
index d9e00713e2a84ff7f93beb8ed06097de79694de0..8cd24a46ffd132695bb9a640f730ab4d97d07f26 100644 (file)
--- a/cll1.h
+++ b/cll1.h
@@ -79,7 +79,9 @@
 #define for_range(VAR,FROM,TO) for( VAR=FROM ; FROM<=TO?VAR<=TO:VAR>=TO ; FROM<=TO?VAR++:VAR--)
 #define for_each(A,B) for(A=B; A; A=A->_next)
 #define for_search(A,B,C) for_each(A,B) if(C)
-/* to do: #define for_file_lines(STR,F) _NEW_F for() */
+#define for_file_lines(STR,F) /* _NEW_F for() */
+#define for_ints(VAR,...) _NEW_I while(_iterate_ints(&VAR,_I,__VA_LIST) )
+#define for_strs(VAR,...)  _NEW_S
 /* obsolete #define every(A,B) for( A=B; A; A=A->_next) */
 /* obsolete #define search(A,B,C) every(A,B) if(C) */
 /* obsolete #define find(A,B,C) search(A,B,C) break; if(A) */
 /* ------------------------------------------------------------------- */
 /* 5. C<<1 argument handling, updated 2008-01-16 by xCh.               */
 /* ------------------------------------------------------------------- */
-#define for_arguments _NEW_I if(argc>1) for(_I=1;_I<argc;_I++) 
-#define if_argument(VAL) if(eq(argv[_I],VAL))
-#define this_argument argv[_I]
-#define next_argument ((_I+1<argc)?argv[++_I]:NULL)
+#define for_args _NEW_I if(argc>1) for(_I=1;_I<argc;_I++) 
+#define if_arg(VAL) if(eq(argv[_I],VAL))
+#define this_arg argv[_I]
+#define next_arg ((_I+1<argc)?argv[++_I]:NULL)
 /* ------------------------------------------------------------------- */
 /* 6. C<<1 CGI and FASTCGI handling, updated 2008-01-16 by xCh.        */
 /* ------------------------------------------------------------------- */
 #define USE_MODULE_CGI
 #endif
 #ifdef USE_MODULE_CGI
+#define cgi(MIME) /* _init_cgi */ if(MIME) printf("Content-type: %s\r\n\r\n",MIME);
 //todo getcgi(VAR)
-//todo _init_cgi
+//todo define_init_cgi
 //todo #define _QSTACK struct _QStack { char *Q; int _23; list(_QStack); } *_Qatom,*_Qstack=NULL;
 #endif
 /* ------------------------------------------------------------------- */
This page took 0.176871 seconds and 4 git commands to generate.