|
Pol
Revision:e09f183
|
Classes | |
| struct | Summary |
Functions | |
| void | AutoCompile () |
| bool | compile_file (const char *path) |
| void | compile_file_wrapper (const char *path) |
| void | compile_inc (const char *path) |
| void | generate_wordlist () |
| void | parallel_compile (const std::vector< std::string > &files) |
| void | read_config_file (int argc, char *argv[]) |
| int | readargs (int argc, char **argv) |
| void | recurse_compile (const std::string &basedir, std::vector< std::string > *files) |
| void | recurse_compile_inc (const std::string &basedir, std::vector< std::string > *files) |
| bool | run (int argc, char **argv) |
| bool | setting_value (const char *arg) |
| void | usage (void) |
Variables | |
| std::string | CfgPathEnv |
| int | debug = 0 |
| bool | dont_optimize_object_members = false |
| std::string | EmPathEnv |
| bool | expect_compile_failure = false |
| bool | force_update = false |
| std::string | IncPathEnv |
| bool | keep_building = false |
| bool | opt_generate_wordlist = false |
| bool | quiet = false |
| bool | show_timing_details = false |
| struct Pol::Ecompile::Summary | summary |
| bool | timing_quiet_override = false |
| bool | verbose = false |
| void Pol::Ecompile::AutoCompile | ( | ) |
Definition at line 639 of file ecompile.cpp.
References Pol::Bscript::compilercfg, Pol::Clib::normalized_dir_form(), Pol::Bscript::CompilerConfig::OnlyCompileUpdatedScripts, parallel_compile(), Pol::Bscript::CompilerConfig::PolScriptRoot, recurse_compile(), Pol::Plib::systemstate, Pol::Bscript::CompilerConfig::ThreadedCompilation, and Pol::Bscript::CompilerConfig::UpdateOnlyOnAutoCompile.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Ecompile::compile_file | ( | const char * | path | ) |
Definition at line 145 of file ecompile.cpp.
References compile_inc(), Pol::Bscript::Compiler::compileFile(), Pol::Bscript::compilercfg, debug, Pol::Bscript::CompilerConfig::DisplayUpToDateScripts, Pol::Bscript::Compiler::dump(), expect_compile_failure, Pol::Clib::FileExists(), force_update, Pol::Bscript::CompilerConfig::GenerateDebugInfo, Pol::Bscript::CompilerConfig::GenerateDebugTextInfo, Pol::Bscript::CompilerConfig::GenerateDependencyInfo, Pol::Bscript::CompilerConfig::GenerateListing, Pol::Clib::GetFileTimestamp(), INFO_PRINT, Pol::Bscript::CompilerConfig::OnlyCompileUpdatedScripts, quiet, Pol::Clib::RemoveFile(), Pol::Bscript::Parser::setQuiet(), verbose, Pol::Bscript::Compiler::write(), Pol::Bscript::Compiler::write_dbg(), and Pol::Bscript::Compiler::writeIncludedFilenames().
Referenced by compile_file_wrapper(), parallel_compile(), recurse_compile(), and recurse_compile_inc().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::compile_file_wrapper | ( | const char * | path | ) |
Definition at line 299 of file ecompile.cpp.
References compile_file(), Pol::Ecompile::Summary::CompiledScripts, keep_building, Pol::Ecompile::Summary::ScriptsWithCompileErrors, summary, and Pol::Ecompile::Summary::UpToDateScripts.
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::compile_inc | ( | const char * | path | ) |
Definition at line 130 of file ecompile.cpp.
References Pol::Bscript::Compiler::compileFile(), debug, INFO_PRINT, quiet, Pol::Bscript::Compiler::setIncludeCompileMode(), and Pol::Bscript::Parser::setQuiet().
Referenced by compile_file(), and run().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::generate_wordlist | ( | ) |
Definition at line 123 of file ecompile.cpp.
References INFO_PRINT, and Pol::Bscript::Parser::write_words().
Referenced by Pol::xmain().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::parallel_compile | ( | const std::vector< std::string > & | files | ) |
Definition at line 594 of file ecompile.cpp.
References compile_file(), Pol::Ecompile::Summary::CompiledScripts, ERROR_PRINT, Pol::Clib::force_backtrace(), keep_building, Pol::Ecompile::Summary::ScriptsWithCompileErrors, summary, and Pol::Ecompile::Summary::UpToDateScripts.
Referenced by AutoCompile(), and run().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::read_config_file | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 767 of file ecompile.cpp.
References argc, Pol::Bscript::compilercfg, ERROR_PRINT, Pol::Clib::FileExists(), Pol::Bscript::CompilerConfig::Read(), and Pol::Bscript::CompilerConfig::SetDefaults().
Referenced by Pol::xmain().
Here is the call graph for this function:
Here is the caller graph for this function:| int Pol::Ecompile::readargs | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 331 of file ecompile.cpp.
References argc, CfgPathEnv, Pol::Bscript::CompilerConfig::CompileAspPages, Pol::Bscript::compilercfg, debug, Pol::Bscript::CompilerConfig::DisplaySummary, Pol::Bscript::CompilerConfig::DisplayWarnings, EmPathEnv, ERROR_PRINT, Pol::Bscript::CompilerConfig::ErrorOnWarning, expect_compile_failure, force_update, Pol::Bscript::CompilerConfig::GenerateDebugInfo, Pol::Bscript::CompilerConfig::GenerateDebugTextInfo, Pol::Bscript::CompilerConfig::GenerateDependencyInfo, Pol::Bscript::CompilerConfig::GenerateListing, Pol::Bscript::include_debug, IncPathEnv, keep_building, Pol::Bscript::CompilerConfig::OnlyCompileUpdatedScripts, opt_generate_wordlist, Pol::Bscript::CompilerConfig::OptimizeObjectMembers, Pol::Bscript::CompilerConfig::ParanoiaWarnings, quiet, setting_value(), Pol::Bscript::Compiler::setVerbosityLevel(), show_timing_details, Pol::Bscript::CompilerConfig::ThreadedCompilation, timing_quiet_override, usage(), and verbose.
Referenced by Pol::xmain().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::recurse_compile | ( | const std::string & | basedir, |
| std::vector< std::string > * | files | ||
| ) |
Definition at line 496 of file ecompile.cpp.
References Pol::Clib::DirList::at_end(), compile_file(), Pol::Bscript::CompilerConfig::CompileAspPages, Pol::Ecompile::Summary::CompiledScripts, Pol::Bscript::compilercfg, INFO_PRINT, Pol::Clib::IsDirectory(), keep_building, quiet, Pol::Ecompile::Summary::ScriptsWithCompileErrors, show_timing_details, summary, timing_quiet_override, and Pol::Ecompile::Summary::UpToDateScripts.
Referenced by AutoCompile(), recurse_compile_inc(), and run().
Here is the call graph for this function:
Here is the caller graph for this function:| void Pol::Ecompile::recurse_compile_inc | ( | const std::string & | basedir, |
| std::vector< std::string > * | files | ||
| ) |
Definition at line 569 of file ecompile.cpp.
References Pol::Clib::DirList::at_end(), compile_file(), and recurse_compile().
Referenced by run().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Ecompile::run | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 664 of file ecompile.cpp.
References argc, AutoCompile(), Pol::Bscript::CompilerConfig::AutoCompileByDefault, Pol::Plib::check_package_deps(), compile_file_wrapper(), compile_inc(), Pol::Ecompile::Summary::CompiledScripts, Pol::Bscript::compilercfg, Pol::Plib::SystemState::deinitialize(), Pol::Bscript::CompilerConfig::DisplaySummary, Pol::Tools::Timer< printer >::ellapsed(), Pol::Clib::forspec(), INFO_PRINT, Pol::Plib::load_packages(), Pol::Clib::normalized_dir_form(), Pol::Bscript::CompilerConfig::PackageRoot, parallel_compile(), quiet, recurse_compile(), recurse_compile_inc(), Pol::Plib::replace_packages(), Pol::Ecompile::Summary::ScriptsWithCompileErrors, Pol::Tools::Timer< printer >::stop(), summary, Pol::Plib::systemstate, Pol::Bscript::CompilerConfig::ThreadedCompilation, Pol::Bscript::CompilerConfig::UpdateOnlyOnAutoCompile, and Pol::Ecompile::Summary::UpToDateScripts.
Referenced by Pol::Mobile::Character::get_script_member_id(), Pol::Mobile::Character::set_script_member_id(), Pol::Mobile::Character::set_script_member_id_double(), and Pol::xmain().
Here is the call graph for this function:
Here is the caller graph for this function:| bool Pol::Ecompile::setting_value | ( | const char * | arg | ) |
Definition at line 317 of file ecompile.cpp.
Referenced by readargs().
Here is the caller graph for this function:| void Pol::Ecompile::usage | ( | void | ) |
Definition at line 78 of file ecompile.cpp.
References ERROR_PRINT, Pol::Clib::Logging::global_logger, and Pol::Clib::Logging::LogFacility::wait_for_empty_queue().
Referenced by Pol::Core::ObjectStorageManager::estimateSize(), Pol::Core::ScriptEngineInternalManager::estimateSize(), Pol::Core::ConfigurationBuffer::estimateSize(), Pol::Core::NetworkManager::estimateSize(), Pol::Core::GameState::estimateSize(), readargs(), and Pol::xmain().
Here is the call graph for this function:
Here is the caller graph for this function:| std::string Pol::Ecompile::CfgPathEnv |
Definition at line 69 of file ecompile.cpp.
Referenced by readargs().
| int Pol::Ecompile::debug = 0 |
Definition at line 57 of file ecompile.cpp.
Referenced by compile_file(), compile_inc(), and readargs().
| bool Pol::Ecompile::dont_optimize_object_members = false |
Definition at line 66 of file ecompile.cpp.
| std::string Pol::Ecompile::EmPathEnv |
Definition at line 67 of file ecompile.cpp.
Referenced by readargs().
| bool Pol::Ecompile::expect_compile_failure = false |
Definition at line 65 of file ecompile.cpp.
Referenced by compile_file(), and readargs().
| bool Pol::Ecompile::force_update = false |
Definition at line 62 of file ecompile.cpp.
Referenced by compile_file(), and readargs().
| std::string Pol::Ecompile::IncPathEnv |
Definition at line 68 of file ecompile.cpp.
Referenced by readargs().
| bool Pol::Ecompile::keep_building = false |
Definition at line 60 of file ecompile.cpp.
Referenced by compile_file_wrapper(), parallel_compile(), readargs(), and recurse_compile().
| bool Pol::Ecompile::opt_generate_wordlist = false |
Definition at line 59 of file ecompile.cpp.
Referenced by readargs(), and Pol::xmain().
| bool Pol::Ecompile::quiet = false |
Definition at line 58 of file ecompile.cpp.
Referenced by compile_file(), compile_inc(), Pol::Bscript::SmartParser::IIP(), Pol::Bscript::SmartParser::isOkay(), Pol::Bscript::SmartParser::parseToken(), readargs(), recurse_compile(), run(), and Pol::xmain().
| bool Pol::Ecompile::show_timing_details = false |
Definition at line 63 of file ecompile.cpp.
Referenced by readargs(), and recurse_compile().
Referenced by compile_file_wrapper(), parallel_compile(), recurse_compile(), and run().
| bool Pol::Ecompile::timing_quiet_override = false |
Definition at line 64 of file ecompile.cpp.
Referenced by readargs(), and recurse_compile().
| bool Pol::Ecompile::verbose = false |
Definition at line 61 of file ecompile.cpp.
Referenced by compile_file(), and readargs().