Commit 695f83a9 authored by Ken Thompson's avatar Ken Thompson

export external functions

R=r
DELTA=16  (10 added, 4 deleted, 2 changed)
OCL=13815
CL=13815
parent 71d50b8b
......@@ -135,21 +135,27 @@ import_there:
*/
xdcl:
common_dcl
| LEXPORT { exportadj = 1; } common_dcl
| xfndcl
{
$$ = $3;
exportadj = 0;
$$ = N;
}
| LEXPORT export_list_r
{
$$ = N;
}
| LEXPORT { exportadj = 1; } common_dcl
{
$$ = $3;
exportadj = 0;
}
| LEXPORT '(' export_list_r ')'
{
$$ = N;
}
| xfndcl
| LEXPORT xfndcl
{
if($2 != N && $2->nname != N)
exportsym($2->nname->sym);
$$ = N;
}
| ';'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment