aboutsummaryrefslogtreecommitdiff
path: root/core/c
Commit message (Collapse)AuthorAgeFilesLines
* `Empty` -> `Unsupported`bill/io-error-changesgingerBill2025-11-141-1/+1
|
* Fix #5852Jeroen van Rijn2025-10-271-1/+10
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-092-2/+2
|
* More package linesJeroen van Rijn2025-10-092-2/+2
|
* Add package line docs to c and libcgingerBill2025-10-092-0/+3
|
* Fix various foreign signaturesHarold Brenes2025-09-291-1/+1
|
* `for in string16`; Support `string16` across coregingerBill2025-08-021-8/+8
|
* Replace system:System.framework imports with system:SystemHarold Brenes2025-07-1314-14/+14
| | | | This makes the linker work for both macOS and iOS targets
* put FILE in core:c and use that in bindings to fix wasmLaytan Laats2025-01-272-1/+4
|
* Haiku: small fixes across coreavanspector2025-01-101-0/+15
|
* Haiku: more posixavanspector2025-01-101-1/+1
|
* fix haikuavanspector2024-12-202-8/+9
|
* Remove `core:c/frontend`gingerBill2024-11-248-2740/+0
|
* sys/posix: impl rest of linux, impl some of WindowsLaytan Laats2024-10-282-2/+135
|
* fix(core:{odin,c}/tokenizer): Don't error on valid \uE000 codepointIllusionMan12122024-10-131-1/+1
|
* Merge branch 'odin-lang:master' into masterAntonino Simone Di Stefano2024-09-226-2/+45
|\
| * Fix more JS stuffgingerBill2024-09-223-2/+36
| |
| * Clean-up `libc` usagegingerBill2024-09-224-2/+11
| |
* | Fix type in parameter of atomic_compare_exchange_weak_explicitAntonino Simone Di Stefano2024-09-211-1/+1
|/ | | | desited -> desired
* c/libc: fix time link nameLaytan Laats2024-08-311-1/+1
|
* Add missing `io.Stream_Mode` responsesFeoramund2024-08-281-1/+1
|
* posix: add packageLaytan Laats2024-08-147-26/+97
|
* Merge Darwin signals into other UNIX-likesFeoramund2024-06-281-14/+1
| | | | They're all the same.
* Fix `STDIN`, `STDOUT`, `STDERR` handles for BSDsFeoramund2024-06-021-6/+8
| | | | | | | | | | | Tested on FreeBSD 14.0 and NetBSD 10.0 OpenBSD is untested, but link names were sourced from: https://github.com/openbsd/src/blob/master/include/stdio.h According to this, OpenBSD shares the same layout as NetBSD. FreeBSD has the same as Darwin in this regard.
* Share `libc` signal definitions with more platformsFeoramund2024-06-021-1/+1
| | | | | | | | | I confirmed that these 3 platforms share the same signal definitions from these sources. Haiku: https://github.com/haiku/haiku/blob/master/headers/posix/signal.h OpenBSD: https://github.com/openbsd/src/blob/master/sys/sys/signal.h NetBSD: http://fxr.watson.org/fxr/source/sys/signal.h?v=NETBSD
* Merge branch 'master' into netbsdAndreas T Jonsson2024-04-251-29/+26
|\
| * Fix the format of some `doc.odin` files of the `core` library which did not ↵Maurizio M. Gavioli2024-04-141-29/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | made into the documentation. `c/frontend/tokenizer`: add proper "Example:" header to demo example code, removed empty lines. `container/bit_array`: moved comment before package; aligned narrative lines to left margin; converted case lines into bulleted lines ("- "); converted individual examples to single-tab-indented preformatted text. `dynlib`: removed "//+build ignore" line; added newline at EOF. `image/netpmb`: converted indented lines of "Reading", "Wrting" and "Some syntax..." into bulleted lists; "Formats" indented lines kept as they are as the preformatted text seems relevant to keep the alignments; doubly indented lines kept as single-indented to keep them different (as the format does not allow for two-level bulleted lists); removed empy lines. `os/os2`: WIP, not modified `sys/info`: removed "//+build ignore" line; converted tab-indented initial description into regular left-margin comment; moved uncommented sample code within the doc comment as an "Example:"; moved simple- and double-tabbed separate comments with sample Windows and macOS outputs within the doc comment as bulleted headlines with preformatted output listings; removed now empty comments and blank lines after the package line. `text/i18n`: removed "//+build ignore" line; moved the pacakge line at the end; de-indented the tab-indented introductory narrative; moved sample code comments into the doc comment as tab-indented code with a proper "Example:" heading; removed "```" MD attempts at code formatting. `text/table`: unindented the comment lines of a descriptive kind; headlines of major subdivisions are marked as bold; kept code samples as tab-indented preformatted text (as there are several of them, the standard "Example:" and "Output:" headings cannot be used) removing the "```" MD attempts at code formatting; removed in-between blank lines.
* | More std lib fixesAndreas T Jonsson2024-04-191-1/+1
| | | | | | | | Just selecting the same codepath as other BSD's for the most part.
* | Added some libc bindings for NetBSDAndreas T Jonsson2024-04-183-3/+3
|/
* Merge pull request #3230 from avanspector/haikugingerBill2024-03-084-2/+54
|\ | | | | Add Haiku OS support
| * Revert "fix haiku"avanspector2024-02-261-30/+30
| | | | | | | | This reverts commit 7290c692577a2ce6c4f6046b0792ba8da3e61a93.
| * fix haikuavanspector2024-02-261-30/+30
| |
| * fix runtime and libcavanspector2024-02-251-0/+18
| |
| * fix core and libcavanspector2024-02-251-1/+1
| |
| * add haiku to base:runtime and core:c/libcavanspector2024-02-252-1/+35
| |
* | move `va_list` into `core:c`Laytan Laats2024-03-012-9/+13
|/
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-286-6/+6
|
* c/libc: add `to_stream` procLaytan Laats2024-01-081-0/+101
| | | | | Adds the `to_stream` procedure to `core:c/libc` to improve usability of the core collection when you have to use libc.
* Add assert to disallow `-no-crt` when importing `core:c/libc`gingerBill2023-11-231-0/+2
|
* Update stdio.odinreluctant-git-user2023-10-151-1/+1
| | | snprintf() prototype fix
* Require parentheses for `#align(N)`gingerBill2023-08-154-5/+5
|
* Disallow `for in` in favour of `for _ in`gingerBill2023-08-081-1/+1
|
* Use positional and named arguments within the core librarygingerBill2023-06-211-2/+2
|
* Minor fixesgingerBill2023-03-161-1/+1
|
* Fix `cnd_timedwait`gingerBill2023-01-161-1/+1
|
* fix core:c/libc.errno link_name for Linux and FreeBSDJulian Fondren2022-10-171-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add `system:legacy_stdio_definitions.lib` to `.odin` for WindowsgingerBill2022-10-021-1/+4
|
* Fix `libc.aligned_alloc` for Windows (thanks Microsoft(!))gingerBill2022-09-221-3/+16
|
* Fix `libc.aligned_alloc` on WindowsgingerBill2022-09-221-0/+13
|
* Correcting libc pow bindings134195962022-09-211-2/+2
| | | | | | Adding tests that libc pow(f) functions - have two arguments - behave as expected for simple inputs.