projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced use of errno with assert
[pspp]
/
src
/
error.c
diff --git
a/src/error.c
b/src/error.c
index 3c91f73266ef4848f5a66931322e32ce43e9b2d0..0d1a58791a58aa3107c8bc65eab954dee6dede43 100644
(file)
--- a/
src/error.c
+++ b/
src/error.c
@@
-25,7
+25,7
@@
#include <stdlib.h>
#include "alloc.h"
#include "command.h"
#include <stdlib.h>
#include "alloc.h"
#include "command.h"
-#include "getl
ine
.h"
+#include "getl.h"
#include "glob.h"
#include "lexer.h"
#include "main.h"
#include "glob.h"
#include "lexer.h"
#include "main.h"
@@
-35,6
+35,10
@@
#include "var.h"
#include "version.h"
#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;
int err_error_count;
int err_warning_count;
@@
-204,11
+208,11
@@
err_hcf (int success)
free(file_loc);
file_loc = NULL;
free(file_loc);
file_loc = NULL;
+ nfile_loc = mfile_loc = 0;
outp_done ();
done_glob();
outp_done ();
done_glob();
-
exit (success ? EXIT_SUCCESS : EXIT_FAILURE);
}
exit (success ? EXIT_SUCCESS : EXIT_FAILURE);
}