The great merge

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2002-11-30 22:01:28 +00:00
commit 12a43edc2d
1508 changed files with 125983 additions and 44037 deletions

View file

@ -0,0 +1,9 @@
*_wrap.c
*_wrap.cxx
*.dll
*.dsw
*.ncb
*.opt
*.plg
Release
Debug

View file

@ -14,6 +14,7 @@ static::
TARGET='mypython' INTERFACE='$(INTERFACE)' python_cpp_static
clean::
rm -f *_wrap* *.o *~ *.so mypython *.pyc .~* core
$(MAKE) -f $(TOP)/Makefile python_clean
rm -f $(TARGET).py
check: all

View file

@ -1,30 +0,0 @@
# file: example.py
import example
# ----- Object creation -----
# Print out the value of some enums
print "*** color ***"
print " RED =", example.RED
print " BLUE =", example.BLUE
print " GREEN =", example.GREEN
print "\n*** Foo::speed ***"
print " Foo_IMPULSE =", example.Foo_IMPULSE
print " Foo_WARP =", example.Foo_WARP
print " Foo_LUDICROUS =", example.Foo_LUDICROUS
print "\nTesting use of enums with functions\n"
example.enum_test(example.RED, example.Foo_IMPULSE)
example.enum_test(example.BLUE, example.Foo_WARP)
example.enum_test(example.GREEN, example.Foo_LUDICROUS)
example.enum_test(1234,5678)
print "\nTesting use of enum with class method"
f = example.new_Foo()
example.Foo_enum_test(f,example.Foo_IMPULSE)
example.Foo_enum_test(f,example.Foo_WARP)
example.Foo_enum_test(f,example.Foo_LUDICROUS)

View file

@ -0,0 +1,31 @@
# file: example.py
import example
# ----- Object creation -----
# Print out the value of some enums
print "*** color ***"
print " RED =", example.RED
print " BLUE =", example.BLUE
print " GREEN =", example.GREEN
print "\n*** Foo::speed ***"
print " Foo_IMPULSE =", example.Foo.IMPULSE
print " Foo_WARP =", example.Foo.WARP
print " Foo_LUDICROUS =", example.Foo.LUDICROUS
print "\nTesting use of enums with functions\n"
example.enum_test(example.RED, example.Foo.IMPULSE)
example.enum_test(example.BLUE, example.Foo.WARP)
example.enum_test(example.GREEN, example.Foo.LUDICROUS)
example.enum_test(1234,5678)
print "\nTesting use of enum with class method"
f = example.Foo()
f.enum_test(example.Foo.IMPULSE)
f.enum_test(example.Foo.WARP)
f.enum_test(example.Foo.LUDICROUS)