Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
979c74be
Commit
979c74be
authored
Oct 27, 2011
by
Christoph Mallon
Browse files
Dump alert, backspace and vertical tab in string initializers, too.
parent
8b7bdd15
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irdumptxt.c
View file @
979c74be
...
...
@@ -338,7 +338,7 @@ static bool is_init_string(ir_initializer_t const* const init, ir_type *const ty
return
false
;
v
=
get_tarval_long
(
tv
);
if
(
v
!=
0
&&
v
!=
0x0
9
&&
v
!=
0x0A
&&
v
!=
0x0C
&&
v
!=
0x0D
&&
v
!=
0x1B
&&
(
v
<
0x20
||
0x80
<=
v
)
&&
(
v
<
0xA0
||
0x100
<=
v
))
if
(
v
!=
0
&&
(
v
<
0x0
7
||
0x0D
<
v
)
&&
v
!=
0x1B
&&
(
v
<
0x20
||
0x80
<=
v
)
&&
(
v
<
0xA0
||
0x100
<=
v
))
return
false
;
}
...
...
@@ -385,8 +385,11 @@ static void dump_ir_initializers_to_file(FILE *F, const char *prefix,
switch
(
v
)
{
case
0x00
:
fprintf
(
F
,
"
\\\\
000"
);
break
;
case
0x07
:
fprintf
(
F
,
"
\\\\
a"
);
break
;
case
0x08
:
fprintf
(
F
,
"
\\\\
b"
);
break
;
case
0x09
:
fprintf
(
F
,
"
\\\\
t"
);
break
;
case
0x0A
:
fprintf
(
F
,
"
\\\\
n"
);
break
;
case
0x0B
:
fprintf
(
F
,
"
\\\\
v"
);
break
;
case
0x0C
:
fprintf
(
F
,
"
\\\\
f"
);
break
;
case
0x0D
:
fprintf
(
F
,
"
\\\\
r"
);
break
;
case
0x1B
:
fprintf
(
F
,
"
\\\\
033"
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment