Annotation of capa/capa51/pProj/capaNewHTML.c, revision 1.1.1.1

1.1       albertel    1: #include <signal.h>
                      2: #include "capaParser.h"
                      3: #include "capaCommon.h"
                      4: #include "ranlib.h"
                      5: 
                      6: #include "capaCGI.h"
                      7: 
                      8: int main(int argc, char *argv[])
                      9: {
                     10:   int input_return=0;
                     11: 
                     12:   signal(SIGFPE, SIG_IGN);
                     13:   strcpy(g_prog_name,argv[0]);
                     14:   setbuf(stdout,NULL);
                     15: 
                     16:   fprintf(stdout,"Content-type: text/html%c%c",LF,LF);
                     17: 
                     18:   input_return = web_get_input();
                     19:   web_header(stdout);
                     20: 
                     21: #ifdef  CAPA_WEB
                     22:   fprintf(stdout,"<!-- new capasbin, CAPA Version %s, %s -->\n",CAPA_VER,
                     23: 	  COMPILE_DATE);
                     24: #else
                     25:   fprintf(stdout,"<!-- new capahtml, CAPA Version %s, %s -->\n",CAPA_VER,
                     26: 	  COMPILE_DATE);
                     27: #endif  
                     28: 
                     29:   if ( input_return ) {
                     30:   } else {
                     31:     switch( g_run_mode ) {
                     32:     case 0: break;
                     33:     case WEB_CHECKIN: web_menu(); break;
                     34:     case WEB_TRYSET: web_printset(); break;
                     35:     case WEB_VIEWPREV: web_viewprevious(); break;
                     36:     case WEB_VIEWSUMMARY: 
                     37:     case WEB_EXAMSUMMARY:
                     38:     case WEB_QUIZSUMMARY: web_summary(g_run_mode);break;
                     39: #ifdef CAPA_WEB 
                     40:     case WEB_CHECKANS: web_grade(); break;
                     41: #endif
                     42:     default: break;
                     43:     }
                     44:   }
                     45:   web_footer(stdout);
                     46:   return 0;
                     47: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>