mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-18 00:32:11 +01:00
Propagate const-values to idents of consts
This commit is contained in:
1 parent
9f6c40246f
commit
1f424b2ea7
3 files changed
+39
-49
No files matched your search
@@ -125,6 +125,9 @@ pri const LUT_BACKSLASHES : array[256] base.u8 = [
|
||||
// enforcing index-in-bounds is a simple "&7" operation.
|
||||
pri const LUT_QUIRKY_BACKSLASHES_QUIRKS : array[8] base.u8[..= 0x09] = [
|
||||
0,
|
||||
// Uncommenting the following lines requires being able to define consts in
|
||||
// terms of other consts, which could be non-trivial to specify and
|
||||
// implement (to avoid infinite loops).
|
||||
0x01, // (QUIRK_ALLOW_BACKSLASH_A - QUIRKS_BASE) as base.u8,
|
||||
0x03, // (QUIRK_ALLOW_BACKSLASH_E - QUIRKS_BASE) as base.u8,
|
||||
0x04, // (QUIRK_ALLOW_BACKSLASH_NEW_LINE - QUIRKS_BASE) as base.u8,
|
||||
|
||||
Reference in new issue
Block a user