1
/* Licensed to the Apache Software Foundation (ASF) under one or more
2
* contributor license agreements. See the NOTICE file distributed with
3
* this work for additional information regarding copyright ownership.
4
* The ASF licenses this file to You under the Apache License, Version 2.0
5
* (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
17
/* This program tests the ap_get_list_item routine in ../main/util.c.
19
* The defines in this sample compile line are specific to Roy's system.
20
* They should match whatever was used to compile Apache first.
22
gcc -g -O2 -I../os/unix -I../include -o test_parser \
23
-DSOLARIS2=250 -Wall -DALLOC_DEBUG -DPOOL_DEBUG \
24
../main/alloc.o ../main/buff.o ../main/util.o \
25
../ap/libap.a -lsocket -lnsl test_parser.c
32
#include "apr_general.h"
35
* Dummy a bunch of stuff just to get a compile
39
void *ap_dummy_mutex = &ap_dummy_mutex;
40
char *ap_server_argv0;
42
AP_DECLARE(void) ap_block_alarms(void)
47
AP_DECLARE(void) ap_unblock_alarms(void)
52
AP_DECLARE(void) ap_log_error(const char *file, int line, int level,
53
const request_rec *r, const char *fmt, ...)
65
p = apr_pool_alloc_init();
68
printf(" [%s] ==\n", instr);
70
while ((newstr = ap_get_list_item(p, &field)) != NULL)
71
printf(" <%s> ..\n", newstr);