about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
| * fromjs: re-design APIbptato2024-08-0914-609/+707
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a breaking change. * fromJS now returns `Opt[void]' (effectively a `bool'), and only sets the result if the conversion was successful. An unsuccessful conversion may leave the result in an unspecified state. This makes fromJS much lighter, both in terms of generated code as well as unnecessary overhead introduced by copying. It's also not much less ergonomic than the previous signature, since the ? syntax still works. * Improved JS_UNDEFINED/global object handling: instead of special- casing the global object, we special-case the `this' value conversion so that it fixes up `undefined' automatically. * fromJS on JSDict now throws on missing properties. Default values can be set through the new .jsdefault pragma.
| * javascript: optimize slightlybptato2024-08-011-24/+1
| | | | | | | | | | * remove bounds check if actualMinArgs == 0 * skip name collision checks (the compiler will do it for us anyway)
| * Version 0.2.3bptato2024-07-284-3/+6
| |
| * javascript: fix & optimize varargs[JSValue]bptato2024-07-281-18/+22
| | | | | | | | Treat it as a 0-copy slice of the QJS argp.
| * jsutils: fix toJSValueArray on 0-len arraysbptato2024-07-281-1/+4
| |
| * Version 0.2.2bptato2024-07-183-2/+5
| |
| * libunicode: fix bindingbptato2024-07-181-1/+3
| | | | | | | | It was importing the wrong header
| * Version 0.2.1bptato2024-07-174-3/+8
| |
| * tojs: fix broken definePropertybptato2024-07-171-9/+9
| | | | | | | | This was causing memory corruption.
| * quickjs: add JSValueConst to bindingsbptato2024-06-243-136/+144
| | | | | | | | Mainly for documentation purposes.
| * Update manualbptato2024-06-241-15/+107
| |
| * Version 0.2.0bptato2024-06-223-3/+8
| |
| * quickjs: include missing bindingsbptato2024-06-223-11/+51
| | | | | | | | this should be all of them
| * Update manualbptato2024-06-223-2/+177
| |
| * quickjs: add missing bindingsbptato2024-06-213-131/+269
| |
| * jserror: add err templates for every error typebptato2024-06-211-0/+21
| |
| * Update todobptato2024-06-211-3/+0
| |
| * Update readmebptato2024-06-041-3/+4
| |
| * Version 0.1.1bptato2024-06-033-2/+5
| |
| * libunicode: various fixesbptato2024-06-032-5/+15
| | | | | | | | | | | | | | | | * fix headers * move libunicode & cutils compilation commands to libunicode wrapper * replace lre_is_space with lre_is_space_non_ascii (the inlined variant doesn't work if the module importing the wrapper is in a different directory)
| * Version 0.1.0bptato2024-06-032-1/+4
| |
| * Import Monouchabptato2024-06-0346-0/+83338
|
* Add 'lib/chagashi0/' from commit 'f5cf26b044a82a2e3cffe83bb2342b7b029f2ab8'bptato2025-01-1856-0/+94642
|\ | | | | | | | | | | git-subtree-dir: lib/chagashi0 git-subtree-mainline: ddd639280d93da1ae51af18fe22fdd315fc2d42d git-subtree-split: f5cf26b044a82a2e3cffe83bb2342b7b029f2ab8
| * Version 0.7.0bptato2024-12-075-9/+9
| |
| * Accomodate for 2024 October spec changesbptato2024-12-075-401/+424
| |
| * Version 0.6.0bptato2024-10-054-7/+39
| |
| * decoder, encoder: use openArray[char] for inputsbptato2024-10-052-8/+10
| | | | | | | | Makes it possible to pass in string slices without copying.
| * Version 0.5.6bptato2024-09-064-3/+6
| |
| * Version 0.5.5bptato2024-09-014-3/+6
| |
| * decodercore: fix streaming euc-jp decoderbptato2024-09-012-0/+13
| |
| * Version 0.5.4bptato2024-08-014-3/+7
| |
| * Enforce no exceptions in all modulesbptato2024-08-015-0/+20
| | | | | | | | Chagashi never throws; this is just to make consumers' jobs easier
| * charset_map: reduce sizebptato2024-08-018-12568/+5637
| | | | | | | | | | | | | | | | | | | | | | | | | | * remove unused JIS X 0212 encoding table * skip JIS X 0208 empty rows * merge Shift_JIS encoding table with JIS X 0208 table * skip EUC-KR empty rows & columns * RLE EUC-KR & GBK top + bottom left sections * skip GB18030 PUA section * use RLE EUC-KR and GB18030 decoder ranges for encoding too * fix gitignore shaves off ~154K from the binary
| * Version 0.5.3bptato2024-07-284-4/+7
| |
| * Version 0.5.2bptato2024-06-143-2/+5
| |
| * decoder: better documentationbptato2024-06-141-29/+42
| |
| * decoder: add UnsafeSlice stringifierbptato2024-06-141-0/+7
| |
| * Misc bugfixesbptato2024-06-142-19/+19
| | | | | | | | | | | | * simplify decode iterator: only yield once, etc. * fix decode iterator done not resetting `n' * fix partial UTF-8 at the end of a string eating the internal buffer
| * Version 0.5.1bptato2024-06-133-3/+3
| |
| * decoder: fix decode() iterator with error mode "fatal"bptato2024-06-131-1/+3
| |
| * Version 0.5.0bptato2024-06-133-3/+10
| |
| * Unify decoder and validator APIsbptato2024-06-138-221/+317
| | | | | | | | | | | | | | | | | | The validator/decoder split was an abomination, and having to buffer your input queue for UTF-8 inputs was kind of annoying too. Now we have an extra instruction that also instructs the reader to use data from its input queue. Currently this is only used for UTF-8, but we may extend it to other ASCII-compatible charsets too in the future.
| * charset: simplify getLocaleCharsetbptato2024-04-302-17/+14
| |
| * Update code stylebptato2024-04-307-82/+82
| |
| * Remove unnecessary castsbptato2024-04-302-10/+10
| |
| * makefile: actually use NIM variablebptato2024-04-301-4/+4
| |
| * decodercore: fix wrong assertionbptato2024-03-062-1/+1
| | | | | | | | + remove an artifact
| * add a testbptato2024-03-051-0/+1
| | | | | | | | just a sanity check for myself, it's a bug in Chawan
| * Version 0.4.2bptato2024-02-263-2/+5
| |
| * Fix compiler crash on 1.6.14bptato2024-02-263-5/+6
| | | | | | | | seems like it doesn't like `out'