l 5963 src/decNumber/decNumber.c const Unit *l, *r, *u; // work l 5970 src/decNumber/decNumber.c l=a+alength-1; l 5972 src/decNumber/decNumber.c for (;l>=a; l--, r--) { l 5973 src/decNumber/decNumber.c if (*l>*r) return 1; l 5974 src/decNumber/decNumber.c if (*l<*r) return -1; l 41 src/dps8/dps8.h typedef struct { uint64_t h; uint64_t l; } x__uint128_t; l 42 src/dps8/dps8.h typedef struct { int64_t h; uint64_t l; } x__int128_t; l 43 src/dps8/dps8.h # define construct_128(h, l) ((uint128) { (h), (l) }) l 44 src/dps8/dps8.h # define construct_s128(h, l) ((int128) { (h), (l) }) l 179 src/dps8/dps8_cable.c long l = strtol (value, & endptr, 0); l 180 src/dps8/dps8_cable.c if (* endptr || l < 0 || l > INT_MAX) l 185 src/dps8/dps8_cable.c return (int) l; l 235 src/dps8/dps8_cable.c long l = strtol (p, & q, 0); l 236 src/dps8/dps8_cable.c if (* q || l < 0 || l > INT_MAX) l 241 src/dps8/dps8_cable.c * val = (uint) l; l 1912 src/dps8/dps8_console.c size_t l = strlen (str); l 1913 src/dps8/dps8_console.c for (size_t i = 0; i < l; i ++) l 1918 src/dps8/dps8_console.c (ssize_t) l); l 381 src/dps8/dps8_crdrdr.c static void asciiToH (char * str, uint * hstr, size_t l) l 384 src/dps8/dps8_crdrdr.c for (size_t i = 0; i < l; i ++) l 492 src/dps8/dps8_crdrdr.c size_t l = 0; l 505 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 517 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 545 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 572 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 581 src/dps8/dps8_crdrdr.c l = (size_t) getCardData (rdr_state [unitIdx].deckfd, (char *) cardImage); l 582 src/dps8/dps8_crdrdr.c if (l) { l 586 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 600 src/dps8/dps8_crdrdr.c l = (size_t) getRawCardData (rdr_state [unitIdx].deckfd, rawCardImage); l 601 src/dps8/dps8_crdrdr.c if (l) { l 605 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 623 src/dps8/dps8_crdrdr.c l = strlen ((char *) cardImage); l 640 src/dps8/dps8_crdrdr.c l 651 src/dps8/dps8_crdrdr.c l 666 src/dps8/dps8_crdrdr.c l 667 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 10066 src/dps8/dps8_eis.c EISwrite9(&e->ADDR2, &pos, (word9) rshift_128 (x, (uint) shift).l & 0777); l 2160 src/dps8/dps8_fnp2.c for (int l = 0; l < MAX_LINES; l ++) l 2162 src/dps8/dps8_fnp2.c sim_printf (" line %d:\n", l); l 2163 src/dps8/dps8_fnp2.c sim_printf ("\tservice: %d\n", fudp->MState.line[l].service); l 2164 src/dps8/dps8_fnp2.c sim_printf ("\tline_client: %p\n", (void *) fudp->MState.line[l].line_client); l 2165 src/dps8/dps8_fnp2.c sim_printf ("\twas_CR: %d\n", fudp->MState.line[l].was_CR); l 2166 src/dps8/dps8_fnp2.c sim_printf ("\tlisten: %d\n", fudp->MState.line[l].listen); l 2167 src/dps8/dps8_fnp2.c sim_printf ("\tinputBufferSize: %d\n", fudp->MState.line[l].inputBufferSize); l 2168 src/dps8/dps8_fnp2.c sim_printf ("\tline_break: %d\n", fudp->MState.line[l].line_break); l 2169 src/dps8/dps8_fnp2.c sim_printf ("\tsend_output: %d\n", fudp->MState.line[l].send_output); l 2170 src/dps8/dps8_fnp2.c sim_printf ("\taccept_new_terminal: %d\n", fudp->MState.line[l].accept_new_terminal); l 2172 src/dps8/dps8_fnp2.c sim_printf ("\tline_disconnected: %d\n", fudp->MState.line[l].line_disconnected); l 2174 src/dps8/dps8_fnp2.c sim_printf ("\tline_disconnected: %c\n", fudp->MState.line[l].line_disconnected ? 'T' : 'F'); l 2176 src/dps8/dps8_fnp2.c sim_printf ("\tacu_dial_failure: %d\n", fudp->MState.line[l].acu_dial_failure); l 2177 src/dps8/dps8_fnp2.c sim_printf ("\taccept_input: %d\n", fudp->MState.line[l].accept_input); l 2178 src/dps8/dps8_fnp2.c sim_printf ("\twaitForMbxDone: %d\n", fudp->MState.line[l].waitForMbxDone); l 2179 src/dps8/dps8_fnp2.c sim_printf ("\tinput_reply_pending: %d\n", fudp->MState.line[l].input_reply_pending); l 2180 src/dps8/dps8_fnp2.c sim_printf ("\tinput_break: %d\n", fudp->MState.line[l].input_break); l 2181 src/dps8/dps8_fnp2.c sim_printf ("\tnPos: %d\n", fudp->MState.line[l].nPos); l 2182 src/dps8/dps8_fnp2.c sim_printf ("\tinBuffer: %p\n", (void *) fudp->MState.line[l].inBuffer); l 2183 src/dps8/dps8_fnp2.c sim_printf ("\tinSize: %d\n", fudp->MState.line[l].inSize); l 2184 src/dps8/dps8_fnp2.c sim_printf ("\tinUsed: %d\n", fudp->MState.line[l].inUsed); l 2187 src/dps8/dps8_fnp2.c sim_printf ("\tport: %d\n", fudp->MState.line[l].port); l 2546 src/dps8/dps8_fnp2.c size_t l = strlen ((char *) msg); l 2547 src/dps8/dps8_fnp2.c unsigned char buf [l]; l 2548 src/dps8/dps8_fnp2.c for (uint i = 0; i < l; i ++) l 2561 src/dps8/dps8_fnp2.c fnpuv_start_3270_write (client, buf, (ssize_t) l); l 333 src/dps8/dps8_hw_consts.h return (int128) { (uint64_t) v.h, v.l}; l 335 src/dps8/dps8_hw_consts.h return (int128) { (int64_t) v.h, v.l}; l 337 src/dps8/dps8_hw_consts.h return (int128) { (__int64_t) v.h, v.l}; l 6796 src/dps8/dps8_ins.c uint64_t secs = bigsecs.l; l 539 src/dps8/dps8_math.c allones &= m1.l & 1; l 540 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 572 src/dps8/dps8_math.c allones &= m2.l & 1; l 573 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 1435 src/dps8/dps8_math.c uint32_t divisor = rshift_128 (m2, 44).l & MASK28; l 1457 src/dps8/dps8_math.c cpu.rA = rshift_128 (m3, 36u).l & MASK36; l 1725 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 1758 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 1859 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 1892 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 2065 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 2098 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 2499 src/dps8/dps8_math.c if ((iszero_128 (and_128 (m2, SIGN72))) && m2.l & 0377) l 3113 src/dps8/dps8_math.c cpu.rA = quot.l & MASK36; l 3114 src/dps8/dps8_math.c cpu.rQ = remainder.l & MASK36; l 3342 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 3360 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 3478 src/dps8/dps8_math.c notallzeros |= m1.l & 1; l 3513 src/dps8/dps8_math.c notallzeros |= m2.l & 1; l 40 src/dps8/dps8_math128.c if (w.h || w.l) l 47 src/dps8/dps8_math128.c if (w.h || w.l) l 54 src/dps8/dps8_math128.c return a.h == b.h && a.l == b.l; l 61 src/dps8/dps8_math128.c if (a.l > b.l) return true; l 69 src/dps8/dps8_math128.c if (a.l < b.l) return true; l 77 src/dps8/dps8_math128.c if (a.l >= b.l) return true; l 85 src/dps8/dps8_math128.c if (a.l < b.l) return true; l 93 src/dps8/dps8_math128.c if (a.l > b.l) return true; l 99 src/dps8/dps8_math128.c return (uint128) {a.h & b.h, a.l & b.l}; l 104 src/dps8/dps8_math128.c return (int128) {a.h & (int64_t)b.h, a.l & b.l}; l 109 src/dps8/dps8_math128.c return (uint128) {a.h | b.h, a.l | b.l}; l 114 src/dps8/dps8_math128.c return (uint128) {a.h ^ b.h, a.l ^ b.l}; l 119 src/dps8/dps8_math128.c return (uint128) {~ a.h, ~ a.l}; l 128 src/dps8/dps8_math128.c uint64_t al63 = a.l & MASK63; // low 63 bits of a l 129 src/dps8/dps8_math128.c uint64_t bl63 = b.l & MASK63; // low 63 bits of b l 134 src/dps8/dps8_math128.c unsigned int al64 = (a.l >> 63) & 1; // bit 64 of a l 135 src/dps8/dps8_math128.c unsigned int bl64 = (b.l >> 63) & 1; // bit 64 of b l 149 src/dps8/dps8_math128.c bool borrow = !! (b.l > a.l); l 150 src/dps8/dps8_math128.c uint128 res = construct_128 (a.h - b.h, a.l - b.l); l 180 src/dps8/dps8_math128.c uint64_t keep = (a.l >> (64 - n)) & nmask; l 183 src/dps8/dps8_math128.c uint64_t l = a.l << n; l 191 src/dps8/dps8_math128.c return construct_128 (h, l); l 193 src/dps8/dps8_math128.c uint64_t h = a.l << (n - 64); l 213 src/dps8/dps8_math128.c l 215 src/dps8/dps8_math128.c l 217 src/dps8/dps8_math128.c l 222 src/dps8/dps8_math128.c l 225 src/dps8/dps8_math128.c l 226 src/dps8/dps8_math128.c l 236 src/dps8/dps8_math128.c l 237 src/dps8/dps8_math128.c l 243 src/dps8/dps8_math128.c l 248 src/dps8/dps8_math128.c l 250 src/dps8/dps8_math128.c l 254 src/dps8/dps8_math128.c uint64_t l = a.l; l 261 src/dps8/dps8_math128.c l >>= 1; l 262 src/dps8/dps8_math128.c l &= MASK63; l 263 src/dps8/dps8_math128.c l |= b; l 266 src/dps8/dps8_math128.c return construct_128 (h, l); l 478 src/dps8/dps8_math128.c const int l = 4; l 479 src/dps8/dps8_math128.c uint32_t w[l+l], u[l], v[l]; l 483 src/dps8/dps8_math128.c u[1] = (uint32_t) (a.l >> 32); l 484 src/dps8/dps8_math128.c u[0] = (uint32_t) a.l; l 487 src/dps8/dps8_math128.c v[1] = (uint32_t) (b.l >> 32); l 488 src/dps8/dps8_math128.c v[0] = (uint32_t) b.l; l 489 src/dps8/dps8_math128.c mulmn (w, u, v, l, l); l 498 src/dps8/dps8_math128.c const int l = 4; l 499 src/dps8/dps8_math128.c uint32_t w[l+l], u[l], v[l]; l 503 src/dps8/dps8_math128.c u[1] = (uint32_t) (a.l >> 32); l 504 src/dps8/dps8_math128.c u[0] = (uint32_t) a.l; l 507 src/dps8/dps8_math128.c v[1] = (uint32_t) (b.l >> 32); l 508 src/dps8/dps8_math128.c v[0] = (uint32_t) b.l; l 509 src/dps8/dps8_math128.c mulmns (w, u, v, l, l); l 521 src/dps8/dps8_math128.c u[0] = (uint16_t) a.l; l 522 src/dps8/dps8_math128.c u[1] = (uint16_t) (a.l >> 16); l 523 src/dps8/dps8_math128.c u[2] = (uint16_t) (a.l >> 32); l 524 src/dps8/dps8_math128.c u[3] = (uint16_t) (a.l >> 48); l 530 src/dps8/dps8_math128.c v[0] = (uint16_t) b.l; l 531 src/dps8/dps8_math128.c v[1] = (uint16_t) (b.l >> 16); l 532 src/dps8/dps8_math128.c v[2] = (uint16_t) (b.l >> 32); l 533 src/dps8/dps8_math128.c v[3] = (uint16_t) (b.l >> 48); l 576 src/dps8/dps8_math128.c u[0] = (uint16_t) a.l; l 577 src/dps8/dps8_math128.c u[1] = (uint16_t) (a.l >> 16); l 578 src/dps8/dps8_math128.c u[2] = (uint16_t) (a.l >> 32); l 579 src/dps8/dps8_math128.c u[3] = (uint16_t) (a.l >> 48); l 612 src/dps8/dps8_math128.c u[0] = (uint16_t) a.l; l 613 src/dps8/dps8_math128.c u[1] = (uint16_t) (a.l >> 16); l 614 src/dps8/dps8_math128.c u[2] = (uint16_t) (a.l >> 32); l 615 src/dps8/dps8_math128.c u[3] = (uint16_t) (a.l >> 48); l 643 src/dps8/dps8_math128.c static void tisz (uint64_t h, uint64_t l, bool expect) l 645 src/dps8/dps8_math128.c bool r = iszero_128 (construct_128 (h, l)); l 650 src/dps8/dps8_math128.c (unsigned long long)h, (unsigned long long)l, (unsigned long)r); l 662 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 666 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 678 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 682 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 693 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 697 src/dps8/dps8_math128.c (unsigned long long)r.l); l 709 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 713 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 725 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 729 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 740 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 744 src/dps8/dps8_math128.c (unsigned long long)r.l); l 771 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 775 src/dps8/dps8_math128.c (unsigned long long)r.h, (unsigned long long)r.l); l 786 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 790 src/dps8/dps8_math128.c (unsigned long long)r.h, (unsigned long long)r.l); l 802 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 806 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 818 src/dps8/dps8_math128.c if (r.h != rh || r.l != rl) { l 822 src/dps8/dps8_math128.c (unsigned long long)bl, (unsigned long long)r.h, (unsigned long long)r.l); l 835 src/dps8/dps8_math128.c if (res.h != resh || res.l != resl || rem != remainder) { l 839 src/dps8/dps8_math128.c (unsigned long long)res.h, (unsigned long long)res.l, rem); l 852 src/dps8/dps8_math128.c if (res.h != resh || res.l != resl || rem != remainder) { l 856 src/dps8/dps8_math128.c (unsigned long long)res.h, (unsigned long long)res.l, rem); l 26 src/dps8/dps8_math128.h # define cast_128(x) construct_128 ((uint64_t) (x).h, (x).l) l 27 src/dps8/dps8_math128.h # define cast_s128(x) construct_s128 ((int64_t) (x).h, (x).l) l 1220 src/dps8/dps8_scu.c uint64 UNIX_usecs = UNIX_secs * 1000000llu + big.l; l 298 src/dps8/dps8_socket_dev.c size_t l = strlen (str); l 299 src/dps8/dps8_socket_dev.c if (l > 8) l 300 src/dps8/dps8_socket_dev.c l = 8; l 301 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), (word36) (op1.l & MASK36), (word36) (rshift_128 (op2, 36).l & MASK36), (word36) (op2.l & MASK36), carryin, flagsToSet, * flags); l 660 src/dps8/dps8_utils.c (word36) ((rshift_128 (op1e, 36).l) & MASK36), (word36) (op1e.l & MASK36), (word36) (rshift_128 (op2e, 36).l & MASK36), (word36) (op2e.l & MASK36), carryin, flagsToSet, * flags); l 673 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Sub72b res %012"PRIo64"%012"PRIo64" flags %06o ovf %o\n", (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); l 753 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "Sub72b res %012"PRIo64"%012"PRIo64" flags %06o ovf %o\n", (word36) (rshift_128 (res, 36).l & MASK36), (word36) (res.l & MASK36), * flags, * ovf); l 953 src/dps8/dps8_utils.c *even = rshift_128 (src, 36).l & DMASK; l 954 src/dps8/dps8_utils.c *odd = src.l & DMASK; l 1091 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op1 %016"PRIx64"%016"PRIx64"\n", op1.h, op1.l); l 1092 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op2 %016"PRIx64"%016"PRIx64"\n", op2.h, op2.l); l 1095 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op1s %016"PRIx64"%016"PRIx64"\n", op1s.h, op1s.l); l 1096 src/dps8/dps8_utils.c sim_debug (DBG_TRACEEXT, & cpu_dev, "op2s %016"PRIx64"%016"PRIx64"\n", op2s.h, op2s.l); l 186 src/dps8/h316_imp.h # define MKWORD(h,l) ((uint16_t) ( (((h)&0xFF) << 8) | ((l)&0xFF) )) l 189 src/dps8/h316_imp.h # define MKLONG(h,l) ((uint32_t) ( (((h)&0xFFFF) << 16) | ((l)&0xFFFF) )) l 1079 src/dps8/libtelnet.c size_t i, l; l 1081 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { l 1085 src/dps8/libtelnet.c if (i != l) { l 1086 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1088 src/dps8/libtelnet.c l = i + 1; l 1096 src/dps8/libtelnet.c if (i != l) { l 1097 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1104 src/dps8/libtelnet.c size_t i, l; l 1106 src/dps8/libtelnet.c for (l = i = 0; i != size; ++i) { l 1110 src/dps8/libtelnet.c if (i != l) { l 1111 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1113 src/dps8/libtelnet.c l = i + 1; l 1122 src/dps8/libtelnet.c if (i != l) { l 1123 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1125 src/dps8/libtelnet.c l = i + 1; l 1139 src/dps8/libtelnet.c if (i != l) { l 1140 src/dps8/libtelnet.c _send(telnet, buffer + l, i - l); l 1157 src/dps8/libtelnet.c int rs, i, l; l 1177 src/dps8/libtelnet.c for (l = i = 0; i != rs; ++i) { l 1182 src/dps8/libtelnet.c if (i != l) l 1183 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); l 1184 src/dps8/libtelnet.c l = i + 1; l 1199 src/dps8/libtelnet.c if (i != l) { l 1200 src/dps8/libtelnet.c _send(telnet, output + l, (size_t) (i - l)); l 213 src/dps8/uvutil.c size_t l = strlen (str); l 214 src/dps8/uvutil.c accessStartWrite (access->client, str, (ssize_t) l); l 711 src/dps8/uvutil.c size_t l = strlen (str); l 715 src/dps8/uvutil.c accessStartWrite (access->client, str, (ssize_t) l); l 167 src/simh/linehistory.c static void refreshLine(struct linenoiseState *l); l 634 src/simh/linehistory.c refreshShowHints(struct abuf *ab, const struct linenoiseState *l, int plen) l 639 src/simh/linehistory.c if (hintsCallback && plen + l->len < l->cols) l 642 src/simh/linehistory.c char *hint = hintsCallback(l->buf, &color, &bold); l 646 src/simh/linehistory.c int hintmaxlen = l->cols - ( plen + l->len ); l 692 src/simh/linehistory.c refreshSingleLine(const struct linenoiseState *l) l 695 src/simh/linehistory.c size_t plen = pstrlen(l->prompt); l 696 src/simh/linehistory.c int fd = l->ofd; l 697 src/simh/linehistory.c char *buf = l->buf; l 698 src/simh/linehistory.c size_t len = l->len; l 699 src/simh/linehistory.c size_t pos = l->pos; l 702 src/simh/linehistory.c while (( plen + pos ) >= l->cols) l 708 src/simh/linehistory.c while (plen + len > l->cols) l 718 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); l 736 src/simh/linehistory.c refreshShowHints(&ab, l, plen); l 759 src/simh/linehistory.c refreshMultiLine(struct linenoiseState *l) l 762 src/simh/linehistory.c int plen = strlen(l->prompt); l 763 src/simh/linehistory.c int rows = ( plen + l->len + l->cols - 1 ) l 764 src/simh/linehistory.c / l->cols; /* rows used by current buf. */ l 765 src/simh/linehistory.c int rpos = ( plen + l->oldpos + l->cols ) / l->cols; /* cursor relative row. */ l 768 src/simh/linehistory.c int old_rows = l->maxrows; l 769 src/simh/linehistory.c int fd = l->ofd, j; l 773 src/simh/linehistory.c if (rows > (int)l->maxrows) l 775 src/simh/linehistory.c l->maxrows = rows; l 802 src/simh/linehistory.c abAppend(&ab, l->prompt, strlen(l->prompt)); l 807 src/simh/linehistory.c for (i = 0; i < l->len; i++) l 815 src/simh/linehistory.c abAppend(&ab, l->buf, l->len); l 822 src/simh/linehistory.c refreshShowHints(&ab, l, plen); l 830 src/simh/linehistory.c if (l->pos && l->pos == l->len && ( l->pos + plen ) % l->cols == 0) l 836 src/simh/linehistory.c if (rows > (int)l->maxrows) l 838 src/simh/linehistory.c l->maxrows = rows; l 843 src/simh/linehistory.c rpos2 = ( plen + l->pos + l->cols ) / l->cols; l 853 src/simh/linehistory.c col = ( plen + (int)l->pos ) % (int)l->cols; l 865 src/simh/linehistory.c l->oldpos = l->pos; l 880 src/simh/linehistory.c refreshLine(struct linenoiseState *l) l 882 src/simh/linehistory.c l->cols = getColumns(STDIN_FILENO, STDOUT_FILENO); l 885 src/simh/linehistory.c refreshMultiLine(l); l 889 src/simh/linehistory.c refreshSingleLine(l); l 899 src/simh/linehistory.c linenoiseEditInsert(struct linenoiseState *l, char c) l 901 src/simh/linehistory.c if (l->len < l->buflen) l 903 src/simh/linehistory.c if (l->len == l->pos) l 905 src/simh/linehistory.c l->buf[l->pos] = c; l 906 src/simh/linehistory.c l->pos++; l 907 src/simh/linehistory.c l->len++; l 908 src/simh/linehistory.c l->buf[l->len] = '\0'; l 910 src/simh/linehistory.c if (( !mlmode && l->plen + l->len < l->cols && !hintsCallback )) l 914 src/simh/linehistory.c if (write(l->ofd, &d, 1) == -1) l 922 src/simh/linehistory.c refreshLine(l); l 929 src/simh/linehistory.c memmove(l->buf + l->pos + 1, l->buf + l->pos, l->len - l->pos); l 930 src/simh/linehistory.c l->buf[l->pos] = c; l 931 src/simh/linehistory.c l->len++; l 932 src/simh/linehistory.c l->pos++; l 933 src/simh/linehistory.c l->buf[l->len] = '\0'; l 934 src/simh/linehistory.c refreshLine(l); l 943 src/simh/linehistory.c linenoiseEditMoveLeft(struct linenoiseState *l) l 945 src/simh/linehistory.c if (l->pos > 0) l 947 src/simh/linehistory.c l->pos--; l 948 src/simh/linehistory.c refreshLine(l); l 954 src/simh/linehistory.c linenoiseEditMoveRight(struct linenoiseState *l) l 956 src/simh/linehistory.c if (l->pos != l->len) l 958 src/simh/linehistory.c l->pos++; l 959 src/simh/linehistory.c refreshLine(l); l 965 src/simh/linehistory.c linenoiseEditMoveWordEnd(struct linenoiseState *l) l 967 src/simh/linehistory.c if (l->len == 0 || l->pos >= l->len) l 972 src/simh/linehistory.c if (l->buf[l->pos] == ' ') l 974 src/simh/linehistory.c while (l->pos < l->len && l->buf[l->pos] == ' ') l 976 src/simh/linehistory.c ++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 984 src/simh/linehistory.c refreshLine(l); l 989 src/simh/linehistory.c linenoiseEditMoveWordStart(struct linenoiseState *l) l 991 src/simh/linehistory.c if (l->len == 0) l 996 src/simh/linehistory.c if (l->buf[l->pos - 1] == ' ') l 998 src/simh/linehistory.c --l->pos; l 1001 src/simh/linehistory.c if (l->buf[l->pos] == ' ') l 1003 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos] == ' ') l 1005 src/simh/linehistory.c --l->pos; l 1009 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') l 1011 src/simh/linehistory.c --l->pos; l 1013 src/simh/linehistory.c refreshLine(l); l 1018 src/simh/linehistory.c linenoiseEditMoveHome(struct linenoiseState *l) l 1020 src/simh/linehistory.c if (l->pos != 0) l 1022 src/simh/linehistory.c l->pos = 0; l 1023 src/simh/linehistory.c refreshLine(l); l 1029 src/simh/linehistory.c linenoiseEditMoveEnd(struct linenoiseState *l) l 1031 src/simh/linehistory.c if (l->pos != l->len) l 1033 src/simh/linehistory.c l->pos = l->len; l 1034 src/simh/linehistory.c refreshLine(l); l 1046 src/simh/linehistory.c linenoiseEditHistoryNext(struct linenoiseState *l, int dir) l 1056 src/simh/linehistory.c FREE(history[history_len - 1 - l->history_index]); l 1057 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); l 1058 src/simh/linehistory.c if (!history[history_len - 1 - l->history_index]) l 1071 src/simh/linehistory.c l->history_index += ( dir == LINENOISE_HISTORY_PREV ) ? 1 : -1; l 1072 src/simh/linehistory.c if (l->history_index < 0) l 1074 src/simh/linehistory.c l->history_index = 0; l 1077 src/simh/linehistory.c else if (l->history_index >= history_len) l 1079 src/simh/linehistory.c l->history_index = history_len - 1; l 1083 src/simh/linehistory.c strncpy(l->buf, history[history_len - 1 - l->history_index], l->buflen); l 1084 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1085 src/simh/linehistory.c l->len = l->pos = strlen(l->buf); l 1086 src/simh/linehistory.c refreshLine(l); l 1098 src/simh/linehistory.c linenoiseSearchInHistory(struct linenoiseState *l, int direction) l 1108 src/simh/linehistory.c FREE(history[history_len - 1 - l->history_index]); l 1109 src/simh/linehistory.c history[history_len - 1 - l->history_index] = strdup(l->buf); l 1110 src/simh/linehistory.c if (!history[history_len - 1 - l->history_index]) l 1127 src/simh/linehistory.c cnt = history_len - 2 - l->history_index; l 1136 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) l 1138 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); l 1139 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1141 src/simh/linehistory.c l->len = strlen(l->buf); l 1148 src/simh/linehistory.c l->history_index = history_len - 1 - cnt; l 1149 src/simh/linehistory.c refreshLine(l); l 1156 src/simh/linehistory.c cnt = history_len - l->history_index; l 1165 src/simh/linehistory.c if (strncmp(l->buf, history[cnt], l->pos) == 0) l 1167 src/simh/linehistory.c strncpy(l->buf, history[cnt], l->buflen); l 1168 src/simh/linehistory.c l->buf[l->buflen - 1] = '\0'; l 1170 src/simh/linehistory.c l->len = strlen(l->buf); l 1177 src/simh/linehistory.c l->history_index = history_len - 1 - cnt; l 1178 src/simh/linehistory.c refreshLine(l); l 1192 src/simh/linehistory.c linenoiseEditDelete(struct linenoiseState *l) l 1194 src/simh/linehistory.c if (l->len > 0 && l->pos < l->len) l 1196 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + l->pos + 1, l->len - l->pos - 1); l 1197 src/simh/linehistory.c l->len--; l 1198 src/simh/linehistory.c l->buf[l->len] = '\0'; l 1199 src/simh/linehistory.c refreshLine(l); l 1205 src/simh/linehistory.c linenoiseEditBackspace(struct linenoiseState *l) l 1207 src/simh/linehistory.c if (l->pos > 0 && l->len > 0) l 1209 src/simh/linehistory.c memmove(l->buf + l->pos - 1, l->buf + l->pos, l->len - l->pos); l 1210 src/simh/linehistory.c l->pos--; l 1211 src/simh/linehistory.c l->len--; l 1212 src/simh/linehistory.c l->buf[l->len] = '\0'; l 1213 src/simh/linehistory.c refreshLine(l); l 1223 src/simh/linehistory.c linenoiseEditDeletePrevWord(struct linenoiseState *l) l 1225 src/simh/linehistory.c size_t old_pos = l->pos; l 1228 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] == ' ') l 1230 src/simh/linehistory.c l->pos--; l 1232 src/simh/linehistory.c while (l->pos > 0 && l->buf[l->pos - 1] != ' ') l 1234 src/simh/linehistory.c l->pos--; l 1236 src/simh/linehistory.c diff = old_pos - l->pos; l 1237 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + old_pos, l->len - old_pos + 1); l 1238 src/simh/linehistory.c l->len -= diff; l 1239 src/simh/linehistory.c refreshLine(l); l 1244 src/simh/linehistory.c linenoiseEditDeleteNextWord(struct linenoiseState *l) l 1246 src/simh/linehistory.c size_t next_word_end = l->pos; l 1248 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] == ' ') l 1252 src/simh/linehistory.c while (next_word_end < l->len && l->buf[next_word_end] != ' ') l 1256 src/simh/linehistory.c memmove(l->buf + l->pos, l->buf + next_word_end, l->len - next_word_end); l 1257 src/simh/linehistory.c l->len -= next_word_end - l->pos; l 1258 src/simh/linehistory.c refreshLine(l); l 1276 src/simh/linehistory.c struct linenoiseState l; l 1283 src/simh/linehistory.c l.ifd = stdin_fd; l 1284 src/simh/linehistory.c l.ofd = stdout_fd; l 1285 src/simh/linehistory.c l.buf = buf; l 1286 src/simh/linehistory.c l.buflen = buflen; l 1287 src/simh/linehistory.c l.prompt = prompt; l 1288 src/simh/linehistory.c l.plen = pstrlen(prompt); l 1289 src/simh/linehistory.c l.oldpos = l.pos = 0; l 1290 src/simh/linehistory.c l.len = 0; l 1291 src/simh/linehistory.c l.cols = getColumns(stdin_fd, stdout_fd); l 1292 src/simh/linehistory.c l.maxrows = 0; l 1293 src/simh/linehistory.c l.history_index = 0; l 1296 src/simh/linehistory.c l.buf[0] = '\0'; l 1297 src/simh/linehistory.c l.buflen--; /* Make sure there is always space for the nulterm */ l 1306 src/simh/linehistory.c if (write(l.ofd, prompt, strlen(prompt)) == -1) l 1317 src/simh/linehistory.c nread = read(l.ifd, &c, 1); l 1320 src/simh/linehistory.c return ( l.len ); l 1333 src/simh/linehistory.c int cint = completeLine(&l); l 1337 src/simh/linehistory.c return ( l.len ); l 1361 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1375 src/simh/linehistory.c refreshLine(&l); l 1380 src/simh/linehistory.c return ((int)l.len ); l 1388 src/simh/linehistory.c linenoiseEditBackspace(&l); l 1392 src/simh/linehistory.c if (l.len > 0) /* if the line is empty, act as end-of-file. */ l 1394 src/simh/linehistory.c linenoiseEditDelete(&l); l 1409 src/simh/linehistory.c linenoiseEditMoveLeft(&l); l 1413 src/simh/linehistory.c linenoiseEditMoveRight(&l); l 1417 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); l 1421 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); l 1432 src/simh/linehistory.c if (read(l.ifd, seq, 1) == -1) l 1437 src/simh/linehistory.c if (read(l.ifd, seq + 1, 1) == -1) l 1448 src/simh/linehistory.c if (read(l.ifd, seq + 2, 1) == -1) l 1458 src/simh/linehistory.c linenoiseEditDelete(&l); l 1463 src/simh/linehistory.c &l, l 1469 src/simh/linehistory.c &l, l 1480 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_PREV); l 1484 src/simh/linehistory.c linenoiseEditHistoryNext(&l, LINENOISE_HISTORY_NEXT); l 1488 src/simh/linehistory.c linenoiseEditMoveRight(&l); l 1492 src/simh/linehistory.c linenoiseEditMoveLeft(&l); l 1496 src/simh/linehistory.c linenoiseEditMoveHome(&l); l 1500 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1509 src/simh/linehistory.c if (linenoiseEditInsert(&l, c)) l 1518 src/simh/linehistory.c l.pos = l.len = 0; l 1519 src/simh/linehistory.c refreshLine(&l); l 1523 src/simh/linehistory.c buf[l.pos] = '\0'; l 1524 src/simh/linehistory.c l.len = l.pos; l 1525 src/simh/linehistory.c refreshLine(&l); l 1529 src/simh/linehistory.c linenoiseEditMoveHome(&l); l 1533 src/simh/linehistory.c linenoiseEditMoveEnd(&l); l 1538 src/simh/linehistory.c refreshLine(&l); l 1542 src/simh/linehistory.c linenoiseEditDeletePrevWord(&l); l 4318 src/simh/scp.c for (int l = 0; l < length; l ++) l 4320 src/simh/scp.c unsigned int byte = PROM[offset + l]; l 4357 src/simh/scp.c for (int l = 0; l < length; l ++) l 4359 src/simh/scp.c unsigned int byte = PROM[offset + l]; l 4366 src/simh/scp.c sprintf(&sx[l], isprint (byte) ? "%c" : " ", byte);