Squid Web Cache master
Loading...
Searching...
No Matches
stub_cache_cf.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9/* DEBUG: section 03 Configuration File Parsing */
10
11#include "squid.h"
12#include "acl/Acl.h"
13#include "acl/Gadgets.h"
14#include "ConfigParser.h"
15#include "wordlist.h"
16
17#define STUB_API "cache_cf.cc"
18#include "tests/STUB.h"
19
20#include "cache_cf.h"
21const char *cfg_directive = nullptr;
22const char *cfg_filename = nullptr;
26void parse_int(int *) STUB
27void parse_onoff(int *) STUB
28void parse_eol(char *volatile *) STUB
30void requirePathnameExists(const char *, const char *) STUB_NOP
31void parse_time_t(time_t *) STUB
32void ConfigParser::ParseUShort(unsigned short *) STUB
34void parseBytesOptionValue(size_t *, const char *, char const *) STUB
35void dump_acl_access(StoreEntry *, const char *, acl_access *) STUB
37
#define STUB
macro to stub a void function.
Definition STUB.h:34
#define STUB_NOP
Definition STUB.h:38
void parse_time_t(time_t *var)
Definition cache_cf.cc:2940
void parse_onoff(int *var)
Definition cache_cf.cc:2568
void parse_wordlist(wordlist **list)
Definition cache_cf.cc:3122
void parse_int(int *var)
Definition cache_cf.cc:2528
void requirePathnameExists(const char *name, const char *path)
Definition cache_cf.cc:3914
void parse_eol(char *volatile *var)
Definition cache_cf.cc:2886
void parseBytesOptionValue(size_t *bptr, const char *units, char const *value)
Parse bytes number from a string.
Definition cache_cf.cc:1383
static void ParseUShort(unsigned short *var)
Definition cache_cf.cc:3088
static void ParseWordList(wordlist **list)
Definition cache_cf.cc:3116
#define BUFSIZ
Definition defines.h:20
void dump_acl_list(StoreEntry *entry, ACLList *head)
Definition cache_cf.cc:1491
void dump_acl_access(StoreEntry *entry, const char *name, acl_access *head)
Definition cache_cf.cc:1499
void self_destruct(void) STUB void parse_int(int *) STUB void parse_onoff(int *) STUB void parse_eol(char *volatile *) STUB void parse_wordlist(wordlist **) STUB void requirePathnameExists(const char *
const char * cfg_directive
During parsing, the name of the current squid.conf directive being parsed.
char config_input_line[BUFSIZ]
const char * cfg_filename
int config_lineno