bigpoint_dyntype.h
758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __BIGPOINT_DYNTYPE_H__
#define __BIGPOINT_DYNTYPE_H__
#include <sys/types.h>
#include "bigpoint_cclass.h"
enum BIGPOINT_DYNTYPE_TYPES {
BIGPOINT_DYNTYPE_NULL = 0,
BIGPOINT_DYNTYPE_BOOLEAN,
BIGPOINT_DYNTYPE_INT,
BIGPOINT_DYNTYPE_FLOAT,
BIGPOINT_DYNTYPE_STRING,
BIGPOINT_DYNTYPE_ARRAY,
BIGPOINT_DYNTYPE_OBJECT
};
struct BIGPOINT_DYNTYPE {
const struct BIGPOINT_CCLASS * const class;
enum BIGPOINT_DYNTYPE_TYPES type;
size_t size;
union _data {
unsigned char _boolean;
int _int;
double _float;
char * _string;
void * _object;
} data;
};
extern const struct BIGPOINT_CCLASS * const BIGPOINT_DYNTYPE;
#endif//__BIGPOINT_DYNTYPE_H__
// vim: set et ts=4 sw=4: