mirror of https://github.com/rusefi/lua.git
small correction (about types)
This commit is contained in:
parent
cec1ffb80b
commit
8d82aa821a
8
opcode.h
8
opcode.h
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
** TeCGraf - PUC-Rio
|
** TeCGraf - PUC-Rio
|
||||||
** $Id: opcode.h,v 3.16 1996/01/26 18:03:19 roberto Exp roberto $
|
** $Id: opcode.h,v 3.17 1996/02/13 17:30:39 roberto Exp roberto $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef opcode_h
|
#ifndef opcode_h
|
||||||
|
@ -109,14 +109,14 @@ typedef struct Object
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
struct {char c1; char c2;} m;
|
struct {Byte c1; Byte c2;} m;
|
||||||
Word w;
|
Word w;
|
||||||
} CodeWord;
|
} CodeWord;
|
||||||
#define get_word(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;}
|
#define get_word(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;}
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
struct {char c1; char c2; char c3; char c4;} m;
|
struct {Byte c1; Byte c2; Byte c3; Byte c4;} m;
|
||||||
float f;
|
float f;
|
||||||
} CodeFloat;
|
} CodeFloat;
|
||||||
#define get_float(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;\
|
#define get_float(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;\
|
||||||
|
@ -124,7 +124,7 @@ typedef union
|
||||||
|
|
||||||
typedef union
|
typedef union
|
||||||
{
|
{
|
||||||
struct {char c1; char c2; char c3; char c4;} m;
|
struct {Byte c1; Byte c2; Byte c3; Byte c4;} m;
|
||||||
TFunc *tf;
|
TFunc *tf;
|
||||||
} CodeCode;
|
} CodeCode;
|
||||||
#define get_code(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;\
|
#define get_code(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;\
|
||||||
|
|
Loading…
Reference in New Issue