diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2004-11-02 22:13:39 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2004-11-02 22:13:39 +0000 |
commit | 3ef946d2d143b22a88bd8d52b9b5819a4b9cdf44 (patch) | |
tree | 8cd92297a92ee0edff20d908ca048407651bbc26 /Examples/tcl | |
parent | 0dc3099ead575d7ceba45022c13958de29642444 (diff) | |
download | swig-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.html | 18 | ||||
-rw-r--r-- | Examples/tcl/simple/index.html | 2 |
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 &a, const Vector &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 &a, const Vector &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 &operator[](int index); </pre> </blockquote> @@ -75,7 +75,7 @@ or a method: <blockquote> <pre> -Vector &get(int index); +Vector &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 &result = self->get(index); + return &result; } </pre> </blockquote> @@ -107,10 +107,10 @@ class VectorArray { public: ... %addmethods { - Vector &get(int index) { + Vector &get(int index) { return (*self)[index]; } - void set(int index, Vector &a) { + void set(int index, Vector &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->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 > 0) { g = x; x = y % x; y = g; |