projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DEBUG XFORM FAIL: Issue an error message as part of transformation.
[pspp]
/
src
/
ui
/
syntax-gen.c
diff --git
a/src/ui/syntax-gen.c
b/src/ui/syntax-gen.c
index b49911f5e8f06fd81a2726a1a0bc67b51e68f558..35de44da0dc9dfe71e1ba9cb3ae2a19883b47192 100644
(file)
--- a/
src/ui/syntax-gen.c
+++ b/
src/ui/syntax-gen.c
@@
-38,8
+38,8
@@
syntax_gen_hex_digits (struct string *output, struct substring in)
for (i = 0; i < in.length; i++)
{
unsigned char c = in.string[i];
for (i = 0; i < in.length; i++)
{
unsigned char c = in.string[i];
- ds_put_
char
(output, "0123456789ABCDEF"[c >> 4]);
- ds_put_
char
(output, "0123456789ABCDEF"[c & 0xf]);
+ ds_put_
byte
(output, "0123456789ABCDEF"[c >> 4]);
+ ds_put_
byte
(output, "0123456789ABCDEF"[c & 0xf]);
}
}
}
}
@@
-59,13
+59,13
@@
has_control_chars (struct substring in)
static bool
has_single_quote (struct substring str)
{
static bool
has_single_quote (struct substring str)
{
- return (SIZE_MAX != ss_find_
char
(str, '\''));
+ return (SIZE_MAX != ss_find_
byte
(str, '\''));
}
static bool
has_double_quote (struct substring str)
{
}
static bool
has_double_quote (struct substring str)
{
- return (SIZE_MAX != ss_find_
char
(str, '"'));
+ return (SIZE_MAX != ss_find_
byte
(str, '"'));
}
/* Appends to OUTPUT valid PSPP syntax for a quoted string that
}
/* Appends to OUTPUT valid PSPP syntax for a quoted string that
@@
-84,7
+84,7
@@
syntax_gen_string (struct string *output, struct substring in)
{
ds_put_cstr (output, "X'");
syntax_gen_hex_digits (output, in);
{
ds_put_cstr (output, "X'");
syntax_gen_hex_digits (output, in);
- ds_put_
char
(output, '\'');
+ ds_put_
byte
(output, '\'');
}
else
{
}
else
{
@@
-99,15
+99,15
@@
syntax_gen_string (struct string *output, struct substring in)
assert (is_basic ('\''));
quote = has_double_quote (in) && !has_single_quote (in) ? '\'' : '"';
assert (is_basic ('\''));
quote = has_double_quote (in) && !has_single_quote (in) ? '\'' : '"';
- ds_put_
char
(output, quote);
+ ds_put_
byte
(output, quote);
for (i = 0; i < in.length; i++)
{
char c = in.string[i];
if (c == quote)
for (i = 0; i < in.length; i++)
{
char c = in.string[i];
if (c == quote)
- ds_put_
char
(output, quote);
- ds_put_
char
(output, c);
+ ds_put_
byte
(output, quote);
+ ds_put_
byte
(output, c);
}
}
- ds_put_
char
(output, quote);
+ ds_put_
byte
(output, quote);
}
}
}
}
@@
-286,7
+286,7
@@
syntax_gen_pspp_valist (struct string *output, const char *format,
}
case '%':
}
case '%':
- ds_put_
char
(output, '%');
+ ds_put_
byte
(output, '%');
break;
default:
break;
default: