This matches midl behaviour. In
void test1([out,size_is(x)] char str[], [in] int x);
void test2([size_is(x), out] char* str, [in] int x);
the parameter to test1 is not NULL-checked, but the one to test2 is.
---
tools/widl/client.c|2 +-
tools/widl/proxy.c | 15 ++-
2009/1/10 Michael Karcher w...@mkarcher.dialup.fu-berlin.de:
This matches midl behaviour. In
void test1([out,size_is(x)] char str[], [in] int x);
void test2([size_is(x), out] char* str, [in] int x);
the parameter to test1 is not NULL-checked, but the one to test2 is.
---
Am Samstag, den 10.01.2009, 23:10 + schrieb Rob Shearman:
+int is_var_declptr(const var_t *v)
+{
+ return is_declptr(v-type);
+}
+
Again, this function doesn't seem to improve readability of the code.
I would just move the checking of the type of v into cant_be_null.
I didn't