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
camlidl and size_is attribute #2816
Comments
Comment author: administrator
For Camlidl, a "typedef" is not a macro -- it's a real declaration The MIDL spec isn't too clear about this, but all the examples it shows
It's subtly different: your example was
Here [string] is part of a pointer type expression, so it can be
|
Comment author: administrator Normal behavior. |
Comment author: administrator Xavier Leroy Xavier.Leroy@inria.fr writes:
Unfortunately, all examples are taken from the real Microsoft sources typedef struct _SECURITY_ATTRIBUTES { OK, Microsoft docs has never been accurate, so you can mark it as "not a Hope to hear from you soon, |
Original bug ID: 412
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: -for CamlIDL use https://github.com/xavierleroy/camlidl/issues
Bug description
Full_Name: Dmitry Bely
Version: 3.01, camlidl cvs 27.06.01
OS: Windows NT 4.0
Submission from: d009.p3.col.ru (195.210.132.9)
"size_is" attribute is handled wrong for typedefs:
typedef struct {
int len;
[size_is(len)] int* data; /* OK */
} STRUCT1;
typedef int* PINT;
typedef struct {
int len;
[size_is(len)] PINT data; /* Warning: attribute `size_is' unknown, malformed
or not applicable here, ignored. */
} STRUCT2;
This is like the "string" attribute problem I reported before.
The text was updated successfully, but these errors were encountered: