mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Remove "pure" and "pure_none" calling conventions
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ RAD_PER_DEG :: TAU/360.0;
|
||||
DEG_PER_RAD :: 360.0/TAU;
|
||||
|
||||
|
||||
@(default_calling_convention="pure_none")
|
||||
@(default_calling_convention="none")
|
||||
foreign _ {
|
||||
@(link_name="llvm.sqrt.f32")
|
||||
sqrt_f32 :: proc(x: f32) -> f32 ---;
|
||||
|
||||
@@ -22,9 +22,7 @@ Proc_Calling_Convention :: enum i32 {
|
||||
C_Decl,
|
||||
Std_Call,
|
||||
Fast_Call,
|
||||
Pure,
|
||||
None,
|
||||
Pure_None,
|
||||
|
||||
Foreign_Block_Default = -1,
|
||||
}
|
||||
|
||||
@@ -1907,13 +1907,8 @@ string_to_calling_convention :: proc(s: string) -> ast.Proc_Calling_Convention {
|
||||
case "fast", "fastcall":
|
||||
return .Fast_Call;
|
||||
|
||||
case "pure":
|
||||
return .Pure;
|
||||
case "none":
|
||||
return .None;
|
||||
case "pure_none":
|
||||
return .Pure_None;
|
||||
|
||||
}
|
||||
return .Invalid;
|
||||
}
|
||||
|
||||
@@ -25,13 +25,11 @@ Calling_Convention :: enum u8 {
|
||||
Invalid = 0,
|
||||
Odin = 1,
|
||||
Contextless = 2,
|
||||
Pure = 3,
|
||||
CDecl = 4,
|
||||
Std_Call = 5,
|
||||
Fast_Call = 6,
|
||||
CDecl = 3,
|
||||
Std_Call = 4,
|
||||
Fast_Call = 5,
|
||||
|
||||
None = 7,
|
||||
Pure_None = 8,
|
||||
None = 6,
|
||||
}
|
||||
|
||||
Type_Info_Enum_Value :: distinct i64;
|
||||
|
||||
Reference in New Issue
Block a user