From 1fce5e0454f6311898262ba0fa09eb4eb8e3461e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 31 Aug 2007 22:06:23 +0000 Subject: [PATCH] remove C++ usage in C file git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9920 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/CParse/templ.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/CParse/templ.c b/Source/CParse/templ.c index c9bef4dfc..edb6a9736 100644 --- a/Source/CParse/templ.c +++ b/Source/CParse/templ.c @@ -50,9 +50,10 @@ void Swig_cparse_debug_templates(int x) { static int cparse_template_expand(Node *n, String *tname, String *rname, String *templateargs, List *patchlist, List *typelist, List *cpatchlist) { static int expanded = 0; int ret; + String *nodeType; if (!n) return 0; - String *nodeType = nodeType(n); + nodeType = nodeType(n); if (Getattr(n, "error")) return 0;