Fix some typos in docs and examples and make the code look nicer.

This commit is contained in:
sunoru 2016-12-31 23:06:56 +08:00
commit 8985c34809
45 changed files with 717 additions and 717 deletions

View file

@ -2537,7 +2537,7 @@ also return a pointer to the base class (<tt>Language</tt>) so that only the int
Save the code for your language module in a file named "<tt>python.cxx</tt>" and Save the code for your language module in a file named "<tt>python.cxx</tt>" and
place this file in the <tt>Source/Modules</tt> directory of the SWIG distribution. place this file in the <tt>Source/Modules</tt> directory of the SWIG distribution.
To ensure that your module is compiled into SWIG along with the other language modules, To ensure that your module is compiled into SWIG along with the other language modules,
modify the file <tt>Source/Modules/Makefile.am</tt> to include the additional source modify the file <tt>Source/Makefile.am</tt> to include the additional source
files. In addition, modify the file <tt>Source/Modules/swigmain.cxx</tt> files. In addition, modify the file <tt>Source/Modules/swigmain.cxx</tt>
with an additional command line option that activates the module. Read the source---it's straightforward. with an additional command line option that activates the module. Read the source---it's straightforward.
</p> </p>

View file

@ -86,7 +86,7 @@ Note: when creating a C++ extension, you must run SWIG with the <tt>-c++</tt> op
<h2>A sample Python script</h2> <h2>A sample Python script</h2>
Click <a href="example.py">here</a> to see a script that calls the C++ functions from Python. Click <a href="runme.py">here</a> to see a script that calls the C++ functions from Python.
<h2>Key points</h2> <h2>Key points</h2>

View file

@ -17,7 +17,7 @@ to see a SWIG interface with some constant declarations in it.
<h2>Accessing Constants from Python</h2> <h2>Accessing Constants from Python</h2>
Click <a href="example.py">here</a> to see a script that prints out the values Click <a href="runme.py">here</a> to see a script that prints out the values
of the constants contained in the above file. of the constants contained in the above file.
<h2>Key points</h2> <h2>Key points</h2>

View file

@ -19,7 +19,7 @@ of enumerated types are handled as integers.
<ul> <ul>
<li><a href="example.h">example.h</a>. Header file containing some enums. <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.i">example.i</a>. Interface file.
<li><a href="example.py">example.py</a>. Sample Python script. <li><a href="runme.py">runme.py</a>. Sample Python script.
</ul> </ul>
<h2>Notes</h2> <h2>Notes</h2>

View file

@ -65,7 +65,7 @@ Here are some files that illustrate this with a simple example:
<li><a href="example.c">example.c</a> <li><a href="example.c">example.c</a>
<li><a href="example.h">example.h</a> <li><a href="example.h">example.h</a>
<li><a href="example.i">example.i</a> (SWIG interface) <li><a href="example.i">example.i</a> (SWIG interface)
<li><a href="example.py">example.py</a> (Sample script) <li><a href="runme.py">runme.py</a> (Sample script)
</ul> </ul>
<h2>Notes</h2> <h2>Notes</h2>

View file

@ -145,7 +145,7 @@ extraction.
<ul> <ul>
<li> <a href="example.c">example.c</a> (C Source) <li> <a href="example.c">example.c</a> (C Source)
<li> <a href="example.i">example.i</a> (SWIG interface) <li> <a href="example.i">example.i</a> (SWIG interface)
<li> <a href="example.py">example.py</a> (Python Script) <li> <a href="runme.py">runme.py</a> (Python Script)
</ul> </ul>
<h2>Notes</h2> <h2>Notes</h2>

View file

@ -121,7 +121,7 @@ Click <a href="example.i">here</a> to see a SWIG interface file with these addit
<h2>Sample Python script</h2> <h2>Sample Python script</h2>
Click <a href="example.py">here</a> to see a script that manipulates some C++ references. Click <a href="runme.py">here</a> to see a script that manipulates some C++ references.
<h2>Notes:</h2> <h2>Notes:</h2>

View file

@ -65,7 +65,7 @@ to create the extension <tt>examplemodule.so</tt>.
<h2>Using the extension</h2> <h2>Using the extension</h2>
Click <a href="example.py">here</a> to see a script that calls our C functions from Python. Click <a href="runme.py">here</a> to see a script that calls our C functions from Python.
<h2>Key points</h2> <h2>Key points</h2>

View file

@ -48,7 +48,7 @@ double foo;
</blockquote> </blockquote>
it will be accessed in the Python module as <tt>cvar.foo</tt>. Click it will be accessed in the Python module as <tt>cvar.foo</tt>. Click
<a href="example.py">here</a> to see a script that updates and prints <a href="runme.py">here</a> to see a script that updates and prints
out the values of the variables using this technique. out the values of the variables using this technique.
<h2>Key points</h2> <h2>Key points</h2>