X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Futils%2Fhsc2hs%2FMain.hs;h=4456ae73cc613b592cb92cf0de4c65486ce3cbd1;hb=9cc52d7cf298279f2d140f3781d035c724579443;hp=be5029b2eb0ba2db6ff6fe6f5b8f18249b62c218;hpb=3cd32bc86f738b5ce9b069fd41e6e889579d4eef;p=ghc-hetmet.git diff --git a/ghc/utils/hsc2hs/Main.hs b/ghc/utils/hsc2hs/Main.hs index be5029b..4456ae7 100644 --- a/ghc/utils/hsc2hs/Main.hs +++ b/ghc/utils/hsc2hs/Main.hs @@ -1,7 +1,7 @@ {-# OPTIONS -fglasgow-exts #-} ------------------------------------------------------------------------ --- $Id: Main.hs,v 1.46 2003/02/21 13:35:18 simonpj Exp $ +-- $Id: Main.hs,v 1.47 2003/05/20 11:07:54 stolz Exp $ -- -- Program for converting .hsc files to .hs files, by converting the -- file into a C program which is run to generate the Haskell source. @@ -524,7 +524,7 @@ output flags name toks = do writeFile cProgName $ concatMap outFlagHeaderCProg flags++ concatMap outHeaderCProg specials++ - "\nint main (void)\n{\n"++ + "\nint main (int argc, char *argv [])\n{\n"++ outHeaderHs flags (if needsH then Just outHName else Nothing) specials++ outHsLine (SourcePos name 0)++ concatMap outTokenHs toks++