X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Ferror.c;h=0d1a58791a58aa3107c8bc65eab954dee6dede43;hb=45b8514ebb8a7b10eb5d911a231a9fc7974f8ba9;hp=f3f805c60a3992b538c40c1a365cb24e20d9607a;hpb=2990bac9e19a4a92606c830ab39ef3eb1e555481;p=pspp-builds.git diff --git a/src/error.c b/src/error.c index f3f805c6..0d1a5879 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; @@ -203,10 +207,12 @@ err_hcf (int success) getl_uninitialize (); free(file_loc); + file_loc = NULL; + nfile_loc = mfile_loc = 0; + outp_done (); done_glob(); - exit (success ? EXIT_SUCCESS : EXIT_FAILURE); }