mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Best viable overloading procedure algorithm; no_alias; call expr style casts
This commit is contained in:
+10
-6
@@ -1,11 +1,5 @@
|
||||
#include "exact_value.c"
|
||||
#include "entity.c"
|
||||
#include "types.c"
|
||||
|
||||
#define MAP_TYPE Entity *
|
||||
#define MAP_PROC map_entity_
|
||||
#define MAP_NAME MapEntity
|
||||
#include "map.c"
|
||||
|
||||
typedef enum AddressingMode {
|
||||
Addressing_Invalid,
|
||||
@@ -20,6 +14,13 @@ typedef enum AddressingMode {
|
||||
Addressing_Count,
|
||||
} AddressingMode;
|
||||
|
||||
#include "types.c"
|
||||
|
||||
#define MAP_TYPE Entity *
|
||||
#define MAP_PROC map_entity_
|
||||
#define MAP_NAME MapEntity
|
||||
#include "map.c"
|
||||
|
||||
typedef struct Operand {
|
||||
AddressingMode mode;
|
||||
Type * type;
|
||||
@@ -45,6 +46,9 @@ bool is_operand_value(Operand o) {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
bool is_operand_nil(Operand o) {
|
||||
return o.mode == Addressing_Value && o.type == t_untyped_nil;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user