PERFORCE change 95299 for review

John Birrell jb at FreeBSD.org
Sat Apr 15 01:43:49 UTC 2006


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

Change 95299 by jb at jb_freebsd2 on 2006/04/15 01:43:19

	This is just a hack to avoid having to address wide-character support right
	now. There are bigger fish to fry.

Affected files ...

.. //depot/projects/dtrace/src/contrib/opensolaris/lib/libgen/common/gmatch.c#3 edit

Differences ...

==== //depot/projects/dtrace/src/contrib/opensolaris/lib/libgen/common/gmatch.c#3 (text) ====

@@ -48,6 +48,11 @@
 #include "_range.h"
 #else
 /* DOODAD */ static int multibyte = 0;
+#define WCHAR_CSMASK    0x30000000
+#define valid_range(c1, c2) \
+    (((c1) & WCHAR_CSMASK) == ((c2) & WCHAR_CSMASK) && \
+    ((c1) > 0xff || !iscntrl((int)c1)) && ((c2) > 0xff || \
+    !iscntrl((int)c2)))
 #endif
 
 #define	Popwchar(p, c) \


More information about the p4-projects mailing list