Version française
Home     About     Download     Resources     Contact us    
Browse thread
camlp4 bug with "include"
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: William Chesters <williamc@d...>
Subject: camlp4 bug with "include"
When camlp4 is used as a preprocessor, nothing after an "include" in a
signature gets passed to ocamlc.  Here's a patch to fix it:

*** camlp4/ast2pt.ml	Tue Dec  1 08:19:34 1998
--- ast2pt.ml	Thu Feb 25 18:17:10 1999
***************
*** 505,509 ****
    | SgExt loc n t p ->
        [mksig loc (Psig_value (shd n) (mkvalue_desc t p)) :: l]
!   | SgInc loc mt -> [mksig loc (Psig_include (module_type mt))]
    | SgMod loc n mt -> [mksig loc (Psig_module (shd n) (module_type mt)) :: l]
    | SgMty loc n mt ->
--- 505,509 ----
    | SgExt loc n t p ->
        [mksig loc (Psig_value (shd n) (mkvalue_desc t p)) :: l]
!   | SgInc loc mt -> [mksig loc (Psig_include (module_type mt)) :: l]
    | SgMod loc n mt -> [mksig loc (Psig_module (shd n) (module_type mt)) :: l]
    | SgMty loc n mt ->