Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
16674b82
Commit
16674b82
authored
Sep 10, 2001
by
John van Groningen
Browse files
fix bug in printing brackets in function types
parent
5554e080
Changes
1
Show whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/typeconv_2.c
View file @
16674b82
...
...
@@ -539,10 +539,7 @@ static void PrintNode (TypeNode node, Bool brackets, Bool strict_context, Bool p
{
TypeNode
arg_type_node
=
node
->
type_node_arguments
->
type_arg_node
;
if
(
brackets
)
FPutC
(
'('
,
StdListTypes
);
if
((
!
arg_type_node
->
type_node_is_var
)
&&
arg_type_node
->
type_node_symbol
->
symb_kind
==
fun_type
)
PrintArgument
(
node
->
type_node_arguments
,
cPrintBrackets
,
cNotInAStrictContext
,
cDoPrintAttribute
);
else
PrintArgument
(
node
->
type_node_arguments
,
cDontPrintBrackets
,
cNotInAStrictContext
,
cDoPrintAttribute
);
FPutS
(
" -> "
,
StdListTypes
);
PrintArgument
(
node
->
type_node_arguments
->
type_arg_next
,
cDontPrintBrackets
,
cNotInAStrictContext
,
cDoPrintAttribute
);
if
(
brackets
)
...
...
Write
Preview
Supports
Markdown
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