Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbc: nested types - fix static fields and typos
- Add new FB_UDTOPT_HASNESTED flag to track when a UDT has nested named types. This can help determine if searching or checking inside a type's member's is necessary or not. - symbIsParentNamespace(): add early out if type has no nested named types. This effectively reverts the check to similar logic before nested named types were added. - in hIsStructAllowed() don't assume that types don't have nested named types. Test FB_UDTOPT_HASNESTED instead. This fixes access to static fields when defining the static variable outside of the type. - fix typo in hPatchByvalParamsToSelf() -> param - in hPatchByvalParamsToSelf()/hPatchByvalResultToSelf(), only recurse in to types if FB_UDTOPT_HASNESTED is set
- Loading branch information
Showing
5 changed files
with
73 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters