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
d9b30d60
Commit
d9b30d60
authored
Feb 09, 2001
by
Ronny Wichers Schreur
🏢
Browse files
Removed pretty printing of types in instances
parent
4eac278a
Changes
2
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/checksupport.c
View file @
d9b30d60
...
...
@@ -285,16 +285,19 @@ static char *PrintTypesOfSymbol (char *type_repr, File file, ModuleInfo module_i
}
/* PrintTypesOfSymbol */
#define _ANALYSE_IDENT_
#ifndef CLEAN2
#define _ANALYSE_INSTANCE_TYPES_
#endif
#define MAX_SYMBOL_EXTENSION_SIZE 40
void
PrintSymbolOfIdent
(
Ident
sid
,
unsigned
line_nr
,
File
file
)
{
char
*
next_char
,
*
name
;
int
print_length
=
MAX_SYMBOL_EXTENSION_SIZE
;
#ifdef _ANALYSE_IDENT_
name
=
sid
->
ident_name
;
#ifdef _ANALYSE_IDENT_
if
(
*
name
==
cTypeDelimiter
)
{
for
(
next_char
=
name
+
1
;
*
next_char
==
cTypeDelimiter
;
next_char
++
)
;
...
...
@@ -341,7 +344,8 @@ void PrintSymbolOfIdent (Ident sid, unsigned line_nr, File file)
next_char
=
end_name
+
1
;
}
#ifdef _ANALYSE_INSTANCE_TYPES_
FPutS
(
" ("
,
file
);
next_char
=
PrintTypesOfSymbol
(
next_char
,
file
,
sid
->
ident_mod_info
,
&
print_length
);
...
...
@@ -352,6 +356,9 @@ void PrintSymbolOfIdent (Ident sid, unsigned line_nr, File file)
}
FPutC
(
')'
,
file
);
#else
FPutS
(
next_char
,
file
);
#endif
/* _ANALYSE_INSTANCE_TYPES_ */
}
#else
...
...
coclmaindll/backend.dll
View file @
d9b30d60
No preview for this file type
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