$ make WERROR=-Werror now builds with -Werror
add some single char escaping routines to fmt.h pull in html5 entities from w3c and use those to do a proper scan_html decoding fix an off-by-one in fmt_to_array add a ton of unit tests for the fmt routines
This commit is contained in:
@@ -19,5 +19,12 @@ int main() {
|
||||
assert(!array_failed(&a));
|
||||
write(1,array_start(&a),array_bytes(&a)); write(1,"\n",1);
|
||||
array_trunc(&a);
|
||||
|
||||
strcpy(buf,"Ächt fnördig.");
|
||||
size_t n;
|
||||
scan_html(buf,buf,&n);
|
||||
buf[n]=0;
|
||||
puts(buf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user