Archived
1
0
Fork 0
Commit graph

175 commits

Author SHA1 Message Date
Henrik Hautakoski
ff1d4862a1 Removed unneeded includes. 2011-01-13 14:53:04 +01:00
Henrik Hautakoski
e7ebbd30ec rbtree.c: make rbnode an ADT. 2011-01-08 08:10:23 +01:00
Henrik Hautakoski
41a253a00a rbtree.c: moved tree assertion from the test. 2011-01-07 10:53:08 +01:00
Henrik Hautakoski
50c53e79bf rbtree.c: small cleanup 2011-01-07 09:23:32 +01:00
Henrik Hautakoski
6514462cdb rbtree.c: changed return values in insert/delete. 2011-01-05 10:17:22 +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
246ea7854e rbtree.c: fixed bug with tree not being empty when removing root node. 2010-12-28 18:29:06 +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
4c080dd248 inotify.c: log errors from inotify 2010-12-20 20:08:09 +01:00
Henrik Hautakoski
e2ff9d98df log.c: small fixes. 2010-12-20 19:42:20 +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
3110bbf761 docs: adding log 2011-01-13 15:37:00 +01:00
Henrik Hautakoski
e36fb981f2 archived.c: support for log levels in config 2011-01-13 15:37:00 +01:00
Henrik Hautakoski
80ad7d0daa log.c: added logstrtolvl 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
6b2465dce2 docs/strbuf.txt: added strbuf_explode and strbuf_free_list 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
b6ab5c88a8 strbuf.c: added strbuf_explode 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
ce520fc35b src/queue.c: minor stuff. uint16_t -> unsigned int and a NULL check. 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
463d432104 src/queue.c: use xalloc. 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
ae3ff5faae strbuf.c: use memrchr in strbuf_rchop 2011-01-13 15:36:58 +01:00
Henrik Hautakoski
de032e9b33 compat: Added memrchr implementation 2011-01-13 15:36:58 +01:00
Henrik Hautakoski
132bc6e838 Refactoring the buildsystem 2010-11-26 15:30:38 +01:00
Henrik Hautakoski
5dd6f89946 xalloc.c: cleaning up and better error messages. 2010-11-24 21:50:02 +01:00
Henrik Hautakoski
3cdbc3aa57 archived.c: changed the usage string abit. 2010-12-22 14:51:29 +01:00
Henrik Hautakoski
97bc6ef58f archived.c: moved usage string to static variable (more readable) 2010-12-22 14:51:29 +01:00
Henrik Hautakoski
34cd74bcbf event.c: use xalloc instead of malloc. 2010-12-22 14:51:29 +01:00
Henrik Hautakoski
a6cec1ce34 event.c: removed redundant sizeof()'s. 2010-12-22 14:51:29 +01:00
Henrik Hautakoski
ed8891000f event.c: fix memory leak in notify_event_del. 2010-12-22 14:51:28 +01:00
Henrik Hautakoski
18e9de6bc2 archived.c: setup signals as soon as possible
The setup of signals is done very late in the initialization process and therefor
not available if signals is cought during initialization.
2010-12-22 14:51:28 +01:00
Henrik Hautakoski
f156e8906c removed debug.h in favor for log.h 2010-12-22 14:51:28 +01:00
Henrik Hautakoski
8ad0243c31 archived.c: added code for setting up log. 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
f65dcaaf18 file.c: moved everything into path.c 2010-12-22 14:51:27 +01:00
Henrik Hautakoski
c1963d1397 fscrawl.c: moved errno reset and don't call perror on EACCES. 2010-12-22 14:51:27 +01:00
Henrik Hautakoski
63b4beb8b0 fscrawl.c: don't ignore DT_UNKNOWN.
issue with struct dirent->d_type set to DT_UNKNOWN on some filesystems.
this is solved by doing a call to 'is_dir' in those cases.
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
4a33fa091f docs/strbuf.txt: Adding 'strbuf_append_repeat' 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
0416fea36a fscrawl.c: removed unused variable. 2010-12-22 14:51:25 +01:00
Henrik Hautakoski
5d06e3c176 rbtree.h: small typo 2010-12-22 14:51:25 +01:00
Henrik Hautakoski
c097750262 docs/strbuf.txt: added strbuf_rchop 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
925972faa5 strbuf.c: make 'strbuf_rtrim' alittle more readable 2010-12-22 14:51:24 +01:00
Henrik Hautakoski
c558135c63 strbuf.c: move declarations that are not declared at the beginning of a scope block 2010-12-22 14:51:24 +01:00