Commit graph

63 commits

Author SHA1 Message Date
f97a687778 Add a few new string functions. 2012-09-30 03:46:16 +02:00
377cdc9fa2 Rename eof to at_end.
This is more fitting as end of file is not really true for a socket.
2012-09-30 03:34:46 +02:00
3e038e2ba3 Make glibc happy. 2012-09-30 03:10:59 +02:00
b65679f747 Add cfw_stream_write_line(). 2012-09-30 03:02:03 +02:00
977f3a0a44 Add cfw_stream_read_line().
This also adds a caching infrastructure to cfw_stream.
2012-09-30 03:01:37 +02:00
8f0ffd2483 Fix cfw_strndup() and add cfw_strnlen(). 2012-09-30 02:59:17 +02:00
f9171cf8a1 Fix a memory leak in map. 2012-09-30 02:25:00 +02:00
7ad3af0b3d Add cfw_string_set_nocopy(). 2012-09-30 01:22:12 +02:00
69adb323ad Add cfw_strndup(). 2012-09-30 01:17:01 +02:00
a9f9734ea7 Add cfw_std{in,out,err}. 2012-09-30 00:50:49 +02:00
f9d9a2a9a8 Add cfw_stream_write_string(). 2012-09-30 00:41:59 +02:00
c18e55e2ff Add tcpsocket.
TODO:
 * check for getaddrinfo() in configure
 * fallback if getaddrinfo() is unavailable
2012-09-30 00:34:49 +02:00
0452bfc9ef Update corefw.h. 2012-09-30 00:12:36 +02:00
ff7c45b493 Add file. 2012-09-30 00:12:10 +02:00
12dbf0a7fb Add stream. 2012-09-30 00:10:17 +02:00
cfa3c72b00 Fix "return NULL" in function returning void. 2012-08-26 17:40:43 +02:00
72046b604b Allow NULL for all parameters in object.c. 2012-06-13 19:17:25 +02:00
38f3cbd511 Add bool boxing. 2012-06-13 19:01:39 +02:00
4f9da7d400 Add double boxing. 2012-06-13 18:54:03 +02:00
2099e689a4 configure.ac: Remove useless checks. 2012-06-13 18:52:17 +02:00
3431d8ea2c Add box. 2012-05-03 20:43:05 +02:00
58fac53b7a Implement equal, hash and copy for int. 2012-05-03 20:39:04 +02:00
30012e9536 Update buildsys. 2012-04-25 11:52:41 +02:00
b04863f9b7 Only use -Wall when using a GCC-compatible CC. 2012-04-25 11:35:15 +02:00
6801b4a0b2 Add -std=c99 -pedantic when using GCC. 2012-04-25 11:30:27 +02:00
8645ce783b cfw_string_len() -> cfw_string_length(). 2012-04-25 11:30:27 +02:00
feb90593b9 Add cfw_strdup(), as strdup() is not C99. 2012-04-25 11:30:22 +02:00
a74f8e1bac ISO C forbids empty initializer braces. 2012-04-25 11:22:42 +02:00
8f5b7428a2 Oops. 2012-04-25 11:17:50 +02:00
5508a6a8f7 Rename cfw_new_p to cfw_create. 2012-04-22 17:30:25 +02:00
290017b471 Nicer tests. 2012-04-22 16:19:37 +02:00
e6e38a176f Add int boxing. 2012-04-22 16:17:10 +02:00
c16cf16807 Add cfw_class. 2012-04-22 16:10:01 +02:00
187028d7a9 Add cfw_is. 2012-04-22 16:03:42 +02:00
27053629d0 Let the iter point to the first object. 2012-04-22 15:19:15 +02:00
adbd417825 Remove useless if. 2012-04-22 15:19:06 +02:00
ede061449e Don't install tests. 2012-04-22 15:18:40 +02:00
a8ae30c3c4 Add refpool. 2012-04-22 15:09:52 +02:00
aee2af3ae0 Add -Werror and -pipe if when using GCC. 2012-04-22 14:50:42 +02:00
d1b16c8722 Add map iteration. 2012-04-22 04:34:55 +02:00
a835d115cb Add map. 2012-04-22 04:34:55 +02:00
9a97f81143 Add missing NULL. 2012-04-22 04:34:54 +02:00
63b6165a91 ctor: Set pointers to NULL before allocation.
This way, the dtor can work correctly.
2012-04-22 04:34:50 +02:00
0ed91e92d1 Add hashing. 2012-04-09 16:06:27 +02:00
6f0f55365b Add cfw_string_find(). 2012-04-08 23:10:39 +02:00
e3a666226b Don't always build a static lib. 2012-04-08 23:08:36 +02:00
2a9045792b Fix includes in tests. 2012-04-08 23:08:04 +02:00
b3f3dfb253 Adjust include guards. 2012-04-08 22:55:02 +02:00
22f8a535f3 Remove cfw prefix from files. 2012-04-08 22:53:03 +02:00
34c8a7713a Add cfw_range_t. 2012-04-08 22:50:33 +02:00