Lines Matching defs:Char

106 typedef u_short Char;
115 typedef char Char;
120 #define CHAR(c) ((Char)((c)&M_ASCII))
121 #define META(c) ((Char)((c)|M_QUOTE))
142 static int g_Ctoc(const Char *, char *, u_int);
143 static int g_lstat(Char *, struct stat *, glob_t *);
144 static DIR *g_opendir(Char *, glob_t *);
145 static Char *g_strchr(const Char *, int);
146 static int g_strncmp(const Char *, const char *, size_t);
147 static int g_stat(Char *, struct stat *, glob_t *);
148 static int glob0(const Char *, glob_t *, struct glob_lim *);
149 static int glob1(Char *, Char *, glob_t *, struct glob_lim *);
150 static int glob2(Char *, Char *, Char *, Char *, Char *, Char *,
152 static int glob3(Char *, Char *, Char *, Char *, Char *,
153 Char *, Char *, glob_t *, struct glob_lim *);
154 static int globextend(const Char *, glob_t *, struct glob_lim *,
156 static const Char *
157 globtilde(const Char *, Char *, size_t, glob_t *);
158 static int globexp1(const Char *, glob_t *, struct glob_lim *);
159 static int globexp2(const Char *, const Char *, glob_t *,
161 static int match(Char *, Char *, Char *);
163 static void qprintf(const char *, Char *);
172 Char *bufnext, *bufend, patbuf[MAXPATHLEN];
223 globexp1(const Char *pattern, glob_t *pglob, struct glob_lim *limitp)
225 const Char* ptr = pattern;
231 if ((ptr = (const Char *) g_strchr(ptr, LBRACE)) != NULL)
244 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob,
248 Char *lm, *ls;
249 const Char *pe, *pm, *pl;
250 Char patbuf[MAXPATHLEN];
348 static const Char *
349 globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob)
353 const Char *p;
354 Char *b, *eb;
409 g_strncmp(const Char *s1, const char *s2, size_t n)
414 rv = *(Char *)s1 - *(const unsigned char *)s2++;
424 g_charclass(const Char **patternp, Char **bufnextp)
426 const Char *pattern = *patternp + 1;
427 Char *bufnext = *bufnextp;
428 const Char *colon;
443 *bufnext++ = (Char)(cc - &cclasses[0]);
458 glob0(const Char *pattern, glob_t *pglob, struct glob_lim *limitp)
460 const Char *qpatnext;
462 Char *bufnext, patbuf[MAXPATHLEN];
564 glob1(Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp)
566 Char pathbuf[MAXPATHLEN];
582 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
583 Char *pattern, Char *pattern_last, glob_t *pglob, struct glob_lim *limitp)
586 Char *p, *q;
650 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last,
651 Char *pattern, Char *restpattern, Char *restpattern_last, glob_t *pglob,
693 Char *dc;
749 globextend(const Char *path, glob_t *pglob, struct glob_lim *limitp,
756 const Char *p;
853 match(Char *name, Char *pat, Char *patend)
856 Char c, k;
881 Char idx = *pat & M_MASK;
932 g_opendir(Char *str, glob_t *pglob)
950 g_lstat(Char *fn, struct stat *sb, glob_t *pglob)
962 g_stat(Char *fn, struct stat *sb, glob_t *pglob)
973 static Char *
974 g_strchr(const Char *str, int ch)
978 return ((Char *)str);
984 g_Ctoc(const Char *str, char *buf, u_int len)
996 qprintf(const char *str, Char *s)
998 Char *p;