Skip to content
GitLab
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
c1a7bd0f
Commit
c1a7bd0f
authored
Jun 15, 2001
by
Ronny Wichers Schreur
🏢
Browse files
print local reference counts to file instead of stdout
parent
f51a0975
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/dbprint.c
View file @
c1a7bd0f
...
@@ -232,7 +232,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
...
@@ -232,7 +232,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
for_l
(
node_id_ref_count_elem
,
node
->
node_then_node_id_ref_counts
,
nrcl_next
){
for_l
(
node_id_ref_count_elem
,
node
->
node_then_node_id_ref_counts
,
nrcl_next
){
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
printf
(
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
f
printf
(
file
,
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
}
}
}
}
FPutS
(
"]
\n
"
,
file
);
FPutS
(
"]
\n
"
,
file
);
...
@@ -274,7 +274,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
...
@@ -274,7 +274,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
for_l
(
node_id_ref_count_elem
,
node
->
node_else_node_id_ref_counts
,
nrcl_next
){
for_l
(
node_id_ref_count_elem
,
node
->
node_else_node_id_ref_counts
,
nrcl_next
){
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
printf
(
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
f
printf
(
file
,
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
}
}
}
}
FPutS
(
"]
\n
"
,
file
);
FPutS
(
"]
\n
"
,
file
);
...
@@ -399,7 +399,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
...
@@ -399,7 +399,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
for_l
(
node_id_ref_count_elem
,
node
->
node_node_id_ref_counts
,
nrcl_next
){
for_l
(
node_id_ref_count_elem
,
node
->
node_node_id_ref_counts
,
nrcl_next
){
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
printf
(
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
f
printf
(
file
,
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
}
}
}
}
FPutS
(
"]
\n
"
,
file
);
FPutS
(
"]
\n
"
,
file
);
...
@@ -445,7 +445,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
...
@@ -445,7 +445,7 @@ void PrintRuleNode (Node node,Bool brackets,int n_leading_spaces,File file)
for_l
(
node_id_ref_count_elem
,
node
->
node_node_id_ref_counts
,
nrcl_next
){
for_l
(
node_id_ref_count_elem
,
node
->
node_node_id_ref_counts
,
nrcl_next
){
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
DPrintNodeId
(
node_id_ref_count_elem
->
nrcl_node_id
,
file
);
printf
(
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
f
printf
(
file
,
" %d "
,
node_id_ref_count_elem
->
nrcl_ref_count
);
}
}
}
}
FPutS
(
"]
\n
"
,
file
);
FPutS
(
"]
\n
"
,
file
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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