html fixes

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6632 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-11-02 22:13:39 +00:00
commit 3ef946d2d1
13 changed files with 51 additions and 51 deletions

View file

@ -51,8 +51,8 @@ the steps look like this (Linux):
% python
Python 1.5.2 (#3, Oct 9 1999, 22:09:34) [GCC 2.95.1 19990816 (release)] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import interface
>>> interface.blah(...)
>>> import interface
>>> interface.blah(...)
...
</pre>
</blockquote>

View file

@ -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;
}
}

View file

@ -32,7 +32,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;