Lines Matching +refs:error +refs:aux

80 LOCAL	int	domatch		__PR((FILE *file, char *name, char *pat, int plen, int *aux, int alt, int *state…
85 LOCAL void printpat __PR((char *pat, int plen, int alt, int *aux));
86 LOCAL BOOL pmatch __PR((char *linep, int llen, char *pat, int *aux, int alt, int *state));
92 error("Usage: match [options] pattern [file1...filen]\n");
93 error("Options:\n");
94 error(" -not,-v Print all lines that do not match\n");
95 error(" -i Ignore the case of letters\n");
96 error(" -m Force not to use the magic mode\n");
97 error(" -M Force to use the magic mode\n");
98 error(" -w Search for pattern as a word\n");
99 error(" -x Display only those lines which match exactly\n");
100 error(" -c Display matching count for each file\n");
101 error(" -V Display name of each file whith no matches\n");
102 error(" -l Display name of each file which matches\n");
103 error(" -L Display first matching line of each file which matches\n");
104 error(" -s Be silent indicate match in exitcode\n");
105 error(" -h Do not display filenames\n");
106 error(" -n Precede matching lines with line number\n");
107 error(" -b Precede matching lines with block number\n");
108 error(" -help Print this help.\n");
109 error(" -version Print version number.\n");
110 error(" Standard in is used if no files are specified.\n");
121 int *aux = NULL; local
212 aux = malloc(sizeof (int)*plen);
214 if (aux == NULL || state == NULL)
217 if ((alt = patcompile(UC pat, plen, aux)) == 0)
221 printpat(pat, plen, alt, aux);
239 if ((matches = domatch(stdin, name, pat, plen, aux, alt, state)) != 0)
257 if ((matches = domatch(f, name, pat, plen, aux, alt, state)) != 0)
276 domatch(f, name, pat, plen, aux, alt, state) in domatch() argument
281 int *aux;
359 : pmatch(line, llen, pat, aux, alt, state)) != 0) {
492 printpat(pat, plen, alt, aux) in printpat() argument
496 int aux[];
506 printf(" %d", aux[i]);
517 pmatch(linep, llen, pat, aux, alt, state) in pmatch() argument
521 int *aux;
530 return (((long)((char *)patmatch(UC pat, aux, UC linep, 0, llen, alt, state) - linep))
533 return (patlmatch(UC pat, aux, UC linep, 0, llen, alt, state) != 0);