X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=inline;f=cll1.h;h=81f4887429725c08fb34b9397fdaaa47fa75f8f4;hb=d8394559dce40ff40b40525aa68087863efe7c1f;hp=5305e3c125674c0085f2ec45b6235f1c7fc4ad07;hpb=420bb7716ee099d369582836ef4fc8ab25d81fde;p=svn%2FCll1h%2F.git diff --git a/cll1.h b/cll1.h index 5305e3c..81f4887 100644 --- a/cll1.h +++ b/cll1.h @@ -101,9 +101,9 @@ /* ------------------------------------------------------------------- */ /* 6. C<<1 va_list based library functions, updated 2008-01-22 by xCh. */ /* ------------------------------------------------------------------- */ -#define _ECHO void _echo(char *s, ... ) { va_list ap; for(va_start(ap,s);s;s=va_arg(ap,char *)) fputs(s,stdout); va_end(ap); } -#define print(...) _echo(__VA_ARGS__,"\n",NULL) -#define echo(...) _echo(__VA_ARGS__,NULL) +#define _ECHO void _cll1_print(int p,char *s, ... ) { int p2=0; va_list ap; for(va_start(ap,s);s!=(void *)&_cll1_print;s=va_arg(ap,char *)) { if(p) {if(p2) putchar(' '); else p2=1;} fputs(s?s:"",stdout); } va_end(ap); if(p) putchar('\n');} +#define print(...) _cll1_print(1,__VA_ARGS__,(void *)&_cll1_print) +#define echo(...) _cll1_print(0,__VA_ARGS__,(void *)&_cll1_print) /* ------------------------------------------------------------------- */ /* 8. C<<1 CGI and FASTCGI handling, updated 2008-01-16 by xCh. */ /* ------------------------------------------------------------------- */