leitner
9af06ac843
remove can't happen code and instead force a compile time error
11 years ago
leitner
baec005507
improved code path for typical platforms where there is a wider integer type
11 years ago
leitner
08ba483bfb
catch other potential overflow
11 years ago
leitner
4a04c40595
get rid of more -Wconversion warnings
11 years ago
leitner
d14d2536f0
get rid of -Wconversion warnings
11 years ago
leitner
e1081e4b13
remove -Wconversion warnings
11 years ago
leitner
18afec7d68
scan_*longlong now properly abort if the number would not fit
11 years ago
leitner
01ffc04006
do proper early abort in the other scan_* routines if the numeric value
...
is too large
11 years ago
leitner
1d2add208f
add json encoding routines to textcode
11 years ago
leitner
45702476e7
add scan_netstring
11 years ago
leitner
69eb8c01e3
add scan_ulongn, scan_8longn, scan_xlongn and scan_longn
11 years ago
leitner
f2ee8239d1
add more examples
11 years ago
leitner
5ef52a7e44
catch more bad encoding
12 years ago
leitner
4f1e1d300c
make headers work in C++
...
add two more variable length integer encoding functions
13 years ago
leitner
d17c2d1012
add functions to encode and decode integers in variable length binary
...
formats
13 years ago
leitner
c5eca073b3
work around broken sqlite download httpd
16 years ago
leitner
9788418026
slight optimization
17 years ago
leitner
3004b518ef
switch to size_t and ssize_t
18 years ago
leitner
d361d81c64
make socket_(tc|ud)p[46] actually return non-blocking sockets as
...
documented (Richard Lyons)
19 years ago
leitner
c169ae9b4a
IRIX compatibility (yuck!)
20 years ago
leitner
eeffc36387
remove even more warnings
...
64-bit cleanliness issue with auto-NULL-appending macros
20 years ago
leitner
05bf627d01
fix scan_xlong, scan_xlonglong and scan_8long
20 years ago
leitner
265e2df10c
make sure scan_httpdate uses GMT for mktime
20 years ago
leitner
e0f6355a91
add a few man pages
21 years ago
leitner
a8f6a1c121
remove special case stralloc textcode functions
...
write generic stralloc and array textcode wrapper functions
change textcode API to use long instead of int
add cescape fmt and scan functions to textcode
add fmt_foldwhitespace to textcode
21 years ago
leitner
85bfbeb420
only write dest if we actually parsed something
21 years ago
leitner
5226dd010d
change length or size specifiers in APIs from int to long
...
add array API (http://cr.yp.to/lib/array.html )
22 years ago
leitner
36c6f04ed9
scan_uint and scan_ushort will now abort if the result does not fit in
...
uint or ushort as opposed to ulong.
22 years ago
leitner
7f3c1ccc0c
improve range check
22 years ago
leitner
8f3278e62e
add man page for scan_longlong
22 years ago
leitner
09e6dc97e3
add long long scanning support
22 years ago
leitner
72ba2ad6b5
add beginnings of integer range checking
22 years ago
leitner
9e85dc61a0
add scan_httpdate
22 years ago
leitner
701dd5f022
a few more man pages
23 years ago
leitner
5950f0c5ae
add some man pages
23 years ago
leitner
40897bd709
bug fixes
23 years ago
leitner
d6ae7e2265
this time for real ;)
23 years ago
leitner
3083708670
Initial revision
24 years ago