/illumos-gate/usr/src/cmd/expr/ |
H A D | compile.c | 102 compile(const char *instr, char *expbuf, char *endbuf) in compile() argument 104 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() 114 advance(const char *instr, const char *expbuf) in advance() argument 116 return (dhl_advance(instr, expbuf)); in advance() 141 char *expbuf, /* where the compiled RE gets placed */ in dhl_compile() argument 157 if (expbuf == NULL) { in dhl_compile() 158 if ((expbuf = malloc(regexc_size)) == NULL) { in dhl_compile() 164 endbuf = expbuf + regexc_size; in dhl_compile() [all …]
|
H A D | expr.c | 391 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 D | regex.c | 128 #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 D | regexpr.c | 125 #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 D | sed0.c | 697 char *address(expbuf) in address() argument 698 char *expbuf; in address() 704 if (expbuf > &respace[RESIZE-2]) 707 *expbuf++ = CEND; 708 *expbuf++ = CCEOF; 709 return(expbuf); 715 return(comple((char *) 0, expbuf, &respace[RESIZE-1], sseof)); 725 if (expbuf > &respace[RESIZE-3]) 727 *expbuf++ = CLNUM; 728 *expbuf++ = nlno; [all …]
|
H A D | sed1.c | 96 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 D | regexpr.h | 58 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 D | ckstr.c | 88 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 D | reg_compile.c | 156 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 D | svr_iters.c | 61 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 D | expr.y | 296 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 D | csplit.c | 61 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 D | printf.c | 139 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 D | doprnt.c | 199 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 D | pg.c | 1232 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 D | doprnt.c | 506 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 D | ed.c | 188 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 D | mail.h | 277 extern char *altcompile(const char *instring, char *expbuf, char *endbuf);
|