X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ferror.c;h=28da450ed86bc7cb0f80e05beb5a3d78688f3de4;hb=47bd6f9b29268bddee3a19ae6d013b33c978a7e2;hp=571e6393340640107bb6773fd7a7f8bd79f1883d;hpb=bd68eeaf9bf3dba6052943d41a907bc3c3dd3b9b;p=pspp diff --git a/src/error.c b/src/error.c index 571e639334..28da450ed8 100644 --- a/src/error.c +++ b/src/error.c @@ -25,7 +25,7 @@ #include #include "alloc.h" #include "command.h" -#include "getline.h" +#include "getl.h" #include "glob.h" #include "lexer.h" #include "main.h" @@ -35,6 +35,10 @@ #include "var.h" #include "version.h" +#include "gettext.h" +#define _(msgid) gettext (msgid) +#define N_(msgid) msgid + int err_error_count; int err_warning_count; @@ -122,7 +126,7 @@ err_push_file_locator (const struct file_locator *f) else mfile_loc *= 2; - file_loc = xrealloc (file_loc, mfile_loc * sizeof *file_loc); + file_loc = xnrealloc (file_loc, mfile_loc, sizeof *file_loc); } file_loc[nfile_loc++] = f;