Fixed non-top-level records in the C backend

This commit is contained in:
Neil Brown 2009-04-19 13:22:24 +00:00
parent 40e0399e4c
commit 41cf599ebe

View File

@ -1500,7 +1500,7 @@ cgenRecordTypeSpec extraStuff n attr fs
cgenForwardDeclaration :: Bool -> A.Specification -> CGen ()
cgenForwardDeclaration _ (A.Specification _ n st@(A.Proc _ _ _ _))
= genProcSpec TopLevel n st True
cgenForwardDeclaration True (A.Specification _ n (A.RecordType _ b fs))
cgenForwardDeclaration _ (A.Specification _ n (A.RecordType _ b fs))
= call genRecordTypeSpec False n b fs
cgenForwardDeclaration _ _ = return ()