aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/wildcard.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wildcard.h')
-rw-r--r--src/wildcard.h26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/wildcard.h b/src/wildcard.h
index 3a9a869f..3e1d2b6f 100644
--- a/src/wildcard.h
+++ b/src/wildcard.h
@@ -18,27 +18,19 @@
#include "expand.h"
#include "complete.h"
-/*
- Use unencoded private-use keycodes for internal characters
-*/
-
-#define WILDCARD_RESERVED 0xf400
-
-/**
- Enumeration of all wildcard types
-*/
+// Enumeration of all wildcard types
enum
{
- /** Character representing any character except '/' */
- ANY_CHAR = WILDCARD_RESERVED,
-
- /** Character representing any character string not containing '/' (A slash) */
+ // Character representing any character except '/' (slash).
+ ANY_CHAR = WILDCARD_RESERVED_BASE,
+ // Character representing any character string not containing '/' (slash).
ANY_STRING,
-
- /** Character representing any character string */
+ // Character representing any character string.
ANY_STRING_RECURSIVE,
-}
-;
+ // This is a special psuedo-char that is not used other than to mark the
+ // end of the the special characters so we can sanity check the enum range.
+ ANY_SENTINAL
+};
/**
Expand the wildcard by matching against the filesystem.