summaryrefslogtreecommitdiff
path: root/Examples/perl5
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/perl5
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/perl5')
-rw-r--r--Examples/perl5/reference/index.html16
-rw-r--r--Examples/perl5/simple/index.html2
2 files changed, 9 insertions, 9 deletions
diff --git a/Examples/perl5/reference/index.html b/Examples/perl5/reference/index.html
index a4043e98e..d2c894374 100644
--- a/Examples/perl5/reference/index.html
+++ b/Examples/perl5/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;
}
}
diff --git a/Examples/perl5/simple/index.html b/Examples/perl5/simple/index.html
index 84642ab49..4e88b8ea4 100644
--- a/Examples/perl5/simple/index.html
+++ b/Examples/perl5/simple/index.html
@@ -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;