l 5943 src/decNumber/decNumber.c const Unit *l, *r, *u; // work l 5950 src/decNumber/decNumber.c l=a+alength-1; l 5952 src/decNumber/decNumber.c for (;l>=a; l--, r--) { l 5953 src/decNumber/decNumber.c if (*l>*r) return 1; l 5954 src/decNumber/decNumber.c if (*l<*r) return -1; l 83 src/dps8/dps8.h typedef struct { uint64_t h; uint64_t l; } x__uint128_t; l 84 src/dps8/dps8.h typedef struct { int64_t h; uint64_t l; } x__int128_t; l 85 src/dps8/dps8.h # define construct_128(h, l) ((uint128) { (h), (l) }) l 86 src/dps8/dps8.h # define construct_s128(h, l) ((int128) { (h), (l) }) l 174 src/dps8/dps8_cable.c long l = strtol (value, & endptr, 0); l 175 src/dps8/dps8_cable.c if (* endptr || l < 0 || l > INT_MAX) l 180 src/dps8/dps8_cable.c return (int) l; l 230 src/dps8/dps8_cable.c long l = strtol (p, & q, 0); l 231 src/dps8/dps8_cable.c if (* q || l < 0 || l > INT_MAX) l 236 src/dps8/dps8_cable.c * val = (uint) l; l 1921 src/dps8/dps8_console.c size_t l = strlen (str); l 1922 src/dps8/dps8_console.c for (size_t i = 0; i < l; i ++) l 1927 src/dps8/dps8_console.c (ssize_t) l); l 378 src/dps8/dps8_crdrdr.c static void asciiToH (char * str, uint * hstr, size_t l) l 381 src/dps8/dps8_crdrdr.c for (size_t i = 0; i < l; i ++) l 494 src/dps8/dps8_crdrdr.c size_t l = 0; l 506 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 518 src/dps8/dps8_crdrdr.c l = strlen (((char *) cardImage) + 1); l 546 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 573 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 582 src/dps8/dps8_crdrdr.c l = (size_t) getCardData (rdr_state [unitIdx].deckfd, (char *) cardImage); l 583 src/dps8/dps8_crdrdr.c if (l) { l 587 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 601 src/dps8/dps8_crdrdr.c l = (size_t) getRawCardData (rdr_state [unitIdx].deckfd, rawCardImage); l 602 src/dps8/dps8_crdrdr.c if (l) { l 606 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 624 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 641 src/dps8/dps8_crdrdr.c l 652 src/dps8/dps8_crdrdr.c l 667 src/dps8/dps8_crdrdr.c l 668 src/dps8/dps8_crdrdr.c l 707 src/dps8/dps8_crdrdr.c if (l > 80) { l 708 src/dps8/dps8_crdrdr.c sim_warn ("Whups. rdr l %lu > 80; truncating.\n", (unsigned long)l); l 709 src/dps8/dps8_crdrdr.c l = 80; l 713 src/dps8/dps8_crdrdr.c uint hbuf [l + 1]; l 714 src/dps8/dps8_crdrdr.c asciiToH ((char *) cardImage, hbuf, l); l 717 src/dps8/dps8_crdrdr.c uint nbits = (uint) l * 12; l 729 src/dps8/dps8_crdrdr.c for (uint col = 0; col < l; col ++) { l 10140 src/dps8/dps8_eis.c EISwrite9(cpup, &e->ADDR2, &pos, (word9) rshift_128 (x, (uint) shift).l & 0777); l 2222 src/dps8/dps8_fnp2.c for (int l = 0; l < MAX_LINES; l ++) l 2224 src/dps8/dps8_fnp2.c sim_printf (" line %d:\n", l); l 2226 src/dps8/dps8_fnp2.c fudp->MState.line[l].service); l 2228 src/dps8/dps8_fnp2.c (void *) fudp->MState.line[l].line_client); l 2230 src/dps8/dps8_fnp2.c fudp->MState.line[l].was_CR); l 2232 src/dps8/dps8_fnp2.c fudp->MState.line[l].listen); l 2234 src/dps8/dps8_fnp2.c fudp->MState.line[l].inputBufferSize); l 2236 src/dps8/dps8_fnp2.c fudp->MState.line[l].line_break); l 2238 src/dps8/dps8_fnp2.c fudp->MState.line[l].send_output); l 2240 src/dps8/dps8_fnp2.c fudp->MState.line[l].accept_new_terminal); l 2243 src/dps8/dps8_fnp2.c fudp->MState.line[l].line_disconnected); l 2246 src/dps8/dps8_fnp2.c fudp->MState.line[l].line_disconnected ? 'T' : 'F'); l 2249 src/dps8/dps8_fnp2.c fudp->MState.line[l].acu_dial_failure); l 2251 src/dps8/dps8_fnp2.c fudp->MState.line[l].accept_input); l 2253 src/dps8/dps8_fnp2.c fudp->MState.line[l].waitForMbxDone); l 2255 src/dps8/dps8_fnp2.c fudp->MState.line[l].input_reply_pending); l 2257 src/dps8/dps8_fnp2.c fudp->MState.line[l].input_break); l 2259 src/dps8/dps8_fnp2.c fudp->MState.line[l].nPos); l 2261 src/dps8/dps8_fnp2.c (void *) fudp->MState.line[l].inBuffer); l 2263 src/dps8/dps8_fnp2.c fudp->MState.line[l].inSize); l 2265 src/dps8/dps8_fnp2.c fudp->MState.line[l].inUsed); l 2271 src/dps8/dps8_fnp2.c fudp->MState.line[l].port); l 2633 src/dps8/dps8_fnp2.c size_t l = strlen ((char *) msg); l 2634 src/dps8/dps8_fnp2.c unsigned char buf [l + 1]; l 2635 src/dps8/dps8_fnp2.c for (uint i = 0; i < l; i ++) l 2637 src/dps8/dps8_fnp2.c buf[l] = '\0'; l 2649 src/dps8/dps8_fnp2.c fnpuv_start_3270_write (client, buf, (ssize_t) l); l 330 src/dps8/dps8_hw_consts.h return (int128) { (uint64_t) v.h, v.l}; l 332 src/dps8/dps8_hw_consts.h return (int128) { (int64_t) v.h, v.l}; l 334 src/dps8/dps8_hw_consts.h return (int128) { (__int64_t) v.h, v.l}; l 7127 src/dps8/dps8_ins.c uint64_t secs = bigsecs.l; l 544 src/dps8/dps8_math.c allones &= m1.l & 1; l 545 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 577 src/dps8/dps8_math.c allones &= m2.l & 1; l 578 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 1439 src/dps8/dps8_math.c uint32_t divisor = rshift_128 (m2, 44).l & MASK28; l 1461 src/dps8/dps8_math.c cpu.rA = rshift_128 (m3, 36u).l & MASK36; l 1729 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 1762 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 1863 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 1896 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 2068 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 2101 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 2503 src/dps8/dps8_math.c if ((iszero_128 (and_128 (m2, SIGN72))) && m2.l & 0377) l 3122 src/dps8/dps8_math.c cpu.rA = quot.l & MASK36; l 3123 src/dps8/dps8_math.c cpu.rQ = remainder.l & MASK36; l 3353 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 3371 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 3489 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 3524 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 37 src/dps8/dps8_math128.c if (w.h || w.l) l 44 src/dps8/dps8_math128.c if (w.h || w.l) l 51 src/dps8/dps8_math128.c return a.h == b.h && a.l == b.l; l 58 src/dps8/dps8_math128.c if (a.l > b.l) return true; l 66 src/dps8/dps8_math128.c if (a.l < b.l) return true; l 74 src/dps8/dps8_math128.c if (a.l >= b.l) return true; l 82 src/dps8/dps8_math128.c if (a.l < b.l) return true; l 90 src/dps8/dps8_math128.c if (a.l > b.l) return true; l 96 src/dps8/dps8_math128.c return (uint128) {a.h & b.h, a.l & b.l}; l 101 src/dps8/dps8_math128.c return (int128) {a.h & (int64_t)b.h, a.l & b.l}; l 106 src/dps8/dps8_math128.c return (uint128) {a.h | b.h, a.l | b.l}; l 111 src/dps8/dps8_math128.c return (uint128) {a.h ^ b.h, a.l ^ b.l}; l 116 src/dps8/dps8_math128.c return (uint128) {~ a.h, ~ a.l}; l 125 src/dps8/dps8_math128.c uint64_t al63 = a.l & MASK63; // low 63 bits of a l 126 src/dps8/dps8_math128.c uint64_t bl63 = b.l & MASK63; // low 63 bits of b l 131 src/dps8/dps8_math128.c unsigned int al64 = (a.l >> 63) & 1; // bit 64 of a l 132 src/dps8/dps8_math128.c unsigned int bl64 = (b.l >> 63) & 1; // bit 64 of b l 146 src/dps8/dps8_math128.c bool borrow = !! (b.l > a.l); l 147 src/dps8/dps8_math128.c uint128 res = construct_128 (a.h - b.h, a.l - b.l); l 177 src/dps8/dps8_math128.c uint64_t keep = (a.l >> (64 - n)) & nmask; l 180 src/dps8/dps8_math128.c uint64_t l = a.l << n; l 188 src/dps8/dps8_math128.c return construct_128 (h, l); l 190 src/dps8/dps8_math128.c uint64_t h = a.l << (n - 64); l 210 src/dps8/dps8_math128.c l 212 src/dps8/dps8_math128.c l 214 src/dps8/dps8_math128.c l 219 src/dps8/dps8_math128.c l 222 src/dps8/dps8_math128.c l 223 src/dps8/dps8_math128.c l 233 src/dps8/dps8_math128.c l 234 src/dps8/dps8_math128.c l 240 src/dps8/dps8_math128.c l 245 src/dps8/dps8_math128.c l 247 src/dps8/dps8_math128.c l 251 src/dps8/dps8_math128.c uint64_t l = a.l; l 258 src/dps8/dps8_math128.c l >>= 1; l 259 src/dps8/dps8_math128.c l &= MASK63; l 260 src/dps8/dps8_math128.c l |= b; l 263 src/dps8/dps8_math128.c return construct_128 (h, l); l 476 src/dps8/dps8_math128.c const int l = 4; l 477 src/dps8/dps8_math128.c uint32_t w[l+l], u[l], v[l]; l 481 src/dps8/dps8_math128.c u[1] = (uint32_t) (a.l >> 32); l 482 src/dps8/dps8_math128.c u[0] = (uint32_t) a.l; l 485 src/dps8/dps8_math128.c v[1] = (uint32_t) (b.l >> 32); l 486 src/dps8/dps8_math128.c v[0] = (uint32_t) b.l; l 487 src/dps8/dps8_math128.c mulmn (w, u, v, l, l); l 496 src/dps8/dps8_math128.c const int l = 4; l 497 src/dps8/dps8_math128.c uint32_t w[l+l], u[l], v[l]; l 501 src/dps8/dps8_math128.c u[1] = (uint32_t) (a.l >> 32); l 502 src/dps8/dps8_math128.c u[0] = (uint32_t) a.l; l 505 src/dps8/dps8_math128.c v[1] = (uint32_t) (b.l >> 32); l 506 src/dps8/dps8_math128.c v[0] = (uint32_t) b.l; l 507 src/dps8/dps8_math128.c mulmns (w, u, v, l, l); l 519 src/dps8/dps8_math128.c u[0] = (uint16_t) a.l; l 520 src/dps8/dps8_math128.c u[1] = (uint16_t) (a.l >> 16); l 521 src/dps8/dps8_math128.c u[2] = (uint16_t) (a.l >> 32); l 522 src/dps8/dps8_math128.c u[3] = (uint16_t) (a.l >> 48); l 528 src/dps8/dps8_math128.c v[0] = (uint16_t) b.l; l 529 src/dps8/dps8_math128.c v[1] = (uint16_t) (b.l >> 16); l 530 src/dps8/dps8_math128.c v[2] = (uint16_t) (b.l >> 32); l 531 src/dps8/dps8_math128.c v[3] = (uint16_t) (b.l >> 48); l 574 src/dps8/dps8_math128.c u[0] = (uint16_t) a.l; l 575 src/dps8/dps8_math128.c u[1] = (uint16_t) (a.l >> 16); l 576 src/dps8/dps8_math128.c u[2] = (uint16_t) (a.l >> 32); l 577 src/dps8/dps8_math128.c u[3] = (uint16_t) (a.l >> 48); l 610 src/dps8/dps8_math128.c u[0] = (uint16_t) a.l; l 611 src/dps8/dps8_math128.c u[1] = (uint16_t) (a.l >> 16); l 612 src/dps8/dps8_math128.c u[2] = (uint16_t) (a.l >> 32); l 613 src/dps8/dps8_math128.c u[3] = (uint16_t) (a.l >> 48); l 641 src/dps8/dps8_math128.c static void tisz (uint64_t h, uint64_t l, bool expect) l 643 src/dps8/dps8_math128.c bool r = iszero_128 (construct_128 (h, l)); l 648 src/dps8/dps8_math128.c (unsigned long long)h, (unsigned long long)l, (unsigned long)r); l 660 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 664 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 676 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 680 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 691 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 695 src/dps8/dps8_math128.c (unsigned long long)r.l); l 707 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 711 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 723 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 727 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 738 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 742 src/dps8/dps8_math128.c (unsigned long long)r.l); l 769 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 773 src/dps8/dps8_math128.c (unsigned long long)r.h, (unsigned long long)r.l); l 784 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 788 src/dps8/dps8_math128.c (unsigned long long)r.h, (unsigned long long)r.l); l 800 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 804 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 816 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 820 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 833 src/dps8/dps8_math128.c if (res.h != resh || res.l != resl || rem != remainder) { l 837 src/dps8/dps8_math128.c (unsigned long long)res.h, (unsigned long long)res.l, rem); l 850 src/dps8/dps8_math128.c if (res.h != resh || res.l != resl || rem != remainder) { l 854 src/dps8/dps8_math128.c (unsigned long long)res.h, (unsigned long long)res.l, rem); l 23 src/dps8/dps8_math128.h # define cast_128(x) construct_128 ((uint64_t) (x).h, (x).l) l 24 src/dps8/dps8_math128.h # define cast_s128(x) construct_s128 ((int64_t) (x).h, (x).l) l 1229 src/dps8/dps8_scu.c uint64 UNIX_usecs = UNIX_secs * 1000000llu + big.l; l 295 src/dps8/dps8_socket_dev.c size_t l = strlen (str); l 296 src/dps8/dps8_socket_dev.c if (l > 8) l 297 src/dps8/dps8_socket_dev.c l = 8; l 298 src/dps8/dps8_socket_dev.c for (uint i = 0; i < l; i ++) l 617 src/dps8/dps8_utils.c (word36) ((rshift_128 (op1, 36).l) & MASK36), l 618 src/dps8/dps8_utils.c (word36) (op1.l & MASK36), l 619 src/dps8/dps8_utils.c (word36) (rshift_128 (op2, 36).l & MASK36), l 620 src/dps8/dps8_utils.c (word36) (op2.l & MASK36), l 671 src/dps8/dps8_utils.c (word36) ((rshift_128 (op1e, 36).l) & MASK36), l 672 src/dps8/dps8_utils.c (word36) (op1e.l & MASK36), l 673 src/dps8/dps8_utils.c (word36) (rshift_128 (op2e, 36).l & MASK36), l 674 src/dps8/dps8_utils.c (word36) (op2e.l & MASK36), l 694 src/dps8/dps8_utils.c (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); l 776 src/dps8/dps8_utils.c (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); l 977 src/dps8/dps8_utils.c *even = rshift_128 (src, 36).l & DMASK; l 978 src/dps8/dps8_utils.c *odd = src.l & DMASK; l 1115 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op1 %016"PRIx64"%016"PRIx64"\n", op1.h, op1.l); l 1116 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op2 %016"PRIx64"%016"PRIx64"\n", op2.h, op2.l); l 1119 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op1s %016"PRIx64"%016"PRIx64"\n", op1s.h, op1s.l); l 1120 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op2s %016"PRIx64"%016"PRIx64"\n", op2s.h, op2s.l); l 191 src/dps8/h316_imp.h # define MKWORD(h,l) ((uint16_t) ( (((h)&0xFF) << 8) | ((l)&0xFF) )) l 203 src/dps8/h316_imp.h # define MKLONG(h,l) ((uint32_t) ( (((h)&0xFFFF) << 16) | ((l)&0xFFFF) )) l 1064 src/dps8/libtelnet.c size_t i, l; l 1066 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { l 1070 src/dps8/libtelnet.c if (i != l) { l 1071 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1073 src/dps8/libtelnet.c l = i + 1; l 1081 src/dps8/libtelnet.c if (i != l) { l 1082 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1089 src/dps8/libtelnet.c size_t i, l; l 1091 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { l 1095 src/dps8/libtelnet.c if (i != l) { l 1096 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1098 src/dps8/libtelnet.c l = i + 1; l 1107 src/dps8/libtelnet.c if (i != l) { l 1108 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1110 src/dps8/libtelnet.c l = i + 1; l 1124 src/dps8/libtelnet.c if (i != l) { l 1125 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1142 src/dps8/libtelnet.c int rs, i, l; l 1162 src/dps8/libtelnet.c for (l = i = 0; i != rs; ++i) { l 1167 src/dps8/libtelnet.c if (i != l) l 1168 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); l 1169 src/dps8/libtelnet.c l = i + 1; l 1184 src/dps8/libtelnet.c if (i != l) { l 1185 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); l 207 src/dps8/uvutil.c size_t l = strlen (str); l 208 src/dps8/uvutil.c accessStartWrite (access->client, str, (ssize_t) l); l 708 src/dps8/uvutil.c size_t l = strlen (str); l 712 src/dps8/uvutil.c accessStartWrite (access->client, str, (ssize_t) l); l 170 src/simh/linehistory.c static void refreshLine(struct linenoiseState *l); l 647 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) l 652 src/simh/linehistory.c if (hintsCallback && plen + l->len < l->cols) l 655 src/simh/linehistory.c char *hint = hintsCallback(l->buf, &color, &bold); l 659 src/simh/linehistory.c int hintmaxlen = l->cols - ( plen + l->len ); l 705 src/simh/linehistory.c refreshSingleLine(const struct linenoiseState *l) l 708 src/simh/linehistory.c size_t plen = pstrlen(l->prompt); l 709 src/simh/linehistory.c int fd = l->ofd; l 710 src/simh/linehistory.c char *buf = l->buf; l 711 src/simh/linehistory.c size_t len = l->len; l 712 src/simh/linehistory.c size_t pos = l->pos; l 715 src/simh/linehistory.c while (( plen + pos ) >= l->cols) l 721 src/simh/linehistory.c while (plen + len > l->cols) l 731 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); l 749 src/simh/linehistory.c refreshShowHints(&ab, l, plen); l 772 src/simh/linehistory.c refreshMultiLine(struct linenoiseState *l) l 775 src/simh/linehistory.c int plen = strlen(l->prompt); l 776 src/simh/linehistory.c int rows = ( plen + l->len + l->cols - 1 ) l 777 src/simh/linehistory.c / l->cols; /* rows used by current buf. */ l 778 src/simh/linehistory.c int rpos = ( plen + l->oldpos + l->cols ) / l->cols; /* cursor relative row. */ l 781 src/simh/linehistory.c int old_rows = l->maxrows; l 782 src/simh/linehistory.c int fd = l->ofd, j; l 786 src/simh/linehistory.c if (rows > (int)l->maxrows) l 788 src/simh/linehistory.c l->maxrows = rows; l 815 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); l 820 src/simh/linehistory.c for (i = 0; i < l->len; i++) l 828 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); l 835 src/simh/linehistory.c refreshShowHints(&ab, l, plen); l 843 src/simh/linehistory.c if (l->pos && l->pos == l->len && ( l->pos + plen ) % l->cols == 0) l 849 src/simh/linehistory.c if (rows > (int)l->maxrows) l 851 src/simh/linehistory.c l->maxrows = rows; l 856 src/simh/linehistory.c rpos2 = ( plen + l->pos + l->cols ) / l->cols; l 866 src/simh/linehistory.c col = ( plen + (int)l->pos ) % (int)l->cols; l 878 src/simh/linehistory.c l->oldpos = l->pos; l 893 src/simh/linehistory.c refreshLine(struct linenoiseState *l) l 895 src/simh/linehistory.c l->cols = getColumns(STDIN_FILENO, STDOUT_FILENO); l 898 src/simh/linehistory.c refreshMultiLine(l); l 902 src/simh/linehistory.c refreshSingleLine(l); l 912 src/simh/linehistory.c linenoiseEditInsert(struct linenoiseState *l, char c) l 914 src/simh/linehistory.c if (l->len < l->buflen) l 916 src/simh/linehistory.c if (l->len == l->pos) l 918 src/simh/linehistory.c l->buf[l->pos] = c; l 919 src/simh/linehistory.c l->pos++; l 920 src/simh/linehistory.c l->len++; l 921 src/simh/linehistory.c l->buf[l->len] = '\0'; l 923 src/simh/linehistory.c if (( !mlmode && l->plen + l->len < l->cols && !hintsCallback )) l 927 src/simh/linehistory.c if (write(l->ofd, &d, 1) == -1) l 935 src/simh/linehistory.c refreshLine(l); l 942 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); l 943 src/simh/linehistory.c l->buf[l->pos] = c; l 944 src/simh/linehistory.c l->len++; l 945 src/simh/linehistory.c l->pos++; l 946 src/simh/linehistory.c l->buf[l->len] = '\0'; l 947 src/simh/linehistory.c refreshLine(l); l 956 src/simh/linehistory.c linenoiseEditMoveLeft(struct linenoiseState *l) l 958 src/simh/linehistory.c if (l->pos > 0) l 960 src/simh/linehistory.c l->pos--; l 961 src/simh/linehistory.c refreshLine(l); l 967 src/simh/linehistory.c linenoiseEditMoveRight(struct linenoiseState *l) l 969 src/simh/linehistory.c if (l->pos != l->len) l 971 src/simh/linehistory.c l->pos++; l 972 src/simh/linehistory.c refreshLine(l); l 978 src/simh/linehistory.c linenoiseEditMoveWordEnd(struct linenoiseState *l) l 980 src/simh/linehistory.c if (l->len == 0 || l->pos >= l->len) l 985 src/simh/linehistory.c if (l->buf[l->pos] == ' ') l 987 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') l 989 src/simh/linehistory.c ++l->pos; l 993 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] != ' ') l 995 src/simh/linehistory.c ++l->pos; l 997 src/simh/linehistory.c refreshLine(l); l 1002 src/simh/linehistory.c linenoiseEditMoveWordStart(struct linenoiseState *l) l 1004 src/simh/linehistory.c if (l->len == 0) l 1009 src/simh/linehistory.c if (l->buf[l->pos - 1] == ' ') l 1011 src/simh/linehistory.c --l->pos; l 1014 src/simh/linehistory.c if (l->buf[l->pos] == ' ') l 1016 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos] == ' ') l 1018 src/simh/linehistory.c --l->pos; l 1022 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') l 1024 src/simh/linehistory.c --l->pos; l 1026 src/simh/linehistory.c refreshLine(l); l 1031 src/simh/linehistory.c linenoiseEditMoveHome(struct linenoiseState *l) l 1033 src/simh/linehistory.c if (l->pos != 0) l 1035 src/simh/linehistory.c l->pos = 0; l 1036 src/simh/linehistory.c refreshLine(l); l 1042 src/simh/linehistory.c linenoiseEditMoveEnd(struct linenoiseState *l) l 1044 src/simh/linehistory.c if (l->pos != l->len) l 1046 src/simh/linehistory.c l->pos = l->len; l 1047 src/simh/linehistory.c refreshLine(l); l 1059 src/simh/linehistory.c linenoiseEditHistoryNext(struct linenoiseState *l, int dir) l 1068 src/simh/linehistory.c FREE(history[history_len - 1 - l->history_index]); l 1069 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); l 1070 src/simh/linehistory.c if (!history[history_len - 1 - l->history_index]) l 1083 src/simh/linehistory.c l->history_index += ( dir == LINENOISE_HISTORY_PREV ) ? 1 : -1; l 1084 src/simh/linehistory.c if (l->history_index < 0) l 1086 src/simh/linehistory.c l->history_index = 0; l 1089 src/simh/linehistory.c else if (l->history_index >= history_len) l 1091 src/simh/linehistory.c l->history_index = history_len - 1; l 1095 src/simh/linehistory.c strncpy(l->buf, history[history_len - 1 - l->history_index], l->buflen); l 1096 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1097 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); l 1098 src/simh/linehistory.c refreshLine(l); l 1110 src/simh/linehistory.c linenoiseSearchInHistory(struct linenoiseState *l, int direction) l 1119 src/simh/linehistory.c FREE(history[history_len - 1 - l->history_index]); l 1120 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); l 1121 src/simh/linehistory.c if (!history[history_len - 1 - l->history_index]) l 1138 src/simh/linehistory.c cnt = history_len - 2 - l->history_index; l 1146 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) l 1148 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); l 1149 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1151 src/simh/linehistory.c l->len = strlen(l->buf); l 1158 src/simh/linehistory.c l->history_index = history_len - 1 - cnt; l 1159 src/simh/linehistory.c refreshLine(l); l 1166 src/simh/linehistory.c cnt = history_len - l->history_index; l 1174 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) l 1176 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); l 1177 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1179 src/simh/linehistory.c l->len = strlen(l->buf); l 1186 src/simh/linehistory.c l->history_index = history_len - 1 - cnt; l 1187 src/simh/linehistory.c refreshLine(l); l 1201 src/simh/linehistory.c linenoiseEditDelete(struct linenoiseState *l) l 1203 src/simh/linehistory.c if (l->len > 0 && l->pos < l->len) l 1205 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); l 1206 src/simh/linehistory.c l->len--; l 1207 src/simh/linehistory.c l->buf[l->len] = '\0'; l 1208 src/simh/linehistory.c refreshLine(l); l 1214 src/simh/linehistory.c linenoiseEditBackspace(struct linenoiseState *l) l 1216 src/simh/linehistory.c if (l->pos > 0 && l->len > 0) l 1218 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); l 1219 src/simh/linehistory.c l->pos--; l 1220 src/simh/linehistory.c l->len--; l 1221 src/simh/linehistory.c l->buf[l->len] = '\0'; l 1222 src/simh/linehistory.c refreshLine(l); l 1232 src/simh/linehistory.c linenoiseEditDeletePrevWord(struct linenoiseState *l) l 1234 src/simh/linehistory.c size_t old_pos = l->pos; l 1237 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] == ' ') l 1239 src/simh/linehistory.c l->pos--; l 1241 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') l 1243 src/simh/linehistory.c l->pos--; l 1245 src/simh/linehistory.c diff = old_pos - l->pos; l 1246 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); l 1247 src/simh/linehistory.c l->len -= diff; l 1248 src/simh/linehistory.c refreshLine(l); l 1253 src/simh/linehistory.c linenoiseEditDeleteNextWord(struct linenoiseState *l) l 1255 src/simh/linehistory.c size_t next_word_end = l->pos; l 1257 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') l 1261 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') l 1265 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); l 1266 src/simh/linehistory.c l->len -= next_word_end - l->pos; l 1267 src/simh/linehistory.c refreshLine(l); l 1285 src/simh/linehistory.c struct linenoiseState l; l 1292 src/simh/linehistory.c l.ifd = stdin_fd; l 1293 src/simh/linehistory.c l.ofd = stdout_fd; l 1294 src/simh/linehistory.c l.buf = buf; l 1295 src/simh/linehistory.c l.buflen = buflen; l 1296 src/simh/linehistory.c l.prompt = prompt; l 1297 src/simh/linehistory.c l.plen = pstrlen(prompt); l 1298 src/simh/linehistory.c l.oldpos = l.pos = 0; l 1299 src/simh/linehistory.c l.len = 0; l 1300 src/simh/linehistory.c l.cols = getColumns(stdin_fd, stdout_fd); l 1301 src/simh/linehistory.c l.maxrows = 0; l 1302 src/simh/linehistory.c l.history_index = 0; l 1305 src/simh/linehistory.c l.buf[0] = '\0'; l 1306 src/simh/linehistory.c l.buflen--; /* Make sure there is always space for the nulterm */ l 1315 src/simh/linehistory.c if (write(l.ofd, prompt, strlen(prompt)) == -1) l 1326 src/simh/linehistory.c nread = read(l.ifd, &c, 1); l 1329 src/simh/linehistory.c return ( l.len ); l 1342 src/simh/linehistory.c int cint = completeLine(&l); l 1346 src/simh/linehistory.c return ( l.len ); l 1370 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1383 src/simh/linehistory.c refreshLine(&l); l 1388 src/simh/linehistory.c return ((int)l.len ); l 1396 src/simh/linehistory.c linenoiseEditBackspace(&l); l 1400 src/simh/linehistory.c if (l.len > 0) /* if the line is empty, act as end-of-file. */ l 1402 src/simh/linehistory.c linenoiseEditDelete(&l); l 1417 src/simh/linehistory.c linenoiseEditMoveLeft(&l); l 1421 src/simh/linehistory.c linenoiseEditMoveRight(&l); l 1425 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); l 1429 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); l 1440 src/simh/linehistory.c if (read(l.ifd, seq, 1) == -1) l 1445 src/simh/linehistory.c if (read(l.ifd, seq + 1, 1) == -1) l 1456 src/simh/linehistory.c if (read(l.ifd, seq + 2, 1) == -1) l 1466 src/simh/linehistory.c linenoiseEditDelete(&l); l 1471 src/simh/linehistory.c &l, l 1477 src/simh/linehistory.c &l, l 1488 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); l 1492 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); l 1496 src/simh/linehistory.c linenoiseEditMoveRight(&l); l 1500 src/simh/linehistory.c linenoiseEditMoveLeft(&l); l 1504 src/simh/linehistory.c linenoiseEditMoveHome(&l); l 1508 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1517 src/simh/linehistory.c if (linenoiseEditInsert(&l, c)) l 1526 src/simh/linehistory.c l.pos = l.len = 0; l 1527 src/simh/linehistory.c refreshLine(&l); l 1531 src/simh/linehistory.c buf[l.pos] = '\0'; l 1532 src/simh/linehistory.c l.len = l.pos; l 1533 src/simh/linehistory.c refreshLine(&l); l 1537 src/simh/linehistory.c linenoiseEditMoveHome(&l); l 1541 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1546 src/simh/linehistory.c refreshLine(&l); l 1550 src/simh/linehistory.c linenoiseEditDeletePrevWord(&l); l 4621 src/simh/scp.c for (int l = 0; l < length; l ++) l 4623 src/simh/scp.c unsigned int byte = PROM[offset + l]; l 4660 src/simh/scp.c for (int l = 0; l < length; l ++) l 4662 src/simh/scp.c unsigned int byte = PROM[offset + l]; l 4669 src/simh/scp.c (void)sprintf(&sx[l], isprint (byte) ? "%c" : " ", byte);