Tcl patches. Use [info sharedlibextension] to get file extension rather than hard-coding it]

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-11-11 21:20:00 +00:00
commit 1b607484e2
25 changed files with 39 additions and 116 deletions

View file

@ -4,8 +4,7 @@
# created by SWIG. In this case, all of our C++ classes
# get converted into function calls.
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# ----- Object creation -----

View file

@ -3,8 +3,7 @@
# This file illustrates the high level C++ interface.
# In this case C++ classes work kind of like Tk widgets
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# ----- Object creation -----

View file

@ -1,7 +1,6 @@
# file: example.tcl
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
puts "ICONST = $ICONST (should be 42)"
puts "FCONST = $FCONST (should be 2.1828)"

View file

@ -1,8 +1,6 @@
# file: example.tcl
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# ----- Object creation -----

View file

@ -1,7 +1,6 @@
# file: example.tcl
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
set a 37
set b 42

View file

@ -2,17 +2,10 @@
# Test various properties of classes defined in separate modules
puts "Testing the %import directive"
catch { load ./base.so base}
catch { load ./base.dll base} ;# Windows
catch { load ./foo.so foo}
catch { load ./foo.dll foo} ;# Windows
catch { load ./bar.so bar}
catch { load ./bar.dll bar} ;# Windows
catch { load ./spam.so spam}
catch { load ./spam.dll spam} ;# Windows
catch { load ./base[info sharedlibextension] base}
catch { load ./foo[info sharedlibextension] foo}
catch { load ./bar[info sharedlibextension] bar}
catch { load ./spam[info sharedlibextension] spam}
# Create some objects

View file

@ -1,8 +1,7 @@
# file: example.tcl
# Try to load as a dynamic module.
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# Call our gcd() function
set x 42

View file

@ -1,7 +1,6 @@
# Operator overloading example
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
set a [Complex -args 2 3]
set b [Complex -args -5 10]

View file

@ -1,7 +1,6 @@
# file: example.tcl
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# First create some objects using the pointer library.
puts "Testing the pointer library"

View file

@ -2,8 +2,7 @@
# This file illustrates the manipulation of C++ references in Tcl
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# ----- Object creation -----

View file

@ -3,4 +3,3 @@
extern int gcd(int x, int y);
extern double Foo;

View file

@ -1,8 +1,7 @@
# file: example.tcl
# Try to load as a dynamic module.
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# Call our gcd() function
set x 42

View file

@ -1,8 +1,7 @@
# file: example.py
# Try to load as a dynamic module.
catch { load ./example.so example}
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# Create a couple of a vectors

View file

@ -1,7 +1,6 @@
# file: example.tcl
catch { load ./example.so example} ;# Unix
catch { load ./example.dll example} ;# Windows
catch { load ./example[info sharedlibextension] example}
# Try to set the values of some global variables