673 Commits (823f052cbda10bd5c43b3c3c3df1f978d15f8675)
 

Author SHA1 Message Date
Felix von Leitner 823f052cbd scan_*longlong now properly abort if the number would not fit 9 years ago
Felix von Leitner 21ca7d8264 remove compiler warnings 9 years ago
Felix von Leitner de26fa9ec3 remove compiler warnings 9 years ago
Felix von Leitner b571a40e68 remove compiler warnings 9 years ago
Felix von Leitner 826abd7560 do proper early abort in the other scan_* routines if the numeric value
is too large
9 years ago
Felix von Leitner 6a1c199a99 $ 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
9 years ago
Felix von Leitner f03d88a4c7 add some unit tests for the formatting routines 9 years ago
Felix von Leitner 4381f7c6a2 get rid of some compiler warnings 9 years ago
Felix von Leitner e1d937c67b if called with srclen > maxlen, return maxlen not srclen 9 years ago
Felix von Leitner 31ce8647fe if srclen>maxlen, truncate at maxlen 9 years ago
Felix von Leitner 29b9860a37 fmt_strn aborted one byte too late 9 years ago
Felix von Leitner 041e6c5a92 | not + 9 years ago
Felix von Leitner 0482a9ec04 add json encoding routines to textcode 9 years ago
Felix von Leitner 0abea6af07 fix dependencies 10 years ago
Felix von Leitner 212f499313 hopefully this fixes the looping gatling processes 10 years ago
Felix von Leitner 91b2116a38 add scan_netstring 10 years ago
Felix von Leitner 825f9ee219 add scan_ulongn, scan_8longn, scan_xlongn and scan_longn 10 years ago
Felix von Leitner a5dc55208a add man pages for buffer_from* 10 years ago
Felix von Leitner ba62b9d96f add buffer_fromarray, buffer_frombuf 10 years ago
Felix von Leitner addc8cd318 add haveuint128.h
byte.h now defines UNALIGNED_ACCESS_OK on x86
10 years ago
Felix von Leitner b12538cc97 fix compile error 10 years ago
Felix von Leitner fd46d3afc1 add tryuing128.c and ignore haveuint128.h 10 years ago
Felix von Leitner 395dd4c416 make first argument to mmap_unmap const 10 years ago
Felix von Leitner b2eb079c02 add better comments
add fmt_copybytes
10 years ago
Felix von Leitner ba201f6105 define UNALIGNED_ACCESS_OK on x86 10 years ago
Felix von Leitner 20448ccdd8 add haveuint128.h 10 years ago
Felix von Leitner 28180795a9 add more examples 10 years ago
Felix von Leitner 830241e86d add compiletimeassert.h 10 years ago
Felix von Leitner 74a13126d5 add cast so the file compiles in c++ mode too 11 years ago
Felix von Leitner babeb35b1f catch more bad encoding 11 years ago
Felix von Leitner fe4e8dab35 minor update 11 years ago
Felix von Leitner c5a5c2d6bf add byte_equal_notimingattack 11 years ago
Felix von Leitner 9b249f6fa7 add awesome hack in isset.h (comex, Linus Torvalds) 11 years ago
Felix von Leitner 3743706899 add io_fd_canwrite (like io_fd but assume the fd is writable)
save a few syscalls here and there
11 years ago
Felix von Leitner bc5fa9c946 fix endless loop bug on freebsd 11 years ago
Felix von Leitner d3b996c7ce add trivial compare-and-swap test 11 years ago
Felix von Leitner e7a4283ec6 fix return value 11 years ago
Felix von Leitner 33e2bbfd34 win32 cross compile fix for iarray 11 years ago
Felix von Leitner f3bbb827d2 document the return value expected from the callback given to iob_write
remove unused #include in iob_reset
if iob_addfile_close fails, it now closes the fd
if iob_addbuf_munmap fails, it now munmaps the buf
if iob_addbuf_free fails, it now frees the buf
some win32 cross-compile fixes for iarray
11 years ago
Felix von Leitner cf46170dc7 make headers work in C++
add two more variable length integer encoding functions
11 years ago
Felix von Leitner 24c6e42b3c add functions to encode and decode integers in variable length binary
formats
11 years ago
Felix von Leitner 7a942eb82a add functions to encode and decode variable length integers in binary 11 years ago
Felix von Leitner 3506fbf4de accept -3 as error return from the callback, too 12 years ago
Felix von Leitner 1a12d26ebc mingw compile fix 12 years ago
Felix von Leitner cab6090eb7 the iob calls return int, not void 12 years ago
Felix von Leitner cf3c05d704 socket_remote4 does not need havescope.h 12 years ago
Felix von Leitner 77b72218f4 change macros to inline functions to get rid of gcc warning 12 years ago
Felix von Leitner ea5ded0681 change macros to inline functions to get rid of strict aliasing gcc
warnings in code using them
12 years ago
Felix von Leitner 4f4e6cd650 new makefile 12 years ago
Felix von Leitner 13bc4b6987 add __likely branch prediction hints
make inlining work in the face of gcc in non-gnu c99 mode
13 years ago