summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-09-20 18:19:55 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2010-09-20 18:19:55 (GMT)
commita80f9320bf9fdd879869cee2cea1ec3f9af822f8 (patch)
treec3964e8a42bc4dfecf5a99d6de94650878e67a0f /src/code.l
parentce8facca2c23f4656747ad3a5b4a8db475855e27 (diff)
downloadDoxygen-a80f9320bf9fdd879869cee2cea1ec3f9af822f8.zip
Doxygen-a80f9320bf9fdd879869cee2cea1ec3f9af822f8.tar.gz
Doxygen-a80f9320bf9fdd879869cee2cea1ec3f9af822f8.tar.bz2
Release-1.7.1-20100920
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/code.l b/src/code.l
index 1543f53..e973bf9 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2851,13 +2851,15 @@ OPERATOR {ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}
if (cd)
{
setClassScope(cd->name());
+ g_scopeStack.push(SCOPEBLOCK);
+ DBG_CTX((stderr,"** scope stack push SCOPEBLOCK\n"));
}
- else
+ else
{
- setClassScope(g_realScope);
+ //setClassScope(g_realScope);
+ g_scopeStack.push(INNERBLOCK);
+ DBG_CTX((stderr,"** scope stack push INNERBLOCK\n"));
}
- DBG_CTX((stderr,"** scope stack push SCOPEBLOCK\n"));
- g_scopeStack.push(SCOPEBLOCK);
}
else
{
@@ -3356,7 +3358,8 @@ void parseCCode(CodeOutputInterface &od,const char *className,const QCString &s,
int startLine,int endLine,bool inlineFragment,
MemberDef *memberDef,bool showLineNumbers)
{
- //printf("***parseCode() exBlock=%d exName=%s fd=%p\n",exBlock,exName,fd);
+ //printf("***parseCode() exBlock=%d exName=%s fd=%p className=%s\n",
+ // exBlock,exName,fd,className);
if (s.isEmpty()) return;
if (g_codeClassSDict==0)
{
@@ -3386,6 +3389,7 @@ void parseCCode(CodeOutputInterface &od,const char *className,const QCString &s,
g_theCallContext.clear();
g_scopeStack.clear();
g_classScope = className;
+ //printf("parseCCode %s\n",className);
g_exampleBlock = exBlock;
g_exampleName = exName;
g_sourceFileDef = fd;