1
0
mirror of https://github.com/golang/go synced 2024-11-26 08:07:57 -07:00

export external functions

R=r
DELTA=16  (10 added, 4 deleted, 2 changed)
OCL=13815
CL=13815
This commit is contained in:
Ken Thompson 2008-08-04 13:18:59 -07:00
parent 71d50b8bf9
commit 695f83a9e0

View File

@ -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;
}
| ';'