Commit Graph

  • e935f8e2ff Fixed os_linux and os_x read_entire_file function not null-terminating data. Zac Pierson 2017-03-21 16:00:11 -05:00
  • 690c682847 Remember kids, always test your code. There was a variable name colission in dlsym D: Zac Pierson 2017-03-21 14:57:09 -05:00
  • f541dd40db Fixed some memory leaks and made os_* use strings.odin Zac Pierson 2017-03-21 14:54:29 -05:00
  • c7bb861d3c Merge https://github.com/gingerBill/Odin "Fixed" a proc overload bug. Still needs a *real* fix. Zac Pierson 2017-03-21 14:16:42 -05:00
  • 188b290dd5 Update version number Ginger Bill 2017-03-19 21:03:56 +00:00
  • c6ff961088 Add base 12 in strconv.odin Ginger Bill 2017-03-19 21:03:29 +00:00
  • c26990c22d Multiple type cases for match in Ginger Bill 2017-03-19 20:55:39 +00:00
  • c34d839f9f Add named branches for match statements Ginger Bill 2017-03-19 17:36:08 +00:00
  • 5562364a98 Add branch labels for loops; using list Ginger Bill 2017-03-19 16:59:11 +00:00
  • 32150e401e Update gb.h Ginger Bill 2017-03-17 12:30:59 +00:00
  • aaec8bf423 windows.odin TYPE_NAME to Type_Name; More SSA work and SSA printing for debugging Ginger Bill 2017-03-12 16:42:51 +00:00
  • 0fcbda951a Finally fix signed integer conversion and printing Ginger Bill 2017-03-10 10:34:25 +00:00
  • e2734a2dc6 Begin work on the custom backend Ginger Bill 2017-03-05 21:22:33 +00:00
  • 5adfbec847 Refactoring of code: remove make prefix on many procedures Ginger Bill 2017-03-05 15:03:01 +00:00
  • 4ef4605d6d Move files to misc Ginger Bill 2017-03-03 11:20:22 +00:00
  • 2aa402f462 Cleanup root directory Ginger Bill 2017-03-03 11:19:12 +00:00
  • 00f6bee454 Update README.md Ginger Bill 2017-03-03 11:15:34 +00:00
  • 6e1864d21c Remove all binaries llvm-4.0-windows Ginger Bill 2017-03-03 11:13:05 +00:00
  • fb2d611dcd Update llvm binaries to latest version; Update utf8proc; Ginger Bill 2017-03-03 11:09:37 +00:00
  • d890731716 Merge https://github.com/gingerBill/Odin Zac Pierson 2017-03-02 15:41:19 -06:00
  • 9e8c9be1ea Allow pointers to append; Fix strconv stuff; new_slice allows for capacity Ginger Bill 2017-03-02 19:24:34 +00:00
  • 231ea8b026 Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-27 23:25:47 -06:00
  • 9bc37f4400 fmt.odin uses ^[]byte rather than custom Buffer type Ginger Bill 2017-02-26 15:34:02 +00:00
  • f29e303ce7 Slices now have a capacity. Ginger Bill 2017-02-26 15:14:08 +00:00
  • 3c9143957c Ellipsis is now just ..; Remove half-closed range operator and treat all of them as half-closed; slice expression uses ..; Ginger Bill 2017-02-26 14:19:03 +00:00
  • 18b3c0b2fc Fix fmt integer width printing Ginger Bill 2017-02-26 09:42:24 +00:00
  • c59f6b7d0b ++ -- statements; add strconv.odin (and replace some of the fmt procs); Fix ~ on 64 bit constants; Fix integer casts from smaller to larger size Ginger Bill 2017-02-26 00:44:26 +00:00
  • 5bbdb3a3a3 Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-25 02:07:58 -06:00
  • 67ed8a9a4a Fix Tuple type info bug Caused by not having type safe tagged unions :P (Silly C) Ginger Bill 2017-02-24 22:56:34 +00:00
  • 27aa07307b Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-24 15:53:56 -06:00
  • 4cc4d604bc Add core/strings.odin Ginger Bill 2017-02-24 21:11:05 +00:00
  • eec709c545 Fix fmt.odin printing enums Ginger Bill 2017-02-24 20:55:35 +00:00
  • 9b2f5c359a v0.1.1 v0.1.1 Ginger Bill 2017-02-24 19:48:18 +00:00
  • a982c51c30 Fix minor bugs in IR for slices Ginger Bill 2017-02-23 22:22:56 +00:00
  • 20b9f1ff59 Added getenv to the *nix stdlib. Zac Pierson 2017-02-23 15:28:25 -06:00
  • 561c583b3f Merge https://github.com/gingerBill/Odin Zac Pierson 2017-02-22 10:57:30 -06:00
  • 047c0e4bcc A decent union type with common fields and variants Ginger Bill 2017-02-21 21:21:54 +00:00
  • 8d5896ab7e Merge https://github.com/gingerBill/Odin Zac Pierson 2017-02-20 10:14:52 -06:00
  • a94dfdf21d Begin changing union syntax Ginger Bill 2017-02-19 19:55:19 +00:00
  • c0d5237b75 Unexported struct fields on selectors Ginger Bill 2017-02-19 12:47:02 +00:00
  • 6fdcbefe5d Unexported struct fields Ginger Bill 2017-02-19 12:38:49 +00:00
  • 3cec2550d9 delete for maps Ginger Bill 2017-02-19 11:50:42 +00:00
  • 758dd9ba16 Fix overloading bug due to #import .; Add sys/wgl.odin Ginger Bill 2017-02-19 11:35:33 +00:00
  • 0c37aa9ea0 Fix overloading bug due to comparison of named types Ginger Bill 2017-02-18 22:19:35 +00:00
  • 9ff474f387 Named return values but do not affect other declarations Ginger Bill 2017-02-18 12:02:11 +00:00
  • d2f9d20833 Change ternary expression precedence Ginger Bill 2017-02-18 10:41:48 +00:00
  • 802b1a70f8 Fixed an error in function naming in os_linux Zac Pierson 2017-02-15 11:20:11 -06:00
  • aaa4dd5c36 Merge https://github.com/gingerBill/odin Zac Pierson 2017-02-15 10:21:38 -06:00
  • 71100ed427 Ternary expression (removed if and block expression) Ginger Bill 2017-02-14 19:26:32 +00:00
  • 3ecf3505fd Ignore previous silly commit :P I shouldn't have move it Ginger Bill 2017-02-14 17:34:02 +00:00
  • daa1cd55a1 Move error handling for casting Ginger Bill 2017-02-14 17:33:11 +00:00
  • 2722de65b7 Prevent cast on pointer to union types Ginger Bill 2017-02-14 17:24:56 +00:00
  • 8b5e3428a1 Optional ok for union_cast (similar to map indices) Ginger Bill 2017-02-14 16:37:24 +00:00
  • d1f65097c4 Fix immutable rules; add some general documentation Ginger Bill 2017-02-14 15:19:29 +00:00
  • 74d15ab84b Reimplement immutable with different rules. Ginger Bill 2017-02-14 12:35:50 +00:00
  • 763cd2649d Fix index assignment rules for indirection Ginger Bill 2017-02-14 12:21:02 +00:00
  • 9d19ee7e4c Changed standard libraries for MacOS and Linux to be closer to os_windows. Zachary Pierson 2017-02-12 18:25:58 -06:00
  • 8df3175f10 Updated Linux standard library to convert c strs Zachary Pierson 2017-02-12 17:22:27 -06:00
  • ebb10e5597 One of the warning flags was misspelled. Oops! Zachary Pierson 2017-02-12 16:09:21 -06:00
  • 047f883078 Updated warning removal list, and made system_exec_command_line_app in main.c return the exit code. Zachary Pierson 2017-02-12 16:08:09 -06:00
  • 320c22e08a Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-12 16:04:13 -06:00
  • bd27c24fab Use a global to store the build context information Ginger Bill 2017-02-12 21:27:13 +00:00
  • 282f8bb06f Fix issue #23 Ginger Bill 2017-02-12 11:41:06 +00:00
  • b9ed546ce0 Record type field names Ginger Bill 2017-02-12 11:31:04 +00:00
  • a9398bf30f Tested MacOS. If a commit doesn't follow in 15 minutes, Linux works too! Zachary Pierson 2017-02-12 00:21:25 -06:00
  • 7829421085 Fixed Windows (updated gb.h) | Need to test on MacOS and Linux now! Zachary Pierson 2017-02-11 23:52:56 -06:00
  • c50aabd916 Merging from gingerBill's master Zachary Pierson 2017-02-11 23:35:07 -06:00
  • 3f3122bccc Temporary fix for an Odin bug. Zachary Pierson 2017-02-11 18:54:54 -06:00
  • fc1a006de1 Added support for reading files on MacOS and Linux Zachary Pierson 2017-02-11 17:24:47 -06:00
  • e1fdd675ce v0.1.0 Added: * Dynamic Arrays [...]Type * Dynamic Maps map[Key]Value * Dynamic array and map literals * Custom struct alignemnt struct #align 8 { bar: i8 } * Allow _ in numbers * Variadic append * fmt.sprint* * Entities prefixes with an underscore do not get exported on imports * Overloaded free for pointers, slices, strings, dynamic arrays, and dynamic maps * enum types have an implict names field, a []string of all the names in that enum v0.1.0 Ginger Bill 2017-02-11 21:20:57 +00:00
  • 754b368140 Added dynamic library loading to Linux and MacOS's standard libraries. Zachary Pierson 2017-02-11 15:09:53 -06:00
  • a49e888ce6 Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-11 13:48:16 -06:00
  • 4306345ff1 Dynamic array syntax [...]Type; make entities private with a prefix of _; fix extension checking Ginger Bill 2017-02-11 17:33:23 +00:00
  • 346aa5f71c Only check files that have been truly imported. Ginger Bill 2017-02-11 15:50:24 +00:00
  • 99c663d9f3 Questioning whether MacOS libraries should be .dylib or .so Zac Pierson 2017-02-11 01:10:03 -06:00
  • afac95e092 Oh, I left math.odin open when I merged gingerBill's changes. Oops. Updated to his version. Zachary Pierson 2017-02-11 00:33:12 -06:00
  • 05486f9fa3 I'm not sure what I changed here, to be honest. I've ctrl-z'd everything, but git's still complaining. Zachary Pierson 2017-02-11 00:30:04 -06:00
  • cad46ae51c Merge https://github.com/gingerBill/Odin Zachary Pierson 2017-02-10 23:41:23 -06:00
  • 3424b2badd Added ability to use -framework on MacOS Zachary Pierson 2017-02-10 23:33:30 -06:00
  • 73d6a55f5c Remove need for type keyword Ginger Bill 2017-02-10 16:12:14 +00:00
  • f18ae89931 Remove Maybe type; Enum names Ginger Bill 2017-02-10 14:59:18 +00:00
  • 3445a28c4a Code quality upkeep. Fixed a broken thread finding assembly instruction in gb.h Zachary Pierson 2017-02-09 01:40:45 -06:00
  • 7f6b83d50c Fixed gb.h - the file handle for /proc/cpuinfo is needed to read chars. Zac Pierson 2017-02-08 11:59:54 -06:00
  • 72d4bfb32a Merge https://github.com/gingerBill/Odin Zac Pierson 2017-02-08 11:50:33 -06:00
  • 37f7630a9e Updated README.md to reflect Linux's dependancy on clang for now. Zachary Pierson 2017-02-07 23:33:36 -06:00
  • 73c5c5d5d3 Linker on MacOS and GNU/Linux now includes foreign_system_libraries. Fixed foreign_system_library not respecting 'when' condition. Zachary Pierson 2017-02-07 23:21:52 -06:00
  • 584869730a Linux can build now! Woo! Zac Pierson 2017-02-07 15:07:20 -06:00
  • 90ab448bca Modified the test program to see where the compiler inserted the code. Zachary Pierson 2017-02-07 12:26:15 -06:00
  • 454d0b5cf5 Fix global maps and initialize the preload types before Ginger Bill 2017-02-07 18:13:37 +00:00
  • 8becbdc1b2 Added a very basic Linux standard library shamelessly stolen from the MacOS one. Made Linux (almost) work. The generated binaries segfault, but it's so close I can almost taste it. Zachary Pierson 2017-02-07 00:28:21 -06:00
  • eeeb90c441 MacOS is able to run Hello World! Zachary Pierson 2017-02-06 21:47:58 -06:00
  • 219ca0ac46 Map type info and fmt printing Ginger Bill 2017-02-07 00:10:58 +00:00
  • 5796c41357 map immutable fields: count, capacity, allocator Ginger Bill 2017-02-06 22:53:48 +00:00
  • 8cfae17535 map literals Ginger Bill 2017-02-06 22:19:32 +00:00
  • 6efd400c98 Updated build script in an attempt to track down a segfault. It's not helping, though. Zac Pierson 2017-02-06 15:45:51 -06:00
  • df78b8ad3e Make checking map key exists optional Ginger Bill 2017-02-06 21:31:27 +00:00
  • f11d73ffaa map string keys and for iterator Ginger Bill 2017-02-06 20:54:51 +00:00
  • c126339090 dynamic map insertion and lookup Ginger Bill 2017-02-06 20:23:51 +00:00
  • 5cfa4ba580 Added Linux functions throughout the code, but it segfaults. Zac Pierson 2017-02-06 12:26:41 -06:00
  • 9f2d9b596d Nearly implement dynamics map, missing insertion Ginger Bill 2017-02-06 01:21:23 +00:00