svn commit: samba r16481 - in
branches/tmp/jpeach-xmetrics/source/profile: .
jpeach at samba.org
jpeach at samba.org
Fri Jun 23 02:28:04 GMT 2006
Author: jpeach
Date: 2006-06-23 02:28:03 +0000 (Fri, 23 Jun 2006)
New Revision: 16481
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16481
Log:
Fix up stringising macro foolishness.
Modified:
branches/tmp/jpeach-xmetrics/source/profile/xmetrics.h
Changeset:
Modified: branches/tmp/jpeach-xmetrics/source/profile/xmetrics.h
===================================================================
--- branches/tmp/jpeach-xmetrics/source/profile/xmetrics.h 2006-06-23 01:17:33 UTC (rev 16480)
+++ branches/tmp/jpeach-xmetrics/source/profile/xmetrics.h 2006-06-23 02:28:03 UTC (rev 16481)
@@ -32,13 +32,9 @@
#define XMETRICS_INTERFACE_VERS 3
-/* Ick. A nasty little necessity to let us expand a macro argument inside
- * a string literal.
- */
-#define xq() "
-#define xval(x) x
+#define xval(x) #x
-#define XMETRICS_MMAP_FNAME(vers) ("xmetrics."xq()xval(vers)xq()".dat")
+#define XMETRICS_MMAP_FNAME(vers) ("xmetrics."xval(vers)".dat")
enum xmetrics_iobucket
{
More information about the samba-cvs
mailing list