Henrik Hautakoski
d64f14af4e
rbtree: remove unused arguments from INIT macro.
2011-02-01 12:00:07 +01:00
Henrik Hautakoski
b5f0c3117c
rbtree: move delete_fn from the structure to argument.
2011-02-01 11:51:54 +01:00
Henrik Hautakoski
440e5ed7d2
inotify-map.c: return a copy of a path list in lookup functions.
...
Becouse it is possible to change the a list stored by the API while traversing it, a bug can couse a infinite loop.
lets be strict about this and only return a copy of the list, so it can't be changed by calls to the API.
2011-01-30 15:55:51 +01:00
Henrik Hautakoski
33ceeca315
test/t_str-list.c: test export.
2011-01-30 13:28:19 +01:00
Henrik Hautakoski
222f34aed0
test/t_inotify-map.c: test inotify_map_get_wd.
2011-01-29 11:40:05 +01:00
Henrik Hautakoski
b0bfbc3a0d
test/t_inotify-map.c: test the right function.
2011-01-29 11:33:14 +01:00
Henrik Hautakoski
896c356d00
test/t_queue.c: rewritten, catches bug in dequeue.
2011-01-27 17:38:54 +01:00
Henrik Hautakoski
9378c5824e
test/t_fscrawl.c: cleanup
2011-01-26 19:19:04 +01:00
Henrik Hautakoski
cc590370bf
inotify: breakup mapping into a module.
2011-01-25 15:38:06 +01:00
Henrik Hautakoski
41a253a00a
rbtree.c: moved tree assertion from the test.
2011-01-07 10:53:08 +01:00
Henrik Hautakoski
0fba36440c
rbtree.c: rbtree_walk: pass rbnode->key instead of rbnode to callback function
2011-01-05 09:11:56 +01:00
Henrik Hautakoski
2c54173a52
test/t_rbtree.c: properly rewritten.
2011-01-03 10:49:11 +01:00
Henrik Hautakoski
3671888b8b
rbtree.c: search: return key instead of node.
2010-12-27 15:14:20 +01:00
Henrik Hautakoski
027bf154a7
rbtree.c: use generic keys.
...
to make the rbtree more usefull. allow generic keys and user defined compare functions.
2010-12-27 10:17:01 +01:00
Henrik Hautakoski
f76f494dcc
added str-list.c
2011-01-22 04:20:55 +01:00
Henrik Hautakoski
f973e29668
src/queue.c: don't deallocate the last block when queue becomes empty.
...
always keep one block in the queue so that in situations when the queue becomes empty
frequently. performance dosent blow up by calls to malloc/free.
2011-01-13 15:37:00 +01:00
Henrik Hautakoski
b6ab5c88a8
strbuf.c: added strbuf_explode
2011-01-13 15:36:59 +01:00
Henrik Hautakoski
2e2d6c7eee
use stdlib.h instead of malloc.h
2011-01-13 15:36:58 +01:00
Henrik Hautakoski
132bc6e838
Refactoring the buildsystem
2010-11-26 15:30:38 +01:00
Henrik Hautakoski
f156e8906c
removed debug.h in favor for log.h
2010-12-22 14:51:28 +01:00
Henrik Hautakoski
055825766f
test/t_path.c: added is_file tests.
2010-12-22 14:51:27 +01:00
Henrik Hautakoski
8e9f51338b
Makefile: compile with LFS flags to support large files on 32bit.
2010-12-22 14:51:27 +01:00
Henrik Hautakoski
fca8bba289
path.c: Added is_dir function
2010-12-22 14:51:26 +01:00
Henrik Hautakoski
dd0f1ae393
log.c: Added basic logging support.
2010-12-22 14:51:26 +01:00
Henrik Hautakoski
f06a528ad0
strbuf.c: Added strbuf_append_repeat function
2010-12-22 14:51:25 +01:00
Henrik Hautakoski
d1924e5c67
test/t_strbuf.c: added test for freeing an empty buffer
2010-12-22 14:51:25 +01:00
Henrik Hautakoski
30ae4449ea
test/t_strbuf.c: refactoring to individual function tests.
...
to improve readability. one test-function for one test.
2010-12-22 14:51:24 +01:00
Henrik Hautakoski
f752e03943
path.c: removed unneeded functions.
2010-11-14 09:46:34 +01:00
Henrik Hautakoski
1d99ab9eea
test/t_inotify.c: cleanup and moved to t_notify.c
2010-11-11 16:10:18 +01:00
Henrik Hautakoski
4a2665004e
queue.c: remove queue_clear.
...
client code knows what objects is stored in the queue
and its only 3 lines to do a simple free() on the items.
2010-11-10 08:45:44 +01:00
Henrik Hautakoski
d00fa63900
rbtree: changeing design. now using callbacks
2010-11-07 09:18:29 +01:00
Henrik Hautakoski
731f19553a
rbtree: fixed some memory leaks.
2010-11-05 14:09:51 +01:00
Henrik Hautakoski
cfb5e85699
moving src/common to src/
2010-10-19 13:34:06 +02:00
Henrik Hautakoski
22d7238b36
moving src/notify to src/
2010-10-19 11:25:24 +02:00
Henrik Hautakoski
205f72b3e0
fixed compiler warnings in test helpers.
2010-10-22 13:59:17 +02:00
Henrik Hautakoski
03c830be75
common/strbuf.c: fixing up squeeze.
2010-10-22 13:59:17 +02:00
Henrik Hautakoski
0174b8d6dc
client/stdout.c: ported the code from output to client. deleting the old files.
2010-10-02 19:57:25 +02:00
Henrik Hautakoski
7209cfb1c4
common/rbtree: fixed a bug in delete
2010-10-22 13:59:15 +02:00
Henrik Hautakoski
8d7b4a74c7
notify/fscrawl: fixed up src/notify/tree, ADT, new API, new name.
2010-10-22 13:59:15 +02:00
Henrik Hautakoski
3abbb2b63e
common/strbuf: added chop function
2010-10-22 13:59:15 +02:00
Henrik Hautakoski
7106d9aa5e
test/h_touchdir.sh: helper shellscript
2010-10-22 13:59:14 +02:00
Henrik Hautakoski
5ec71fe7d2
Makefile: added phony target.
2010-10-22 13:59:14 +02:00
Henrik Hautakoski
c6f346586e
notify/inotify.c: first change, uses queue
2010-09-26 14:53:14 +02:00
Henrik Hautakoski
dd73cf9422
common/debug.h: replaced die-macro with function in die.c
2010-10-22 13:59:13 +02:00
Henrik Hautakoski
ed428f20c9
queue: fixed API function name to follow spec.
2010-10-22 13:59:12 +02:00
Fredric N
89b4b6f85b
Support for iniconfig in arch.c + small output API fixes
2010-10-22 13:59:11 +02:00
Fredric N
3ec6498e83
Stdout output-driver with test
2010-10-22 13:59:11 +02:00
Fredric N
131a8b9501
Added output test for mysql
2010-10-22 13:59:11 +02:00
H Hautakoski
4ca920dc01
common/path.c: ~ expand in normalize
2010-10-22 13:59:10 +02:00
H Hautakoski
8b0772d0f1
common/strbuf: new function strbuf_term
2010-10-22 13:59:10 +02:00