Nigel Tao
3a34a1d7d2
Fix err assignment typo
...
Fixes #36
2020-09-10 12:11:45 +10:00
Nigel Tao
b14e3eae9f
Have dumbindent preserve indent on the first line
2020-07-12 09:29:48 +10:00
Nigel Tao
635b502649
Tweak lib/dumbindent's comments
2020-06-16 22:34:36 +10:00
Nigel Tao
c9b50c0be7
Add links to dumbindent blog post
2020-06-16 14:25:46 +10:00
Nigel Tao
82233fe06c
Fix dumbindent comment typo
2020-06-10 22:52:49 +10:00
Nigel Tao
f935120aa6
Tweak how dumbindent handles #preproc lines
2020-06-10 22:37:54 +10:00
Nigel Tao
b1ea22045a
Stop dumbindent adding or removing line breaks
2020-06-10 21:51:25 +10:00
Nigel Tao
b82396a3c6
Stop dumbindent dropping blank lines near braces
2020-06-10 21:06:06 +10:00
Nigel Tao
58c0862c50
Stop dumbindent collapsing consecutive blank lines
2020-06-10 12:22:41 +10:00
Nigel Tao
8bd30e912c
Tweak dumbindent.breakAfterBrace
2020-06-09 22:45:40 +10:00
Nigel Tao
63c12cad17
Have dumbindent catch "namespace foo {".
2020-06-09 22:08:39 +10:00
Nigel Tao
8bf4084c8b
Update dumbindent comparison for clang-format-9
...
The numbers are the median real time of 5 runs.
2020-06-09 15:46:56 +10:00
Nigel Tao
22d08366c8
Add dumbindent algorithm comment
2020-06-08 23:25:08 +10:00
Nigel Tao
2858c4cfc2
Add dumbindent.Options (tabs vs spaces)
2020-06-07 21:59:53 +10:00
Nigel Tao
53d5f5155c
Have dumbindent break after some '{' and ';'s
2020-06-07 21:52:24 +10:00
Nigel Tao
7b6ce4a595
Remove dumbindent debugging code
2020-06-06 22:41:15 +10:00
Nigel Tao
0ad5f9b617
Have dumbindent no longer treat labels specially
2020-06-06 22:38:29 +10:00
Nigel Tao
6424bae087
Have dumbindent handle multi-line strings/comments
...
Fixes #31
2020-06-06 22:32:39 +10:00
Nigel Tao
3d7af06727
Have dumbindent take a dst slice argument
2020-06-06 21:09:41 +10:00
Nigel Tao
dd04d55417
Update dumbindent comparison for clang-format-9
2020-06-05 18:35:05 +10:00
Nigel Tao
d48a4eb581
Add dumbindent comment about extern "C"
2020-06-05 13:26:32 +10:00
Nigel Tao
d0dec081a6
Tweak cgen+dumbindent output
2020-06-05 10:22:14 +10:00
Nigel Tao
12b0f4c0bc
Change the default -cformatter to dumbindent
...
A follow-up commit will remove the -cformatter flag entirely.
Formatting the generated C code is now a small fraction of where "wuffs
gen" spends its time.
----
$ # Before.
$ time wuffs gen > /dev/null
real 0m0.932s
user 0m0.837s
sys 0m0.187s
$ # After.
$ time wuffs gen > /dev/null
real 0m0.186s
user 0m0.170s
sys 0m0.069s
$ time wuffs gen -cformatter= > /dev/null
real 0m0.184s
user 0m0.170s
sys 0m0.059s
----
2020-06-04 23:59:20 +10:00
Nigel Tao
d8cd72798a
Add {cmd,lib}/dumbindent
2020-06-04 23:35:11 +10:00
Nigel Tao
7d4a3a127d
Increase cgolz4 Writer buf len for older lz4 libs
2019-12-23 17:30:50 +11:00
Nigel Tao
7ce58b6179
Add IntRange.TryFoo methods
2019-11-03 09:06:08 +11:00
Nigel Tao
8ce3d657ee
Add IntRange.ContainsNonNegative
2019-11-02 11:59:22 +11:00
Nigel Tao
29c7b67874
Rename lib/interval's split2Ways variables
2019-11-02 11:55:45 +11:00
Nigel Tao
d90ad9d282
Tweak lib/interval's split3Ways' return values
2019-11-02 11:52:44 +11:00
Nigel Tao
960a3b76d7
Have lib/interval's split2Ways return emptiness
2019-11-02 11:42:37 +11:00
Nigel Tao
648932e0fb
Add a lib/interval sharedEmptyRange global
2019-11-02 11:32:54 +11:00
Nigel Tao
3b56ace877
Rename lib/interval's makeEmptyRange
2019-11-02 11:28:46 +11:00
Nigel Tao
194aaa0a7b
Remove a few IntRange.{And,Or} allocations
2019-11-01 23:02:02 +11:00
Nigel Tao
2ab322ee44
Cache lib/interval's small bit-masks
2019-11-01 22:38:00 +11:00
Nigel Tao
f3c9c4005e
Optimize lib/interval tests' opKey look-up
2019-11-01 22:32:17 +11:00
Nigel Tao
6a9a3abd24
Let IntRange's And and Or handle negative values
2019-11-01 22:20:21 +11:00
Nigel Tao
607bd735b4
Have IntRange methods return distinct *big.Int's
2019-11-01 14:04:23 +11:00
Nigel Tao
70ac26a2c5
Tweak lib/interval/radial_test.go if-else ordering
2019-10-31 16:25:23 +11:00
Nigel Tao
5672e7f0a6
Add IntRange.Unite and IntRange.Intersect
2019-10-31 09:30:20 +11:00
Nigel Tao
de807374d2
Have lib/interval use [m ..= n] syntax
2019-10-30 16:43:52 +11:00
Nigel Tao
3cf06d4585
Have cgozstd optionally use zstd 1.4's stable API
2019-10-24 15:32:21 +11:00
Nigel Tao
8ac2af0122
Change raczlib's dictionary wire format
...
This makes raczlib and raczstd use the same format: RAC's "common
dictionary format".
This is a breaking change to any existing RAC+Zlib files that use shared
dictionaries. RAC+Zlib is still an experimental (unstable) file format.
2019-10-24 10:47:48 +11:00
Nigel Tao
2d8648ae35
Implement raczstd dictionaries
2019-10-23 20:10:07 +11:00
Nigel Tao
7136dcdfd4
Move cgozstd dictionary init earlier, into Reset
2019-10-22 08:29:48 +11:00
Nigel Tao
2fd8649866
Support cgozstd dictionaries
...
Updates #23
2019-10-22 07:59:30 +11:00
Nigel Tao
d501daddc3
Rename [i..j] to [i ..= j], the same as Rust
2019-10-12 18:40:53 +11:00
Nigel Tao
97bcdded0d
Remove obsolete TODO
2019-10-05 12:36:37 +10:00
Nigel Tao
a9b9a82524
Have concurrent rac reading require an io.ReaderAt
2019-09-28 12:07:26 +10:00
Nigel Tao
59b9dee61a
Consistently use tt to name a *testing.T
2019-09-15 22:26:01 +10:00
Nigel Tao
8357a74a8c
Fix lib/cgozstd tests with zstd version 1.3
2019-09-15 22:21:43 +10:00