1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-03 12:36:45 +02:00

Revert commit 312d0c3 (localization/gettext)

There were serious problems with branch merging that need to be resolved first
This commit is contained in:
Jfreegman
2015-07-04 01:19:16 -04:00
parent 444d8e7a74
commit 035420e5c7
37 changed files with 441 additions and 5552 deletions

View File

@ -25,12 +25,6 @@
#include <stdbool.h>
#include <stdarg.h>
#ifdef NO_GETTEXT
#define gettext(A) (A)
#else
#include <libintl.h>
#endif
#include "toxic.h"
#include "windows.h"
#include "line_info.h"
@ -47,7 +41,7 @@ void line_info_init(struct history *hst)
hst->line_root = calloc(1, sizeof(struct line_info));
if (hst->line_root == NULL)
exit_toxic_err(gettext("failed in line_info_init"), FATALERR_MEMORY);
exit_toxic_err("failed in line_info_init", FATALERR_MEMORY);
hst->line_start = hst->line_root;
hst->line_end = hst->line_start;
@ -147,7 +141,7 @@ void line_info_add(ToxWindow *self, const char *timestr, const char *name1, cons
struct line_info *new_line = calloc(1, sizeof(struct line_info));
if (new_line == NULL)
exit_toxic_err(gettext("failed in line_info_add"), FATALERR_MEMORY);
exit_toxic_err("failed in line_info_add", FATALERR_MEMORY);
char frmt_msg[MAX_LINE_INFO_MSG_SIZE] = {0};