projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lexer: Drop 'line_pos' from lex_token and lex_source.
[pspp]
/
src
/
language
/
lexer
/
format-parser.c
diff --git
a/src/language/lexer/format-parser.c
b/src/language/lexer/format-parser.c
index 2c05335ff984fa711bacba8920f682cb01c358ee..906d0f327168c5508f16859f46c52c3684987334 100644
(file)
--- a/
src/language/lexer/format-parser.c
+++ b/
src/language/lexer/format-parser.c
@@
-16,13
+16,14
@@
#include <config.h>
#include <config.h>
+#include "language/lexer/format-parser.h"
+
#include <ctype.h>
#include <stdint.h>
#include <stdlib.h>
#include "data/format.h"
#include "data/variable.h"
#include <ctype.h>
#include <stdint.h>
#include <stdlib.h>
#include "data/format.h"
#include "data/variable.h"
-#include "language/lexer/format-parser.h"
#include "language/lexer/lexer.h"
#include "libpspp/message.h"
#include "libpspp/misc.h"
#include "language/lexer/lexer.h"
#include "libpspp/message.h"
#include "libpspp/misc.h"
@@
-34,7
+35,7
@@
static bool
parse_abstract_format_specifier__ (struct lexer *lexer,
char type[FMT_TYPE_LEN_MAX + 1],
static bool
parse_abstract_format_specifier__ (struct lexer *lexer,
char type[FMT_TYPE_LEN_MAX + 1],
-
int *width, in
t *decimals)
+
uint16_t *width, uint8_
t *decimals)
{
struct substring s;
struct substring type_ss, width_ss, decimals_ss;
{
struct substring s;
struct substring type_ss, width_ss, decimals_ss;
@@
-90,7
+91,7
@@
error:
bool
parse_abstract_format_specifier (struct lexer *lexer,
char type[FMT_TYPE_LEN_MAX + 1],
bool
parse_abstract_format_specifier (struct lexer *lexer,
char type[FMT_TYPE_LEN_MAX + 1],
-
int *width, in
t *decimals)
+
uint16_t *width, uint8_
t *decimals)
{
bool ok = parse_abstract_format_specifier__ (lexer, type, width, decimals);
if (ok)
{
bool ok = parse_abstract_format_specifier__ (lexer, type, width, decimals);
if (ok)