diff options
author | 2011-12-10 21:51:07 +0000 | |
---|---|---|
committer | 2011-12-10 21:51:07 +0000 | |
commit | 04ee7f27d7caa7c8b690131c06deafe3af1d326b (patch) | |
tree | cbd4348a3edb0791a3e5fdcd855a2517fb29c468 /regress/roff | |
parent | 8220e531c4f54a919e401e77e97f5b01f05074f0 (diff) | |
download | mandoc-04ee7f27d7caa7c8b690131c06deafe3af1d326b.tar.gz mandoc-04ee7f27d7caa7c8b690131c06deafe3af1d326b.tar.zst mandoc-04ee7f27d7caa7c8b690131c06deafe3af1d326b.zip |
Big upgrade and polish for cgi.c.
- Deprecate kvals (key/value pairs for QUERY_STRING values). Since there's
only one place that uses this, kval_parse (now http_parse()) dumps directly
into struct query, which is more high-level.
- Put query values directly into struct req.
- The biggest difference is dynamic support for multiple "manroots". A
"manroot" is a path with an "etc/catman.conf" file. When the cgi starts,
it (prefix) recurses through its CACHE_DIR searching for "etc" directories.
When one's found, it sees if a catman.conf file exists. This is marked
as a manroot and appended to a list. The name of a manroot is the path
without slashes (e.g., OpenBSD/4.9 -> "OpenBSD 4.9").
Right now "manroot" isn't enabled. The first manroot is chosen as the
real one. I'll add the interface to it in the next checkins, but it'll be
quite simple.
Diffstat (limited to 'regress/roff')
0 files changed, 0 insertions, 0 deletions