All the runtime scripts are called runme.tcl now for easier testing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
501bca9b67
commit
d2d3496881
22 changed files with 34 additions and 22 deletions
|
|
@ -1,9 +1,11 @@
|
|||
# see top-level Makefile.in
|
||||
class
|
||||
constants
|
||||
contract
|
||||
enum
|
||||
funcptr
|
||||
import
|
||||
mpointer
|
||||
multimap
|
||||
operator
|
||||
pointer
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example1.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
# This file illustrates the high level C++ interface.
|
||||
# In this case C++ classes work kind of like Tk widgets
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example1.tcl
|
||||
# file: runme2.tcl
|
||||
|
||||
# This file illustrates the low-level C++ interface
|
||||
# created by SWIG. In this case, all of our C++ classes
|
||||
|
|
@ -19,7 +19,7 @@ to see a SWIG interface with some constant declarations in it.
|
|||
|
||||
<h2>Accessing Constants from Tcl</h2>
|
||||
|
||||
Click <a href="example.tcl">here</a> to see a script that prints out the values
|
||||
Click <a href="runme.tcl">here</a> to see a script that prints out the values
|
||||
of the constants contained in the above file.
|
||||
|
||||
<h2>Key points</h2>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
# Try to load as a dynamic module.
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
|
@ -21,7 +21,7 @@ of enumerated types are handled as integers.
|
|||
<ul>
|
||||
<li><a href="example.h">example.h</a>. Header file containing some enums.
|
||||
<li><a href="example.i">example.i</a>. Interface file.
|
||||
<li><a href="example.tcl">example.tcl</a>. Sample Tcl script.
|
||||
<li><a href="runme.tcl">runme.tcl</a>. Sample Tcl script.
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ Here are some files that illustrate this with a simple example:
|
|||
<li><a href="example.c">example.c</a>
|
||||
<li><a href="example.h">example.h</a>
|
||||
<li><a href="example.i">example.i</a> (SWIG interface)
|
||||
<li><a href="example.tcl">example.tcl</a> (Sample script)
|
||||
<li><a href="runme.tcl">runme.tcl</a> (Sample script)
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
||||
11
SWIG/Examples/tcl/mpointer/.cvsignore
Normal file
11
SWIG/Examples/tcl/mpointer/.cvsignore
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
*_wrap.c
|
||||
*_wrap.cxx
|
||||
*.dll
|
||||
*.dsw
|
||||
*.exp
|
||||
*.lib
|
||||
*.ncb
|
||||
*.opt
|
||||
*.plg
|
||||
Release
|
||||
Debug
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
# Try to load as a dynamic module.
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
|
@ -147,7 +147,7 @@ extraction.
|
|||
<ul>
|
||||
<li> <a href="example.c">example.c</a> (C Source)
|
||||
<li> <a href="example.i">example.i</a> (Swig interface)
|
||||
<li> <a href="example.tcl">example.tcl</a> (Tcl Script)
|
||||
<li> <a href="runme.tcl">runme.tcl</a> (Tcl Script)
|
||||
</ul>
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ Click <a href="example.i">here</a> to see a SWIG interface file with these addit
|
|||
|
||||
<h2>Sample Tcl scripts</h2>
|
||||
|
||||
Click <a href="example.tcl">here</a> to see a script that manipulates some C++ references.
|
||||
Click <a href="runme.tcl">here</a> to see a script that manipulates some C++ references.
|
||||
|
||||
<h2>Notes:</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
# This file illustrates the manipulation of C++ references in Tcl
|
||||
|
||||
|
|
@ -66,7 +66,7 @@ to create the extension <tt>example.so</tt>.
|
|||
|
||||
<h2>Using the extension</h2>
|
||||
|
||||
Click <a href="example.tcl">here</a> to see a script that calls our C functions from Tcl.
|
||||
Click <a href="runme.tcl">here</a> to see a script that calls our C functions from Tcl.
|
||||
|
||||
<h2>Key points</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
# file: example.tcl
|
||||
# file: runme.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
|
||||
|
|
@ -79,7 +79,7 @@ objects and to print out the value (for debugging purposes).
|
|||
|
||||
<h2>A Tcl Script</h2>
|
||||
|
||||
Click <a href="example.tcl">here</a> to see a script that uses these functions from Tcl.
|
||||
Click <a href="runme.tcl">here</a> to see a script that uses these functions from Tcl.
|
||||
|
||||
<h2>Notes</h2>
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ Click <a href="example.i">here</a> to see a SWIG interface with some variable de
|
|||
|
||||
<h2>Manipulating Variables from Tcl</h2>
|
||||
|
||||
Click <a href="example.tcl">here</a> to see a script that updates and prints out the values of
|
||||
Click <a href="runme.tcl">here</a> to see a script that updates and prints out the values of
|
||||
the variables defined in the above file. Notice how the C global variables work just
|
||||
like normal Tcl variables.
|
||||
|
||||
|
|
@ -75,4 +75,4 @@ interface.
|
|||
|
||||
</body>
|
||||
</html>
|
||||
<hr>
|
||||
<hr>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# file: example.tcl
|
||||
# file: runme.tcl
|
||||
|
||||
catch { load ./example[info sharedlibextension] example}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue