Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
db92f120
Commit
db92f120
authored
Jul 12, 2019
by
johnvg@science.ru.nl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove variabels CurrentPhase and CurrentExt
parent
af2d0391
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
14 deletions
+4
-14
backendC/CleanCompilerSources/backend.c
backendC/CleanCompilerSources/backend.c
+0
-2
backendC/CleanCompilerSources/codegen.c
backendC/CleanCompilerSources/codegen.c
+0
-2
backendC/CleanCompilerSources/comsupport.c
backendC/CleanCompilerSources/comsupport.c
+2
-8
backendC/CleanCompilerSources/comsupport.h
backendC/CleanCompilerSources/comsupport.h
+1
-1
backendC/CleanCompilerSources/windows_io.c
backendC/CleanCompilerSources/windows_io.c
+1
-1
No files found.
backendC/CleanCompilerSources/backend.c
View file @
db92f120
...
...
@@ -3287,9 +3287,7 @@ BEInit (int argc)
ExitEnv_valid
=
0
;
CurrentPhase
=
"Back End"
;
CurrentModule
=
"<unknown module>"
;
CurrentExt
=
""
;
InitStorage
();
...
...
backendC/CleanCompilerSources/codegen.c
View file @
db92f120
...
...
@@ -1132,8 +1132,6 @@ void CodeGeneration (ImpMod imod, char *fname)
int
DoStrictnessAnalysis_and_init_ok
;
ImpRuleP
new_rules
;
CurrentPhase
=
NULL
;
#if 0
PrintRules (imod->im_rules);
#endif
...
...
backendC/CleanCompilerSources/comsupport.c
View file @
db92f120
...
...
@@ -37,7 +37,7 @@ extern int VERSION;
/* 'CurrentModule' contains the name of the module that is currently under examination. */
char
*
Current
Phase
,
*
CurrentModule
,
*
CurrentExt
;
char
*
Current
Module
;
unsigned
CurrentLine
;
Symbol
CurrentSymbol
;
Bool
CompilerError
;
...
...
@@ -309,18 +309,13 @@ void StaticMessage (Bool error, char *symbol_format, char *message_format, ...)
FPutS
(
"### "
,
StdError
);
#endif
if
(
CurrentPhase
){
FPutS
(
CurrentPhase
,
StdError
);
FPutS
(
error
?
" error ["
:
" warning ["
,
StdError
);
}
else
FPutS
(
error
?
"Error ["
:
"Warning ["
,
StdError
);
FPutS
(
error
?
"Error ["
:
"Warning ["
,
StdError
);
#ifdef MAKE_MPW_TOOL
FPutS
(
"File "
,
StdError
);
#endif
FPutS
(
CurrentModule
,
StdError
);
FPutS
(
CurrentExt
,
StdError
);
if
(
CurrentLine
>
0
){
#ifdef MAKE_MPW_TOOL
...
...
@@ -450,7 +445,6 @@ void InitCompiler (void)
/* Call all the initialization functions */
/* InitStorage has to be called first */
CurrentModule
=
Init
;
CurrentExt
=
""
;
InitStorage
();
InitParser
();
...
...
backendC/CleanCompilerSources/comsupport.h
View file @
db92f120
...
...
@@ -19,7 +19,7 @@ struct symbol;
extern
void
PrintSymbol
(
struct
symbol
*
symbol
,
File
file
);
extern
Bool
CompilerError
;
extern
char
*
CurrentModule
,
*
C
urrentExt
,
*
CurrentPhase
,
*
C
ompilerVersion
;
extern
char
*
CurrentModule
,
*
CompilerVersion
;
extern
struct
symbol
*
CurrentSymbol
;
...
...
backendC/CleanCompilerSources/windows_io.c
View file @
db92f120
...
...
@@ -23,7 +23,7 @@
File
FOpen
(
char
*
fname
,
char
*
mode
)
{
return
fopen
(
fname
,
mode
);
}
}
int
FClose
(
File
f
)
{
...
...
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