Commit Graph

1194 Commits

Author SHA1 Message Date
gingerBill
2958c1d6aa Add new shorthand 2022-02-13 16:56:27 +00:00
gingerBill
9dc83bc1b3 Add more methods 2022-02-13 16:32:31 +00:00
gingerBill
88b1b2c629 Correct types 2022-02-13 15:11:45 +00:00
gingerBill
23bc643a81 Merge branch 'objc-intrinsics' of https://github.com/odin-lang/Odin into objc-intrinsics 2022-02-13 12:01:19 +00:00
gingerBill
41854bacf5 Add utility classes for dealing with Windows
Most for GLFW and SDL only
2022-02-13 11:54:40 +00:00
gingerBill
8966294823 Correct method name 2022-02-12 22:03:15 +00:00
gingerBill
e2aa8f426d Improve type hierarchy and method names 2022-02-12 21:45:34 +00:00
gingerBill
39a0f8c96a Use distinct array types 2022-02-12 21:28:56 +00:00
gingerBill
5fe9aa919b Correct types in methods 2022-02-12 21:24:28 +00:00
gingerBill
ff5d6a994b Move vendor:Metal to core:sys/darwin/Metal 2022-02-12 17:59:40 +00:00
gingerBill
f8afda3b22 Add more objc attributes 2022-02-11 22:54:51 +00:00
gingerBill
c3809d7b84 Fix typo 2022-02-09 21:46:26 +00:00
gingerBill
42a1c58a80 Update Foundation linking 2022-02-09 21:42:20 +00:00
gingerBill
b6abaf739c Add missing calls for Object; Add scoped_autoreleasepool 2022-02-09 12:29:52 +00:00
gingerBill
ef98e92e8d Remove unneeded file 2022-02-09 12:23:41 +00:00
gingerBill
768c2684d0 Add NSBundle, NSError, NSEnumerator 2022-02-09 12:19:59 +00:00
gingerBill
5f2514db63 Add NSNumber and NSURL 2022-02-09 11:50:11 +00:00
gingerBill
b95ade40c0 Begin work on core:sys/darwin/Foundation 2022-02-09 00:19:20 +00:00
Platin21
1243b1a58c Fixed cyclic imports which where not needed 2022-01-23 23:16:57 +01:00
Platin21
ab3bae5c02 Fixed package name 2022-01-23 23:14:46 +01:00
Platin21
540c5400a0 Adds several system calls and the beginning of odin wrappers for them
This also adds all systemcall numbers from the xnu kernel / and additional helpers for some of the calls to make it easier to call them from odin
2022-01-23 23:13:32 +01:00
gingerBill
3d7d347192 Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings 2022-01-20 19:56:05 +00:00
gingerBill
29ebe0c3c9 Rename architecture 386 to i386 2022-01-15 17:40:00 +00:00
CiD-
38e5e13b3f add more Linux syscalls 2022-01-03 09:24:39 -05:00
Yawning Angel
61c581baeb core/sys/unix: Add syscalls_linux.odin
Linux is in the unfortunate situation where the system call number is
architecture specific.  This consolidates the system call number
definitions in a single location, adds some wrappers, and hopefully
fixes the existing non-portable invocations of the syscall intrinsic.
2021-11-17 14:00:00 +00:00
Carwyn Nelson
c67c0789eb Add socket() function to windows ws32 bindings
It looks like this was missing from the winsock bindings. Odin contains
WSASocketW which I assume would also work for obtaining a socket, but
socket() is distinct and is what I was using, so I assume others will
want it too.
2021-11-10 15:55:50 +00:00
Carwyn Nelson
d8b1523161 Fix the windows binding for getaddrinfo
getaddrinfo should take a double pointer to ADDRINFOA instead of a single pointer. If you call the binding in its current state you will not get back a valid ADDRINFOA struct.

I have also changed the `node` and `service` params to be cstring to avoid having to do `transmute(u8) value`.
2021-11-10 15:15:40 +00:00
gingerBill
c13c30b466 Update wasi to use string and slice types 2021-10-31 15:21:39 +00:00
gingerBill
0c1675c8b0 Correct string usage 2021-10-31 15:01:13 +00:00
gingerBill
906c7ef0fc Correct wasi linking 2021-10-31 13:04:28 +00:00
gingerBill
c6e08b059b Move sys/wasi to sys/wasm/wasi 2021-10-31 12:30:10 +00:00
gingerBill
8a2078aa90 Add core:sys/wasi 2021-10-31 01:06:27 +00:00
gingerBill
79ad6f4564 Remove assert 2021-10-25 01:02:38 +01:00
Jonas Welle
7c26b0abdb add GetModuleHandleA 2021-10-16 10:43:33 -04:00
gingerBill
0d258e8b55 Make many package time procedures use "contextless" calling convention 2021-10-11 20:08:38 +01:00
Josh Engler
15594706c9 Additional win32 bindings. 2021-10-05 19:09:20 -04:00
gingerBill
ceebd7b23c Correct context.allocator usage 2021-09-19 11:59:31 +01:00
gingerBill
f38b7ebf42 Begin adding vendor:miniaudio 2021-09-17 12:57:52 +01:00
Jeroen van Rijn
a9f4c90c79 sys: Add Windows Bluetooth APIs. 2021-09-13 14:31:52 +02:00
gingerBill
344abf2cb2 Make core and vendor adhere to -vet, -strict-style, and -disallow-do 2021-09-11 16:40:19 +01:00
gingerBill
e5fbf45c42 Add vendor:raylib (core only) 2021-09-08 18:04:05 +01:00
gingerBill
ca33cb990b Strip semicolons in core which were missing 2021-09-08 13:12:38 +01:00
gingerBill
720884e0f1 Strip even more semicolons if followed by a } or ) on the same line 2021-08-31 23:47:57 +01:00
gingerBill
f57201bbd1 Remove unneeded semicolons from the core library 2021-08-31 22:32:53 +01:00
gingerBill
251da264ed Remove unneeded semicolons from the core library 2021-08-31 22:21:13 +01:00
gingerBill
445ed9be2b Use multi-pointers when appropriate 2021-08-22 12:54:04 +01:00
gingerBill
0d257c61cd Disallow using on an enum declaration. 2021-08-05 17:46:42 +01:00
gingerBill
9cd5ea59dd Big simplification and improvement of the entity collection system, reducing unneeded steps for packages 2021-07-27 20:45:50 +01:00
Jeroen van Rijn
5dfff51a40 Allow core:sys/windows to build on Windows only 2021-07-15 12:13:57 +02:00
Jeroen van Rijn
038337fd07 Port core:sys/win32 tests to test runner. 2021-05-02 00:10:00 +02:00