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/idManager.c | |
| parent | a0939379bb1185ee6d66739d9d021466d5d89624 (diff) | |
Revised methods how are translated strings handled
Few comments were made available to Doxygen
Diffstat (limited to 'src/base/idManager.c')
| -rw-r--r-- | src/base/idManager.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/base/idManager.c b/src/base/idManager.c index dea2e95..87042bb 100644 --- a/src/base/idManager.c +++ b/src/base/idManager.c @@ -34,7 +34,7 @@ static void destroyIdItem(id_item_t *p) void id_init_list() { - DEBUG_MSG(_("[Debug] Initializing ID manager\n")); + debug("Initializing ID manager"); listID = list_new(); lastID = 0; @@ -67,7 +67,7 @@ static int findNewID() assert(listID != NULL); if (listID->count >= MAX_ID - 1) { - assert(!_("[Error] There is no free ID left")); + fatal("There is no free ID left"); } do { @@ -106,7 +106,7 @@ void id_inc(int id) index = id_is_register(id); if (index == -1) { - fprintf(stderr, _("[Error] Trying to increment counter of never registered ID [%d]"), id); + error("Trying to increment counter of never registered ID [%d]", id); assert(0); return; /* ha ha ha */ } @@ -129,7 +129,7 @@ void id_del(int id) index = id_is_register(id); if (index == -1) { - fprintf(stderr, _("[Error] Trying to delete never registered ID [%d]"), id); + error("Trying to delete never registered ID [%d]", id); assert(0); return; /* ha ha ha */ } @@ -177,21 +177,21 @@ void infoID(int id) index = id_is_register(id); if (index == -1) { - DEBUG_MSG(_("[Debug] Getting information of nonexistent ID [%d]\n"), id); + debug("Getting information of nonexistent ID [%d]", id); return; } this = listID->list[index]; - DEBUG_MSG(_("[Debug] ID information [%d]: used %d times\n"), this->id, this->count); + debug("ID information [%d]: used %d times", this->id, this->count); return; } void id_quit_list() { - DEBUG_MSG(_("[Debug] Shutting down ID manager\n")); + debug("Shutting down ID manager"); assert(listID != NULL); list_destroy_item(listID, destroyIdItem); |