Commit Graph

45 Commits

Author SHA1 Message Date
gingerBill
4035fec784 Add more uses of or_return 2021-08-15 18:13:56 +01:00
gingerBill
86649e6b44 Core library clean up: Make range expressions more consistent and replace uses of .. with ..= 2021-06-14 11:15:25 +01:00
gingerBill
b9888f8f68 Fix linalg.transpose 2021-06-03 10:05:05 +01:00
gingerBill
32cda5d56a Or did it?! 2021-06-02 22:12:38 +01:00
gingerBill
a4d9847f45 FINALLY fix lazy_buffer_destroy 2021-06-02 22:12:20 +01:00
gingerBill
8aa6d70dec Fix filepath.lazy_buffer 2021-06-02 12:21:20 +01:00
gingerBill
ea6b222430 Clean up filepath.lazy_buffer memory leak 2021-06-02 12:19:25 +01:00
jockus
b110153b51 Fix accidental removal of newline 2021-05-27 12:04:24 +01:00
jockus
b261937233 Remove accidental core:fmt include in path/filepath 2021-05-27 12:03:37 +01:00
jockus
e8aa767c8d Fix deleting substring in filepath.release 2021-05-27 12:01:13 +01:00
André
22867ec6f0 fix variable name in path_unix
replace the immutable variable "path" (that is a parameter) with a new variable "path_str"
2021-04-20 22:09:10 +02:00
gingerBill
e3ee005404 Clean up path_unix.odin to make it not depend on package os 2021-04-11 19:05:01 +01:00
gingerBill
a2557142cc Update package os for package path/filepath support on macOS 2021-02-27 11:30:43 +00:00
gingerBill
aa93305015 Replace usage of inline proc with #force_inline proc in the core library 2021-02-23 16:14:47 +00:00
Luka Aleksić
92e23ec397 * Add some procedures to path_unix to mirror the path_windows API
* Add files stat_linux and dir_linux to mirror the stat/dir_windows API
* Add helper functions to os_linux that are used by the above
2021-01-21 20:20:38 +01:00
gingerBill
3bcccf88d5 vet all core packages 2021-01-09 23:43:34 +00:00
gingerBill
f6e2d74d10 Keep -vet happy 2020-12-14 14:36:45 +00:00
gingerBill
9408eb9580 Update odin doc to support multiple package outputs by passing multiple paths; Replace -all with -short
Example:
odin doc core/path core/path/filepath
2020-11-18 23:22:27 +00:00
gingerBill
11577db6a8 Minor fixes 2020-11-17 16:36:33 +00:00
gingerBill
6ea000b648 Merge pull request #752 from powerc9000/patch-4
Fix a few bugs in path based code.
2020-10-24 01:28:15 +01:00
gingerBill
41f6a684e1 Rename slice.sort_proc to slice.sort_by; add slice.sort_by_key 2020-10-16 14:55:36 +01:00
gingerBill
7fc3030c63 Update path/filepath to use new slice.sort; Add sort.reverse_interface 2020-10-14 20:47:13 +01:00
gingerBill
fa33476438 Improve default temp allocator; Fix filepath.abs behaviour on Windows 2020-10-13 14:40:13 +01:00
Clay Murray
062ae56f25 Fix a few bugs in path based code.
Trying to use path.dir and path.rel I found these two issues with the implementation.
2020-10-07 16:32:00 -06:00
gingerBill
e95addb1f4 Revert user_data addition 2020-09-28 12:40:48 +01:00
gingerBill
d343e47a86 Add user_data parameter to filepath.walk and filepath.Walk_Proc 2020-09-28 12:39:34 +01:00
gingerBill
1d21740afb Add filepath.walk 2020-09-28 12:29:14 +01:00
gingerBill
9ae3879956 Add os.stat, os.lstat, os.fstat, filepath.walk 2020-09-28 12:28:02 +01:00
gingerBill
0bd38ba1f6 Add some comments to explain what the differences between packages path and path/filepath 2020-09-26 20:17:54 +01:00
gingerBill
49eaeccd84 Remove OS specific stuff from package path 2020-09-26 20:02:24 +01:00
gingerBill
840af6825a Update packages os, path, and filepath 2020-09-26 16:02:03 +01:00
gingerBill
8cc5cd1494 Add package path/filepath; Add os.stat for windows (TODO: unix) 2020-09-25 20:20:53 +01:00
gingerBill
b42c7f9161 Update package path and fix bugs; add path.match which uses shell pattern matching 2020-09-25 11:43:51 +01:00
gingerBill
fc4fdd588e Remove usage of do in core library 2020-09-23 17:17:14 +01:00
Christian Seibold
577be4a8ae Get Odin compiling and produced exe's running on FreeBSD 2020-09-14 15:22:35 -05:00
jockus
8de70ce73d Fix path.name failing to remove extension 2020-08-26 17:32:47 +01:00
gingerBill
b4e976364a Add path_unix.odin 2020-07-10 08:42:59 +01:00
gingerBill
642afa4f88 Fix new package path 2020-07-10 08:42:22 +01:00
Brendan Punsky
b6ea7b7418 Fix temp allocation on linux 2019-03-18 17:19:21 -04:00
Brendan Punsky
7426f3b092 Fix null termination detection, win32 namespacing 2019-03-18 17:11:17 -04:00
Brendan Punsky
299c299dff Add linux support 2019-03-18 17:07:36 -04:00
Brendan Punsky
775b544326 Update path_windows.odin
Updated `long`, `short`, `full`, `current` to be cleaner, use `win32` for platform procs, and `strings.trim_null` to clean resulting strings
2019-03-13 16:40:26 -04:00
Brendan Punsky
da26e14959 Update path.odin
Fix allocator usage for `rel_current` and `rel_between`
2019-03-13 16:38:02 -04:00
Brendan Punsky
222e5c8ae9 Delete path_linux.odin
Delete useless path_linux.odin stub
2019-02-14 20:25:13 -05:00
Brendan Punsky
0777351482 Added path lib "core:path", as well as single- and multiple-splitset string split proc variants to "core:string" 2019-02-12 17:27:54 -05:00