diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-01-29 20:13:23 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2009-01-29 20:13:23 (GMT) |
commit | 27b5dd5b526154944bb1997fb7a592343d124595 (patch) | |
tree | 0653bda058f25d9420dd6ddcaf4edc28781a8aa4 /src/vhdlscanner.l | |
parent | f1662f81dd249c51e4d8f9a64ea226f511b0bfbc (diff) | |
download | Doxygen-27b5dd5b526154944bb1997fb7a592343d124595.zip Doxygen-27b5dd5b526154944bb1997fb7a592343d124595.tar.gz Doxygen-27b5dd5b526154944bb1997fb7a592343d124595.tar.bz2 |
Release-1.5.8-20090129
Diffstat (limited to 'src/vhdlscanner.l')
-rw-r--r-- | src/vhdlscanner.l | 7 |
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(); |