diff options
| author | Ian Lance Taylor <iant@golang.org> | 2010-03-22 19:58:55 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2010-03-22 19:58:55 -0700 |
| commit | a8f4a57f534f5c2f599bb1d91b82780a90871fb3 (patch) | |
| tree | ece128eebc9aae3feccab258f391cd4a9dbd01e2 /src/cmd/5c/swt.c | |
| parent | e43240cf858f6a3279ef59ca4ba806ddf2bea28a (diff) | |
| download | golang-a8f4a57f534f5c2f599bb1d91b82780a90871fb3.tar.gz | |
Rename dynld to dynimport throughout.
Cgo users will need to rerun cgo.
R=rsc
CC=golang-dev
http://codereview.appspot.com/692041
Diffstat (limited to 'src/cmd/5c/swt.c')
| -rw-r--r-- | src/cmd/5c/swt.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cmd/5c/swt.c b/src/cmd/5c/swt.c index 4c2a81cbf..3aaf748a4 100644 --- a/src/cmd/5c/swt.c +++ b/src/cmd/5c/swt.c @@ -374,6 +374,17 @@ outcode(void) } Bprint(&outbuf, "%s\n", thestring); + if(ndynimp > 0) { + int i; + + Bprint(&outbuf, "\n"); + Bprint(&outbuf, "$$ // exports\n\n"); + Bprint(&outbuf, "$$ // local types\n\n"); + Bprint(&outbuf, "$$ // dynimport\n", thestring); + for(i=0; i<ndynimp; i++) + Bprint(&outbuf, "dynimport %s %s %s\n", dynimp[i].local, dynimp[i].remote, dynimp[i].path); + Bprint(&outbuf, "$$\n\n"); + } Bprint(&outbuf, "!\n"); outhist(&outbuf); |
