From adb7d83292e1502ca7c21a123b104412cb22d160 Mon Sep 17 00:00:00 2001 From: geronimo Date: Thu, 2 Aug 2012 08:07:59 +0200 Subject: worked out processing of some meta data, extended json list elements --- libs/util/include/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/util/include/util.h') 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 +#include #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 */ -- cgit v1.2.3