| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Let custom formatter example pass -vet-tabs if copied | Jeroen van Rijn | 2025-10-18 | 1 | -5/+4 |
| | | |||||
| * | Further overhaul of package line comments. | Jeroen van Rijn | 2025-10-09 | 1 | -1/+1 |
| | | |||||
| * | Specify %m and %M as verbs for integer formatting | AmedeoAlf | 2025-09-01 | 1 | -2/+2 |
| | | |||||
| * | Begin supporting `string16` across the core library | gingerBill | 2025-08-02 | 1 | -8/+8 |
| | | |||||
| * | Add `string16` and `cstring16` (UTF-16 based strings) | gingerBill | 2025-08-02 | 1 | -0/+76 |
| | | |||||
| * | Clarify `strconv.append_*` to `strconv.write_*` | Feoramund | 2025-06-05 | 1 | -4/+4 |
| | | |||||
| * | Correctly capitalize 'E' for the %E format specifier (#5065) | mtarik34b | 2025-04-22 | 1 | -1/+4 |
| | | |||||
| * | Fixed `fmt` handling of `bit_set[Enum]` when `min(Enum) != 0`. | Barinzaya | 2025-04-07 | 1 | -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 parameter | Adam Zadrożny | 2025-03-09 | 1 | -7/+14 |
| | | |||||
| * | Fix `rune` printing with `%b` | gingerBill | 2025-02-25 | 1 | -1/+1 |
| | | |||||
| * | Support use of `*` in format strings without an index. | Barinzaya | 2025-02-14 | 1 | -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'-padding | flysand7 | 2025-01-24 | 1 | -2/+2 |
| | | |||||
| * | add ensure and ensuref to fmt and log, fix some inconsistencies | Laytan Laats | 2025-01-13 | 1 | -2/+24 |
| | | |||||
| * | Remove `#relative` types from the compiler | gingerBill | 2024-11-14 | 1 | -12/+0 |
| | | |||||
| * | fix thread_unix for Darwin after pthread corrections in posix package | Laytan Laats | 2024-10-30 | 1 | -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 Zylinski | 2024-09-14 | 3 | -5/+5 |
| | | | | | file tag syntax. | ||||
| * | [fmt] Add bit fields to the pointer printing logic | Tetralux | 2024-08-12 | 1 | -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*` | gingerBill | 2024-07-24 | 1 | -17/+28 |
| | | |||||
| * | fmt: fix optional_len or use_nul_termination being used by both array and elems | Laytan Laats | 2024-07-15 | 1 | -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` | gingerBill | 2024-07-14 | 1 | -8/+8 |
| | | |||||
| * | Imply `#no_capture` to all variadic parameters | gingerBill | 2024-07-14 | 3 | -53/+53 |
| | | |||||
| * | Add `#no_capture args: ..T` to reuse the backing array stack memory | gingerBill | 2024-07-14 | 3 | -53/+53 |
| | | |||||
| * | Fix fmt for code compilation bug with `any` | gingerBill | 2024-07-08 | 1 | -3/+3 |
| | | |||||
| * | Fix loads of indentation issues with mixing spaces and tabs | gingerBill | 2024-06-29 | 1 | -8/+8 |
| | | |||||
| * | Even more style fixes | gingerBill | 2024-06-29 | 1 | -9/+6 |
| | | |||||
| * | Added fmt.ctprint | Karl Zylinski | 2024-06-25 | 1 | -0/+19 |
| | | |||||
| * | Handle empty structs in fmt with hash | Matias Fernandez | 2024-06-14 | 1 | -4/+10 |
| | | |||||
| * | Add example of a custom formatter. | Jeroen van Rijn | 2024-06-13 | 1 | -0/+57 |
| | | |||||
| * | Fix and document `%w` verb for `core:fmt` | Feoramund | 2024-06-12 | 2 | -6/+17 |
| | | |||||
| * | Fix `%p` pointers not printing leading `0x` | Feoramund | 2024-06-07 | 1 | -1/+1 |
| | | |||||
| * | improve orca target | Laytan Laats | 2024-06-05 | 1 | -0/+1 |
| | | |||||
| * | Fix duplicate sign printing of complex and quaternion types | Feoramund | 2024-06-03 | 1 | -4/+20 |
| | | | | | | Negative zero wasn't being detected (so it would appear as `+-0`), and `+Inf` was appearing as `++Inf` when imaginary. | ||||
| * | Improve `fmt` parsing of struct field tags | gingerBill | 2024-05-20 | 1 | -41/+89 |
| | | |||||
| * | Fix the way '%32b' and other prefixed numbers are written. | Jeroen van Rijn | 2024-05-20 | 1 | -11/+58 |
| | | |||||
| * | remove extra newline in enumerated array hash fmt | Matias Fernandez | 2024-05-18 | 1 | -1/+0 |
| | | |||||
| * | Correct #soa RTTI usage | gingerBill | 2024-05-16 | 1 | -1/+1 |
| | | |||||
| * | Amend `fmt` documentation | Feoramund | 2024-05-09 | 1 | -15/+18 |
| | | |||||
| * | Refactor `wprintf` | Feoramund | 2024-05-09 | 1 | -191/+156 |
| | | | | | | | | | | | | | | | | | | | | | | | - Extracts common code between C and Python-like syntax into its own sub-procedures. - Fixes Python-like syntax from treating `}` as a verb. - Makes C-like syntax treat ' ' as a missing verb. - Fixes EXTRA arguments being formatted with options that were previously set, instead using default options now. - Makes error messaging more consistent between C and Python-like syntax. - Requires argument index to be specified immediately before the verb in C-like syntax, per the documentation, instead of after `%` _or_ before the verb. - Tracks argument usage through a `bit_set`, allowing for reporting of unused arguments even when reordered. - Moves exit for C-like syntax if next byte is `%` to beginning of block instead of needlessly trying to parse through all options. - Pops next unused argument for unspecified formatters like `%i` or `{}`, instead of taking the argument after the last one used. - Fixes unspecified precision `%.f` from not setting precision to zero, per the documentation. | ||||
| * | Combine adjacent `sbprint*`/`to_string` calls | Feoramund | 2024-04-28 | 1 | -12/+6 |
| | | | | | The `sbprint*` procs already return a string conversion. | ||||
| * | Require results for non-buffered `print` procs | Feoramund | 2024-04-28 | 1 | -0/+12 |
| | | |||||
| * | wasm: add the `fprint` procedures to `fmt` | Laytan Laats | 2024-04-28 | 1 | -0/+51 |
| | | | | | This makes the `log` package work on wasm | ||||
| * | Fix printing of big endian integers in a `bit_field` | gingerBill | 2024-04-27 | 1 | -1/+4 |
| | | |||||
| * | Add printfln and eprintfln functions to fmt_js.odin | Damian Tarnawski | 2024-04-21 | 1 | -0/+4 |
| | | |||||
| * | Merge pull request #3447 from matias-eduardo/fix-soa-hash-formatting | gingerBill | 2024-04-19 | 1 | -2/+19 |
| |\ | | | | | fix #soa '%#v' formatting | ||||
| | * | fix #soa '%#v' formatting | Matias Fernandez | 2024-04-17 | 1 | -2/+19 |
| | | | |||||
| * | | Do not print column of a runtime.Source_Code_Location if the `column == 0` | gingerBill | 2024-04-19 | 1 | -4/+8 |
| |/ | |||||
| * | Fix #3407 | gingerBill | 2024-04-10 | 1 | -1/+1 |
| | | |||||
| * | Add `#row_major matrix[R, C]T` | gingerBill | 2024-03-19 | 1 | -2/+10 |
| | | | | | | As well as `#column_major matrix[R, C]T` as an alias for just `matrix[R, C]T`. This is because some libraries require a row_major internal layout but still want to be used with row or major oriented vectors. | ||||
| * | Minor change to spacing when printing a map | gingerBill | 2024-03-08 | 1 | -3/+3 |
| | | |||||
| * | Improve formatting for `%#` on `map`s | gingerBill | 2024-03-07 | 1 | -5/+24 |
| | | |||||