Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* camlp4 bug with "include"
@ 1999-02-25 18:28 William Chesters
  0 siblings, 0 replies; only message in thread
From: William Chesters @ 1999-02-25 18:28 UTC (permalink / raw)
  To: caml-list

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 ->




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-26 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-25 18:28 camlp4 bug with "include" William Chesters

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox