summaryrefslogtreecommitdiff
path: root/Examples/tcl
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2004-11-02 22:13:39 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2004-11-02 22:13:39 +0000
commit3ef946d2d143b22a88bd8d52b9b5819a4b9cdf44 (patch)
tree8cd92297a92ee0edff20d908ca048407651bbc26 /Examples/tcl
parent0dc3099ead575d7ceba45022c13958de29642444 (diff)
downloadswig-3ef946d2d143b22a88bd8d52b9b5819a4b9cdf44.tar.gz
html fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/tcl')
-rw-r--r--Examples/tcl/reference/index.html18
-rw-r--r--Examples/tcl/simple/index.html2
2 files changed, 10 insertions, 10 deletions
diff --git a/Examples/tcl/reference/index.html b/Examples/tcl/reference/index.html
index 70485c977..764a382b9 100644
--- a/Examples/tcl/reference/index.html
+++ b/Examples/tcl/reference/index.html
@@ -26,7 +26,7 @@ you might have an operator like this:
<blockquote>
<pre>
-Vector operator+(const Vector &a, const Vector &b) {
+Vector operator+(const Vector &amp;a, const Vector &amp;b) {
Vector result;
result.x = a.x + b.x;
result.y = a.y + b.y;
@@ -40,7 +40,7 @@ or a function:
<blockquote>
<pre>
-Vector addv(const Vector &a, const Vector &b) {
+Vector addv(const Vector &amp;a, const Vector &amp;b) {
Vector result;
result.x = a.x + b.x;
result.y = a.y + b.y;
@@ -67,7 +67,7 @@ The prototypical example is an operator like this:
<blockquote>
<pre>
-Vector &operator[](int index);
+Vector &amp;operator[](int index);
</pre>
</blockquote>
@@ -75,7 +75,7 @@ or a method:
<blockquote>
<pre>
-Vector &get(int index);
+Vector &amp;get(int index);
</pre>
</blockquote>
@@ -84,8 +84,8 @@ For functions returning references, a wrapper like this is created:
<blockquote>
<pre>
Vector *wrap_Object_get(Object *self, int index) {
- Vector &result = self->get(index);
- return &result;
+ Vector &amp;result = self-&gt;get(index);
+ return &amp;result;
}
</pre>
</blockquote>
@@ -107,10 +107,10 @@ class VectorArray {
public:
...
%addmethods {
- Vector &get(int index) {
+ Vector &amp;get(int index) {
return (*self)[index];
}
- void set(int index, Vector &a) {
+ void set(int index, Vector &amp;a) {
(*self)[index] = a;
}
}
@@ -129,7 +129,7 @@ Click <a href="runme.tcl">here</a> to see a script that manipulates some C++ ref
<ul>
<li>C++ references primarily provide notational convenience for C++
-source code. However, Tcl has neither the 'x.a' or 'x->a'
+source code. However, Tcl has neither the 'x.a' or 'x-&gt;a'
notation so it doesn't much matter.
<p>
diff --git a/Examples/tcl/simple/index.html b/Examples/tcl/simple/index.html
index baf7fdd60..908f486b7 100644
--- a/Examples/tcl/simple/index.html
+++ b/Examples/tcl/simple/index.html
@@ -31,7 +31,7 @@ double Foo = 3.0;
int gcd(int x, int y) {
int g;
g = y;
- while (x > 0) {
+ while (x &gt; 0) {
g = x;
x = y % x;
y = g;