mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-05 00:40:26 +00:00
Fixes FUNCTION id2fulltypename$
to recognize _OFFSET types.
Now displays actual type name in Warnings box, instead of the C++ variable name.
This commit is contained in:
parent
8f2e969711
commit
0ca12c3503
|
@ -12224,7 +12224,7 @@ IF NOT IgnoreWarnings THEN
|
|||
header$ = "unused variable" 's (" + LTRIM$(STR$(totalUnusedVariables)) + ")"
|
||||
FOR i = 1 TO totalVariablesCreated
|
||||
IF usedVariableList(i).used = 0 THEN
|
||||
addWarning usedVariableList(i).linenumber, usedVariableList(i).includeLevel, usedVariableList(i).includedLine, usedVariableList(i).includedFile, header$, usedVariableList(i).name + SPACE$((maxVarNameLen + 1) - LEN(usedVariableList(i).name)) + " (" + usedVariableList(i).cname + ")"
|
||||
addWarning usedVariableList(i).linenumber, usedVariableList(i).includeLevel, usedVariableList(i).includedLine, usedVariableList(i).includedFile, header$, usedVariableList(i).name + SPACE$((maxVarNameLen + 1) - LEN(usedVariableList(i).name)) + " (" + usedVariableList(i).varType + ")"
|
||||
END IF
|
||||
NEXT
|
||||
END IF
|
||||
|
@ -24032,6 +24032,10 @@ FUNCTION id2fulltypename$
|
|||
IF bits = 64 THEN a$ = qb64prefix$ + "INTEGER64"
|
||||
IF t AND ISUNSIGNED THEN a$ = qb64prefix$ + "UNSIGNED " + a$
|
||||
END IF
|
||||
IF t AND ISOFFSET THEN
|
||||
a$ = qb64prefix$ + "OFFSET"
|
||||
IF t AND ISUNSIGNED THEN a$ = qb64prefix$ + "UNSIGNED " + a$
|
||||
END IF
|
||||
id2fulltypename$ = a$
|
||||
END FUNCTION
|
||||
|
||||
|
|
Loading…
Reference in a new issue