0533e21999-02-19Mirar (Pontus Hagland) /*
bce7d41999-02-19Mirar (Pontus Hagland)  * $Id: parser.c,v 1.2 1999/02/19 19:37:13 mirar Exp $
0533e21999-02-19Mirar (Pontus Hagland)  */ #include "global.h" #include "config.h" #include "program.h" #include "parser.h" /*** module init & exit & stuff *****************************************/ /* add other parsers here */ static struct parser_class { char *name; void (*func)(void); } sub[] = { {"HTML",init_parser_html}, }; void pike_module_exit(void) { } void pike_module_init(void) { int i; for (i=0; i<(int)(sizeof(sub)/sizeof(sub[0])); i++) { struct program *p; start_new_program(); sub[i].func(); p=end_program(); add_program_constant(sub[i].name,p,0); free_program(p); } }