@@ -294,16 +294,18 @@ Function addDecoratedFunctions(module, procedure, declWave, lineWave)
294
294
String options, funcList
295
295
string func, funcDec, fi
296
296
string threadsafeTag, specialTag, params, subtypeTag, returnType
297
- variable idx, numMatches, numEntries
297
+ variable i , idx, numMatches, numEntries
298
298
299
299
// list normal, userdefined, override and static functions
300
300
options = "KIND:18,WIN:" + procedure
301
301
funcList = FunctionList ( "*" , ";" , options)
302
302
numMatches = ItemsInList ( funcList)
303
303
numEntries = DimSize ( declWave, 0 )
304
304
Redimension / N= ( numEntries + numMatches, -1 ) declWave, lineWave
305
- for ( idx = numEntries; idx < ( numEntries + numMatches) ; idx += 1 )
306
- func = StringFromList ( idx, funcList)
305
+
306
+ idx = numEntries
307
+ for ( i = 0; i < numMatches; i += 1 )
308
+ func = StringFromList ( i , funcList)
307
309
fi = FunctionInfo ( module + "#" + func, procedure)
308
310
if ( ! cmpstr ( func, "Procedures Not Compiled" ))
309
311
fi = ReplaceNumberByKey ( "PROCLINE" , fi, 0 )
@@ -319,6 +321,7 @@ Function addDecoratedFunctions(module, procedure, declWave, lineWave)
319
321
declWave[ idx][ 0 ] = createMarkerForType ( "function" + specialTag + threadsafeTag)
320
322
declWave[ idx][ 1 ] = formatDecl ( func, params, subtypeTag, returnType = returnType)
321
323
lineWave[ idx] = NumberByKey ( "PROCLINE" , fi)
324
+ idx += 1
322
325
endfor
323
326
324
327
string msg
0 commit comments