Searched defs:pat (Results 1 - 21 of 21) sorted by relevance

/ast/src/lib/libast/regex/
H A Dregfatal.c33 regfatalpat(regex_t* p, int level, int code, const char* pat) argument
39 if (pat)
40 error(level, "regular expression: %s: %s", pat, buf);
/ast/src/cmd/tests/
H A Dbase64.c38 unsigned char pat[16]; local
109 for (r = 0; r <= sizeof(pat); r++)
112 memset(tst, '*', sizeof(pat));
113 tst[sizeof(pat)-1] = 0;
122 memset(pat, '*', sizeof(pat));
123 pat[sizeof(pat)-1] = 0;
124 memcpy(pat, de, r >= sizeof(de) ? sizeof(de) : r);
125 if (memcmp(tst, pat, sizeo
[all...]
H A Ddate.c104 report(char* comment, char* str, char* pat, char* rem, int flags) argument
111 if (pat)
114 normal(pat);
147 bad(char* comment, char* str, char* pat) argument
150 report(comment, str, pat, NiL, 0);
/ast/src/lib/libpz/
H A Dpzwrite.c38 register unsigned char* pat; local
153 pat = pz->pat;
165 memcpy(pat, bp, pp->row);
168 pat[pp->fix[i]] = pp->value[pp->fix[i]];
170 memcpy(pz->ws.vp, pat, pp->row);
174 *pz->ws.bp++ = pat[pp->map[j]];
190 if (pat[j] != bp[j] && low[j])
196 *pz->ws.vp++ = pat[j] = bp[j];
199 if (pat[
[all...]
H A Dpzdeflate.c38 register unsigned char* pat; local
115 pat = pz->pat;
144 else if ((r = readf ? (*readf)(pz, pz->io, pat, pz->disc) : sfread(pz->io, pat, pp->row)) != pp->row)
146 incomplete = pat;
153 if ((*indexf)(pz, &index, pat, pz->disc) < 0)
162 memcpy(elt->buf, pat, pp->row);
177 memcpy(pat, elt->buf, pp->row);
187 pat[p
[all...]
H A Dpzinflate.c29 restore(register Pz_t* pz, Pzpart_t* pp, register Sfio_t* ip, Sfio_t* op, register unsigned char* pat, register unsigned char* buf, size_t row, size_t m, register size_t* map, register unsigned char** mix, register size_t* inc) argument
41 memcpy(buf, pat, row);
62 pat[z - 1] = *pz->nxt++;
82 register unsigned char* pat; local
101 if (!(pat = (unsigned char*)sfreserve(pz->io, n, 0)))
111 } while ((r = (*writef)(pz, op, pat, pz->disc)) >= 0);
159 pat = pz->pat;
201 if (m < pp->row || sfread(pz->io, pat, pp->row) != pp->row)
219 if (restore(pz, pp, pz->io, op, pat, p
[all...]
H A Dpzip.h229 unsigned char* pat; /* row buffer */ member in struct:Pz_s
/ast/src/lib/libdll/
H A Ddllscan.c51 char pat[64]; \
96 char pat[256]; local
137 if (pn >= sizeof(pat))
138 pn = sizeof(pat) - 1;
139 memcpy(pat, p, pn);
140 pat[pn] = 0;
141 if (strmatch(h, pat))
335 sfsprintf(scan->pat, sizeof(scan->pat), "%s%s%s%s", info->prefix, name, version, info->suffix);
338 sfsprintf(scan->pat, sizeo
[all...]
/ast/src/cmd/ksh93/sh/
H A Dexpand.c276 char *pat, *rescan; local
292 pat = cp;
306 if(isdigit(*pat) || *pat=='+' || *pat=='-')
308 first = strtol(pat,&endc,0);
352 else if((cp[2]=='}' || cp[2]=='.' && cp[3]=='.') && ((*pat>='a' && *pat<='z' && cp[1]>='a' && cp[1]<='z') || (*pat>='A' && *pat<
[all...]
H A Dmacro.c2498 static int substring(register const char *string,const char *pat,int match[], int flag) argument
2505 if(n=strgrpmatch(sp,pat,smatch,elementsof(smatch)/2,STR_RIGHT|STR_MAXIMAL))
2520 if(n=strgrpmatch(sp,pat,smatch,elementsof(smatch)/2,STR_RIGHT|STR_LEFT|STR_MAXIMAL))
/ast/src/cmd/tw/
H A Dexpr.c669 * match str against pat
673 matchval(Expr_t* pgm, Exnode_t* xstr, const char* str, Exnode_t* xpat, const char* pat, void* env, Exdisc_t* disc) argument
675 return strgrpmatch(str, pat, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|((Ftw_t*)env)->ignorecase);
/ast/src/cmd/ksh93/bltins/
H A Dtest.c85 static int test_strmatch(Shell_t *shp,const char *str, const char *pat) argument
89 register const char *cp=pat;
103 n = strgrpmatch(str, pat, match, m, STR_GROUP|STR_MAXIMAL|STR_LEFT|STR_RIGHT);
/ast/src/cmd/3d/
H A Dstrmatch.c585 char pat[2 * UCHAR_MAX]; local
588 if (p - range > sizeof(pat) - 2)
590 memcpy(pat, range, p - range);
591 pat[p - range] = '*';
592 pat[p - range + 1] = 0;
593 if (fnmatch(pat, olds, 0))
595 pat[p - range] = 0;
601 if (!fnmatch(pat, str, 0))
/ast/src/lib/libast/misc/
H A Dglob.c228 addmatch(register glob_t* gp, const char* dir, const char* pat, register const char* rescan, char* endslash, int meta) argument
242 stakputs(pat);
294 register char* pat; local
327 pat = rescan = ap->gl_begin;
391 pat = rescan;
402 if (pat == prefix)
415 if (pat == prefix + 1)
420 trim(ap->gl_begin, pat, &t1, rescan, &t2);
421 pat -= t1;
425 *(restore1 = pat
576 register char* pat; local
[all...]
/ast/src/cmd/re/
H A Dtestglob.c325 report(char* comment, char* pat, char* msg, int flags, int unspecified) argument
342 if (pat)
343 quote(pat);
362 bad(char* comment, char* pat) argument
365 report(comment, pat, NiL, 0, 0);
508 char* pat; local
909 if (pat = field[1])
910 escape(pat);
947 quote(pat);
976 ret = glob(pat, flag
[all...]
H A Dtestregex.c1258 static char pat[32 * 1024]; local
1406 if (regerror(REG_VERSIONID, NiL, pat, sizeof(pat)) > 0)
1407 s = pat;
1812 strcpy(ppat = pat, re);
/ast/lib/package/
H A Dpackage.mk246 package.src.pat = $(PACKAGESRC)/($(name).(ini|pkg))
247 package.src = $(package.src.pat:P=G) $(.package.licenses. --save $(name))
567 package.src.pat := $(package.src.pat)
/ast/src/cmd/INIT/
H A Dpackage.mk246 package.src.pat = $(PACKAGESRC)/($(name).(ini|pkg))
247 package.src = $(package.src.pat:P=G) $(.package.licenses. --save $(name))
567 package.src.pat := $(package.src.pat)
/ast/src/cmd/dsslib/ip_t/
H A Dip_t.c309 char pat[1]; member in struct:Path_match_s
313 aspath_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument
317 if (!cxisstring(pat))
329 strcpy(pm->pat, val->string.data);
345 if (!(ire = irecomp(pm->pat, 4, 0, 1, 1, &iredisc)))
354 if (!(ire = irecomp(pm->pat, 2, 0, 1, 1, &iredisc)))
387 cluster_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument
389 if (!cxisstring(pat))
417 community_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument
419 if (!cxisstring(pat))
447 extended_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument
477 labels_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument
836 char pat[1]; member in struct:Prefix_match_s
840 prefix_match_comp(Cx_t* cx, Cxtype_t* sub, Cxtype_t* pat, Cxvalue_t* val, Cxdisc_t* disc) argument
[all...]
/ast/src/lib/libtk/generic/
H A DtkBind.c2797 Pattern pat;
2814 count = ParseEventDescription(interp, &p, &pat, &eventMask);
2833 event.E.xany.type = pat.eventType;
2841 event.E.xkey.state = pat.needMods;
2850 if (pat.detail.keySym == NoSymbol) {
2854 pat.detail.keySym);
2859 event.E.xkey.keycode, state) == pat.detail.keySym) {
2872 event.E.xbutton.button = pat.detail.button;
2874 event.V.name = pat.detail.name;
2775 Pattern pat; local
/ast/src/cmd/nmake/
H A Dexpand.c206 * $(s:G=<pat>) select components that build (generate) <pat> files
210 * $(s:L[=<pat>) list all (viewed) files matching <pat>
211 * $(s:M[!]=<pat>) select components [not] matching RE pattern <pat>
212 * $(s:N[!]=<pat>) select components [not] matching shell pattern <pat>
716 * generate list of hash table names matching pat
720 listtab(Sfio_t* xp, Hash_table_t* tab, char* pat, in argument
777 list(Sfio_t* xp, register char* s, char* pat, int flags) argument
3035 generate(Sfio_t* xp, char* name, char* pat, int sep) argument
[all...]

Completed in 159 milliseconds