Commit Graph

2 Commits

Author SHA1 Message Date
Ole André Vadla Ravnås
d8ceecbaa2 Fix the XML parser ##util
The R_XML_IS_*() macros assume that `ch` has more than 8 bits, so they
can do clever subtraction and only perform a single comparison.

While we could add casts to those macros, the 0..255 clamping logic
also seems to assume there being more than 8 bits.

So these things considered it seems to make the most sense to do what
the original yxml code does, and use `unsigned`. It is also consistent
with r_xml_refend().
2022-12-15 18:46:32 +01:00
pancake
62fdc0f0ff
shlr/yxml -> libr/util/rxml - fork the abandoned yxml parser and expose it ##util 2022-10-10 12:33:43 +02:00