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 49 src/dps8/dps8.h typedef struct { uint64_t h; uint64_t l; } x__uint128_t; l 50 src/dps8/dps8.h typedef struct { int64_t h; uint64_t l; } x__int128_t; l 51 src/dps8/dps8.h # define construct_128(h, l) ((uint128) { (h), (l) }) l 52 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); 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]; 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 10129 src/dps8/dps8_eis.c EISwrite9(cpup, &e->ADDR2, &pos, (word9) rshift_128 (x, (uint) shift).l & 0777); l 2221 src/dps8/dps8_fnp2.c for (int l = 0; l < MAX_LINES; l ++) l 2223 src/dps8/dps8_fnp2.c sim_printf (" line %d:\n", l); l 2225 src/dps8/dps8_fnp2.c fudp->MState.line[l].service); l 2227 src/dps8/dps8_fnp2.c (void *) fudp->MState.line[l].line_client); l 2229 src/dps8/dps8_fnp2.c fudp->MState.line[l].was_CR); l 2231 src/dps8/dps8_fnp2.c fudp->MState.line[l].listen); l 2233 src/dps8/dps8_fnp2.c fudp->MState.line[l].inputBufferSize); l 2235 src/dps8/dps8_fnp2.c fudp->MState.line[l].line_break); l 2237 src/dps8/dps8_fnp2.c fudp->MState.line[l].send_output); l 2239 src/dps8/dps8_fnp2.c fudp->MState.line[l].accept_new_terminal); l 2242 src/dps8/dps8_fnp2.c fudp->MState.line[l].line_disconnected); l 2245 src/dps8/dps8_fnp2.c fudp->MState.line[l].line_disconnected ? 'T' : 'F'); l 2248 src/dps8/dps8_fnp2.c fudp->MState.line[l].acu_dial_failure); l 2250 src/dps8/dps8_fnp2.c fudp->MState.line[l].accept_input); l 2252 src/dps8/dps8_fnp2.c fudp->MState.line[l].waitForMbxDone); l 2254 src/dps8/dps8_fnp2.c fudp->MState.line[l].input_reply_pending); l 2256 src/dps8/dps8_fnp2.c fudp->MState.line[l].input_break); l 2258 src/dps8/dps8_fnp2.c fudp->MState.line[l].nPos); l 2260 src/dps8/dps8_fnp2.c (void *) fudp->MState.line[l].inBuffer); l 2262 src/dps8/dps8_fnp2.c fudp->MState.line[l].inSize); l 2264 src/dps8/dps8_fnp2.c fudp->MState.line[l].inUsed); l 2270 src/dps8/dps8_fnp2.c fudp->MState.line[l].port); l 2632 src/dps8/dps8_fnp2.c size_t l = strlen ((char *) msg); l 2633 src/dps8/dps8_fnp2.c unsigned char buf [l]; l 2634 src/dps8/dps8_fnp2.c for (uint i = 0; i < l; i ++) l 2647 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 7131 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 616 src/dps8/dps8_utils.c (word36) ((rshift_128 (op1, 36).l) & MASK36), l 617 src/dps8/dps8_utils.c (word36) (op1.l & MASK36), l 618 src/dps8/dps8_utils.c (word36) (rshift_128 (op2, 36).l & MASK36), l 619 src/dps8/dps8_utils.c (word36) (op2.l & MASK36), l 670 src/dps8/dps8_utils.c (word36) ((rshift_128 (op1e, 36).l) & MASK36), l 671 src/dps8/dps8_utils.c (word36) (op1e.l & MASK36), l 672 src/dps8/dps8_utils.c (word36) (rshift_128 (op2e, 36).l & MASK36), l 673 src/dps8/dps8_utils.c (word36) (op2e.l & MASK36), l 693 src/dps8/dps8_utils.c (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); l 775 src/dps8/dps8_utils.c (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); l 976 src/dps8/dps8_utils.c *even = rshift_128 (src, 36).l & DMASK; l 977 src/dps8/dps8_utils.c *odd = src.l & DMASK; l 1114 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op1 %016"PRIx64"%016"PRIx64"\n", op1.h, op1.l); l 1115 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op2 %016"PRIx64"%016"PRIx64"\n", op2.h, op2.l); l 1118 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op1s %016"PRIx64"%016"PRIx64"\n", op1s.h, op1s.l); l 1119 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 163 src/simh/linehistory.c static void refreshLine(struct linenoiseState *l); l 640 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) l 645 src/simh/linehistory.c if (hintsCallback && plen + l->len < l->cols) l 648 src/simh/linehistory.c char *hint = hintsCallback(l->buf, &color, &bold); l 652 src/simh/linehistory.c int hintmaxlen = l->cols - ( plen + l->len ); l 698 src/simh/linehistory.c refreshSingleLine(const struct linenoiseState *l) l 701 src/simh/linehistory.c size_t plen = pstrlen(l->prompt); l 702 src/simh/linehistory.c int fd = l->ofd; l 703 src/simh/linehistory.c char *buf = l->buf; l 704 src/simh/linehistory.c size_t len = l->len; l 705 src/simh/linehistory.c size_t pos = l->pos; l 708 src/simh/linehistory.c while (( plen + pos ) >= l->cols) l 714 src/simh/linehistory.c while (plen + len > l->cols) l 724 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); l 742 src/simh/linehistory.c refreshShowHints(&ab, l, plen); l 765 src/simh/linehistory.c refreshMultiLine(struct linenoiseState *l) l 768 src/simh/linehistory.c int plen = strlen(l->prompt); l 769 src/simh/linehistory.c int rows = ( plen + l->len + l->cols - 1 ) l 770 src/simh/linehistory.c / l->cols; /* rows used by current buf. */ l 771 src/simh/linehistory.c int rpos = ( plen + l->oldpos + l->cols ) / l->cols; /* cursor relative row. */ l 774 src/simh/linehistory.c int old_rows = l->maxrows; l 775 src/simh/linehistory.c int fd = l->ofd, j; l 779 src/simh/linehistory.c if (rows > (int)l->maxrows) l 781 src/simh/linehistory.c l->maxrows = rows; l 808 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); l 813 src/simh/linehistory.c for (i = 0; i < l->len; i++) l 821 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); l 828 src/simh/linehistory.c refreshShowHints(&ab, l, plen); l 836 src/simh/linehistory.c if (l->pos && l->pos == l->len && ( l->pos + plen ) % l->cols == 0) l 842 src/simh/linehistory.c if (rows > (int)l->maxrows) l 844 src/simh/linehistory.c l->maxrows = rows; l 849 src/simh/linehistory.c rpos2 = ( plen + l->pos + l->cols ) / l->cols; l 859 src/simh/linehistory.c col = ( plen + (int)l->pos ) % (int)l->cols; l 871 src/simh/linehistory.c l->oldpos = l->pos; l 886 src/simh/linehistory.c refreshLine(struct linenoiseState *l) l 888 src/simh/linehistory.c l->cols = getColumns(STDIN_FILENO, STDOUT_FILENO); l 891 src/simh/linehistory.c refreshMultiLine(l); l 895 src/simh/linehistory.c refreshSingleLine(l); l 905 src/simh/linehistory.c linenoiseEditInsert(struct linenoiseState *l, char c) l 907 src/simh/linehistory.c if (l->len < l->buflen) l 909 src/simh/linehistory.c if (l->len == l->pos) l 911 src/simh/linehistory.c l->buf[l->pos] = c; l 912 src/simh/linehistory.c l->pos++; l 913 src/simh/linehistory.c l->len++; l 914 src/simh/linehistory.c l->buf[l->len] = '\0'; l 916 src/simh/linehistory.c if (( !mlmode && l->plen + l->len < l->cols && !hintsCallback )) l 920 src/simh/linehistory.c if (write(l->ofd, &d, 1) == -1) l 928 src/simh/linehistory.c refreshLine(l); l 935 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); l 936 src/simh/linehistory.c l->buf[l->pos] = c; l 937 src/simh/linehistory.c l->len++; l 938 src/simh/linehistory.c l->pos++; l 939 src/simh/linehistory.c l->buf[l->len] = '\0'; l 940 src/simh/linehistory.c refreshLine(l); l 949 src/simh/linehistory.c linenoiseEditMoveLeft(struct linenoiseState *l) l 951 src/simh/linehistory.c if (l->pos > 0) l 953 src/simh/linehistory.c l->pos--; l 954 src/simh/linehistory.c refreshLine(l); l 960 src/simh/linehistory.c linenoiseEditMoveRight(struct linenoiseState *l) l 962 src/simh/linehistory.c if (l->pos != l->len) l 964 src/simh/linehistory.c l->pos++; l 965 src/simh/linehistory.c refreshLine(l); l 971 src/simh/linehistory.c linenoiseEditMoveWordEnd(struct linenoiseState *l) l 973 src/simh/linehistory.c if (l->len == 0 || l->pos >= l->len) l 978 src/simh/linehistory.c if (l->buf[l->pos] == ' ') l 980 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') l 982 src/simh/linehistory.c ++l->pos; l 986 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] != ' ') l 988 src/simh/linehistory.c ++l->pos; l 990 src/simh/linehistory.c refreshLine(l); l 995 src/simh/linehistory.c linenoiseEditMoveWordStart(struct linenoiseState *l) l 997 src/simh/linehistory.c if (l->len == 0) l 1002 src/simh/linehistory.c if (l->buf[l->pos - 1] == ' ') l 1004 src/simh/linehistory.c --l->pos; l 1007 src/simh/linehistory.c if (l->buf[l->pos] == ' ') l 1009 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos] == ' ') l 1011 src/simh/linehistory.c --l->pos; l 1015 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') l 1017 src/simh/linehistory.c --l->pos; l 1019 src/simh/linehistory.c refreshLine(l); l 1024 src/simh/linehistory.c linenoiseEditMoveHome(struct linenoiseState *l) l 1026 src/simh/linehistory.c if (l->pos != 0) l 1028 src/simh/linehistory.c l->pos = 0; l 1029 src/simh/linehistory.c refreshLine(l); l 1035 src/simh/linehistory.c linenoiseEditMoveEnd(struct linenoiseState *l) l 1037 src/simh/linehistory.c if (l->pos != l->len) l 1039 src/simh/linehistory.c l->pos = l->len; l 1040 src/simh/linehistory.c refreshLine(l); l 1052 src/simh/linehistory.c linenoiseEditHistoryNext(struct linenoiseState *l, int dir) l 1061 src/simh/linehistory.c FREE(history[history_len - 1 - l->history_index]); l 1062 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); l 1063 src/simh/linehistory.c if (!history[history_len - 1 - l->history_index]) l 1076 src/simh/linehistory.c l->history_index += ( dir == LINENOISE_HISTORY_PREV ) ? 1 : -1; l 1077 src/simh/linehistory.c if (l->history_index < 0) l 1079 src/simh/linehistory.c l->history_index = 0; l 1082 src/simh/linehistory.c else if (l->history_index >= history_len) l 1084 src/simh/linehistory.c l->history_index = history_len - 1; l 1088 src/simh/linehistory.c strncpy(l->buf, history[history_len - 1 - l->history_index], l->buflen); l 1089 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1090 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); l 1091 src/simh/linehistory.c refreshLine(l); l 1103 src/simh/linehistory.c linenoiseSearchInHistory(struct linenoiseState *l, int direction) l 1112 src/simh/linehistory.c FREE(history[history_len - 1 - l->history_index]); l 1113 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); l 1114 src/simh/linehistory.c if (!history[history_len - 1 - l->history_index]) l 1131 src/simh/linehistory.c cnt = history_len - 2 - l->history_index; l 1139 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) l 1141 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); l 1142 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1144 src/simh/linehistory.c l->len = strlen(l->buf); l 1151 src/simh/linehistory.c l->history_index = history_len - 1 - cnt; l 1152 src/simh/linehistory.c refreshLine(l); l 1159 src/simh/linehistory.c cnt = history_len - l->history_index; l 1167 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) l 1169 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); l 1170 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1172 src/simh/linehistory.c l->len = strlen(l->buf); l 1179 src/simh/linehistory.c l->history_index = history_len - 1 - cnt; l 1180 src/simh/linehistory.c refreshLine(l); l 1194 src/simh/linehistory.c linenoiseEditDelete(struct linenoiseState *l) l 1196 src/simh/linehistory.c if (l->len > 0 && l->pos < l->len) l 1198 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); l 1199 src/simh/linehistory.c l->len--; l 1200 src/simh/linehistory.c l->buf[l->len] = '\0'; l 1201 src/simh/linehistory.c refreshLine(l); l 1207 src/simh/linehistory.c linenoiseEditBackspace(struct linenoiseState *l) l 1209 src/simh/linehistory.c if (l->pos > 0 && l->len > 0) l 1211 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); l 1212 src/simh/linehistory.c l->pos--; l 1213 src/simh/linehistory.c l->len--; l 1214 src/simh/linehistory.c l->buf[l->len] = '\0'; l 1215 src/simh/linehistory.c refreshLine(l); l 1225 src/simh/linehistory.c linenoiseEditDeletePrevWord(struct linenoiseState *l) l 1227 src/simh/linehistory.c size_t old_pos = l->pos; l 1230 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] == ' ') l 1232 src/simh/linehistory.c l->pos--; l 1234 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') l 1236 src/simh/linehistory.c l->pos--; l 1238 src/simh/linehistory.c diff = old_pos - l->pos; l 1239 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); l 1240 src/simh/linehistory.c l->len -= diff; l 1241 src/simh/linehistory.c refreshLine(l); l 1246 src/simh/linehistory.c linenoiseEditDeleteNextWord(struct linenoiseState *l) l 1248 src/simh/linehistory.c size_t next_word_end = l->pos; l 1250 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') l 1254 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') l 1258 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); l 1259 src/simh/linehistory.c l->len -= next_word_end - l->pos; l 1260 src/simh/linehistory.c refreshLine(l); l 1278 src/simh/linehistory.c struct linenoiseState l; l 1285 src/simh/linehistory.c l.ifd = stdin_fd; l 1286 src/simh/linehistory.c l.ofd = stdout_fd; l 1287 src/simh/linehistory.c l.buf = buf; l 1288 src/simh/linehistory.c l.buflen = buflen; l 1289 src/simh/linehistory.c l.prompt = prompt; l 1290 src/simh/linehistory.c l.plen = pstrlen(prompt); l 1291 src/simh/linehistory.c l.oldpos = l.pos = 0; l 1292 src/simh/linehistory.c l.len = 0; l 1293 src/simh/linehistory.c l.cols = getColumns(stdin_fd, stdout_fd); l 1294 src/simh/linehistory.c l.maxrows = 0; l 1295 src/simh/linehistory.c l.history_index = 0; l 1298 src/simh/linehistory.c l.buf[0] = '\0'; l 1299 src/simh/linehistory.c l.buflen--; /* Make sure there is always space for the nulterm */ l 1308 src/simh/linehistory.c if (write(l.ofd, prompt, strlen(prompt)) == -1) l 1319 src/simh/linehistory.c nread = read(l.ifd, &c, 1); l 1322 src/simh/linehistory.c return ( l.len ); l 1335 src/simh/linehistory.c int cint = completeLine(&l); l 1339 src/simh/linehistory.c return ( l.len ); l 1363 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1376 src/simh/linehistory.c refreshLine(&l); l 1381 src/simh/linehistory.c return ((int)l.len ); l 1389 src/simh/linehistory.c linenoiseEditBackspace(&l); l 1393 src/simh/linehistory.c if (l.len > 0) /* if the line is empty, act as end-of-file. */ l 1395 src/simh/linehistory.c linenoiseEditDelete(&l); l 1410 src/simh/linehistory.c linenoiseEditMoveLeft(&l); l 1414 src/simh/linehistory.c linenoiseEditMoveRight(&l); l 1418 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); l 1422 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); l 1433 src/simh/linehistory.c if (read(l.ifd, seq, 1) == -1) l 1438 src/simh/linehistory.c if (read(l.ifd, seq + 1, 1) == -1) l 1449 src/simh/linehistory.c if (read(l.ifd, seq + 2, 1) == -1) l 1459 src/simh/linehistory.c linenoiseEditDelete(&l); l 1464 src/simh/linehistory.c &l, l 1470 src/simh/linehistory.c &l, l 1481 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); l 1485 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); l 1489 src/simh/linehistory.c linenoiseEditMoveRight(&l); l 1493 src/simh/linehistory.c linenoiseEditMoveLeft(&l); l 1497 src/simh/linehistory.c linenoiseEditMoveHome(&l); l 1501 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1510 src/simh/linehistory.c if (linenoiseEditInsert(&l, c)) l 1519 src/simh/linehistory.c l.pos = l.len = 0; l 1520 src/simh/linehistory.c refreshLine(&l); l 1524 src/simh/linehistory.c buf[l.pos] = '\0'; l 1525 src/simh/linehistory.c l.len = l.pos; l 1526 src/simh/linehistory.c refreshLine(&l); l 1530 src/simh/linehistory.c linenoiseEditMoveHome(&l); l 1534 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1539 src/simh/linehistory.c refreshLine(&l); l 1543 src/simh/linehistory.c linenoiseEditDeletePrevWord(&l); l 4543 src/simh/scp.c for (int l = 0; l < length; l ++) l 4545 src/simh/scp.c unsigned int byte = PROM[offset + l]; l 4582 src/simh/scp.c for (int l = 0; l < length; l ++) l 4584 src/simh/scp.c unsigned int byte = PROM[offset + l]; l 4591 src/simh/scp.c (void)sprintf(&sx[l], isprint (byte) ? "%c" : " ", byte);