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
85e01ce1
Commit
85e01ce1
authored
May 04, 2018
by
John van Groningen
Browse files
improve error message for a foreign export of a not exported function
parent
b00de8f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/check.icl
View file @
85e01ce1
...
...
@@ -2797,7 +2797,8 @@ checkForeignExports [{pfe_ident=pfe_ident=:{id_name,id_info},pfe_line,pfe_file,p
check_foreign_export
(
STE_FunctionOrMacro
_)
[_,{
ir_from
,
ir_to
}:_]
fun_defs
cs
|
ste_index
>=
ir_from
&&
ste_index
<
ir_to
#
ident_pos
=
{
ip_ident
=
pfe_ident
,
ip_line
=
pfe_line
,
ip_file
=
pfe_file
}
=
([],
fun_defs
,{
cs
&
cs_error
=
checkErrorWithIdentPos
ident_pos
"has not been exported"
cs
.
cs_error
})
cs
&
cs_error
=
checkErrorWithIdentPos
ident_pos
"function has not been exported (not defined in definition module)"
cs
.
cs_error
=
([],
fun_defs
,
cs
)
check_foreign_export
_
_
fun_defs
cs
#
ident_pos
=
{
ip_ident
=
pfe_ident
,
ip_line
=
pfe_line
,
ip_file
=
pfe_file
}
=
([],
fun_defs
,{
cs
&
cs_error
=
checkErrorWithIdentPos
ident_pos
"has not been declared"
cs
.
cs_error
})
...
...
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