summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2019-08-17 16:02:22 -0400
committerJoe Crayne <joe@jerkface.net>2019-08-17 16:02:22 -0400
commit363c6dbf82e99925d2017831c04ca7bda6b9105c (patch)
tree0e588b54120a0b2d2d77348d43c145356292e92e
parented80d6acbf2a9e48f732331130f6dd7cbb6a0778 (diff)
Committing stale code.
-rw-r--r--monkeypatch.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/monkeypatch.hs b/monkeypatch.hs
index 5ef58da..d6ff1c2 100644
--- a/monkeypatch.hs
+++ b/monkeypatch.hs
@@ -724,7 +724,7 @@ grokStatement fe (CBlockStmt (CWhile cond (CCompound [] bdy _) isDoWhile _)) = d
724 x = foldr applyComputation c' ss -- continue function 724 x = foldr applyComputation c' ss -- continue function
725 vs = [] -- Map.keys $ compIntro g 725 vs = [] -- Map.keys $ compIntro g
726 fin <- StateT $ return . genUnique 726 fin <- StateT $ return . genUnique
727 return $ fmap (FormalLambda fin) $ fmap (factorOutFunction "continue" vs (comp x) (hsvar " continue")) g 727 return $ fmap (FormalLambda fin . factorOutFunction "continue" vs (comp x) (hsvar " continue")) g
728grokStatement fe _ = mzero 728grokStatement fe _ = mzero
729 729
730isFunctionDecl :: CExternalDeclaration a -> Bool 730isFunctionDecl :: CExternalDeclaration a -> Bool
@@ -988,9 +988,10 @@ hsTypeSpec (CTypeSpec (CTypeDef ctyp _)) = [ L
988hsTypeSpec (CTypeSpec (CBoolType _)) = [ Right "Bool"] 988hsTypeSpec (CTypeSpec (CBoolType _)) = [ Right "Bool"]
989hsTypeSpec (CTypeSpec (CIntType _)) = [ Right "Int"] 989hsTypeSpec (CTypeSpec (CIntType _)) = [ Right "Int"]
990hsTypeSpec (CTypeSpec (CCharType _)) = [ Right "Char"] 990hsTypeSpec (CTypeSpec (CCharType _)) = [ Right "Char"]
991hsTypeSpec (CTypeSpec (CDoubleType _)) = [ Right "Double"]
991hsTypeSpec (CTypeSpec (CSUType (CStruct CStructTag mctyp Nothing [] _) _)) = maybeToList $ fmap Left mctyp 992hsTypeSpec (CTypeSpec (CSUType (CStruct CStructTag mctyp Nothing [] _) _)) = maybeToList $ fmap Left mctyp
992 993
993hsTypeSpec (CTypeSpec unhandled) = [] -- trace ("hsTypeSpec unhandled: "++ show (const () <$> unhandled)) $ [] 994hsTypeSpec (CTypeSpec unhandled) = trace ("hsTypeSpec unhandled: "++ show (const () <$> unhandled)) $ []
994hsTypeSpec _ = [] 995hsTypeSpec _ = []
995 996
996 997