From efc03df292aa84edb592c22191dbf86cdf8c32d0 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 21 Aug 2005 23:17:35 +0000 Subject: r9459: Move pidl up one level (to prevent too much nesting) (This used to be commit e48202275e60c18e464457d200daeb953386e221) --- source4/pidl/ref_notes.txt | 220 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 source4/pidl/ref_notes.txt (limited to 'source4/pidl/ref_notes.txt') diff --git a/source4/pidl/ref_notes.txt b/source4/pidl/ref_notes.txt new file mode 100644 index 0000000000..00f44fddb7 --- /dev/null +++ b/source4/pidl/ref_notes.txt @@ -0,0 +1,220 @@ +some experiments with ref ptrs + + + + typedef struct { + short x; + } xstruct; + + uint16 echo_TestRef([in] xstruct foo); + + short v = 13; + xstruct r; + r.x = v; + echo_TestRef(r); + + [0D 00] + +---------------------------------------------------- + typedef struct { + short *x; + } xstruct; + + uint16 echo_TestRef([in] xstruct foo); + + short v = 13; + xstruct r; + r.x = &v; + echo_TestRef(r); + + [PP PP PP PP 0D 00] + + + xstruct r; + r.x = NULL; + echo_TestRef(r); + + [00 00 00 00] + +---------------------------------------------------- + typedef struct { + [ref] short *x; + } xstruct; + + uint16 echo_TestRef([in] xstruct foo); + + short v = 13; + xstruct r; + r.x = &v; + echo_TestRef(r); + + [XX XX XX XX 0D 00] + + + xstruct r; + r.x = NULL; + echo_TestRef(r); + + [client runtime error 0x6f4] + + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + uint16 echo_TestRef([in] xstruct *foo); + + short v = 13; + xstruct r; + r.x = v; + echo_TestRef(&r); + + [0D 00] + + + echo_TestRef(NULL); + + [client runtime error 0x6f4] + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + uint16 echo_TestRef([in,ref] xstruct *foo); + + short v = 13; + xstruct r; + r.x = v; + echo_TestRef(&r); + + [0D 00] + + + echo_TestRef(NULL); + + [client runtime error 0x6f4] + + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + uint16 echo_TestRef([in,unique] xstruct *foo); + + short v = 13; + xstruct r; + r.x = v; + echo_TestRef(&r); + + [PP PP PP PP 0D 00] + + + echo_TestRef(NULL); + + [00 00 00 00] + + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + uint16 echo_TestRef([out] xstruct foo); + + [idl compiler error] + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + void echo_TestRef([out] xstruct *foo); + + xstruct r; + echo_TestRef(&r); + r.x -> 13; + + [0D 00] + + + echo_TestRef(NULL); + + [client runtime error 0x6f4] + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + void echo_TestRef([out,ref] xstruct *foo); + + xstruct r; + echo_TestRef(&r); + r.x -> 13; + + [0D 00] + + + echo_TestRef(NULL); + + [client runtime error 0x6f4] + +---------------------------------------------------- + typedef struct { + short x; + } xstruct; + + void echo_TestRef([out,unique] xstruct *foo); + + [idl compiler error] + + +---------------------------------------------------- + void echo_TestRef([in] short **foo); + + short v = 13; + short *pv = &v; + + echo_TestRef(&pv); + + [PP PP PP PP 0D 00] + + + short *pv = NULL; + + echo_TestRef(&pv); + + [00 00 00 00] + + + echo_TestRef(NULL); + + [client runtime error 0x6f4] + + +---------------------------------------------------- + void echo_TestRef([in,ref] short **foo); + + short v = 13; + short *pv = &v; + + echo_TestRef(&pv); + + [PP PP PP PP 0D 00] + + + short *pv = NULL; + + echo_TestRef(&pv); + + [00 00 00 00] + + + echo_TestRef(NULL); + + [client runtime error 0x6f4] + + -- cgit