Home
last modified time | relevance | path

Searched refs:expbuf (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/expr/
H A Dcompile.c104 return (dhl_compile(instr, expbuf, endbuf)); in compile()
108 step(const char *instr, const char *expbuf) in step() argument
110 return (dhl_step(instr, expbuf)); in step()
116 return (dhl_advance(instr, expbuf)); in advance()
157 if (expbuf == NULL) { in dhl_compile()
164 endbuf = expbuf + regexc_size; in dhl_compile()
166 if (expbuf + regexc_size > endbuf) { in dhl_compile()
170 memcpy(&reg_comp, expbuf, regexc_size); in dhl_compile()
243 free(expbuf); in dhl_compile()
249 return (expbuf); in dhl_compile()
[all …]
H A Dexpr.c391 static char *expbuf; in ematch() local
406 if (regerrno != 41 || expbuf == NULL) in ematch()
409 if (expbuf) in ematch()
410 free(expbuf); in ematch()
411 expbuf = nexpbuf; in ematch()
413 if (advance(s, expbuf)) { in ematch()
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dregex.c128 #define expbuf (_re->_expbuf) macro
161 ep = expbuf; in re_comp()
163 #define comerr(msg) {expbuf[0] = 0; return (msg); } in re_comp()
177 if (ep >= &expbuf[ESIZE]) in re_comp()
227 if (ep >= &expbuf[ESIZE]) in re_comp()
233 if (ep >= &expbuf[ESIZE]) in re_comp()
285 p2 = expbuf; in re_exec()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dregexpr.c125 #define expbuf (_re->_expbuf) macro
155 ep = expbuf; in re_comp()
157 #define comerr(msg) {expbuf[0] = 0; return (msg); } in re_comp()
171 if (ep >= &expbuf[ESIZE]) in re_comp()
222 if (ep >= &expbuf[ESIZE]) in re_comp()
228 if (ep >= &expbuf[ESIZE]) in re_comp()
280 p2 = expbuf; in re_exec()
/illumos-gate/usr/src/ucbcmd/sed/
H A Dsed0.c698 char *expbuf; in address()
707 *expbuf++ = CEND;
708 *expbuf++ = CCEOF;
709 return(expbuf);
727 *expbuf++ = CLNUM;
728 *expbuf++ = nlno;
732 *expbuf++ = CCEOF;
734 return(expbuf);
816 char *ycomp(expbuf) in ycomp() argument
817 char *expbuf; in ycomp()
[all …]
H A Dsed1.c96 static int match(char *expbuf, int gf);
227 match(char *expbuf, int gf) in match() argument
232 if(*expbuf) return(0); in match()
239 circf = *expbuf++; in match()
240 return(step(p1, expbuf)); in match()
/illumos-gate/usr/src/lib/libgen/inc/
H A Dregexpr.h58 extern int step(const char *string, const char *expbuf);
59 extern int advance(const char *string, const char *expbuf);
60 extern char *compile(const char *instring, char *expbuf, char *endbuf);
/illumos-gate/usr/src/lib/libadm/common/
H A Dckstr.c88 char expbuf[ESIZE]; in ckstr_val() local
99 if (!__compile(regexp[i], expbuf, &expbuf[ESIZE], '\0')) in ckstr_val()
101 valid = __step(input, expbuf); in ckstr_val()
/illumos-gate/usr/src/lib/libgen/common/
H A Dreg_compile.c156 char *expbuf = ep; in _compile() local
184 expbuf = ep; in _compile()
432 free(expbuf); in _compile()
435 reglength = (int)(ep - expbuf); in _compile()
437 return (expbuf); in _compile()
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dsvr_iters.c61 char *expbuf; member
154 match = (step(name, data->expbuf) != 0); in get_either_iter()
226 ((data.expbuf = compile(regexp, NULL, NULL)) == NULL) in kadm5_get_either()
/illumos-gate/usr/src/ucbcmd/expr/
H A Dexpr.y296 static char expbuf[ESIZE]; in ematch() local
301 compile(p, expbuf, &expbuf[ESIZE], 0); in ematch()
304 if(advance(s, expbuf)) { in ematch()
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c61 char *expbuf; variable
481 to_line(findline(expbuf, offset)); in num_arg()
533 expbuf = compile(string, (char *)0, (char *)0); in re_arg()
536 to_line(findline(expbuf, offset)); in re_arg()
/illumos-gate/usr/src/cmd/csh/
H A Dprintf.c139 char expbuf[MAXESIZ + 1]; in _print() local
472 suffix = &expbuf[MAXESIZ]; in _print()
486 while (suffix > &expbuf[MAXESIZ - 2]) { in _print()
/illumos-gate/usr/src/ucblib/libucb/port/stdio/
H A Ddoprnt.c199 char expbuf[MAXESIZ + 1]; in _doprnt() local
754 *(suffix = &expbuf[MAXESIZ]) = '\0'; in _doprnt()
765 while (suffix > &expbuf[MAXESIZ - 2]) in _doprnt()
776 (int)(&expbuf[MAXESIZ] - suffix)); in _doprnt()
/illumos-gate/usr/src/cmd/pg/
H A Dpg.c1232 static char *expbuf; in search() local
1239 if (regerrno != 41 || expbuf == NULL) in search()
1242 if (expbuf) in search()
1243 free(expbuf); in search()
1244 expbuf = nexpbuf; in search()
1260 if (step(Line, expbuf)) in search()
/illumos-gate/usr/src/lib/libc/port/print/
H A Ddoprnt.c506 wchar_t expbuf[MAXESIZ + 1]; in _wndoprnt() local
520 char expbuf[MAXESIZ + 1]; in _wndoprnt() local
1377 suffix = &expbuf[MAXESIZ]; in _wndoprnt()
1398 suffixlength = &expbuf[MAXESIZ] - suffix; in _wndoprnt()
1475 *(suffix = &expbuf[MAXESIZ]) = '\0'; in _wndoprnt()
1486 while (suffix > &expbuf[MAXESIZ - 2]) in _wndoprnt()
1496 otherlength += (suffixlength = &expbuf[MAXESIZ] \ in _wndoprnt()
/illumos-gate/usr/src/cmd/ed/
H A Ded.c188 static char *expbuf; variable
2205 if (expbuf) in comple()
2206 free(expbuf); in comple()
2207 expbuf = compile(genbuf, (char *)0, (char *)0); in comple()
2308 return (step(p1, expbuf)); in execute()
/illumos-gate/usr/src/cmd/mail/
H A Dmail.h277 extern char *altcompile(const char *instring, char *expbuf, char *endbuf);