aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-09 03:54:40 +0000
committerDavid Robillard <d@drobilla.net>2010-12-09 03:54:40 +0000
commitf8bb745beb481846e715cd1e455b3d688fe34d65 (patch)
tree5730d1dbf70ed6d42ef2786ea012896e9af28e42 /src/c.cpp
parent39af9fe79809a67c837485d8edcae6b9246c5fa6 (diff)
downloadresp-f8bb745beb481846e715cd1e455b3d688fe34d65.tar.gz
resp-f8bb745beb481846e715cd1e455b3d688fe34d65.tar.bz2
resp-f8bb745beb481846e715cd1e455b3d688fe34d65.zip
Make environment always referenced by symbols.
Intern symbol strings, but not ASymbol objects themselves, so each symbol can have a different Cursor. Fixes missing locations in error reporting. git-svn-id: http://svn.drobilla.net/resp/resp@324 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c.cpp b/src/c.cpp
index 5d5ddd3..3ebd608 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -184,7 +184,7 @@ CEngine::startFn(CEnv& cenv, const std::string& name, const ATuple* args, const
for (; ai != argsT->end(); ++ai, ++ni) {
if (ai != argsT->begin())
f->text += ", ";
- f->text += *llType((*ai)->as_type()) + " " + (*ni)->as_symbol()->cppstr;
+ f->text += *llType((*ai)->as_type()) + " " + (*ni)->as_symbol()->sym();
}
f->text += ")\n{\n";