aboutsummaryrefslogtreecommitdiffhomepage
path: root/wildcard.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-20 21:27:54 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-20 21:27:54 +1000
commitce27f08a44fd18978477bd418f3f0f731368c843 (patch)
treebaa1c30cccc7a2f5328bc132b998d729576a9b24 /wildcard.h
parent83fcc293055a8eb9b94171cc0c665a9691d08f01 (diff)
Use private use area for internal non-unicode characters
darcs-hash:20051020112754-ac50b-a640e5eb3c72c44671bfd5d0e4d6805018da5b48.gz
Diffstat (limited to 'wildcard.h')
-rw-r--r--wildcard.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/wildcard.h b/wildcard.h
index 5db4e38c..00842c6a 100644
--- a/wildcard.h
+++ b/wildcard.h
@@ -15,20 +15,23 @@
#include "util.h"
/*
- These constants are outside the 31 bit character space of USC4,
- thogh they may clash with WEOF. I need to use characters outside of
- the regular character space to represent wildcards and such,
- in order to do backslash removal before wildcard matching.
+ Use unencoded private-use keycodes for internal characters
*/
-/** Character representing any character except '/' */
-#define ANY_CHAR 0xfffffffe
+#define WILDCARD_RESERVED 0xf400
-/** Character representing any character string not containing '/' (A slash) */
-#define ANY_STRING 0xfffffffd
+enum
+{
+ /** Character representing any character except '/' */
+ ANY_CHAR = WILDCARD_RESERVED,
-/** Character representing any character string */
-#define ANY_STRING_RECURSIVE 0xfffffff6
+ /** Character representing any character string not containing '/' (A slash) */
+ ANY_STRING,
+
+ /** Character representing any character string */
+ ANY_STRING_RECURSIVE,
+}
+ ;
/**
Expand the wildcard by matching against the filesystem.