Last change
on this file since 686 was 677, checked in by alloc, 12 years ago |
Daodan: Updated src to work with MinGW
|
File size:
565 bytes
|
Rev | Line | |
---|
[445] | 1 | #pragma once
|
---|
| 2 | #ifndef BFW_SCRIPTLANG_H
|
---|
| 3 | #define BFW_SCRIPTLANG_H
|
---|
| 4 |
|
---|
| 5 | #include "Daodan.h"
|
---|
| 6 |
|
---|
[677] | 7 | //#include <stdint.h>
|
---|
| 8 | #include "bool.h"
|
---|
[445] | 9 |
|
---|
| 10 | typedef enum {
|
---|
| 11 | sl_int32,
|
---|
| 12 | sl_str32,
|
---|
| 13 | sl_float,
|
---|
| 14 | sl_bool, /* Actually int32 0 or 1. */
|
---|
| 15 | sl_void,
|
---|
| 16 | } sl_type;
|
---|
| 17 |
|
---|
| 18 | typedef struct {
|
---|
| 19 | sl_type type;
|
---|
| 20 | union {
|
---|
| 21 | void* value;
|
---|
| 22 | int32_t value_int32;
|
---|
| 23 | char* value_str32;
|
---|
| 24 | float value_float;
|
---|
| 25 | bool value_bool;
|
---|
| 26 | };
|
---|
| 27 | } sl_arg;
|
---|
| 28 |
|
---|
| 29 | typedef struct {
|
---|
| 30 | char* name;
|
---|
| 31 | char* calllocation; //maybe
|
---|
| 32 | int linenumber; //perhaps
|
---|
| 33 | } sl_callinfo;
|
---|
| 34 |
|
---|
| 35 |
|
---|
| 36 |
|
---|
[677] | 37 |
|
---|
| 38 |
|
---|
[445] | 39 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.