ISSOtm
15ec6efc28
Fix missing newline in charmap override warning
2021-01-17 20:13:51 +01:00
Rangi
77279984a5
Implement STRRPL
...
Fixes #660
STRRPL(str, "", new) does nothing
(warn about it with -Wempty-strrpl)
2021-01-04 00:20:35 +01:00
ISSOtm
0d9de01f9d
Make charmap-converting a non-UTF8 string non-fatal
2020-12-12 14:16:50 +01:00
Rangi
effc6788eb
Fix #586 segfault: Update the charmaps hashmap when an existing charmap is resized
2020-10-07 13:21:13 -04:00
ISSOtm
4cfed3c98f
Rewrite charmap system
...
Avoid allocating a *ton* of data per charmap
Stop relying on uninitialized data in charmap nodes
Only initialize charmap nodes lazily
2020-10-04 04:31:10 +02:00
ISSOtm
a1286e6f0e
Make newlines explicit in error messages
...
In preparation for a change a PR is about to make
2020-09-27 10:54:06 +02:00
ISSOtm
0778959e98
Remove arbitrary limits on charmap
...
They were made irrelevant when switching to a trie
2020-08-31 21:26:21 +02:00
ISSOtm
7ddbe44b21
Use hashmap system for charmap
2020-03-15 15:23:32 +01:00
ISSOtm
af60e7f74a
Allow charmap creation even if its base doesn't exist
2020-03-15 00:40:45 +01:00
ISSOtm
fe0c269382
Use ++ and -- instead of [+-]= 1
...
Seriously...
2020-02-09 15:21:08 +01:00
ISSOtm
b1d4be66e4
Remove deprecated "section charmap" feature
2019-12-04 01:56:06 +01:00
ISSOtm
2d7d9eef9f
Fix some make checkcodebase errors
...
- Reorder checkpatch ignore flags alphabetically
- Fix checkpatch WARNINGs and CHECKs when they make sense
- Add more checkpatch ignores
2019-12-04 00:16:28 +01:00
ISSOtm
191ee4ba1f
Add support for toggleable warnings
2019-11-18 20:45:21 +01:00
dbrotz
d3db5f0d76
Add pushc and popc directives
2019-08-30 19:36:23 -07:00
dbrotz
e05199ca1e
Add support for multiple charmaps
...
This adds two new directives: newcharmap and setcharmap.
newcharmap creates a new charmap and switches to it.
setcharmap switches to an existing charmap.
2019-08-29 21:54:06 -07:00
jidoc01
e7dc094e56
Improve charmap structure with trie
...
Charmap's previous structure was using brute-force comparison for
converting the strings in source files. It always compared given
strings to all of the strings in charmap, which was very costly
in huge projects.
For its improvement, I changed its structure into trie, which is
being used in many string-processing areas. It's now much faster
than before.
2019-07-06 19:25:44 +09:00
dbrotz
23f5e9dacc
Use only one pass
2019-05-05 15:50:56 -07:00
yenatch
e6e3cc474d
Fix UTF-8 characters with an even number of bytes.
2018-06-30 19:41:46 -04:00
Antonio Niño Díaz
1a5c423984
Relicense codebase under MIT license
...
With permission from the main authors [1], most of the code has been
relicensed under the MIT license.
SPDX license identifiers are used so that the license headers in source
code files aren't too large.
Add CONTRIBUTORS.rst file.
[1] https://github.com/rednex/rgbds/issues/128
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-26 22:59:02 +00:00
Antonio Niño Díaz
b382dffdec
Split src/asm/charmap.c into two files
...
This way it is easier to identify the license of the code.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-26 22:55:13 +00:00
Antonio Niño Díaz
72f801283d
Cleanup code of rgbasm
...
Follow Linux kernel coding style.
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2018-01-02 17:09:36 +01:00
Antonio Niño Díaz
ec76431c51
Replace C types by stdint.h types
...
Not all occurrences have been replaced, in some cases they have been
left as they were before (like in rgbgfx and when they are in the
interface of a C standard library function).
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-12-31 15:46:22 +01:00
Antonio Niño Díaz
13c0684497
Replace 8 and 16 bit custom types by stdint.h types
...
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com >
2017-12-31 15:16:08 +01:00
AntonioND
43fd1ee024
Fix some signed/unsigned comparison warnings
...
Signed-off-by: AntonioND <antonio_nd@outlook.com >
2017-04-02 17:08:12 +01:00
Anthony J. Bentley
330a39596c
Instead of blindly trusting the first byte, decode UTF-8 safely.
2016-01-28 23:16:42 -07:00
Anthony J. Bentley
e241137508
KNF.
2016-01-28 23:05:25 -07:00
stag019
af70f03933
A few more small changes to charmap.c.
2014-10-31 19:01:21 -04:00
stag019
004bc2e50e
Fix a few charmap bugs maybe?
2014-10-31 10:48:54 -04:00
stag019
af506985e5
Added license to charmap.c
2014-02-03 20:46:52 -05:00
stag019
34656f9e5d
Fix a bug where the first charmap entry wasn't added correctly.
2013-12-28 00:35:05 -05:00
stag019
1218da79a9
Character maps.
2013-12-22 20:55:14 -05:00