#include "../global.hpp"
#include "../filesystem.hpp"
#include "../log.hpp"
#include "../wesconfig.h"
#include "preprocessor.hpp"
#include "string_utils.hpp"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <sstream>
#include <vector>
Go to the source code of this file.
Classes | |
class | preprocessor |
class | preprocessor_streambuf |
class | preprocessor_file |
preprocessor_file More... | |
class | preprocessor_data |
struct | preprocessor_data::token_desc |
struct | preprocessor_deleter |
Defines | |
#define | ERR_CF LOG_STREAM(err, config) |
#define | LOG_CF LOG_STREAM(info, config) |
#define | DBG_CF LOG_STREAM(debug, config) |
Functions | |
void | count_extra_digits (int const &line_number, int &buffer_size) |
std::istream * | preprocess_file (std::string const &fname, preproc_map *defines, std::string *error_log) |
Function to use the WML preprocessor on a file, and returns the resulting preprocessed file data. |
Definition in file preprocessor.cpp.
#define ERR_CF LOG_STREAM(err, config) |
Definition at line 33 of file preprocessor.cpp.
#define LOG_CF LOG_STREAM(info, config) |
Definition at line 34 of file preprocessor.cpp.
void @260::count_extra_digits | ( | int const & | line_number, | |
int & | buffer_size | |||
) | [static] |
Definition at line 222 of file preprocessor.cpp.
Referenced by preprocessor_data::preprocessor_data(), preprocessor_data::put(), and preprocessor::~preprocessor().
std::istream* preprocess_file | ( | std::string const & | fname, | |
preproc_map * | defines = NULL , |
|||
std::string * | error_log = NULL | |||
) |
Function to use the WML preprocessor on a file, and returns the resulting preprocessed file data.
defines is a map of symbols defined.
Definition at line 950 of file preprocessor.cpp.
References buf, log_scope, and preprocessor_deleter::preprocessor_deleter().
Referenced by cutter::load_config(), font::load_font_config(), load_language_list(), gui2::load_settings(), main(), server::read_config(), read_tips_of_day(), and set_language().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |