summaryrefslogtreecommitdiffstats
path: root/src/vhdlscanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2009-01-29 20:13:23 (GMT)
commit5f3d8499c05e9eb512b72d296073041ac4da6f4d (patch)
tree0653bda058f25d9420dd6ddcaf4edc28781a8aa4 /src/vhdlscanner.l
parenta0924f7d469a42ab962763ce34ea5fabc73da9d7 (diff)
downloadDoxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.zip
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.gz
Doxygen-5f3d8499c05e9eb512b72d296073041ac4da6f4d.tar.bz2
Release-1.5.8-20090129
Diffstat (limited to 'src/vhdlscanner.l')
-rw-r--r--src/vhdlscanner.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vhdlscanner.l b/src/vhdlscanner.l
index 87ece96..eb435b5 100644
--- a/src/vhdlscanner.l
+++ b/src/vhdlscanner.l
@@ -356,7 +356,7 @@ static void parseProcessProto()
getBufText(qcs,0);
if (qcs.contains('(') != qcs.contains(')')) return;
VhdlDocGen::deleteAllChars(qcs,'\n');
- VhdlDocGen::parseProcessProto(qcs.data(),name,ql);
+ VhdlDocGen::parseProcessProto(qcs,name,ql);
current->section=Entry::FUNCTION_SEC;
//current->stat=TRUE;
current->spec=VhdlDocGen::PROCESS;
@@ -409,7 +409,6 @@ static void parseFunctionProto()
return; // function without a prototype
if (qcs.contains("function",FALSE)==0 && qcs.contains("procedure",FALSE)==0)
return;
- //Entry* ppEntry=new Entry;
while (qcs.stripPrefix(" "));
if (qcs.stripPrefix("impure"))
current->exception="impure";
@@ -417,6 +416,7 @@ static void parseFunctionProto()
current->exception="pure";
VhdlDocGen::parseFuncProto(qcs.data(),ql,name,ret);
+ //printf("parseFuncProto(%s)=%s,%s\n",qcs.data(),name.data(),ret.data());
current->name=name;
current->startLine=iFuncLine;
current->bodyLine=iFuncLine;
@@ -442,7 +442,7 @@ static void parseFunctionProto()
}
current->args+" )";
- if (ret.data())
+ if (!ret.isEmpty())
current->spec=VhdlDocGen::FUNCTION;
else
current->spec=VhdlDocGen::PROCEDURE;
@@ -1051,6 +1051,7 @@ ALLID [^;()\t ]
bb=FALSE;
}
bool ss = VhdlDocGen::isFunctionProto(ttt);
+ //printf("VhdlDocGen::isFunctionProto(%s)=%d\n",ttt.data(),ss);
if (ss && bb)
{
bufferClear();