|
Pol
Revision:cb584c9
|
Go to the source code of this file.
Classes | |
| class | Pol::Clib::OnlineStatistics |
Namespaces | |
| Pol | |
| Pol::Clib | |
Macros | |
| #define | EXPLICIT_CAST(totype, fromtype) ( totype ) |
| #define | MEMCLR(a) memset( &a, 0, sizeof a ) |
| #define | MEMCPY(a, b) memcpy( &a, &b, sizeof a ) |
| #define | ms_to_clocks(ms) ( ms * CLOCKS_PER_SEC / 1000 ) |
| #define | PARAMS |
| #define | STRACPY(a, b) |
| #define | STRCPY(a, b) strncpy( a, b, sizeof a ) |
| #define | STRNCPY(a, b) strncpy( a, b, sizeof a ) |
| #define | STRPCPY(a, b) |
| #define | strzcpy Clib::stracpy |
Functions | |
| char * | Pol::Clib::binary (unsigned int val, int nbits) |
| char ** | Pol::Clib::decompose1 (char *cmdline, int *pargc) |
| int | Pol::Clib::favail (void) |
| int | Pol::Clib::forspec (const char *spec, void(*func)(const char *pathname)) |
| size_t | Pol::Clib::getCurrentMemoryUsage () |
| returns the current process size in bytes More... | |
| void | Pol::Clib::incStr (char *str) |
| void | Pol::Clib::legalize (char *s, const char *allowed) |
| std::tm | Pol::Clib::localtime (const std::time_t &t) |
| threadsafe version of localtime More... | |
| int | Pol::Clib::match (char *a, char *b) |
| int | Pol::Clib::nwords (const char *s) |
| template<typename T > | |
| void | Pol::Clib::sanitize_bounds (T *value, const T min, const T max) |
| template<typename T > | |
| void | Pol::Clib::sanitize_lowerlimit (T *value, const T min) |
| template<typename T > | |
| void | Pol::Clib::sanitize_upperlimit (T *value, const T max) |
| char * | Pol::Clib::stracpy (char *dest, const char *src, size_t maxlen) |
| char * | Pol::Clib::strip (char *s) |
| char * | Pol::Clib::strpcpy (char *dest, const char *src, size_t maxlen) |
Definition in file clib.h.
| #define EXPLICIT_CAST | ( | totype, | |
| fromtype | |||
| ) | ( totype ) |
use instead of c-style (type) casts.
Specify what you want to cast to, and what you think you're casting from.
Definition at line 24 of file clib.h.
Referenced by Pol::Bscript::Executor::getApplicObjParam(), Pol::Bscript::Executor::getApplicPtrParam(), Pol::Module::NPCExecutorModule::makeboundingbox(), Pol::Module::StorageExecutorModule::mf_CreateRootItemInStorageArea(), Pol::Module::StorageExecutorModule::mf_CreateStorageArea(), Pol::Module::StorageExecutorModule::mf_DestroyRootItemInStorageArea(), and Pol::Module::StorageExecutorModule::mf_FindRootItemInStorageArea().
| #define STRACPY | ( | a, | |
| b | |||
| ) |
| #define STRPCPY | ( | a, | |
| b | |||
| ) |
| #define strzcpy Clib::stracpy |
Definition at line 154 of file clib.h.
Referenced by Pol::Clib::forspec(), Pol::Core::Menu::Menu(), Pol::Clib::mergeFnExt(), Pol::Module::UOExecutorModule::mf_AddMenuItem(), Pol::Module::UOExecutorModule::mf_CreateMenu(), Pol::Core::Menu::read_menus(), Pol::Network::set_ip_address(), Pol::Network::set_lan_address(), and Pol::Bscript::EScriptProgram::write().