version 1.3, 2000/05/15 20:33:33
|
version 1.4, 2000/07/06 21:06:22
|
Line 232 int append_message(struct dyn_string *dy
|
Line 232 int append_message(struct dyn_string *dy
|
void start_delayed(){ delay=1; } |
void start_delayed(){ delay=1; } |
void end_delayed(){ delay=0; } |
void end_delayed(){ delay=0; } |
|
|
void add_dealyed(char *format, ...) { |
void add_delayed(char *format, ...) { |
va_list ap; |
va_list ap; |
|
|
va_start(ap,format); |
va_start(ap,format); |
Line 241 void add_dealyed(char *format, ...) {
|
Line 241 void add_dealyed(char *format, ...) {
|
|
|
void flush_delayed() |
void flush_delayed() |
{ |
{ |
printf(dyn_delayed.str); |
if (dyn_delayed.str) fputs(dyn_delayed.str,stdout); |
dyn_free();dyn_init(); |
dyn_free();dyn_init(); |
delay=0; |
delay=0; |
} |
} |
Line 264 void end_mode()
|
Line 264 void end_mode()
|
case MODE_BLOCK: send("</block>\n"); break; |
case MODE_BLOCK: send("</block>\n"); break; |
case MODE_SCRIPT: send("</script>\n"); break; |
case MODE_SCRIPT: send("</script>\n"); break; |
case MODE_OUTTEXT: send("</outtext>\n"); break; |
case MODE_OUTTEXT: send("</outtext>\n"); break; |
|
case MODE_ANSWER: send("</answergroup>\n"); break; |
case MODE_NONE: break; |
case MODE_NONE: break; |
} |
} |
mode=MODE_NONE; |
mode=MODE_NONE; |
Line 278 void start_mode(int newmode,char* args)
|
Line 279 void start_mode(int newmode,char* args)
|
case MODE_BLOCK: send("<block %s>\n",args); break; |
case MODE_BLOCK: send("<block %s>\n",args); break; |
case MODE_SCRIPT: send("<script>\n"); break; |
case MODE_SCRIPT: send("<script>\n"); break; |
case MODE_OUTTEXT: send("<outtext>\n"); break; |
case MODE_OUTTEXT: send("<outtext>\n"); break; |
|
case MODE_ANSWER: send("<answergroup>\n"); break; |
case MODE_NONE: break; |
case MODE_NONE: break; |
} |
} |
mode=newmode; |
mode=newmode; |