54 Commits

Author SHA1 Message Date
leitner
5259ce9092 you need to #include <stdlib.h> 2020-12-07 17:53:46 +00:00
leitner
b6195a540a add man page for fmt_strm_alloca and fmt_strm_malloc 2020-12-07 17:53:13 +00:00
leitner
58160829b4 add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1 2020-07-14 19:55:38 +00:00
leitner
77a2bbd17a half-hearted improvements to Windows compilability 2019-04-23 13:25:26 +00:00
leitner
2d78cb8406 fix unit test for fmt_escapecharc
add unit tests for fmt_xmlescape
2018-09-30 19:18:35 +00:00
leitner
b9eb81c58f move unit tests into each file (compile with -DUNITTEST) 2017-05-13 22:52:21 +00:00
leitner
760598ec2f #include <foo.h> -> #include <libowfat/foo.h> 2017-05-13 22:51:26 +00:00
leitner
660c314341 a few more test suites
escapecharc now supports non-ascii
2017-04-30 20:16:09 +00:00
leitner
14f26729e9 add scan_utf8_sem
add utf8 test suite
2017-03-13 15:44:48 +00:00
leitner
d020e6d88b another gcc 6 warning fix
compile on osx again
remove asm version of i?mult64 (was needed only for clang because it
didn't have __uint128_t, but it now has it)
2016-05-23 09:36:48 +00:00
leitner
d26b8082d8 shut up new gcc 6 warnings 2016-04-27 14:07:49 +00:00
leitner
189d8bad1d darwin compat 2015-11-11 08:04:00 +00:00
leitner
32a312b8f1 add marshaling code for protocol buffers 2015-09-29 19:01:25 +00:00
leitner
6859c4b6ca add netstring formatter
fix scan_netstring to actually correctly return the length of the transported string
add documentation
2015-09-29 15:29:57 +00:00
leitner
fb1f19042f support gcc 5 builtins for multiplication overflow in safemult.h
fix copypasted comment in fmt_asn1dertag
add man pages for add_of, sub_of and assign
2015-09-29 14:42:40 +00:00
leitner
7bdc1b29bb a few missing headers and minor fixes
fix corking behavior for the case where a buffer follows a buffer in
iob_send
2015-09-06 18:01:02 +00:00
leitner
cdecd16ab3 add documentation 2015-05-13 21:43:45 +00:00
leitner
ad5ce55281 add fmt_iso8601 2015-05-13 20:33:51 +00:00
leitner
38ea25fd9f more updates 2014-12-27 13:39:20 +00:00
leitner
9a1addce2f remove compiler warnings 2014-03-14 00:24:25 +00:00
leitner
35942878c2 $ 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
2014-03-13 22:25:20 +00:00
leitner
73db80daec get rid of some compiler warnings 2014-02-25 18:39:59 +00:00
leitner
35382a430e if called with srclen > maxlen, return maxlen not srclen 2014-02-25 18:36:36 +00:00
leitner
21d0ea4549 if srclen>maxlen, truncate at maxlen 2014-02-25 18:28:06 +00:00
leitner
a85bfc1b81 fmt_strn aborted one byte too late 2014-02-25 18:27:30 +00:00
leitner
1d2add208f add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
leitner
4f1e1d300c make headers work in C++
add two more variable length integer encoding functions
2012-02-07 17:02:40 +00:00
leitner
d17c2d1012 add functions to encode and decode integers in variable length binary
formats
2012-02-06 07:59:56 +00:00
leitner
acd4fdb68b add/fix man pages
zero a buffer in io_passfd so valgrind does not complain when we pass it
to a syscall (which did not use the uninitialized parts anyway)
2010-01-18 19:51:00 +00:00
leitner
67a8f54b63 fix gcc warning
update Makefile for BSD users
2007-10-17 13:35:28 +00:00
leitner
aa435fbee3 add fmt_strm 2007-10-09 13:49:26 +00:00
leitner
3c31c1a03b fmt_xlonglong was utterly broken (Johannes Vetter) 2007-08-01 00:10:37 +00:00
leitner
3004b518ef switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
leitner
eeffc36387 remove even more warnings
64-bit cleanliness issue with auto-NULL-appending macros
2005-05-12 06:52:29 +00:00
leitner
e0f6355a91 add a few man pages 2004-02-04 23:02:35 +00:00
sanjiyan
8f66476e0d remove strict alias warning... 2003-11-14 15:25:41 +00:00
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
2003-09-19 19:08:13 +00:00
leitner
5226dd010d change length or size specifiers in APIs from int to long
add array API (http://cr.yp.to/lib/array.html)
2003-08-26 17:58:14 +00:00
leitner
5674c5186d add long long fmt routines 2003-05-01 20:40:41 +00:00
leitner
40bba8865b add fmt_human, fmt_humank and fmt_httpdate 2003-04-27 16:11:47 +00:00
leitner
a3b08eb5e5 add fmt_human and fmt_humank 2003-04-25 19:06:19 +00:00
leitner
5950f0c5ae add some man pages 2002-09-16 21:56:49 +00:00
leitner
85c18a49cb Lots of good clean-ups from Jukka Zitting! 2002-06-02 00:40:43 +00:00
leitner
a7360d9385 fmt_long did not count the '-' 2002-03-25 22:57:47 +00:00
leitner
b40bae5bf4 fmt_str was broken. It did not check for out==NULL 2001-11-25 15:51:44 +00:00
leitner
d6ae7e2265 this time for real ;) 2001-11-24 20:11:41 +00:00
sanjiyan
ffd6158589 removed div with a shift 2001-08-23 19:01:52 +00:00
leitner
ada92190c4 change semantic of fmt_fill and add man pages. 2001-05-15 19:04:58 +00:00
leitner
6629de6768 add fmt_pad and fmt_fill. 2001-05-15 18:46:17 +00:00
leitner
6eca5174a8 fix outputting 0. 2001-04-23 13:41:17 +00:00