1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/librpc
David Disseldorp e891652339 dcerpc.idl: use logical dcerpc_object ordering
This IDL code:
typedef [nodiscriminant] union {
	[default] dcerpc_empty empty;
	[case(LIBNDR_FLAG_OBJECT_PRESENT)] GUID object;
} dcerpc_object;

Compiles into the following default-before-case marshalling code:
switch (level) {
	default: {
		NDR_CHECK(ndr_push_dcerpc_empty(ndr, NDR_SCALARS, &r->empty));
	break; }

	case LIBNDR_FLAG_OBJECT_PRESENT: {
		NDR_CHECK(ndr_push_GUID(ndr, NDR_SCALARS, &r->object));
	break; }

}

The default entry before case does not change the flow of execution but
is more logical when present at the end of the switch statement.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-01-16 16:22:53 +01:00
..
ABI librpc: Add NDR_PRINT_DEBUGC to ndr print to a debug class 2013-05-18 10:58:05 +02:00
gen_ndr waf-idl: put the gen_ndr/README file for source3 back 2010-07-19 22:17:17 +10:00
idl dcerpc.idl: use logical dcerpc_object ordering 2014-01-16 16:22:53 +01:00
ndr librpc/ndr: add ndr_pop_dcerpc_sec_verification_trailer() 2014-01-08 14:34:49 +01:00
rpc librpc/rpc: simplify tevent_req_nterror() usage in binding_handle.c 2014-01-08 14:34:36 +01:00
tools ndrdump: dump verification trailer 2014-01-08 14:35:03 +01:00
ndr_krb5pac.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
ndr_nbt.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
ndr_standard.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
ndr.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
tables.pl Consider shared IDL files and Samba3-specific IDL files separately, allow overriding output directory. 2008-12-16 15:42:47 +01:00
wscript_build librpc/ndr: add ndr_pop_dcerpc_sec_verification_trailer() 2014-01-08 14:34:49 +01:00