#include <cassert>
#include <cctype>
#include <cerrno>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <list>
#include <stack>
#include "cf_gen_defines.cci"
Go to the source code of this file.
|
| static int | gen_default (const EntryList &, std::ostream &) |
| |
| static void | gen_parse (const EntryList &, std::ostream &) |
| |
| static void | gen_dump (const EntryList &, std::ostream &) |
| |
| static void | gen_free (const EntryList &, std::ostream &) |
| |
| static void | gen_conf (const EntryList &, std::ostream &, bool verbose_output) |
| |
| static void | gen_default_if_none (const EntryList &, std::ostream &) |
| |
| static void | gen_default_postscriptum (const EntryList &head, std::ostream &fout) |
| | append configuration options specified by POSTSCRIPTUM lines More...
|
| |
| static bool | isDefined (const std::string &name) |
| |
| static const char * | available_if (const std::string &name) |
| |
| static const char * | gen_quote_escape (const std::string &var) |
| |
| static void | checkDepend (const std::string &directive, const char *name, const TypeList &types, const EntryList &entries) |
| |
| static void | usage (const char *program_name) |
| |
| static void | errorMsg (const char *filename, int line, const char *detail) |
| |
| int | main (int argc, char *argv[]) |
| |
|
| static const char | WS [] = " \t\n" |
| |
◆ _PATH_CF_DEPEND
| #define _PATH_CF_DEPEND "cf.data.depend" |
◆ _PATH_PARSER
| #define _PATH_PARSER "cf_parser.cci" |
◆ _PATH_SQUID_CONF
| #define _PATH_SQUID_CONF "squid.conf.documented" |
◆ _PATH_SQUID_CONF_SHORT
| #define _PATH_SQUID_CONF_SHORT "squid.conf.default" |
◆ MAX_LINE
| #define MAX_LINE 1024 /* longest configuration line */ |
◆ EntryAliasList
◆ EntryList
◆ LineList
◆ TypeDepList
◆ TypeList
◆ State
| Enumerator |
|---|
| sSTART | |
| s1 | |
| sDOC | |
| sCFGLINES | |
| sEXIT | |
Definition at line 53 of file cf_gen.cc.
◆ available_if()
| static const char * available_if |
( |
const std::string & |
name | ) |
|
|
static |
◆ checkDepend()
| static void checkDepend |
( |
const std::string & |
directive, |
|
|
const char * |
name, |
|
|
const TypeList & |
types, |
|
|
const EntryList & |
entries |
|
) |
| |
|
static |
◆ errorMsg()
| static void errorMsg |
( |
const char * |
filename, |
|
|
int |
line, |
|
|
const char * |
detail |
|
) |
| |
|
static |
◆ gen_conf()
| static void gen_conf |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout, |
|
|
bool |
verbose_output |
|
) |
| |
|
static |
◆ gen_default()
| static int gen_default |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout |
|
) |
| |
|
static |
◆ gen_default_if_none()
| static void gen_default_if_none |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout |
|
) |
| |
|
static |
◆ gen_default_postscriptum()
| static void gen_default_postscriptum |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout |
|
) |
| |
|
static |
◆ gen_dump()
| static void gen_dump |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout |
|
) |
| |
|
static |
◆ gen_free()
| static void gen_free |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout |
|
) |
| |
|
static |
◆ gen_parse()
| static void gen_parse |
( |
const EntryList & |
head, |
|
|
std::ostream & |
fout |
|
) |
| |
|
static |
◆ gen_quote_escape()
| static const char * gen_quote_escape |
( |
const std::string & |
var | ) |
|
|
static |
◆ isDefined()
| static bool isDefined |
( |
const std::string & |
name | ) |
|
|
static |
◆ main()
| int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 169 of file cf_gen.cc.
References _PATH_PARSER, _PATH_SQUID_CONF, _PATH_SQUID_CONF_SHORT, Entry::array_flag, assert, checkDepend(), Entry::comment, Entry::defaults, Type::depend, DefaultValues::docs, errorMsg(), gen_conf(), gen_default(), gen_default_if_none(), gen_default_postscriptum(), gen_dump(), gen_free(), gen_parse(), DefaultValues::if_none, Entry::ifdef, isDefined(), Entry::loc, MAX_LINE, Entry::name, DefaultValues::postscriptum, DefaultValues::preset, s1, sCFGLINES, sDOC, sEXIT, sSTART, strerror(), Entry::type, usage(), and WS.
◆ usage()
| static void usage |
( |
const char * |
program_name | ) |
|
|
static |
◆ WS
| const char WS[] = " \t\n" |
|
static |