Laytan Laats
50ded324e0
move va_list into core:c
2024-03-01 20:30:19 +01:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
Laytan Laats
ce8801c37f
c/libc: add to_stream proc
...
Adds the `to_stream` procedure to `core:c/libc` to improve usability of
the core collection when you have to use libc.
2024-01-08 19:20:06 +01:00
gingerBill
3baf8d92c3
Add assert to disallow -no-crt when importing core:c/libc
2023-11-23 01:20:19 +00:00
reluctant-git-user
496765c043
Update stdio.odin
...
snprintf() prototype fix
2023-10-15 17:09:41 +03:00
gingerBill
2cc22d118d
Require parentheses for #align(N)
2023-08-15 14:55:02 +01:00
gingerBill
49ab935ae9
Disallow for in in favour of for _ in
2023-08-08 14:56:12 +01:00
gingerBill
9b54b99bf6
Use positional and named arguments within the core library
2023-06-21 01:17:05 +01:00
gingerBill
e05944601a
Minor fixes
2023-03-16 13:35:38 +00:00
gingerBill
d085283f20
Fix cnd_timedwait
2023-01-16 15:32:23 +00:00
Julian Fondren
9f55404845
fix core:c/libc.errno link_name for Linux and FreeBSD
...
Although the FreeBSD link matches Darwin, its EILSEQ still matches Linux.
Confirmed with the following program:
```odin
package main
import "core:c/libc"
main :: proc() {
libc.printf("%d\n", libc.errno()^) // 0
_ = libc.fopen("nonexistent file", "r")
libc.printf("%d\n", libc.errno()^) // 2
}
```
on Linux:
Odin: dev-2022-10:075040ae
OS: Manjaro Linux, Linux 5.10.147-1-MANJARO
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
RAM: 15953 MiB
and FreeBSD:
Odin: dev-2022-10:075040ae
OS: FreeBSD: Unknown
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
RAM: 990 MiB
FreeBSD uname -r: 13.0-RELEASE
2022-10-17 22:32:10 -05:00
gingerBill
35ee7f3cba
Add system:legacy_stdio_definitions.lib to .odin for Windows
2022-10-02 11:58:17 +01:00
gingerBill
eb0d7465e2
Fix libc.aligned_alloc for Windows (thanks Microsoft(!))
2022-09-22 01:22:48 +01:00
gingerBill
07d798c61a
Fix libc.aligned_alloc on Windows
2022-09-22 01:17:58 +01:00
13419596
4b4c2a2abd
Correcting libc pow bindings
...
Adding tests that libc pow(f) functions
- have two arguments
- behave as expected for simple inputs.
2022-09-21 17:15:28 -05:00
cui fliter
dc8b7a0eb8
fix some typos
...
Signed-off-by: cui fliter <imcusg@gmail.com >
2022-08-05 20:10:20 +08:00
gingerBill
2ae5bf4395
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-07-14 11:56:13 +01:00
gingerBill
f28547cae1
Fix libc.putchar
2022-07-14 11:56:05 +01:00
gingerBill
c90b7c38f1
Rename strings.Builder procedures to be consistent with the rest of the core library
2022-07-11 11:50:08 +01:00
gingerBill
d7195b0798
Add missing commas
2022-06-13 11:12:31 +01:00
Tetralux
06884da42b
[path/filepath] Change join() to take a []string instead of varargs
...
This makes passing an allocator easier, as you no longer have to resort to
named arguments:
Before:
`join(a, b, c)` became `join(elems={a, b, c}, allocator=ally)`
After:
`join({a, b, c})` becomes `join({a, b, c}, ally)`
2022-05-21 04:48:06 +00:00
Jeroen van Rijn
e85f1dd9fb
Fix is* proc in libc.
2022-05-20 20:00:27 +02:00
gingerBill
a232c0888c
intrinsics.atomic_type_is_lock_free
2022-04-02 14:38:42 +01:00
gingerBill
9f2d710c35
Change intrinsics.Atomic_Memory_Order fields to use Ada_Case rather than snake_case
2022-03-31 12:57:24 +01:00
gingerBill
1eac3482a6
Add checks for memory ordering on fences
2022-03-31 01:01:51 +01:00
gingerBill
ba1930eb01
Update core to use new atomic intrinsics
2022-03-31 00:22:54 +01:00
gingerBill
743a461aa9
Merge pull request #1614 from semarie/openbsd-fpos_t
...
use distinct type for fpos_t on OpenBSD
2022-03-14 11:11:29 +00:00
Sébastien Marie
ca67cf032c
freebsd_amd64 support
2022-03-13 11:42:42 +00:00
Sébastien Marie
f7c8b40ea2
use distinct type for fpos_t on OpenBSD
2022-03-12 09:40:55 +00:00
Sébastien Marie
5676c9e7eb
initial OpenBSD support
2022-02-25 08:49:25 +00:00
gingerBill
f5697dd7f2
Merge branch 'master' into odin-global-constants-as-enums
2022-02-15 15:47:24 +00:00
Dale Weiler
a5e1693774
Fix fread definition
2022-01-23 03:12:59 -05: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
Tyler Erickson
8c9597b24b
add schar to core:c and core:c/libc
2022-01-04 16:45:16 -08:00
gingerBill
72862ce30d
Fix minor typo in c/frontend/preprocess
2022-01-04 11:48:18 +00:00
gingerBill
f09638318f
Add support for darwin to core:c/libc
2021-11-16 21:19:08 +00:00
gingerBill
94a27224b2
Deprecate strings.write_quoted_* in favour of io.write_quoted_*; make reflect.write_type a little more robust with io.Error handling
2021-09-29 13:42:58 +01:00
gingerBill
bfc92d0aaf
Make runtime.memset use int for the length from uint
2021-09-23 23:43:29 +01:00
Jeroen van Rijn
eb9665f836
fix mem.new_clone
2021-09-19 22:19:06 +02:00
Jeroen van Rijn
bf15e63130
Revert "Merge pull request #1177 from Kelimion/new_clone"
...
This reverts commit efa513262e , reversing
changes made to daccfca11d .
2021-09-19 22:16:02 +02:00
Jeroen van Rijn
64ce55944a
fix mem.new_clone
2021-09-19 22:10:19 +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
b712c84afb
Fix typo
2021-09-10 16:37:43 +01:00
gingerBill
9980f81062
Add other constants to c and libc
2021-09-10 16:14:39 +01:00
gingerBill
297cdde144
Change defaults of c.int_fast16_t on other platforms
2021-09-10 16:08:39 +01:00
gingerBill
12af657369
Unify memset usage across platforms and core:c/libc
2021-09-10 15:59:14 +01:00
gingerBill
99df0f1b12
libc changes: unify c and libc types; Add [^]T where appropriate
2021-09-10 15:41:51 +01:00
gingerBill
bff66ff600
Remove unnecessary operations
2021-09-08 19:07:25 +01:00
gingerBill
0434281f73
Strip semicolons; Make odin strip-semicolon replace .. with ..= if used as a binary operator
2021-09-06 20:15:59 +01:00