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
027616aa
Commit
027616aa
authored
Mar 27, 2002
by
John van Groningen
Browse files
don't try to add arguments to 'code' functions
parent
f3e0611b
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/statesgen.c
View file @
027616aa
...
...
@@ -3312,8 +3312,10 @@ static int create_new_function_with_more_arguments (NodeP node_p,int determine_n
function_symbol_p
=
function_node_p
->
node_symbol
;
if
(
function_symbol_p
->
symb_kind
==
definition
){
if
(
function_symbol_p
->
symb_def
->
sdef_kind
==
IMPRULE
&&
!
(
function_symbol_p
->
symb_def
->
sdef_rule
->
rule_mark
&
RULE_CAF_MASK
)){
if
(
function_node_p
->
node_arity
<=
function_symbol_p
->
symb_def
->
sdef_arity
){
if
(
function_symbol_p
->
symb_def
->
sdef_kind
==
IMPRULE
){
if
(
!
(
function_symbol_p
->
symb_def
->
sdef_rule
->
rule_mark
&
RULE_CAF_MASK
)
&&
function_symbol_p
->
symb_def
->
sdef_rule
->
rule_alts
->
alt_kind
==
Contractum
&&
function_node_p
->
node_arity
<=
function_symbol_p
->
symb_def
->
sdef_arity
)
{
struct
type_node
*
rhs_type_node_p
;
SymbolP
new_function_symbol
;
SymbDef
rule_sdef
;
...
...
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