Skip to content

Commit

Permalink
Fix local functions not being static
Browse files Browse the repository at this point in the history
  • Loading branch information
RA-Kooi committed Dec 24, 2021
1 parent f9d6184 commit 3fee81c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions DwarfOne2C/Parsing/CompilationUnit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,16 @@ public void FirstPass(string[] lines, int current)
case "TAG_subroutine":
{
// (static) function local to CU
allTags.Add(
ParseFunction(
Tag tag = ParseFunction(
lines,
ref current,
ID,
sibling,
Tag.TagType.CULocalFunc));
Tag.TagType.CULocalFunc);

tag.isStatic = true;

allTags.Add(tag);
} break;
case "TAG_subroutine_type":
{
Expand Down

0 comments on commit 3fee81c

Please sign in to comment.