Home
last modified time | relevance | path

Searched refs:lastc (Results 1 – 14 of 14) sorted by relevance

/freebsd/usr.bin/finger/
H A Dnet.c105 wint_t c, lastc; in do_protocol() local
161 lastc = 0; in do_protocol()
172 if (lastc == '\r') /* ^M^M - skip dupes */ in do_protocol()
175 lastc = '\r'; in do_protocol()
181 if (lastc != '\r' || c != '\n') in do_protocol()
182 lastc = c; in do_protocol()
184 lastc = '\n'; in do_protocol()
192 lastc = '\r'; in do_protocol()
194 if (lastc == '\n' || lastc == '\r') in do_protocol()
203 if (lastc != L'\n') in do_protocol()
H A Dlprint.c291 char *p, lastc; in show_text() local
294 lastc = '\0'; in show_text()
316 vputc(lastc = *p); in show_text()
317 if (lastc != '\n') in show_text()
331 vputc(lastc = ch); in show_text()
332 if (lastc != '\n') in show_text()
/freebsd/contrib/nvi/regex/
H A Dengine.c688 RCHAR_T lastc; /* previous c */ in fast() local
701 lastc = c; in fast()
709 if ( (lastc == '\n' && m->g->cflags&REG_NEWLINE) || in fast()
710 (lastc == OUT && !(m->eflags&REG_NOTBOL)) ) { in fast()
726 if ( (flag == BOL || (lastc != OUT && !ISWORD(lastc))) && in fast()
730 if ( (lastc != OUT && ISWORD(lastc)) && in fast()
773 RCHAR_T lastc; /* previous c */ in slow() local
786 lastc = c; in slow()
792 if ( (lastc == '\n' && m->g->cflags&REG_NEWLINE) || in slow()
793 (lastc == OUT && !(m->eflags&REG_NOTBOL)) ) { in slow()
[all …]
/freebsd/lib/libc/regex/
H A Dengine.c851 wint_t lastc; /* previous c */ in walk() local
878 lastc = c; in walk()
892 if ( (lastc == '\n' && m->g->cflags&REG_NEWLINE) || in walk()
893 (lastc == OUT && !(m->eflags&REG_NOTBOL)) ) { in walk()
902 if (lastc == OUT && (m->eflags & REG_NOTBOL) == 0) { in walk()
920 if ( (flagch == BOL || (lastc != OUT && !ISWORD(lastc))) && in walk()
924 if ( (lastc != OUT && ISWORD(lastc)) && in walk()
932 if (lastc != OUT && c != OUT && in walk()
933 ISWORD(lastc) == ISWORD(c)) { in walk()
935 } else if ((lastc == OUT && !ISWORD(c)) || in walk()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregengine.inc733 int lastc; /* previous c */
746 lastc = c;
751 /* is there an EOL and/or BOL between lastc and c? */
754 if ( (lastc == '\n' && m->g->cflags&REG_NEWLINE) ||
755 (lastc == OUT && !(m->eflags&REG_NOTBOL)) ) {
771 if ( (flagch == BOL || (lastc != OUT && !ISWORD(lastc))) &&
775 if ( (lastc != OUT && ISWORD(lastc)) &&
840 int lastc; /* previous c */
853 lastc = c;
856 /* is there an EOL and/or BOL between lastc and c? */
[all …]
/freebsd/sys/kern/
H A Dtty_ttydisc.c145 unsigned char lastc = _POSIX_VDISABLE; in ttydisc_bytesavail() local
152 clen = ttyinq_findchar(&tp->t_inq, breakc, clen, &lastc); in ttydisc_bytesavail()
159 if (lastc == _POSIX_VDISABLE) in ttydisc_bytesavail()
163 if (CMP_CC(VEOF, lastc)) in ttydisc_bytesavail()
197 unsigned char lastc = _POSIX_VDISABLE; in ttydisc_read_canonical() local
225 &lastc); in ttydisc_read_canonical()
246 if (CMP_CC(VEOF, lastc)) in ttydisc_read_canonical()
261 } while (uio->uio_resid > 0 && lastc == _POSIX_VDISABLE); in ttydisc_read_canonical()
H A Dtty_inq.c408 char *lastc) in ttyinq_findchar() argument
422 *lastc = tib->tib_data[boff]; in ttyinq_findchar()
/freebsd/bin/sh/
H A Dexpand.c459 char lastc; in expbackq() local
491 lastc = *p++; in expbackq()
492 if (lastc == '\0') in expbackq()
494 if (nnl > 0 && lastc != '\n') { in expbackq()
498 if (strchr(ifs, lastc) != NULL) { in expbackq()
499 if (lastc == '\n') in expbackq()
502 NEXTWORD(lastc, flag, dest, dst); in expbackq()
505 if (quotes && syntax[(int)lastc] == CCTL) in expbackq()
507 USTPUTC(lastc, dest); in expbackq()
/freebsd/usr.bin/grep/
H A Dgrep.c319 int c, lastc, needpattern, newarg, prevoptind; local
343 lastc = '\0';
389 if (newarg || !isdigit(lastc))
624 lastc = c;
/freebsd/usr.bin/tip/tip/
H A Dcmds.c297 char *pc, lastc; in transmit() local
318 lastc = '\0'; in transmit()
330 lastc = c; in transmit()
368 if (lastc != '\n' && !boolean(value(RAWFTP))) in transmit()
/freebsd/contrib/nvi/common/
H A Dscreen.h84 ARG_CHAR_T lastc; /* The last display character. */ member
H A Dkey.c229 if (ach && sp->lastc == ach) in v_key_name()
231 sp->lastc = ach; in v_key_name()
/freebsd/sys/sys/
H A Dttyqueue.h83 char *lastc);
/freebsd/usr.bin/diff/
H A Ddiffreg.c1250 int i, j, c, lastc, col, nc, newcol; in fetch()
1300 lastc = '\0'; in fetch()
1344 lastc == '.') { in fetch()
1366 lastc = c; in fetch()
1246 int i, j, c, lastc, col, nc, newcol; fetch() local