PERFORCE change 168722 for review

Gabor Kovesdan gabor at FreeBSD.org
Sun Sep 20 19:43:24 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=168722

Change 168722 by gabor at gabor_server on 2009/09/20 19:42:57

	- My macro skills have failed... Let's fix this.

Affected files ...

.. //depot/projects/soc2008/gabor_textproc/newsort/coll.c#6 edit

Differences ...

==== //depot/projects/soc2008/gabor_textproc/newsort/coll.c#6 (text+ko) ====

@@ -34,7 +34,7 @@
 
 #include "sort.h"
 
-#define	MAX(a, b)	(((#a) > (#b)) ? (#a) : (#b))
+#define	MAX(a, b)	(((a) > (b)) ? (a) : (b))
 
 static wchar_t		**months;
 
@@ -231,12 +231,12 @@
 #define NUMCHECK_COMMON(a, b) \
 	double	 d1, d2; \
 	errno = 0; \
-	d1 = wcstod(#a, &ep1); \
+	d1 = wcstod(a, &ep1); \
 \
 	if ((errno == ERANGE) && (d1 == HUGE_VAL)) \
 		return (1); \
 \
-	d2 = wcstod(#b, &ep2); \
+	d2 = wcstod(b, &ep2); \
 \
 	if ((errno == ERANGE) && (d2 == HUGE_VAL)) \
 		return (-1);


More information about the p4-projects mailing list