summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/fundec.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-14 23:14:16 +0000
committerKarl Berry <karl@freefriends.org>2010-06-14 23:14:16 +0000
commitc2175edc7aa44ca0b526f008d473d6f8a8ac4933 (patch)
treed6c491676b413ad1922481f8c3fc7b64c3afc0a5 /Build/source/utils/asymptote/fundec.h
parent5d08e9ff4fe5fc836d237ea08e82c82b27d558a2 (diff)
asy 1.98
git-svn-id: svn://tug.org/texlive/trunk@18982 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/fundec.h')
-rw-r--r--Build/source/utils/asymptote/fundec.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/utils/asymptote/fundec.h b/Build/source/utils/asymptote/fundec.h
index 98ff2e3f51f..499505d765d 100644
--- a/Build/source/utils/asymptote/fundec.h
+++ b/Build/source/utils/asymptote/fundec.h
@@ -43,8 +43,8 @@ public:
return defval;
}
- symbol *getName() {
- return start ? start->getName() : 0;
+ symbol getName() {
+ return start ? start->getName() : symbol::nullsym;
}
bool getExplicit() {
@@ -103,13 +103,13 @@ class fundef : public exp {
// If the fundef is part of a fundec, the name of the function is stored
// here for debugging purposes.
- symbol *id;
+ symbol id;
friend class fundec;
public:
fundef(position pos, ty *result, formals *params, stm *body)
- : exp(pos), result(result), params(params), body(body), id(0) {}
+ : exp(pos), result(result), params(params), body(body), id() {}
virtual void prettyprint(ostream &out, Int indent);
@@ -125,11 +125,11 @@ public:
};
class fundec : public dec {
- symbol *id;
+ symbol id;
fundef fun;
public:
- fundec(position pos, ty *result, symbol *id, formals *params, stm *body)
+ fundec(position pos, ty *result, symbol id, formals *params, stm *body)
: dec(pos), id(id), fun(pos, result, params, body)
{ fun.id = id; }