Remake
|
Enumerations | |
enum | { Unexpected = 0, Word = 1 << 1, Colon = 1 << 2, Equal = 1 << 3, Dollarpar = 1 << 4, Rightpar = 1 << 5, Comma = 1 << 6, Plusequal = 1 << 7 } |
Functions | |
static void | skip_spaces (std::istream &in) |
static void | skip_empty (std::istream &in) |
static bool | skip_eol (std::istream &in, bool multi=false) |
static int | expect_token (std::istream &in, int mask) |
static std::string | read_word (std::istream &in) |
anonymous enum |
Enumerator | |
---|---|
Unexpected | |
Word | |
Colon | |
Equal | |
Dollarpar | |
Rightpar | |
Comma | |
Plusequal |
Definition at line 914 of file remake.cpp.
|
static |
Skip spaces and peek at the next token. If it is one of mask, skip it (if it is not Word) and return it.
Definition at line 932 of file remake.cpp.
Referenced by addprefix_generator::addprefix_generator(), addsuffix_generator::addsuffix_generator(), load_rule(), load_rules(), input_generator::next(), addprefix_generator::next(), and addsuffix_generator::next().
|
static |
Read a (possibly quoted) word.
Definition at line 977 of file remake.cpp.
Referenced by load_rule(), load_rules(), and input_generator::next().
|
static |
Skip empty lines.
Definition at line 893 of file remake.cpp.
Referenced by load_dependencies(), load_rules(), and skip_eol().
|
static |
Skip end of line. If multi is true, skip the following empty lines too.
Definition at line 904 of file remake.cpp.
Referenced by expect_token(), load_rule(), and load_rules().
|
static |
Skip spaces.
Definition at line 883 of file remake.cpp.
Referenced by expect_token(), get_function(), and load_rule().