projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ONEWAY: Fix printf format specifier.
[pspp]
/
src
/
data
/
data-in.c
diff --git
a/src/data/data-in.c
b/src/data/data-in.c
index b6fa5167f008a8aaa471b3d3fe9762fed7301fb5..e72d1b6ad4e1fd45ff5026f301bd3ee034e4b4b3 100644
(file)
--- a/
src/data/data-in.c
+++ b/
src/data/data-in.c
@@
-298,9
+298,9
@@
parse_number (struct data_in *i)
ds_extend (&tmp, 64);
/* Prefix character may precede sign. */
ds_extend (&tmp, 64);
/* Prefix character may precede sign. */
- if (
!ss_is_empty (style->prefix)
)
+ if (
style->prefix.s[0] != '\0'
)
{
{
- ss_match_byte (&i->input, s
s_first (style->prefix)
);
+ ss_match_byte (&i->input, s
tyle->prefix.s[0]
);
ss_ltrim (&i->input, ss_cstr (CC_SPACES));
}
ss_ltrim (&i->input, ss_cstr (CC_SPACES));
}
@@
-317,9
+317,9
@@
parse_number (struct data_in *i)
}
/* Prefix character may follow sign. */
}
/* Prefix character may follow sign. */
- if (
!ss_is_empty (style->prefix)
)
+ if (
style->prefix.s[0] != '\0'
)
{
{
- ss_match_byte (&i->input, s
s_first (style->prefix)
);
+ ss_match_byte (&i->input, s
tyle->prefix.s[0]
);
ss_ltrim (&i->input, ss_cstr (CC_SPACES));
}
ss_ltrim (&i->input, ss_cstr (CC_SPACES));
}
@@
-366,8
+366,8
@@
parse_number (struct data_in *i)
}
/* Suffix character. */
}
/* Suffix character. */
- if (
!ss_is_empty (style->suffix)
)
- ss_match_byte (&i->input, s
s_first (style->suffix)
);
+ if (
style->suffix.s[0] != '\0'
)
+ ss_match_byte (&i->input, s
tyle->suffix.s[0]
);
if (!ss_is_empty (i->input))
{
if (!ss_is_empty (i->input))
{