diff options
Diffstat (limited to 'src/libjin/Common')
-rw-r--r-- | src/libjin/Common/Array.hpp | 2 | ||||
-rw-r--r-- | src/libjin/Common/types.h | 23 | ||||
-rw-r--r-- | src/libjin/Common/utf8.cpp | 2 | ||||
-rw-r--r-- | src/libjin/Common/utf8.h | 2 |
4 files changed, 26 insertions, 3 deletions
diff --git a/src/libjin/Common/Array.hpp b/src/libjin/Common/Array.hpp index 7c0f058..45082db 100644 --- a/src/libjin/Common/Array.hpp +++ b/src/libjin/Common/Array.hpp @@ -28,7 +28,7 @@ namespace jin return data; } - T operator[](int index) + T& operator[](int index) { return data[index]; } diff --git a/src/libjin/Common/types.h b/src/libjin/Common/types.h new file mode 100644 index 0000000..7e335c0 --- /dev/null +++ b/src/libjin/Common/types.h @@ -0,0 +1,23 @@ +#ifndef __LIBJIN_TYPES_H +#define __LIBJIN_TYPES_H +#include <stdint.h> + +namespace jin +{ +namespace common +{ + + typedef int8_t int8; + typedef uint8_t uint8; + typedef uint8 byte; + typedef int16_t int16; + typedef uint16_t uint16; + typedef int32_t int32; + typedef uint32_t uint32; + typedef int64_t int64; + typedef uint64_t uint64; + +} +} + +#endif
\ No newline at end of file diff --git a/src/libjin/Common/utf8.cpp b/src/libjin/Common/utf8.cpp index 8c05da8..f00d03c 100644 --- a/src/libjin/Common/utf8.cpp +++ b/src/libjin/Common/utf8.cpp @@ -1,4 +1,4 @@ -#include "../modules.h" +#include "../jin_configuration.h" #if LIBJIN_OS == LIBJIN_WINDOWS #include "utf8.h" diff --git a/src/libjin/Common/utf8.h b/src/libjin/Common/utf8.h index 5985684..fd6ce1f 100644 --- a/src/libjin/Common/utf8.h +++ b/src/libjin/Common/utf8.h @@ -1,7 +1,7 @@ #ifndef __LIBJIN_COMMON_UTF8_H #define __LIBJIN_COMMON_UTF8_H -#include "../modules.h" +#include "../jin_configuration.h" #if LIBJIN_OS == LIBJIN_WINDOWS #include <string> |