Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad ocamldoc/camlp4 interaction. #4509

Closed
vicuna opened this issue Feb 20, 2008 · 0 comments
Closed

Bad ocamldoc/camlp4 interaction. #4509

vicuna opened this issue Feb 20, 2008 · 0 comments

Comments

@vicuna
Copy link

vicuna commented Feb 20, 2008

Original bug ID: 4509
Reporter: jimgrundy
Status: closed (set by @xclerc on 2010-12-08T08:37:11Z)
Resolution: unable to duplicate
Priority: normal
Severity: minor
Version: 3.10.1
Fixed in version: 3.12.1+dev
Category: ocamldoc
Monitored by: jimgrundy till

Bug description

If I made conditional definitions in my .mli file using the pa_macro facility of camlp4 I can process this without errors if I use the appropriate -pp "camlp4o pa_macro.cmo" with ocamldoc, but the output gets some junk in it.

Additional information

For example: consider this foo.mli file:


IFDEF FOO THEN
module Bar: Hashtbl.HashedType with type t = int
ELSE
module Bar: Hashtbl.HashedType
ENDIF


Processing with
ocamldoc -hide-warnings -html -pp "camlp4o pa_macro.cmo -DFOO" foo.mli
produces this output:


Module Foo

module Foo: sig .. end

module Bar: Hashtbl.HashedType with type t = int

ELSE


Note the trailing "ELSE" junk. More complex uses generate more complex junk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant