xoreos
0.0.5
|
Low-level detection of architecture/system properties. More...
#include "src/common/noreturn.h"
#include "src/common/fallthrough.h"
#include <cctype>
#include <cerrno>
#include <climits>
Go to the source code of this file.
Macros | |
#define | PACKED_STRUCT |
#define | GCC_PRINTF(x, y) |
#define | UNUSED(x) UNUSED_ ## x |
#define | strtof c99_strtof |
#define | HAVE_STRTOF 1 |
#define | strtoll c99_strtoll |
#define | LLONG_MAX 0x7FFFFFFFFFFFFFFFlL |
#define | LLONG_MIN (-0x7FFFFFFFFFFFFFFFLL-1) |
#define | HAVE_STRTOLL 1 |
#define | strtoull c99_strtoull |
#define | ULLONG_MAX 0xFFFFFFFFFFFFFFFFULL |
#define | HAVE_STRTOULL 1 |
#define | XOREOS_EXPLICIT_OPERATOR_CONV |
#define | FORCEINLINE inline |
#define | STRINGBUFLEN 1024 |
#define | MAXPATHLEN 256 |
#define | IGNORE_UNUSED_VARIABLES |
Functions | |
static FORCEINLINE float | c99_strtof (const char *nptr, char **endptr) |
static long long | c99_strtoll (const char *nptr, char **endptr, int base) |
Convert a string to a long long. More... | |
static unsigned long long | c99_strtoull (const char *nptr, char **endptr, int base) |
Convert a string to an unsigned long long. More... | |
Low-level detection of architecture/system properties.
Definition in file system.h.
#define LLONG_MAX 0x7FFFFFFFFFFFFFFFlL |
Definition at line 202 of file system.h.
Referenced by c99_strtoll().
#define LLONG_MIN (-0x7FFFFFFFFFFFFFFFLL-1) |
Definition at line 206 of file system.h.
Referenced by c99_strtoll().
#define STRINGBUFLEN 1024 |
Definition at line 415 of file system.h.
Referenced by Common::StackException::add(), debugC(), debugCN(), error(), Common::errorFuncUString(), Common::exceptionDispatcherError(), Common::exceptionDispatcherWarning(), Common::UString::format(), info(), Engines::Console::printf(), Common::StackException::StackException(), status(), and warning().
#define strtof c99_strtof |
Definition at line 185 of file system.h.
Referenced by Common::parse().
#define strtoll c99_strtoll |
Definition at line 195 of file system.h.
Referenced by Common::parse().
#define strtoull c99_strtoull |
Definition at line 319 of file system.h.
Referenced by Common::parse().
#define ULLONG_MAX 0xFFFFFFFFFFFFFFFFULL |
Definition at line 326 of file system.h.
Referenced by c99_strtoull().
|
static |
|
static |
|
static |
Convert a string to an unsigned long long.
Based on OpenBSD's strtoull() function, released under the terms of the 3-clause BSD license.
Ignores 'locale' stuff. Assumes that the upper and lower case alphabets and digits are each contiguous.
Definition at line 337 of file system.h.
References ULLONG_MAX.