diff options
author | gildea <empty> | 1994-02-10 19:28:05 +0000 |
---|---|---|
committer | gildea <empty> | 1994-02-10 19:28:05 +0000 |
commit | 695c61e547fd23a12a5d8561a2a596368ccd46f9 (patch) | |
tree | 486aca23024ae1a697e6b5c94e45b993f7a30961 /xc/lib/font/fontfile | |
parent | dfa6b87a717054216e246c1b748109a7289d0778 (diff) |
SetupWildMatch: add overview comment
Diffstat (limited to 'xc/lib/font/fontfile')
-rw-r--r-- | xc/lib/font/fontfile/fontdir.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/xc/lib/font/fontfile/fontdir.c b/xc/lib/font/fontfile/fontdir.c index 391b1be36..2b9444ce6 100644 --- a/xc/lib/font/fontfile/fontdir.c +++ b/xc/lib/font/fontfile/fontdir.c @@ -1,5 +1,5 @@ /* - * $XConsortium: fontdir.c,v 1.19 94/02/08 18:32:32 gildea Exp $ + * $XConsortium: fontdir.c,v 1.20 94/02/08 23:21:10 rws Exp $ * * Copyright 1991 Massachusetts Institute of Technology * @@ -193,6 +193,19 @@ FontFileSortDir(dir) FontFileSwitchStringsToBitmapPointers (dir); } +/* + Given a Font Table, SetupWildMatch() sets up various pointers and state + information so the table can be searched for name(s) that match a given + fontname pattern -- which may contain wildcards. Under certain + circumstances, SetupWildMatch() will find the one table entry that + matches the pattern. If those circumstances do not pertain, + SetupWildMatch() returns a range within the the table that should be + searched for matching name(s). With the information established by + SetupWildMatch(), including state information in "private", the + PatternMatch() procedure is then used to test names in the range for a + match. +*/ + #define isWild(c) ((c) == XK_asterisk || (c) == XK_question) static int |