mirror of https://github.com/golang/go.git
export external functions
R=r DELTA=16 (10 added, 4 deleted, 2 changed) OCL=13815 CL=13815
This commit is contained in:
parent
71d50b8bf9
commit
695f83a9e0
|
|
@ -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;
|
||||
}
|
||||
| ';'
|
||||
|
|
|
|||
Loading…
Reference in New Issue