| Revision: | 705 |
| Committed: | Tue Mar 19 15:00:23 2013 UTC (12 years, 8 months ago) by alloc |
| Content type: | text/x-chdr |
| File size: | 503 byte(s) |
| Log Message: | Daodan: DaodanGL fixes, intro/outro fixes, chinese=true by default |
| # | Content |
|---|---|
| 1 | #ifndef BFW_SCRIPTLANG_H |
| 2 | #define BFW_SCRIPTLANG_H |
| 3 | |
| 4 | #include "stdint.h" |
| 5 | |
| 6 | typedef enum { |
| 7 | sl_int32, |
| 8 | sl_str32, |
| 9 | sl_float, |
| 10 | sl_bool, /* Actually int32 0 or 1. */ |
| 11 | sl_void, |
| 12 | } sl_type; |
| 13 | |
| 14 | typedef struct { |
| 15 | sl_type type; |
| 16 | union { |
| 17 | void* value; |
| 18 | int32_t value_int32; |
| 19 | char* value_str32; |
| 20 | float value_float; |
| 21 | char value_bool; |
| 22 | } val; |
| 23 | } sl_arg; |
| 24 | |
| 25 | typedef struct { |
| 26 | char* name; |
| 27 | char* calllocation; //maybe |
| 28 | int linenumber; //perhaps |
| 29 | } sl_callinfo; |
| 30 | |
| 31 | #endif |