• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/tcsh/

Lines Matching refs:LastChar

166     if (LastChar + num >= InputLim)
169 if (Cursor < LastChar) { /* if I must move chars */
170 for (cp = LastChar; cp >= Cursor; cp--)
175 LastChar += num;
183 if (num > LastChar - Cursor)
184 num = (int) (LastChar - Cursor); /* bounds check */
192 for (cp = Cursor; cp <= LastChar; cp++) {
198 for (cp = Cursor; cp + num <= LastChar; cp++)
200 LastChar -= num;
233 for (cp = Cursor - num; cp <= LastChar; cp++) {
239 for (cp = Cursor - num; cp + num <= LastChar; cp++)
241 LastChar -= num;
661 if (LastChar + buf_len - (q - op) >= InputLim)
663 (void) memmove(op + buf_len, q, (LastChar - q) * sizeof(Char));
664 LastChar += buf_len - (q - op);
667 *LastChar = '\0';
954 LastSaved = LastChar - InputBuf;
971 LastChar = InputBuf + HistBuf.len;
978 Cursor = LastChar;
1007 LastChar = Strend(InputBuf);
1009 if (LastChar > InputBuf) {
1010 if (LastChar[-1] == '\n')
1011 LastChar--;
1013 if (LastChar[-1] == ' ')
1014 LastChar--;
1016 if (LastChar < InputBuf)
1017 LastChar = InputBuf;
1025 Cursor = LastChar;
1074 if (LastChar + sizeof(STRfwd)/sizeof(Char) + 2 + patbuf.len >= InputLim)
1084 *LastChar++ = '\n';
1086 *cp; *LastChar++ = *cp++)
1088 *LastChar++ = pchar;
1090 *LastChar++ = *cp++)
1092 *LastChar = '\0';
1108 if (LastChar + 1 >= InputLim) /*FIXBUF*/
1112 *LastChar++ = ch;
1113 *LastChar = '\0';
1147 cp = c_next_word(Cursor, LastChar, 1);
1149 if (LastChar + 1 >= InputLim) {/*FIXBUF*/
1154 *LastChar++ = *Cursor++;
1157 *LastChar = '\0';
1179 while (LastChar > InputBuf && *LastChar != '\n')
1180 *LastChar-- = '\0';
1181 *LastChar = '\0';
1200 LastChar : InputBuf;
1206 if (Cursor < InputBuf || Cursor > LastChar ||
1213 LastChar : InputBuf;
1272 oldlc = LastChar;
1277 LastChar = InputBuf;
1295 LastChar = Cursor;
1300 LastChar = oldlc;
1322 LastChar = Cursor;
1336 LastChar = InputBuf;
1361 Cursor = LastChar = InputBuf;
1370 *LastChar++ = '\n';
1371 *LastChar = '\0';
1431 if (LastChar + Argument * n >= InputLim)
1456 if (LastChar + Argument >= InputLim)
1502 if (LastChar + len >= InputLim)
1538 if (LastChar + 1 >= InputLim)
1612 *LastChar++ = '\n'; /* for the benefit of CSH */
1613 *LastChar = '\0'; /* just in case */
1626 *LastChar++ = '\n'; /* for the benefit of CSH */
1627 *LastChar = '\0'; /* just in case */
1639 *LastChar++ = '\n'; /* for the benefit of CSH */
1640 *LastChar = '\0'; /* just in case */
1650 *LastChar = '\0'; /* just in case */
1659 *LastChar = '\0'; /* just in case */
1668 *LastChar = '\0'; /* just in case */
1677 *LastChar = '\0'; /* just in case */
1686 *LastChar = '\0'; /* just in case */
1695 if (Cursor < LastChar)
1697 *LastChar = '\0'; /* just in case */
1709 *LastChar = '\0'; /* just in case */
1741 LastChar = Strend(InputBuf);
1742 if (LastChar > InputBuf) {
1743 if (LastChar[-1] == '\n')
1744 LastChar--;
1745 if (LastChar[-1] == ' ')
1746 LastChar--;
1747 if (LastChar < InputBuf)
1748 LastChar = InputBuf;
1756 Cursor = LastChar;
1769 *LastChar = '\0'; /* just in case */
1797 *LastChar = '\0'; /* just in case */
1837 xprintf("Cursor %d LastChar %d\n", Cursor - InputBuf, LastChar - InputBuf);
1852 *LastChar = '\0'; /* just in case */
1892 matched = (Strncmp(hl, InputBuf, (size_t) (LastChar - InputBuf)) ||
1893 hl[LastChar-InputBuf]) && c_hmatch(hl);
1927 *LastChar = '\0'; /* just in case */
1951 if ((Strncmp(hl, InputBuf, (size_t) (LastChar - InputBuf)) ||
1952 hl[LastChar-InputBuf]) && c_hmatch(hl))
1979 *LastChar = '\0'; /* just in case */
1988 *LastChar = '\0'; /* just in case */
1997 *LastChar = '\0'; /* just in case */
2034 *LastChar = '\0'; /* just in case */
2044 *LastChar = '\0'; /* just in case */
2054 *LastChar = '\0'; /* just in case */
2063 *LastChar = '\0'; /* just in case */
2072 *LastChar = '\0'; /* just in case */
2081 *LastChar = '\0'; /* just in case */
2090 *LastChar = '\0'; /* just in case */
2102 *LastChar = '\0'; /* just in case */
2224 if (LastChar + len - (Cursor - start) >= InputLim)
2250 if (LastChar + len >= InputLim)
2310 if (LastChar + ins_len - del_len >= InputLim)
2423 if (Cursor == LastChar) {/* if I'm at the end */
2435 if (Cursor > LastChar)
2436 Cursor = LastChar; /* bounds check */
2446 if (Cursor == LastChar) {/* if I'm at the end */
2465 if (Cursor > LastChar)
2466 Cursor = LastChar; /* bounds check */
2475 if (Cursor == LastChar) { /* if I'm at the end */
2477 *LastChar = '\0'; /* just in case */
2482 if (Cursor > LastChar)
2483 Cursor = LastChar; /* bounds check */
2493 if (Cursor == LastChar) { /* if I'm at the end */
2501 *LastChar = '\0'; /* just in case */
2507 if (Cursor > LastChar)
2508 Cursor = LastChar; /* bounds check */
2520 if (Cursor == LastChar && Cursor == InputBuf) {
2527 *LastChar = '\0'; /* just in case */
2540 if (Cursor == LastChar)
2544 cp = c_next_word(Cursor, LastChar, Argument);
2549 if (Cursor > LastChar)
2550 Cursor = LastChar; /* bounds check */
2559 Cursor = LastChar;
2594 c_push_kill(Cursor, LastChar); /* copy it */
2595 LastChar = Cursor; /* zap! -- delete to end */
2620 c_push_kill(InputBuf, LastChar); /* copy it */
2621 Cursor = Mark = LastChar = InputBuf; /* zap! -- delete all of it */
2677 if (Cursor == &InputBuf[0] || LastChar == &InputBuf[1]) {
2681 if (Cursor < LastChar) {
2779 if (Cursor < LastChar) {
2781 if (Cursor > LastChar)
2782 Cursor = LastChar;
2803 if (Cursor == LastChar)
2807 Cursor = c_next_word(Cursor, LastChar, Argument);
2824 if (Cursor == LastChar)
2828 Cursor = c_nexword(Cursor, LastChar, Argument);
2845 if (Cursor == LastChar)
2849 Cursor = c_next_word(Cursor, LastChar, Argument);
2850 if (Cursor < LastChar)
2874 LastChar = InputBuf;
2928 while (cp < LastChar && *cp != ch)
2932 if (cp >= LastChar)
2961 for (cp = InputBuf; cp < LastChar; cp++) {
2968 LastChar = InputBuf;
3000 while ((cp <= LastChar) && (isword(*cp)))
3017 end = c_next_word(Cursor, LastChar, Argument);
3024 if (Cursor > LastChar)
3025 Cursor = LastChar;
3037 end = c_next_word(Cursor, LastChar, Argument);
3053 if (Cursor > LastChar)
3054 Cursor = LastChar;
3065 end = c_next_word(Cursor, LastChar, Argument);
3072 if (Cursor > LastChar)
3073 Cursor = LastChar;
3257 if (Cursor < LastChar)
3260 if (Cursor > LastChar)
3261 Cursor = LastChar;
3278 Cursor = LastChar;
3280 InsertPos = LastChar; /* Mark where insertion begins */
3281 UndoPtr = LastChar;
3295 if (Cursor < LastChar) {
3322 if (p == LastChar)
3464 *LastChar = '\0'; /* just in case */
3482 *LastChar = '\0'; /* just in case */
3544 for (dp = oldc; cp < oldc && dp < LastChar; cp++)
3604 if (Cursor == LastChar)
3608 Cursor = c_endword(Cursor, LastChar, Argument, STRshwspace);
3626 if (Cursor == LastChar)
3630 Cursor = c_eword(Cursor, LastChar, Argument);
3745 for (cp = UndoPtr; cp <= LastChar; cp++)
3748 LastChar -= UndoSize;
3771 size = (int)(Cursor-LastChar); /* NOT NSL independant */
3874 if (Cursor > LastChar)
3875 Cursor = LastChar;
3888 if (p < InputBuf || p > LastChar)