gingerBill
0a920b5439
Fix map references in selector expressions
2020-03-25 15:55:00 +00:00
gingerBill
921ee82c97
Fix range statements for enumerated arrays without an element value but with an index
2020-03-25 15:11:35 +00:00
gingerBill
da703edbf4
Allow map indices to be referenced &m[key] and return a valid pointer if it exists otherwise nil
2020-03-24 15:48:31 +00:00
gingerBill
d57fbf48f0
Support by-reference semantics in for value_ref, index in &some_array and for key, value_ref in &some_map
2020-03-24 15:28:58 +00:00
gingerBill
5cbb266ef5
Change behaviour of switch v in &value to make v have by-reference semantics
2020-03-24 14:29:54 +00:00
gingerBill
dfc63dcb60
Fix for in for pointer to map expressions
2020-03-22 20:56:46 +00:00
gingerBill
8dba0e332c
Fix #590
2020-03-15 14:29:45 +00:00
gingerBill
3951b93d0a
Fix branch statements within inline for blocks (partial hack)
2020-03-15 14:27:54 +00:00
gingerBill
10bac2445b
Fix ir_print for byval types
2020-03-13 16:48:10 +00:00
gingerBill
06e364b9bd
Apply byval to sret for System V ABI
2020-03-13 08:52:23 +00:00
gingerBill
ce90509a07
Add initial -mem2reg pass to opt
2020-03-13 00:04:03 +00:00
gingerBill
a0d0e93475
Fix os.read_entire_file
2020-03-12 23:45:46 +00:00
gingerBill
2ce1f4ba9f
Revert os_windows.odin behaviour
2020-03-12 23:37:24 +00:00
gingerBill
a985449c31
Fix os_windows.h
2020-03-12 23:24:30 +00:00
gingerBill
6abc93ad84
Fix os.read for windows
2020-03-12 23:22:01 +00:00
gingerBill
a9bc07dbff
Merge pull request #586 from Tetralux/fix-reading
...
Fix os.read / os.read_entire_file on Windows
2020-03-12 22:35:12 +00:00
gingerBill
da283d5a7f
Add byval
2020-03-12 22:33:49 +00:00
Tetralux
1181d7cf90
Fix os.read / os.read_entire_file
...
- DWORDs are NOT i32
- os.read didn't correctly read as much as it could
2020-03-12 22:31:00 +00:00
gingerBill
2a2d3273ea
Add @require for global variables
2020-03-12 14:40:13 +00:00
gingerBill
e0a370f8f1
Remove adding to path in shell.bat
2020-03-08 10:12:56 +00:00
gingerBill
4cf70f360b
Add clone for ast.Ternary_If_Expr and ast.Ternary_When_Expr
2020-03-07 21:41:27 +00:00
gingerBill
a83d9f59f6
Fix typo in parser.odin
2020-03-07 21:12:52 +00:00
gingerBill
5d14189a18
Merge branch 'master' of https://github.com/odin-lang/Odin
2020-03-07 16:20:04 +00:00
gingerBill
fb686bdebd
Remove the need for parapoly to print an enum as a string
2020-03-07 16:19:55 +00:00
gingerBill
19b9cb7524
Merge pull request #575 from Tetralux/patch-2
...
Fix mem.align_backward when pointer is already aligned
2020-03-07 10:46:19 +00:00
gingerBill
4ee936ab8d
Merge pull request #581 from terickson001/linux_stat_fix
...
Linux stat fix
2020-03-06 15:42:05 +00:00
gingerBill
0c21939600
Merge pull request #579 from powerc9000/patch-1
...
Fix issues with stat struct.
2020-03-06 15:41:54 +00:00
Tyler Erickson
f6f2ab2f25
Fixed bad merge
2020-03-05 19:29:32 -08:00
Tyler Erickson
9d163fede8
Merge branch 'master' of https://github.com/odin-lang/Odin into linux_stat_fix
2020-03-05 16:52:34 -08:00
Tyler Erickson
bb026c99a9
Merged with master
2020-03-05 16:49:53 -08:00
gingerBill
c213d72ec6
Fix #580 defer bug
2020-03-05 20:58:59 +00:00
gingerBill
01b1385672
Disable tmp_block behaviour for ir_find_or_generate_context_ptr
2020-03-05 20:36:53 +00:00
gingerBill
e92fdb4a99
x if cond else y and x when cond else y expressions
2020-03-05 20:34:30 +00:00
Tyler Erickson
2817bab494
Fix os_linux stat
2020-03-05 12:13:22 -08:00
gingerBill
2fe0eaf2ad
Fix formatting
2020-03-04 13:10:39 +00:00
Clay Murray
85f2f4aa88
Fix issues with stat struct.
...
The stat struct was the format for the 64 bit version of stat. So we need to call stat64 to get the proper data.
Also we need to use _File_Time instead of File_Time because it is a compound value.
These changes were tested and work on my computer, MacOS 64 bit.
2020-03-03 19:42:20 -07:00
gingerBill
3f63e12198
Add -subsystem:console and -subsystem:windows flags for windows
2020-03-02 18:54:56 +00:00
gingerBill
408fa027af
Merge pull request #576 from Tetralux/patch-5
...
Fix encoding/base64 encoding null bytes incorrectly
2020-02-29 09:53:55 +00:00
gingerBill
5e903ed2ff
Merge pull request #537 from Tetralux/fix-heap-alloc
...
Fix heap allocator alignment on all platforms
2020-02-29 09:49:24 +00:00
gingerBill
ce20604e3c
Fix #578
2020-02-29 09:35:41 +00:00
Tetralux
92e1c71dd6
Fix encoding/base64 encoding null bytes incorrectly
...
Fixes #574 .
Thanks @jroatch!
2020-02-28 14:52:16 +00:00
Tetralux
0190f90979
Fix mem.align_backward when pointer is already aligned
2020-02-28 12:22:30 +00:00
gingerBill
3d74c2f6c0
Add proc(#const x: Type) to enforce a constant parameter (but not polymorphic) to a procedure
2020-02-26 22:53:40 +00:00
gingerBill
1596bca92d
Add intrinsics.cpu_relax
2020-02-26 22:29:12 +00:00
gingerBill
8f42958ba3
Fix __dynamic_array_reserve
2020-02-26 12:58:22 +00:00
gingerBill
4d7270cec9
Fix __dynamic_array_reserve to allow for zero sized elements
2020-02-26 12:55:56 +00:00
gingerBill
15f5c85379
Fix comparison against nil for union #maybe pointers
2020-02-23 10:55:09 +00:00
gingerBill
10fe5e97b3
Merge pull request #541 from Tetralux/getcwd
...
Add os.get_current_directory / os.set_current_directory
2020-02-23 10:39:21 +00:00
gingerBill
5073fcd39e
Improve error message on using with procedure parameters #568
2020-02-23 10:37:27 +00:00
gingerBill
a72ac6f841
Fix #572
2020-02-23 10:26:49 +00:00