projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix invalid read when fetching sys files with very long string variables.
[pspp-builds.git]
/
src
/
language
/
lexer
/
q2c.c
diff --git
a/src/language/lexer/q2c.c
b/src/language/lexer/q2c.c
index 9e8af0a246998d55babd943e2a6de952b8de52be..1b12c269a140c80e91738c1de2f0e348a2a2dd11 100644
(file)
--- a/
src/language/lexer/q2c.c
+++ b/
src/language/lexer/q2c.c
@@
-26,25
+26,12
@@
#include <stdarg.h>
#include <time.h>
#include <errno.h>
#include <stdarg.h>
#include <time.h>
#include <errno.h>
-#if HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
-#endif
#include <libpspp/compiler.h>
#include <libpspp/str.h>
#include <libpspp/compiler.h>
#include <libpspp/str.h>
-
-
-/* Brokenness. */
-#ifndef EXIT_SUCCESS
-#define EXIT_SUCCESS 0
-#endif
-
-#ifndef EXIT_FAILURE
-#define EXIT_FAILURE 1
-#endif
+#include "exit.h"
-#include <libpspp/debug-print.h>
-
/* Max length of an input line. */
#define MAX_LINE_LEN 1024
/* Max length of an input line. */
#define MAX_LINE_LEN 1024
@@
-338,7
+325,7
@@
find_symbol (int x)
return iter;
}
return iter;
}
-#if D
EBUGGING
+#if D
UMP_TOKENS
/* Writes a printable representation of the current token to
stdout. */
static void
/* Writes a printable representation of the current token to
stdout. */
static void
@@
-356,7
+343,7
@@
dump_token (void)
printf ("PUNCT\t%c\n", token);
}
}
printf ("PUNCT\t%c\n", token);
}
}
-#endif /* D
EBUGGING
*/
+#endif /* D
UMP_TOKENS
*/
/* Reads a token from the input file. */
static int
/* Reads a token from the input file. */
static int
@@
-406,7
+393,7
@@
lex_get (void)
else
token = *cp++;
else
token = *cp++;
-#if D
EBUGGING
+#if D
UMP_TOKENS
dump_token ();
#endif
dump_token ();
#endif