git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/ld-acess - Fixing Elf64 support (and incorrect Uint* sizes)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libspiderscript.so_src
/
bytecode.h
diff --git
a/Usermode/Libraries/libspiderscript.so_src/bytecode.h
b/Usermode/Libraries/libspiderscript.so_src/bytecode.h
index
045f896
..
bc3c91c
100644
(file)
--- a/
Usermode/Libraries/libspiderscript.so_src/bytecode.h
+++ b/
Usermode/Libraries/libspiderscript.so_src/bytecode.h
@@
-7,6
+7,8
@@
#include "bytecode_ops.h"
#include "bytecode_ops.h"
+#define BC_NS_SEPARATOR '@'
+
typedef struct sBC_Op tBC_Op;
typedef struct sBC_Function tBC_Function;
typedef struct sBC_Op tBC_Op;
typedef struct sBC_Function tBC_Function;
@@
-14,11
+16,12
@@
struct sBC_Op
{
tBC_Op *Next;
int Operation;
{
tBC_Op *Next;
int Operation;
- int bUseInteger; // Used for serialisation
+ char bUseInteger; // Used for serialisation
+ char bUseString; // Used for serialisation
union {
struct {
union {
struct {
- const char *String;
int Integer;
int Integer;
+ char String[];
} StringInt;
uint64_t Integer;
} StringInt;
uint64_t Integer;
@@
-28,8
+31,6
@@
struct sBC_Op
struct sBC_Function
{
struct sBC_Function
{
- const char *Name;
-
int LabelCount;
int LabelSpace;
tBC_Op **Labels;
int LabelCount;
int LabelSpace;
tBC_Op **Labels;
@@
-38,18
+39,12
@@
struct sBC_Function
// NOTE: These fields are invalid after compilation
int VariableCount;
int VariableSpace;
// NOTE: These fields are invalid after compilation
int VariableCount;
int VariableSpace;
- const char **VariableNames;
// Only type needs to be stored
+ const char **VariableNames;
int CurContextDepth; // Used to get the real var count
int OperationCount;
tBC_Op *Operations;
tBC_Op *OperationsEnd;
int CurContextDepth; // Used to get the real var count
int OperationCount;
tBC_Op *Operations;
tBC_Op *OperationsEnd;
-
- int ArgumentCount;
- struct {
- char *Name;
- int Type;
- } Arguments[];
};
#endif
};
#endif
UCC
git Repository :: git.ucc.asn.au