From f8bb745beb481846e715cd1e455b3d688fe34d65 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 9 Dec 2010 03:54:40 +0000 Subject: 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 --- src/c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c.cpp') 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"; -- cgit v1.2.1