Commit Graph

540 Commits

Author SHA1 Message Date
Nils O. Selåsdal 52addceff2 Assert fd->fd >= 0 2013-12-17 23:11:58 +01:00
Nils O. Selåsdal a681e9044f Use UC_TAILQ in udp_heartbeat 2013-12-10 23:08:05 +01:00
Nils O. Selåsdal 2dc5242fc0 Use TailQ in mbuf 2013-12-10 01:11:31 +01:00
Nils O. Selåsdal 6891a77ba9 Make delim const 2013-12-08 22:28:25 +01:00
Nils O. Selåsdal f6badb41a2 Move UC_ASSERT/NOTREACHED to backtrace.h 2013-12-08 00:43:22 +01:00
Nils O. Selåsdal f18de5f269 Test dbuf_take_fail aborting in DEBUG mode 2013-12-07 12:23:30 +01:00
Nils O. Selåsdal 6a8ba36c23 Assert on API violation 2013-12-07 01:30:08 +01:00
Nils O. Selåsdal d26854a632 Fix docs for uc_hex_decode 2013-12-06 23:16:54 +01:00
Nils O. Selåsdal 784dc1cecb Teach uc_hex_decode to skip spaces 2013-12-06 23:10:32 +01:00
Nils O. Selåsdal 42612803a1 More string.h docs, and fix style 2013-12-06 22:47:23 +01:00
Nils O. Selåsdal 59b4c3f57e Implement uc_hex_encode_delim without snprintf, fix length of
uc_hex_encode_delim when truncated output.
2013-12-06 22:47:16 +01:00
Nils O. Selåsdal 25f83f36ee debugging aid to uc_dstr_destroy too 2013-12-06 21:46:46 +01:00
Nils O. Selåsdal e679ad969d Add debugging aid to uc_dstr_reset 2013-12-06 21:43:06 +01:00
Nils O. Selåsdal 20f28273d6 epoll_wait, use max 64 events 2013-12-05 21:02:59 +01:00
Nils O. Selåsdal ec7425d86b Merge branch 'dev' 2013-12-05 17:45:01 +01:00
Nils O. Selåsdal 565de6ace7 Add uc_dstr_copy 2013-12-05 01:24:41 +01:00
Nils O. Selåsdal 9723a579cc Clarift uc_dstr_ensure 2013-12-04 23:46:45 +01:00
Nils O. Selåsdal b24f27ec9f Mask the upper bits of dscp instead of failing if the user
supplied a too big value
2013-12-04 23:21:30 +01:00
Nils O. Selåsdal b5e1d086a4 Add DStr sprintf 2013-12-04 21:33:16 +01:00
Nils O. Selåsdal d81e9b760a More docs. And test put_filter 2013-12-04 20:44:47 +01:00
Nils O. Selåsdal 8749270ca4 Add DStr docs.
Small test changes
2013-12-04 20:32:06 +01:00
Nils O. Selåsdal 6fdaa83dee Run DStr tests 2013-12-04 19:58:59 +01:00
Nils O. Selåsdal bbbe912fba Initial version of struct DStr 2013-12-04 19:58:38 +01:00
Nils O. Selåsdal 2f93ea8ad2 Limit overallocation to [8-256] bytes 2013-12-03 19:43:27 +01:00
Nils O. Selåsdal f6afc8ba57 Allow UC_MIN(UC_MAX(x,y),z), though only one nesting can be done. 2013-12-03 19:42:43 +01:00
Nils O. Selåsdal 43a14a5149 Add comments to compare/swap function 2013-12-03 17:30:37 +01:00
Nils O. Selåsdal 2b022aeddc Make the heapsort test comparison work.. 2013-12-03 17:29:00 +01:00
Nils O. Selåsdal 4caf2573fb Check of count or size is 0 in heapsort 2013-12-03 14:29:57 +01:00
Nils O. Selåsdal 70fb352656 Fix heapsort, add test 2013-12-03 11:30:09 +01:00
Nils O. Selåsdal a5662a2edd Revert "Remove the wrong heapsort implementation"
This reverts commit aa04b6ae33.
2013-12-03 10:59:56 +01:00
Nils O. Selåsdal f30f2025f6 Merge branch 'dev' 2013-12-02 21:51:50 +01:00
Nils O. Selåsdal aa04b6ae33 Remove the wrong heapsort implementation 2013-12-02 21:51:26 +01:00
Nils O. Selåsdal 96934d7cf7 minor name changes to make more sense 2013-12-01 21:12:18 +01:00
Nils O. Selåsdal 2ac412917a Fix comment 2013-11-30 13:42:49 +01:00
Nils O. Selåsdal 6dc59ccbf8 Add macros for iterating the containing entry 2013-11-30 13:40:05 +01:00
Nils O. Selåsdal bcafaace29 Fix the log level string of NONE. 2013-11-30 04:48:26 +01:00
Nils O. Selåsdal ec63c1e88f Guard the UC_DEBUGF/UC_DEBUGFR with do{}while(0) 2013-11-30 04:39:59 +01:00
Nils O. Selåsdal 6706d59b4b undef UC_INLINE 2013-11-30 03:26:45 +01:00
Nils O. Selåsdal ad90215452 Add UC_TAILQ_CONTAINER. Fix spelling error 2013-11-30 03:24:43 +01:00
Nils O. Selåsdal f9ef8d620f style cleanups 2013-11-28 23:30:44 +01:00
Nils O. Selåsdal 44b86f2fde Add FIRST/NEXT/LAST/PREV macros, analogous to sys/queue.h 2013-11-28 23:21:56 +01:00
Nils O. Selåsdal f5d918e77d Add a _move_head and _move_tail function to move a node
Also be more consisten in cometns about tailq instead of list
2013-11-28 22:50:03 +01:00
Nils O. Selåsdal 80d73629bf add uc_tailq_link() and use it in uc_tailq_remove() 2013-11-28 20:01:25 +01:00
Nils O. Selåsdal 6156fcbbb5 Add tailq example 2013-11-28 18:30:14 +01:00
Nils O. Selåsdal 4a2c524e14 Add tailq linked list 2013-11-28 18:30:01 +01:00
Nils O. Selåsdal 04f101c699 initialize peer to Unknown 2013-11-26 23:58:50 +01:00
Nils O. Selåsdal c4cc6f9e95 Merge branch 'dev' 2013-11-26 22:40:05 +01:00
Nils O. Selåsdal 66942b43dc Initializze p1..p4_off, to silence a (wrong) compiler warning 2013-11-26 22:39:18 +01:00
Nils O. Selåsdal e7d7f4b862 Add -k argument to test_runner to specify running only one test suite
alter --xml of test_runner to just -x
2013-11-26 18:17:07 +01:00
Nils O. Selåsdal 59f6d99419 Remove a wrong test in test_mbuf.c 2013-11-25 23:42:29 +01:00