1 /* This program tests the ap_get_list_item routine in ../main/util.c.
3 * The defines in this sample compile line are specific to Roy's system.
4 * They should match whatever was used to compile Apache first.
6 gcc -g -O2 -I../os/unix -I../include -o test_parser \
7 -DSOLARIS2=250 -Wall -DALLOC_DEBUG -DPOOL_DEBUG \
8 ../main/alloc.o ../main/buff.o ../main/util.o \
9 ../ap/libap.a -lsocket -lnsl test_parser.c
16 #include "apr_general.h"
19 * Dummy a bunch of stuff just to get a compile
23 void *ap_dummy_mutex = &ap_dummy_mutex;
24 char *ap_server_argv0;
26 API_EXPORT(void) ap_block_alarms(void)
31 API_EXPORT(void) ap_unblock_alarms(void)
36 API_EXPORT(void) ap_log_error(const char *file, int line, int level,
37 const request_rec *r, const char *fmt, ...)
52 printf(" [%s] ==\n", instr);
54 while ((newstr = ap_get_list_item(p, &field)) != NULL)
55 printf(" <%s> ..\n", newstr);