Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: William Chesters <williamc@dai.ed.ac.uk>
To: caml-list@inria.fr
Subject: camlp4 bug with "include"
Date: Thu, 25 Feb 1999 18:28:57 GMT	[thread overview]
Message-ID: <199902251828.SAA17936@toy.william.bogus> (raw)

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




                 reply	other threads:[~1999-02-26 12:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199902251828.SAA17936@toy.william.bogus \
    --to=williamc@dai.ed.ac.uk \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox