1 /* Copyright 1999-2004 The Apache Software Foundation
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 /* This program tests the ap_get_list_item routine in ../main/util.c.
18 * The defines in this sample compile line are specific to Roy's system.
19 * They should match whatever was used to compile Apache first.
21 gcc -g -O2 -I../os/unix -I../include -o test_parser \
22 -DSOLARIS2=250 -Wall -DALLOC_DEBUG -DPOOL_DEBUG \
23 ../main/alloc.o ../main/buff.o ../main/util.o \
24 ../ap/libap.a -lsocket -lnsl test_parser.c
31 #include "apr_general.h"
34 * Dummy a bunch of stuff just to get a compile
38 void *ap_dummy_mutex = &ap_dummy_mutex;
39 char *ap_server_argv0;
41 AP_DECLARE(void) ap_block_alarms(void)
46 AP_DECLARE(void) ap_unblock_alarms(void)
51 AP_DECLARE(void) ap_log_error(const char *file, int line, int level,
52 const request_rec *r, const char *fmt, ...)
64 p = apr_pool_alloc_init();
67 printf(" [%s] ==\n", instr);
69 while ((newstr = ap_get_list_item(p, &field)) != NULL)
70 printf(" <%s> ..\n", newstr);