|
| |
82 |
82 |
static Ns_OpProc AdpProc; |
|
| |
83 |
83 |
#endif |
|
| |
84 |
84 |
static void (DelAdpData)(void *); |
|
| |
85 |
|
static void ParsePage(Ns_DString *, char *page); |
|
| |
|
85 |
|
|
| |
86 |
86 |
static int ParseFile(Tcl_Interp *, char *file, size_t size, Ns_DString *); |
|
| |
87 |
87 |
static void PushFrame(Frame *framePtr, char *file, int argc, char **argv); |
|
| |
88 |
88 |
static void PopFrame(Frame *framePtr); |
|
|
| |
91 |
91 |
char *procs); |
|
| |
92 |
92 |
static Ns_TclInterpInitProc EnableCmds; |
|
| |
93 |
93 |
#endif |
|
| |
94 |
|
static void TextChunk(Ns_DString *dsPtr, char *text); |
|
| |
|
94 |
|
|
| |
95 |
95 |
static void SetMimeType(AdpData *adPtr, char *mimeType); |
|
| |
96 |
96 |
|
|
| |
97 |
97 |
|
|
|
| |
271 |
271 |
path = Ns_ConfigPath(nsServer, NULL, "adp", "parsers", NULL); |
|
| |
272 |
272 |
|
|
| |
273 |
273 |
NsAdpFancyInit(nsServer, path); |
|
| |
274 |
|
Ns_AdpRegisterParser("adp", ParsePage); |
|
| |
|
274 |
|
|
| |
275 |
275 |
|
|
| |
276 |
276 |
if (path != NULL) { |
|
| |
277 |
277 |
setPtr = Ns_ConfigGetSection(path); |
|
|
| |
1618 |
1618 |
} |
|
| |
1619 |
1619 |
|
|
| |
1620 |
1620 |
|
|
| |
|
1621 |
#if 0 |
|
| |
1621 |
1622 |
|
|
| |
1622 |
1623 |
|
|
| |
1623 |
1624 |
|
|
|
| |
1664 |
1665 |
Ns_DStringNAppend(dsPtr, "t", 1); |
|
| |
1665 |
1666 |
Ns_DStringNAppend(dsPtr, text, strlen(text)+1); |
|
| |
1666 |
1667 |
} |
|
| |
|
1668 |
#endif |
|
| |
1667 |
1669 |
|
|
| |
1668 |
1670 |
|
|
| |
1669 |
1671 |
|