diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2004-10-11 00:44:26 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2004-10-11 00:44:26 -0400 |
commit | ff34560f27f6cc7ba97cfc11e10973ac34735c4c (patch) | |
tree | 937595d7e6eac4873a7a0749e5c126d43d7c1c54 /src/LYCgi.c | |
parent | ceb4156db8546c98875607dd91a799101b02c22f (diff) | |
download | lynx-snapshots-ff34560f27f6cc7ba97cfc11e10973ac34735c4c.tar.gz |
snapshot of project "lynx", label v2-8-6dev_6
Diffstat (limited to 'src/LYCgi.c')
-rw-r--r-- | src/LYCgi.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/LYCgi.c b/src/LYCgi.c index 9cc051e1..77f708f3 100644 --- a/src/LYCgi.c +++ b/src/LYCgi.c @@ -67,6 +67,8 @@ static void add_environment_value(char *env_value); #define PERROR(msg) CTRACE((tfp, "LYNXCGI: %s: %s\n", msg, LYStrerror(errno))) +#define PUTS(buf) (*target->isa->put_block)(target, buf, strlen(buf)) + #ifdef LY_FIND_LEAKS static void free_alloced_lynxcgi(void) { @@ -663,28 +665,28 @@ static int LYLoadCGI(const char *arg, HTSprintf0(&buf, "<html>\n<head>\n<title>%s</title>\n</head>\n<body>\n", gettext("Good Advice")); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); HTSprintf0(&buf, "<h1>%s</h1>\n", gettext("Good Advice")); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); HTSprintf0(&buf, "%s <a\n", gettext("An excellent http server for VMS is available via")); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); HTSprintf0(&buf, "href=\"http://kcgl1.eng.ohio-state.edu/www/doc/serverinfo.html\"\n"); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); HTSprintf0(&buf, ">%s</a>.\n", gettext("this link")); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); HTSprintf0(&buf, "<p>%s\n", gettext("It provides state of the art CGI script support.\n")); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); HTSprintf0(&buf, "</body>\n</html>\n"); - (*target->isa->put_block) (target, buf, strlen(buf)); + PUTS(buf); (*target->isa->_free) (target); FREE(buf); |