|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 05 of 10] libxl: IDL: remove libxl_C_type_of
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1308845928 -3600
# Node ID 2b91546fb417458d3fa29da85aed44bddb91854f
# Parent 34279f2359cbaaef7c16287e023cae1b023f02d3
libxl: IDL: remove libxl_C_type_of
It's not really adding much...
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 34279f2359cb -r 2b91546fb417 tools/libxl/gentypes.py
--- a/tools/libxl/gentypes.py Thu Jun 23 17:18:47 2011 +0100
+++ b/tools/libxl/gentypes.py Thu Jun 23 17:18:48 2011 +0100
@@ -17,10 +17,7 @@ def format_comment(level, comment):
s += "%s */" % indent
s += "\n"
return s
-
-def libxl_C_type_of(ty):
- return ty.typename
-
+
def libxl_C_instance_of(ty, instancename):
if isinstance(ty, libxltypes.Aggregate) and ty.typename is None:
if instancename is None:
@@ -28,7 +25,7 @@ def libxl_C_instance_of(ty, instancename
else:
return libxl_C_type_define(ty) + " " + instancename
else:
- return libxl_C_type_of(ty) + " " + instancename
+ return ty.typename + " " + instancename
def libxl_C_type_define(ty, indent = ""):
s = ""
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 00 of 10] libxl: IDL improvements and JSON generation, Ian Campbell
- [Xen-devel] [PATCH 02 of 10] libxl: IDL: s/anonynous/anonymous/, Ian Campbell
- [Xen-devel] [PATCH 01 of 10] build: define "move-if-changed" make macro, Ian Campbell
- [Xen-devel] [PATCH 03 of 10] libxl: IDL: handle generation of pass-by-reference arguments, Ian Campbell
- [Xen-devel] [PATCH 04 of 10] libxl: IDL: refactor code to massage a type into a function argument, Ian Campbell
- [Xen-devel] [PATCH 05 of 10] libxl: IDL: remove libxl_C_type_of,
Ian Campbell <=
- [Xen-devel] [PATCH 06 of 10] libxl: IDL: add helper to generate references to Aggregate type members, Ian Campbell
- [Xen-devel] [PATCH 07 of 10] libxl: IDL: bring command line handling in genwrap.py into one place, Ian Campbell
- [Xen-devel] [PATCH 08 of 10] libxl: rename testenum->testidl, Ian Campbell
- [Xen-devel] [PATCH 10 of 10] libxl: IDL: autogenerate functions to produce JSON from libxl data structures, Ian Campbell
- [Xen-devel] [PATCH 09 of 10] libxl: add LIBXL_MAC_{FMT, FMTLEN, BYTES}, Ian Campbell
- Re: [Xen-devel] [PATCH 00 of 10] libxl: IDL improvements and JSON generation, Ian Jackson
|
|
|
|
|