coar 01/06/22 06:02:02 Modified: apidoc api.list Added: apidoc/tools finddef.pl Log: Start adding #include lines.. including a script to figure them out Revision Changes Path 1.1 httpd-docs-1.3/apidoc/tools/finddef.pl Index: finddef.pl =================================================================== #!/usr/local/bin/perl -w use APIdict; $dict = new APIdict; $dict->readfile("api.list"); %stats = $dict->statistics(); foreach $key (keys(%stats)) { print "$key: $stats{$key}\n"; } @test = $dict->expanded_seealso('ap_get_server_name'); foreach (@test) { print "$_\n"; } @elist = $dict->entity_list(); foreach (sort(@elist)) { if ($dict->definition($_) !~ /#include/) { print "\n $_\n", `grep "$_" ~/ap1/src/include/*.h`; } } 1.38 +46 -59 httpd-docs-1.3/apidoc/api.list Index: api.list =================================================================== RCS file: /home/cvs/httpd-docs-1.3/apidoc/api.list,v retrieving revision 1.37 retrieving revision 1.38 diff -u -u -r1.37 -r1.38 --- api.list 2001/05/16 11:23:24 1.37 +++ api.list 2001/06/22 13:02:02 1.38 @@ -55,7 +55,7 @@ #; |void $*(const char *component);\ #; Definition #; |/*\n * Called during modules-init phase\n */\n$*("MyMod/1.0");\ #; Example #; |SA-identity\ #; Cross-references -#; |<dict-$*.html #; Entity documentation HTML file +#; |<dict-$*.html #; Entity documentation HTML file #; #; #; Symbols related to how the server identifies itself @@ -336,8 +336,9 @@ |\ | S|AP_MD5_CTX\ - |This is an opaque structure; you don't need to access any of its \ - elements.\ + |#include "ap_md5.h"\n\n\ + <i>This is an opaque structure; you don't need to access any of its \ + elements.</i>\ |$* <var>identifier</var>\ |SA-md5\ | @@ -838,7 +839,8 @@ |SA-core-rec\ |<dict-$*.html S|BUFF\ - |typedef struct buff_struct $*; \n \ + |#include "buff.h"\n \ +typedef struct buff_struct $*; \n \ struct buff_struct { \n \ int flags; \n \ unsigned char *inptr; \n \ @@ -916,7 +918,7 @@ |SA-overrides\ |<dict-$*.html C|ACCESS_CONF\ - |#define $* <var>value</var>\ + |#include "http_config.h"\ |static const command_rec module_cmds[] =\n\ {\n\ .\n\ @@ -1004,14 +1006,16 @@ |SA-compileflags\ |<dict-$*.html C|DEFAULT_ADMIN\ - |Compile-time definition\ + |Compile-time definition; default defined by \ + <code>#include "httpd.h"</code>\ |env CFLAGS="-Wall -D$*=\"/usr/httpd/htdocs\"" ./configure\ |SA-compileflags\ | C|DEFAULT_CONTENT_TYPE\ - |Compile-time definition\ + |Compile-time definition; default defined by \ + <code>#include "httpd.h"</code>\ |env CFLAGS="-Wall -D$*=\"application/octet-stream\"" ./configure\ - |SA-compileflags\ +z |SA-compileflags\ | C|DEFAULT_PATH\ |Compile-time definition\ @@ -1776,78 +1780,72 @@ |SA-BUFF\ |<dict-$*.html C|BO_BYTECT\ - |#define $* (1)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_RD\ - |#define $* (1)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_WR\ - |#define $* (2)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_RDWR\ - |#define $* (3)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_EOF\ - |#define $* (4)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_EOUT\ - |#define $* (8)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_RDERR\ - |#define $* (16)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_WRERR\ - |#define $* (32)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_ERROR\ - |#ifdef $*\n \ -#undef $*\n \ -#define $* (48)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_CHUNK\ - |#define $* (64)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_SAFEREAD\ - |#define $* (128)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_SOCKET\ - |#define $* (256)\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_ASCII2EBCDIC\ - |#ifdef CHARSET_EBCDIC\n \ -#define $* 0x40000000\n \ -#endif\ + |#include "buff.h"\ |\ |SA-BUFF\ | C|B_EBCDIC2ASCII\ - |#ifdef CHARSET_EBCDIC\n \ -#define $* 0x80000000\n \ -#endif\ + |#include "buff.h"\ |\ |SA-BUFF\ | @@ -1963,7 +1961,7 @@ |\ | R|ap_bpushh\ - |void $*(BUFF *fb, HANDLE hFH);\ + |#include "buff.h"\nvoid $*(BUFF *fb, HANDLE hFH);\ |$*(*pipe_in, hPipeInputWrite);\ |\ | @@ -2634,57 +2632,57 @@ |SA-logging\ | C|APLOG_ALERT\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_CRIT\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_DEBUG\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_EMERG\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_ERR\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_INFO\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_NOTICE\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_WARNING\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|$*, r, "%s", message); \ |SA-logging\ | C|APLOG_NOERRNO\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |ap_log_rerror(APLOG_MARK, $*|APLOG_ERR, r, "%s", message); \ |SA-logging\ | C|APLOG_MARK\ - |#define $* __FILE__,__LINE__\ + |#include "http_log.h"\ |ap_log_rerror($*, APLOG_NOERRNO|APLOG_ERR, r, "%s", message); \ |SA-logging\ | C|APLOG_LEVELMASK\ - |#define $* <var>value</var>\ + |#include "http_log.h"\ |if ((level & $*) > s->loglevel) {\n\ /* The level is greater than the minimum required for\n\ * logging, so log it.\n\ @@ -2693,7 +2691,7 @@ |SA-logging\ | C|APLOG_WIN32ERROR\ - |#define $* ((APLOG_LEVELMASK+1) * 2)\ + |#include "http_log.h"\ |ap_log_error(APLOG_MARK, APLOG_ERR|$*, NULL, \ "Error starting service control dispatcher");\ |SA-logging\ @@ -3329,12 +3327,8 @@ |\ | C|CR\ - |#ifndef CHARSET_EBCDIC \n \ -#define $* 13 \n \ -#else \n \ -#define $* '\r' \n \ -#endif \ - |eol = strchr(string, CR);\ + |#include "httpd.h"\ + |eol = strchr(string, $*);\ |SA-stringconst\ |<dict-$*.html C|LF\ @@ -3347,12 +3341,8 @@ |SA-stringconst\ |<dict-$*.html C|CRLF\ - |#ifndef CHARSET_EBCDIC \n \ -#define $* "\015\013" \n \ -#else \n \ -#define $* "\r\\n" \n \ -#endif \ - |entity = strstr(request, CRLF CRLF) + (2 * strlen(CRLF));\ + |#include "httpd.h"\ + |entity = strstr(request, $* $*) + (2 * strlen($*));\ |SA-stringconst\ |<dict-$*.html M|HTTP_VERSION_MAJOR\ @@ -3435,10 +3425,7 @@ |SA-MMN\ | M|AP_MODULE_MAGIC_AT_LEAST\ - |#define $*(major,minor) \ \n \ - ((major) < MODULE_MAGIC_NUMBER_MAJOR \ \n \ - || ((major) == MODULE_MAGIC_NUMBER_MAJOR \ \n \ - && (minor) <= MODULE_MAGIC_NUMBER_MINOR))\ + |#include "ap_mmn.h"\ | request_rec *r; \n \ char *x;\n \ #if $*(19990320,4) \n \ @@ -3491,14 +3478,14 @@ |SA-dirstat\ |<dict-$*.html C|DECLINED\ - |#define $* <var>value</var>\ + |#include "httpd.h"\ |request_rec *r;\nif (is_HTTP_ERROR(r->status)) { \n \ return $*; \n \ } \ |SA-dirstat\ |<dict-$*.html C|DECLINE_CMD\ - |#define $* <var>value</var>\ + |#include "http_config.h"\ |request_rec *r;\nif (! our_cmd) { \n \ return $*; \n \ } \
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]