1 | | |
2 | | |
3 | | |
4 | | |
5 | | |
6 | | |
7 | | |
8 | | |
9 | | |
10 | | |
11 | | |
12 | | |
13 | | |
14 | | |
15 | | |
16 | | |
17 | | |
18 | | |
19 | | |
20 | | |
21 | | |
22 | | |
23 | | |
24 | | |
25 | | |
26 | | |
27 | | |
28 | | |
29 | | |
30 | | |
31 | | |
32 | | |
33 | | |
34 | | |
35 | | |
36 | | |
37 | | |
38 | | |
39 | | |
40 | | |
41 | | |
42 | | |
43 | | |
44 | | |
45 | | |
| | | | | #include "global.h" | #include "config.h" | | #include "program.h" | | #include "parser.h" | | | | | | 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(); | fprintf(stderr,"%d %x\n",i,sub[i].func); | sub[i].func(); | p=end_program(); | add_program_constant(sub[i].name,p,0); | free_program(p); | } | } | | |
|