diff options
| author | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
|---|---|---|
| committer | Michal Zima <xhire@mujmalysvet.cz> | 2009-12-06 22:58:26 +0100 |
| commit | 753131cf9b32315fdd11f2ce6e58b8f2d6ba3bc1 (patch) | |
| tree | cfbded574ded7c3c666de6211877469ff6a95d75 /src/base/index.c | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/base/index.c')
| -rw-r--r-- | src/base/index.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/base/index.c b/src/base/index.c index 6683ec8..1620591 100644 --- a/src/base/index.c +++ b/src/base/index.c @@ -23,14 +23,14 @@ static index_item_t *index_item_new(int key, void *data) #ifdef DEBUG_INDEX static void printIndexItem(index_item_t *p) { - printf(_("[Debug] Index [%d] contains: %p\n"), p->key, p->data); + debug("Index [%d] contains: %p", p->key, p->data); } static void printListIndexItem(list_t *list) { int i; - printf(_("List:\n")); + debug("List:"); for (i = 0; i < list->count; i++) { index_item_t *this; @@ -60,7 +60,7 @@ static void checkList(list_t *list) if (prev >= this) { printListIndexItem(list); - assert(!_("Error")); + fatal("Error in list"); } prev = this; @@ -100,10 +100,10 @@ void index_add(list_t *list, int key, void *data) #ifdef DEBUG_INDEX if (++count == len * 5) { - printf(_("[Error] Cyclic error\n")); + error("Cyclic error"); printIndexItem(item); printListIndexItem(list); - assert(0); + abort(0); } #endif /* DEBUG_INDEX */ |