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
a0a1f23a
Commit
a0a1f23a
authored
Jan 31, 2006
by
Ronny Wichers Schreur
🏢
Browse files
Moved forward declaration of static functions from inside functions
to top level, to suppress gcc 4.0 errors.
parent
3ed1243f
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/backend.c
View file @
a0a1f23a
...
...
@@ -380,6 +380,10 @@ BESetMainDclModuleN (int main_dcl_module_n_parameter)
static
DefMod
im_def_module
;
static
void
DeclareFunctionC
(
char
*
name
,
int
arity
,
int
functionIndex
,
unsigned
int
ancestor
);
static
BESymbolP
CreateDictionarySelectFunSymbol
(
void
);
static
BESymbolP
CreateDictionaryUpdateFunSymbol
(
void
);
void
BEDeclareIclModule
(
CleanString
name
,
CleanString
modificationTime
,
int
nFunctions
,
int
nTypes
,
int
nConstructors
,
int
nFields
)
{
...
...
@@ -428,7 +432,6 @@ BEDeclareIclModule (CleanString name, CleanString modificationTime, int nFunctio
for
(
i
=
0
;
i
<
ArraySize
(
gLocallyGeneratedFunctions
);
i
++
)
{
static
void
DeclareFunctionC
(
char
*
name
,
int
arity
,
int
functionIndex
,
unsigned
int
ancestor
);
BELocallyGeneratedFunctionP
locallyGeneratedFunction
;
locallyGeneratedFunction
=
&
gLocallyGeneratedFunctions
[
i
];
...
...
@@ -438,9 +441,6 @@ BEDeclareIclModule (CleanString name, CleanString modificationTime, int nFunctio
/* +++ hack */
{
static
BESymbolP
CreateDictionarySelectFunSymbol
(
void
);
static
BESymbolP
CreateDictionaryUpdateFunSymbol
(
void
);
gBEState
.
be_dictionarySelectFunSymbol
=
CreateDictionarySelectFunSymbol
();
gBEState
.
be_dictionaryUpdateFunSymbol
=
CreateDictionaryUpdateFunSymbol
();
}
...
...
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