diff options
Diffstat (limited to 'libs/util/include/util.h')
-rw-r--r-- | libs/util/include/util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/util/include/util.h b/libs/util/include/util.h index 023c435..1f92380 100644 --- a/libs/util/include/util.h +++ b/libs/util/include/util.h @@ -26,6 +26,7 @@ #define UTIL_H #include <stdlib.h> +#include <string> #define FREE(m) { void *_tmp_ = m; m = NULL; free(_tmp_); } #define TO_STRING(s) #s #define EVER ;; @@ -37,6 +38,10 @@ extern const char *skipWhitespace(const char *Buffer); extern const char *getWord(char *buf, int bufSize, const char *src); extern const char *restOfLine(char *buf, int bufSize, const char *src); +extern double parseAspect(const char *input, const char **next = NULL); +extern double parseAspect(const std::string &input, const char **next = NULL); +extern long parseInt(const char *input, const char **next = NULL); +extern long parseInt(const std::string &input, const char **next = NULL); #endif /* UTIL_H */ |