You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 836 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
This happens if "import" statement present in the source:
C:\Work\Ocaml\camlidl\test>camlidl import.idl
import.idl
import1.idl
Fatal error: exception
Sys_error("C:\DOCUME1\bely\LOCALS1\Temp\camlidl17.idl: No such file or
directory")
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:
Original bug ID: 836
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
This happens if "import" statement present in the source:
[---noimport.idl---]
[
object,
helpstring("Something"),
]
interface IInterface : IUnknown
{
}
[---end of noimport.idl---]
C:\Work\Ocaml\camlidl\test>camlidl noimport.idl
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
[---import1.idl---]
/* empty */
[---end of import1.idl---]
[---import.idl---]
import "import1.idl";
[
object,
helpstring("Something")
]
interface IInterface : IUnknown
{
}
[---end of import.idl---]
gives
C:\Work\Ocaml\camlidl\test>camlidl import.idl
import.idl
import1.idl
Fatal error: exception
Sys_error("C:\DOCUME
1\bely\LOCALS1\Temp\camlidl17.idl: No such file ordirectory")
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,
Dmitry
The text was updated successfully, but these errors were encountered: