diff --git a/src/oberon-internals.h b/src/oberon-internals.h
index e265a79cc1b39aff1e2a6afa7d3b51913853c756..ac6b6959ff7799fb2d3a0ed35576fce40dd99ac8 100644 (file)
--- a/src/oberon-internals.h
+++ b/src/oberon-internals.h
#ifndef OBERON_INTERNALS_H
#define OBERON_INTERNALS_H
#ifndef OBERON_INTERNALS_H
#define OBERON_INTERNALS_H
+typedef struct gen_module_t gen_module_t;
typedef struct gen_proc_t gen_proc_t;
typedef struct gen_type_t gen_type_t;
typedef struct gen_var_t gen_var_t;
typedef struct gen_proc_t gen_proc_t;
typedef struct gen_type_t gen_type_t;
typedef struct gen_var_t gen_var_t;
oberon_object_t * list;
oberon_scope_t * up;
oberon_object_t * list;
oberon_scope_t * up;
- oberon_object_t * parent;
int local;
int local;
+ oberon_object_t * parent;
+ oberon_type_t * parent_type;
};
enum
};
enum
int initialized;
oberon_object_t * parent;
int initialized;
oberon_object_t * parent;
+ oberon_type_t * parent_type;
oberon_scope_t * scope; // for proc
int has_return; // for proc
oberon_scope_t * scope; // for proc
int has_return; // for proc
oberon_scope_t * decl;
oberon_module_t * next;
oberon_scope_t * decl;
oberon_module_t * next;
+
+ gen_module_t * gen_mod;
};
typedef const char * (*ModuleImportCallback)(const char * name);
};
typedef const char * (*ModuleImportCallback)(const char * name);
OP_MOD,
OP_BITWISE_AND,
OP_BITWISE_XOR,
OP_MOD,
OP_BITWISE_AND,
OP_BITWISE_XOR,
- OP_BITWISE_OP,
+ OP_BITWISE_OR,
OP_LOGIC_AND,
OP_LOGIC_OR,
OP_LOGIC_AND,
OP_LOGIC_OR,
oberon_oper_t oper;
};
oberon_oper_t oper;
};
-extern void
-oberon_error(oberon_context_t * ctx, const char * fmt, ...);
-
#endif // OBERON_INTERNALS_H
#endif // OBERON_INTERNALS_H