Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000836OCaml-for CamlIDL use 17:522002-04-19 16:41
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000836: camlidl: unknown attributes are not ignored correctly
DescriptionThis happens if "import" statement present in the source:

interface IInterface : IUnknown
[---end of noimport.idl---]

C:\Work\Ocaml\camlidl\test>camlidl noimport.idl
File noimport.idl, line 7, column 0: Warning: attribute `helpstring'
unknown, malformed or not applicable here, ignored.

That's OK (although the line number is slightly confusing). But


/* empty */
[---end of import1.idl---]

import "import1.idl";

interface IInterface : IUnknown
[---end of import.idl---]


C:\Work\Ocaml\camlidl\test>camlidl import.idl
Fatal error: exception
Sys_error("C:\DOCUME~1\bely\LOCALS~1\Temp\camlidl17.idl: No such file or

Probably, camlidl loses the context after "import", and any warning/syntax
error will lead to the same result.

It would also be nice (but of course, not necessary) if camlidl allowed
optional semicolon after an interface definition:

[ object ] interface IInterface : IUnknown {}; // currently syntax error

and generated warning (not syntax error), if an unknown attrubute for
function is encountered:

[ object ] interface IInterface : IUnknown
    [helpstring("something for MIDL")] HRESULT f(); // currently systax error

Hope to hear from you soon,

TagsNo tags attached.
Attached Files

- Relationships

-  Notes
administrator (administrator)
2002-04-19 16:41

Fixed 2002-04-19 by XL

- Issue History
Date Modified Username Field Change
2005-11-18 10:13 administrator New Issue
2017-02-16 14:37 xleroy Category CamlIDL => for CamlIDL use [^]
2017-02-23 16:43 doligez Category for CamlIDL use [^] => -for CamlIDL use [^]

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker