|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 5 of 9] libxl: IDL: remove libxl_C_type_of
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1310646156 -3600
# Node ID 5601d0ddb75d62643312dfc71da6715d42d7186f
# Parent 2c49e182becc028a95d67363dd06654c7f717eec
libxl: IDL: remove libxl_C_type_of
It's not really adding much...
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 2c49e182becc -r 5601d0ddb75d tools/libxl/gentypes.py
--- a/tools/libxl/gentypes.py Thu Jul 14 13:22:36 2011 +0100
+++ b/tools/libxl/gentypes.py Thu Jul 14 13:22:36 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 0 of 9] libxl: various IDL cleanups + some misc bits, Ian Campbell
- [Xen-devel] [PATCH 3 of 9] libxl: IDL: handle generation of pass-by-reference arguments, Ian Campbell
- [Xen-devel] [PATCH 1 of 9] build: define "move-if-changed" make macro, Ian Campbell
- [Xen-devel] [PATCH 4 of 9] libxl: IDL: refactor code to massage a type into a function argument, Ian Campbell
- [Xen-devel] [PATCH 6 of 9] libxl: IDL: add helper to generate references to Aggregate type members, Ian Campbell
- [Xen-devel] [PATCH 8 of 9] libxl: rename testenum->testidl, Ian Campbell
- [Xen-devel] [PATCH 2 of 9] libxl: IDL: s/anonynous/anonymous/, Ian Campbell
- [Xen-devel] [PATCH 5 of 9] libxl: IDL: remove libxl_C_type_of,
Ian Campbell <=
- [Xen-devel] [PATCH 7 of 9] libxl: IDL: bring command line handling in genwrap.py into one place, Ian Campbell
- [Xen-devel] [PATCH 9 of 9] libxl: add LIBXL_MAC_{FMT,FMTLEN,BYTES}, Ian Campbell
- Re: [Xen-devel] [PATCH 0 of 9] libxl: various IDL cleanups + some misc bits, Ian Jackson
|
|
|
|
|