OSDN Git Service

jQueryのアップデートに伴う変更。
[nacltest/xmplayer.git] / _allinc2.h
1 #ifndef      _ALLINC2_H_             /* 2重インクルード防止の番兵 */
2 #define _ALLINC2_H_
3 #include "stdarg.h"
4 #include "stddef.h"
5 #include "stdbool.h"
6 #include <iostream>
7 #include <malloc.h>
8 #include <math.h>
9 #include <stdlib.h>
10 #include <string.h>
11 #include <cassert>
12 #include <string>
13 #include <stdarg.h>
14 #include "ppapi/c/pp_instance.h"
15
16 /*
17                         S32 ... 符号付き 32 bit 値。long 型の事。
18                         U32 ... 符号無し 32 bit 値。unsigned long 型の事。
19                         S16 ... 符号付き 16 bit 値。short 型の事。
20                         U16 ... 符号無し 16 bit 値。unsigned short 型の事。
21                         S8  ... 符号付き  8 bit 値。signed char 型の事。
22                         U8  ... 符号無し  8 bit 値。unsigned char 型の事。
23                         F32 ... 単精度浮動小数。
24                         F64 ... 倍精度浮動小数。
25   */
26   typedef long S32;
27   typedef unsigned long U32;
28   typedef short S16;
29   typedef unsigned short U16;
30   typedef char S8;
31   typedef unsigned char U8;
32   typedef float F32;
33   typedef double F64;
34
35 #define  TRUE true
36 #define  FALSE false
37   inline void * AllocMemory (size_t size)
38   {
39     return malloc(size);
40   };
41
42   inline void FreeMemory(void * ptr)
43   {
44     free(ptr);
45   };
46
47 #endif          /* 番兵末端 */