[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxl: provide TOSTRING in libxl_internal.h and libxlu_internal.h



# HG changeset patch
# User Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
# Date 1307036792 -3600
# Node ID a0a476860f2e49e346dd17d177aa99336b0b3ab4
# Parent  430dc2f65562a5b1e1e061942d6211339fd4091a
libxl: provide TOSTRING in libxl_internal.h and libxlu_internal.h

Provide a copy of the standard TOSTRING macro in libxlu_internal.h,
for the benefit of patches later in this series.

Also, move TOSTRING to libxl_internal.h from a .c file for the
benefit of future other callers in libxl proper.

(These cannot be combined because libxlu cannot include
libxl_internal.h and libxl should not include libxlu_internal.h.)

Signed-off-by: Ian Jackson <ijackson@xxxxxxxxxxxxxxxxxxxxxx>
Committed-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---


diff -r 430dc2f65562 -r a0a476860f2e tools/libxl/libxl.c
--- a/tools/libxl/libxl.c       Thu Jun 02 18:46:32 2011 +0100
+++ b/tools/libxl/libxl.c       Thu Jun 02 18:46:32 2011 +0100
@@ -38,8 +38,6 @@
 
 #define PAGE_TO_MEMKB(pages) ((pages) * 4)
 #define BACKEND_STRING_SIZE 5
-#define STRINGIFY(x) #x
-#define TOSTRING(x) STRINGIFY(x)
 
 int libxl_ctx_alloc(libxl_ctx **pctx, int version, xentoollog_logger * lg)
 {
diff -r 430dc2f65562 -r a0a476860f2e tools/libxl/libxl_internal.h
--- a/tools/libxl/libxl_internal.h      Thu Jun 02 18:46:32 2011 +0100
+++ b/tools/libxl/libxl_internal.h      Thu Jun 02 18:46:32 2011 +0100
@@ -370,4 +370,8 @@
 _hidden int libxl__file_reference_unmap(libxl_file_reference *f);
 
 _hidden int libxl__e820_alloc(libxl_ctx *ctx, uint32_t domid, 
libxl_domain_config *d_config);
+
+#define STRINGIFY(x) #x
+#define TOSTRING(x) STRINGIFY(x)
+
 #endif
diff -r 430dc2f65562 -r a0a476860f2e tools/libxl/libxlu_internal.h
--- a/tools/libxl/libxlu_internal.h     Thu Jun 02 18:46:32 2011 +0100
+++ b/tools/libxl/libxlu_internal.h     Thu Jun 02 18:46:32 2011 +0100
@@ -45,4 +45,8 @@
     void *scanner;
 } CfgParseContext;
 
+
+#define STRINGIFY(x) #x
+#define TOSTRING(x) STRINGIFY(x)
+
 #endif /*LIBXLU_INTERNAL_H*/

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.