aboutsummaryrefslogtreecommitdiff
path: root/core/fmt
Commit message (Collapse)AuthorAgeFilesLines
* core:os -> core:os/old && core:os/os2 -> core:osJeroen van Rijn6 days1-4/+4
|
* remove importJeroen van Rijn7 days1-2/+0
|
* Convert fmt_js.odin to not use `core:os*`Jeroen van Rijn7 days1-61/+46
|
* More conflicts during rebaseJeroen van Rijn7 days1-5/+5
|
* In the middle of porting core:testingJeroen van Rijn7 days2-31/+33
|
* Add boolean support for `raw_union_tag`gingerBill2026-01-021-0/+29
|
* Add support to `raw_union_tag` for integersgingerBill2026-01-021-0/+28
|
* Add `@(rodata)` to global constantsgingerBill2026-01-011-4/+4
|
* When using `fmt_write_padding`, remove the need to restore `fi.zero` since ↵gingerBill2026-01-011-6/+0
| | | | it is not used.
* fix printing dozenal numbers `0z` from `0o`gingerBill2026-01-011-2/+2
|
* Split of the built-in custom formatters to improve code generationgingerBill2025-12-271-140/+150
|
* Split some procedures upgingerBill2025-12-271-316/+345
|
* Add `raw_union_tag` struct tag fields to many types in `vendor`gingerBill2025-12-081-3/+6
|
* `raw_union_tag` allow for comma separation for multiple mappingsgingerBill2025-12-081-13/+18
|
* Add `raw_union_tag` for `struct #raw_union` fields to improve fmt printinggingerBill2025-12-081-1/+70
|
* Merge branch 'master' of https://github.com/odin-lang/OdingingerBill2025-11-271-1/+1
|\
| * Use BUF_SIZEgingerBill2025-11-221-1/+1
| |
* | `core:fmt` lvalues in `for` loops to minimize stack usagegingerBill2025-11-271-13/+13
|/
* `Empty` -> `Unsupported`bill/io-error-changesgingerBill2025-11-141-1/+1
|
* Let custom formatter example pass -vet-tabs if copiedJeroen van Rijn2025-10-181-5/+4
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* Specify %m and %M as verbs for integer formattingAmedeoAlf2025-09-011-2/+2
|
* Begin supporting `string16` across the core librarygingerBill2025-08-021-8/+8
|
* Add `string16` and `cstring16` (UTF-16 based strings)gingerBill2025-08-021-0/+76
|
* Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-051-4/+4
|
* Correctly capitalize 'E' for the %E format specifier (#5065)mtarik34b2025-04-221-1/+4
|
* Fixed `fmt` handling of `bit_set[Enum]` when `min(Enum) != 0`.Barinzaya2025-04-071-7/+3
| | | | | | The lower bound of the `bit_set` was only being applied *after* searching for a matching enum value, so values wouldn't line up if the minimum value of the enum wasn't 0.
* Update `fmt` docs for procedures with a default allocator parameterAdam Zadrożny2025-03-091-7/+14
|
* Fix `rune` printing with `%b`gingerBill2025-02-251-1/+1
|
* Support use of `*` in format strings without an index.Barinzaya2025-02-141-0/+8
| | | | | | This allows `*` to be used in C fashion, without specifying an argument index to use. Like C, this results in the argument *preceding* the value for the format specifier itself.
* Fix the '+' sign placement in the presence of '0'-paddingflysand72025-01-241-2/+2
|
* add ensure and ensuref to fmt and log, fix some inconsistenciesLaytan Laats2025-01-131-2/+24
|
* Remove `#relative` types from the compilergingerBill2024-11-141-12/+0
|
* fix thread_unix for Darwin after pthread corrections in posix packageLaytan Laats2024-10-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | afed3ce removed the sys/unix package and moved over to sys/posix, it has new bindings for the pthread APIs but should have been equivalent (not). 8fb7182 used `CANCEL_ENABLE :: 0`, `CANCEL_DISABLE :: 1`, `CANCEL_DEFERRED :: 0`, `CANCEL_ASYNCHRONOUS :: 1` for Darwin, while the correct values are `1`, `0`, `2` and `0` respectively (same mistake was made for FreeBSD in that commit). What this meant is that the `pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS)` was not actually successful, but because the error wasn't checked it was assumed it was. It also meant `pthread_setcancelstate(PTHREAD_CANCEL_ENABLE)` would actually be setting `PTHREAD_CANCEL_DISABLE`. The code in this PR restores the behaviour by now actually deliberately setting `PTHREAD_CANCEL_DISABLE` and not setting `PTHREAD_CANCEL_ASYNCHRONOUS` which was the previous behaviour that does actually seem to work for some reason. (I also fixed an issue in fmt where `x` would use uppercase if it was a pointer.)
* Moved all packages in core, base, vendor, tests and examples to use new #+ ↵Karl Zylinski2024-09-143-5/+5
| | | | file tag syntax.
* [fmt] Add bit fields to the pointer printing logicTetralux2024-08-121-1/+2
| | | | | | | core:fmt prints pointers to structs as `&StructName{ ... }` but `bit_field`s are currently printed the same as rawptrs (`0xAABBCCDDEEFF` only). This commit changes that so they behave the same as structs and unions.
* Add `allocator` parameters to `fmt.caprint*`gingerBill2024-07-241-17/+28
|
* fmt: fix optional_len or use_nul_termination being used by both array and elemsLaytan Laats2024-07-151-0/+8
| | | | | | | | | | | | | | | | | | | | | ```odin My_Struct :: struct { names: [^]string `fmt:"v,name_count"`, name_count: int, } main :: proc() { name := "hello?" foo := My_Struct { names = &name, name_count = 1, } fmt.println(foo) } ``` Before: `My_Struct{names = ["h"], name_count = 1}` After: `My_Struct{names = ["hello?"], name_count = 1}`
* Reduce the size of `runtime.Type_Info`gingerBill2024-07-141-8/+8
|
* Imply `#no_capture` to all variadic parametersgingerBill2024-07-143-53/+53
|
* Add `#no_capture args: ..T` to reuse the backing array stack memorygingerBill2024-07-143-53/+53
|
* Fix fmt for code compilation bug with `any`gingerBill2024-07-081-3/+3
|
* Fix loads of indentation issues with mixing spaces and tabsgingerBill2024-06-291-8/+8
|
* Even more style fixesgingerBill2024-06-291-9/+6
|
* Added fmt.ctprintKarl Zylinski2024-06-251-0/+19
|
* Handle empty structs in fmt with hashMatias Fernandez2024-06-141-4/+10
|
* Add example of a custom formatter.Jeroen van Rijn2024-06-131-0/+57
|
* Fix and document `%w` verb for `core:fmt`Feoramund2024-06-122-6/+17
|
* Fix `%p` pointers not printing leading `0x`Feoramund2024-06-071-1/+1
|
* improve orca targetLaytan Laats2024-06-051-0/+1
|