diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-09-13 13:11:55 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-09-13 13:11:55 +0200 |
commit | 80f18fc933cf3f3e829c5455a1023d69f7b86e52 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /misc/swig/stdio | |
parent | 28592ee1ea1f5cdffcf85472f9de0285d928cf12 (diff) | |
download | golang-80f18fc933cf3f3e829c5455a1023d69f7b86e52.tar.gz |
Imported Upstream version 60
Diffstat (limited to 'misc/swig/stdio')
-rw-r--r-- | misc/swig/stdio/Makefile | 17 | ||||
-rw-r--r-- | misc/swig/stdio/file.swig | 11 | ||||
-rwxr-xr-x | misc/swig/stdio/hello | bin | 231270 -> 0 bytes | |||
-rw-r--r-- | misc/swig/stdio/hello.go | 11 |
4 files changed, 0 insertions, 39 deletions
diff --git a/misc/swig/stdio/Makefile b/misc/swig/stdio/Makefile deleted file mode 100644 index e7d330587..000000000 --- a/misc/swig/stdio/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright 2011 The Go Authors. All rights reserved. -# Use of this source code is governed by a BSD-style -# license that can be found in the LICENSE file. - -include ../../../src/Make.inc - -TARG=swig/file -SWIGFILES=\ - file.swig - -CLEANFILES+=hello - -include ../../../src/Make.pkg - -%: install %.go - $(GC) $*.go - $(LD) $(SWIG_RPATH) -o $@ $*.$O diff --git a/misc/swig/stdio/file.swig b/misc/swig/stdio/file.swig deleted file mode 100644 index 57c623f8f..000000000 --- a/misc/swig/stdio/file.swig +++ /dev/null @@ -1,11 +0,0 @@ -/* Copyright 2011 The Go Authors. All rights reserved. - Use of this source code is governed by a BSD-style - license that can be found in the LICENSE file. */ - -/* A trivial example of wrapping a C library using SWIG. */ - -%{ -#include <stdio.h> -%} - -int puts(const char *); diff --git a/misc/swig/stdio/hello b/misc/swig/stdio/hello Binary files differdeleted file mode 100755 index 10c55631f..000000000 --- a/misc/swig/stdio/hello +++ /dev/null diff --git a/misc/swig/stdio/hello.go b/misc/swig/stdio/hello.go deleted file mode 100644 index eec294278..000000000 --- a/misc/swig/stdio/hello.go +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package main - -import "swig/file" - -func main() { - file.Puts("Hello, world") -} |