cptr 89 src/dps8/dps8_absi.c const char * cptr, UNUSED void * desc) cptr 91 src/dps8/dps8_absi.c if (! cptr) cptr 93 src/dps8/dps8_absi.c int n = atoi (cptr); cptr 114 src/dps8/dps8_absi.c const char * cptr, UNUSED void * desc) cptr 119 src/dps8/dps8_absi.c if (cptr) cptr 121 src/dps8/dps8_absi.c strncpy (absi_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 167 src/dps8/dps8_absi.c static t_stat absiAttach (UNIT * uptr, const char * cptr) cptr 169 src/dps8/dps8_absi.c if (! cptr) cptr 189 src/dps8/dps8_absi.c strncpy (pfn, cptr, CBUFSIZE); cptr 192 src/dps8/dps8_absi.c ret = udp_create (cptr, & absi_state[unitno].link); cptr 86 src/dps8/dps8_console.c static t_stat opc_set_nunits (UNIT * uptr, int32 value, const char * cptr, cptr 88 src/dps8/dps8_console.c static t_stat opc_autoinput_set (UNIT *uptr, int32 val, const char *cptr, cptr 93 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc); cptr 97 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc); cptr 101 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc); cptr 105 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc); cptr 109 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc); cptr 476 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 481 src/dps8/dps8_console.c if (cptr) cptr 483 src/dps8/dps8_console.c unsigned char * new = (unsigned char *) strdupesc (cptr); cptr 519 src/dps8/dps8_console.c int clear_opc_autoinput (int32 flag, UNUSED const char * cptr) cptr 529 src/dps8/dps8_console.c int add_opc_autoinput (int32 flag, const char * cptr) cptr 532 src/dps8/dps8_console.c unsigned char * new = (unsigned char *) strdupesc (cptr); cptr 1006 src/dps8/dps8_console.c char * cptr = csp->simh_buffer; cptr 1008 src/dps8/dps8_console.c cptr = (char *) get_glyph (cptr, gbuf, 0); /* get command glyph */ cptr 1014 src/dps8/dps8_console.c t_stat stat = cmdp->action (cmdp->arg, cptr); cptr 1661 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 1663 src/dps8/dps8_console.c if (! cptr) cptr 1665 src/dps8/dps8_console.c int n = atoi (cptr); cptr 1699 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 1709 src/dps8/dps8_console.c int rc = cfg_parse (__func__, cptr, opc_config_list, cptr 1777 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 1782 src/dps8/dps8_console.c if (cptr) cptr 1784 src/dps8/dps8_console.c strncpy (console_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 1793 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 1799 src/dps8/dps8_console.c if (cptr) cptr 1801 src/dps8/dps8_console.c int port = atoi (cptr); cptr 1827 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 1839 src/dps8/dps8_console.c if (cptr) cptr 1841 src/dps8/dps8_console.c console_state[dev_idx].console_access.address = strdup (cptr); cptr 1875 src/dps8/dps8_console.c const char * cptr, UNUSED void * desc) cptr 1881 src/dps8/dps8_console.c if (cptr && (strlen(cptr) > 0)) cptr 1883 src/dps8/dps8_console.c char token[strlen (cptr)+1]; cptr 1884 src/dps8/dps8_console.c int rc = sscanf (cptr, "%s", token); cptr 26 src/dps8/dps8_console.h int add_opc_autoinput (int32 flag, const char * cptr); cptr 27 src/dps8/dps8_console.h int clear_opc_autoinput (int32 flag, const char * cptr); cptr 136 src/dps8/dps8_cpu.c UNUSED const char * cptr, cptr 472 src/dps8/dps8_cpu.c const char * cptr, UNUSED void * desc) cptr 489 src/dps8/dps8_cpu.c int rc = cfg_parse (__func__, cptr, cpu_config_list, cptr 722 src/dps8/dps8_cpu.c const char * cptr, UNUSED void * desc) cptr 724 src/dps8/dps8_cpu.c if (! cptr) cptr 726 src/dps8/dps8_cpu.c int n = atoi (cptr); cptr 741 src/dps8/dps8_cpu.c const char * cptr, UNUSED void * desc) cptr 743 src/dps8/dps8_cpu.c if (! cptr) cptr 745 src/dps8/dps8_cpu.c int n = atoi (cptr); cptr 783 src/dps8/dps8_cpu.c const char * cptr, UNUSED void * desc) cptr 785 src/dps8/dps8_cpu.c if (! cptr) cptr 791 src/dps8/dps8_cpu.c n = strtol (cptr, & end, 0); cptr 827 src/dps8/dps8_cpu.c static t_stat setCPUConfigL68 (UNIT * uptr, UNUSED int32 value, UNUSED const char * cptr, UNUSED void * desc) { cptr 852 src/dps8/dps8_cpu.c static t_stat setCPUConfigDPS8M (UNIT * uptr, UNUSED int32 value, UNUSED const char * cptr, UNUSED void * desc) { cptr 999 src/dps8/dps8_cpu.c UNUSED const char * cptr, cptr 1026 src/dps8/dps8_cpu.c UNUSED const char * cptr, cptr 67 src/dps8/dps8_crdpun.c static t_stat pun_set_nunits (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 69 src/dps8/dps8_crdpun.c static t_stat pun_set_device_name (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 72 src/dps8/dps8_crdpun.c static t_stat pun_set_path (UNUSED UNIT * uptr, UNUSED int32 value, const UNUSED char * cptr, cptr 74 src/dps8/dps8_crdpun.c static t_stat pun_set_config (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, cptr 1257 src/dps8/dps8_crdpun.c static t_stat pun_set_nunits (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, cptr 1260 src/dps8/dps8_crdpun.c if (! cptr) cptr 1262 src/dps8/dps8_crdpun.c int n = atoi (cptr); cptr 1280 src/dps8/dps8_crdpun.c UNUSED const char * cptr, UNUSED void * desc) cptr 1285 src/dps8/dps8_crdpun.c if (cptr) cptr 1287 src/dps8/dps8_crdpun.c strncpy (pun_state [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); cptr 1296 src/dps8/dps8_crdpun.c const UNUSED char * cptr, UNUSED void * desc) cptr 1298 src/dps8/dps8_crdpun.c if (! cptr) cptr 1301 src/dps8/dps8_crdpun.c size_t len = strlen(cptr); cptr 1308 src/dps8/dps8_crdpun.c strncpy(pun_path_prefix, cptr, sizeof(pun_path_prefix) - 1); cptr 1335 src/dps8/dps8_crdpun.c const char * cptr, UNUSED void * desc) cptr 1344 src/dps8/dps8_crdpun.c int rc = cfg_parse (__func__, cptr, pun_config_list, & cfg_state, & v); cptr 70 src/dps8/dps8_crdrdr.c static t_stat rdr_set_nunits (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 72 src/dps8/dps8_crdrdr.c static t_stat rdr_set_device_name (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 75 src/dps8/dps8_crdrdr.c static t_stat rdr_set_path (UNUSED UNIT * uptr, UNUSED int32 value, const UNUSED char * cptr, cptr 1025 src/dps8/dps8_crdrdr.c static t_stat rdr_set_nunits (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, cptr 1028 src/dps8/dps8_crdrdr.c if (! cptr) cptr 1030 src/dps8/dps8_crdrdr.c int n = atoi (cptr); cptr 1048 src/dps8/dps8_crdrdr.c UNUSED const char * cptr, UNUSED void * desc) cptr 1053 src/dps8/dps8_crdrdr.c if (cptr) cptr 1055 src/dps8/dps8_crdrdr.c strncpy (rdr_state [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); cptr 1064 src/dps8/dps8_crdrdr.c const UNUSED char * cptr, UNUSED void * desc) cptr 1066 src/dps8/dps8_crdrdr.c if (! cptr) cptr 1069 src/dps8/dps8_crdrdr.c size_t len = strlen(cptr); cptr 1076 src/dps8/dps8_crdrdr.c strncpy(rdr_path_prefix, cptr, sizeof(rdr_path_prefix)); cptr 79 src/dps8/dps8_dia.c static t_stat set_config (UNIT * uptr, UNUSED int value, const char * cptr, UNUSED void * desc) cptr 99 src/dps8/dps8_dia.c int rc = cfg_parse ("DIA SET CONFIG", cptr, dia_config_list, & cfg_state, & v); cptr 172 src/dps8/dps8_dia.c const char * cptr, UNUSED void * desc) cptr 174 src/dps8/dps8_dia.c if (! cptr) cptr 176 src/dps8/dps8_dia.c int n = atoi (cptr); cptr 244 src/dps8/dps8_dia.c static t_stat attach (UNIT * uptr, const char * cptr) cptr 246 src/dps8/dps8_dia.c if (! cptr) cptr 265 src/dps8/dps8_dia.c strncpy (pfn, cptr, CBUFSIZE); cptr 268 src/dps8/dps8_dia.c ret = udp_create (cptr, & dia_data.dia_unit_data[unitno].link); cptr 349 src/dps8/dps8_disk.c static t_stat disk_set_nunits (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, UNUSED void * desc) cptr 351 src/dps8/dps8_disk.c if (! cptr) cptr 353 src/dps8/dps8_disk.c int n = atoi (cptr); cptr 374 src/dps8/dps8_disk.c static t_stat disk_set_type (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, UNUSED void * desc) cptr 386 src/dps8/dps8_disk.c if (strcasecmp (cptr, diskTypes[i].typename) == 0) cptr 393 src/dps8/dps8_disk.c cptr, cptr 421 src/dps8/dps8_disk.c const char * cptr, UNUSED void * desc) cptr 426 src/dps8/dps8_disk.c if (cptr) cptr 428 src/dps8/dps8_disk.c strncpy (dsk_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 535 src/dps8/dps8_disk.c UNUSED const char * cptr, cptr 627 src/dps8/dps8_disk.c static t_stat disk_attach (UNIT *uptr, CONST char *cptr) cptr 636 src/dps8/dps8_disk.c return loadDisk ((uint) diskUnitIdx, cptr, false); cptr 1667 src/dps8/dps8_disk.c const char * cptr, UNUSED void * desc) cptr 1669 src/dps8/dps8_disk.c if (! cptr) cptr 1671 src/dps8/dps8_disk.c int n = atoi (cptr); cptr 1692 src/dps8/dps8_disk.c const char * cptr, UNUSED void * desc) cptr 1697 src/dps8/dps8_disk.c if (cptr) cptr 1699 src/dps8/dps8_disk.c strncpy (ipc_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 1809 src/dps8/dps8_disk.c const char * cptr, UNUSED void * desc) cptr 1811 src/dps8/dps8_disk.c if (! cptr) cptr 1813 src/dps8/dps8_disk.c int n = atoi (cptr); cptr 1834 src/dps8/dps8_disk.c const char * cptr, UNUSED void * desc) cptr 1839 src/dps8/dps8_disk.c if (cptr) cptr 1841 src/dps8/dps8_disk.c strncpy (msp_states[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 127 src/dps8/dps8_fnp2.c static t_stat fnpSetConfig (UNIT * uptr, int value, const char * cptr, void * desc); cptr 130 src/dps8/dps8_fnp2.c static t_stat fnpSetNUnits (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 132 src/dps8/dps8_fnp2.c static t_stat fnpSetIPCname (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 134 src/dps8/dps8_fnp2.c static t_stat fnpSetService (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 136 src/dps8/dps8_fnp2.c static t_stat fnpSetFW (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 140 src/dps8/dps8_fnp2.c const char * cptr, UNUSED void * desc); cptr 1766 src/dps8/dps8_fnp2.c const char * cptr, UNUSED void * desc) cptr 1768 src/dps8/dps8_fnp2.c if (! cptr) cptr 1770 src/dps8/dps8_fnp2.c int n = atoi (cptr); cptr 1789 src/dps8/dps8_fnp2.c UNUSED const char * cptr, UNUSED void * desc) cptr 1794 src/dps8/dps8_fnp2.c if (cptr) cptr 1796 src/dps8/dps8_fnp2.c strncpy (fnpData.fnpUnitData [n] . ipcName, cptr, MAX_DEV_NAME_LEN - 1); cptr 1842 src/dps8/dps8_fnp2.c const char * cptr, UNUSED void * desc) cptr 1844 src/dps8/dps8_fnp2.c if (! cptr) cptr 1852 src/dps8/dps8_fnp2.c char sn [strlen (cptr)]; cptr 1853 src/dps8/dps8_fnp2.c int nr = sscanf (cptr, "%u=%s", & linenum, sn); cptr 1972 src/dps8/dps8_fnp2.c const char * cptr, UNUSED void * desc) cptr 1974 src/dps8/dps8_fnp2.c if (! cptr) cptr 1980 src/dps8/dps8_fnp2.c char sn [strlen (cptr) + 1]; cptr 1981 src/dps8/dps8_fnp2.c memcpy (sn, cptr, strlen (cptr) + 1); cptr 2207 src/dps8/dps8_fnp2.c const char * cptr, UNUSED void * desc) cptr 2212 src/dps8/dps8_fnp2.c if (cptr) cptr 2214 src/dps8/dps8_fnp2.c strncpy (fnpData.fnpUnitData[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 2228 src/dps8/dps8_fnp2.c static t_stat fnpSetConfig (UNIT * uptr, UNUSED int value, const char * cptr, UNUSED void * desc) cptr 2246 src/dps8/dps8_fnp2.c int rc = cfg_parse ("fnpSetConfig", cptr, fnp_config_list, & cfg_state, & v); cptr 934 src/dps8/dps8_iom.c static t_stat iom_set_units (UNUSED UNIT * uptr, UNUSED int value, const char * cptr, UNUSED void * desc) cptr 936 src/dps8/dps8_iom.c if (! cptr) cptr 938 src/dps8/dps8_iom.c int n = atoi (cptr); cptr 1115 src/dps8/dps8_iom.c static t_stat iom_set_config (UNIT * uptr, UNUSED int value, const char * cptr, UNUSED void * desc) cptr 1133 src/dps8/dps8_iom.c int rc = cfg_parse (__func__, cptr, iom_config_list, & cfg_state, & v); cptr 1259 src/dps8/dps8_iom.c static t_stat iom_reset_unit (UNIT * uptr, UNUSED int32 value, UNUSED const char * cptr, cptr 166 src/dps8/dps8_mgp.c mgp_set_nunits(UNUSED UNIT *uptr, UNUSED int32 value, const char *cptr, cptr 169 src/dps8/dps8_mgp.c if (!cptr) cptr 174 src/dps8/dps8_mgp.c int n = atoi(cptr); cptr 209 src/dps8/dps8_mgp.c mgp_set_device_name(UNIT *uptr, UNUSED int32 value, const char *cptr, cptr 219 src/dps8/dps8_mgp.c if (cptr) cptr 221 src/dps8/dps8_mgp.c strncpy(mgp_state[n].device_name, cptr, MAX_DEV_NAME_LEN - 1); cptr 272 src/dps8/dps8_mgp.c mgpAttach(UNIT *uptr, const char *cptr) cptr 274 src/dps8/dps8_mgp.c if (!cptr) cptr 163 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 165 src/dps8/dps8_mt.c if (! cptr) cptr 167 src/dps8/dps8_mt.c int n = atoi (cptr); cptr 189 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 197 src/dps8/dps8_mt.c if (! cptr) cptr 199 src/dps8/dps8_mt.c int n = (int) atoi (cptr); cptr 242 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 247 src/dps8/dps8_mt.c if (cptr) cptr 249 src/dps8/dps8_mt.c strncpy (mtp_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 402 src/dps8/dps8_mt.c UNUSED const char * cptr, UNUSED void * desc) cptr 415 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 417 src/dps8/dps8_mt.c if (! cptr) cptr 419 src/dps8/dps8_mt.c int n = atoi (cptr); cptr 440 src/dps8/dps8_mt.c UNUSED const char * cptr, UNUSED void * desc) cptr 445 src/dps8/dps8_mt.c if (cptr) cptr 447 src/dps8/dps8_mt.c strncpy (tape_states [n] . device_name, cptr, MAX_DEV_NAME_LEN - 1); cptr 476 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 478 src/dps8/dps8_mt.c if (! cptr) cptr 481 src/dps8/dps8_mt.c size_t len = strlen(cptr); cptr 501 src/dps8/dps8_mt.c dp = opendir (cptr); cptr 504 src/dps8/dps8_mt.c sim_warn ("\rInvalid '%s' ", cptr); cptr 513 src/dps8/dps8_mt.c strncpy (tape_path_prefix, cptr, (sizeof(tape_path_prefix)-1)); cptr 527 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 529 src/dps8/dps8_mt.c if (! cptr) cptr 538 src/dps8/dps8_mt.c size_t len = strlen(cptr); cptr 544 src/dps8/dps8_mt.c strcpy(buffer, cptr); cptr 654 src/dps8/dps8_mt.c const char * cptr, UNUSED void * desc) cptr 656 src/dps8/dps8_mt.c if (! cptr) cptr 664 src/dps8/dps8_mt.c rc = sim_tape_set_capac (mt_unit + i, value, cptr, desc); cptr 729 src/dps8/dps8_mt.c UNUSED const char * cptr, cptr 87 src/dps8/dps8_prt.c static t_stat prt_set_nunits (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 89 src/dps8/dps8_prt.c static t_stat prt_set_device_name (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 91 src/dps8/dps8_prt.c const char * cptr, UNUSED void * desc); cptr 97 src/dps8/dps8_prt.c const UNUSED char * cptr, UNUSED void * desc); cptr 99 src/dps8/dps8_prt.c UNUSED const char * cptr, cptr 103 src/dps8/dps8_prt.c static t_stat prt_set_device_model (UNIT * uptr, int32 value, const char * cptr, void * desc); cptr 1766 src/dps8/dps8_prt.c static t_stat prt_set_nunits (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, cptr 1769 src/dps8/dps8_prt.c if (! cptr) cptr 1771 src/dps8/dps8_prt.c int n = atoi (cptr); cptr 1789 src/dps8/dps8_prt.c const UNUSED char * cptr, UNUSED void * desc) cptr 1794 src/dps8/dps8_prt.c if (cptr) cptr 1798 src/dps8/dps8_prt.c if (strcmp (cptr, model_names[i]) == 0) cptr 1804 src/dps8/dps8_prt.c sim_printf ("Model '%s' not known (202 300 301 302 303 304 401 402 901 1000 1200 1201 1600)\n", cptr); cptr 1822 src/dps8/dps8_prt.c const UNUSED char * cptr, UNUSED void * desc) cptr 1827 src/dps8/dps8_prt.c if (cptr) cptr 1829 src/dps8/dps8_prt.c strncpy (prt_state[n].device_name, cptr, MAX_DEV_NAME_LEN - 1); cptr 1870 src/dps8/dps8_prt.c const UNUSED char * cptr, UNUSED void * desc) cptr 1872 src/dps8/dps8_prt.c if (! cptr) cptr 1875 src/dps8/dps8_prt.c size_t len = strlen(cptr); cptr 1879 src/dps8/dps8_prt.c strncpy(prt_path, cptr, sizeof(prt_path)); cptr 1958 src/dps8/dps8_prt.c UNUSED const char * cptr, cptr 1988 src/dps8/dps8_prt.c const char * cptr, UNUSED void * desc) cptr 1998 src/dps8/dps8_prt.c int rc = cfg_parse (__func__, cptr, prt_config_list, cptr 616 src/dps8/dps8_scu.c const char * cptr, UNUSED void * desc) cptr 618 src/dps8/dps8_scu.c if (! cptr) cptr 620 src/dps8/dps8_scu.c int n = atoi (cptr); cptr 845 src/dps8/dps8_scu.c const char * cptr, UNUSED void * desc) cptr 864 src/dps8/dps8_scu.c int rc = cfg_parse ("scu_set_config", cptr, scu_config_list, cptr 2430 src/dps8/dps8_scu.c UNUSED const char * cptr, cptr 107 src/dps8/dps8_scu.h t_stat scu_reset_unit (UNIT * uptr, int32 value, const char * cptr, cptr 98 src/dps8/dps8_socket_dev.c const char * cptr, UNUSED void * desc) cptr 100 src/dps8/dps8_socket_dev.c if (! cptr) cptr 102 src/dps8/dps8_socket_dev.c int n = atoi (cptr); cptr 121 src/dps8/dps8_socket_dev.c const char * cptr, UNUSED void * desc) cptr 126 src/dps8/dps8_socket_dev.c if (cptr) cptr 128 src/dps8/dps8_socket_dev.c strncpy (skc_state[n].device_name, cptr, MAX_DEV_NAME_LEN-1); cptr 134 src/dps8/dps8_sys.c static t_addr parse_addr(DEVICE *dptr, const char *cptr, const char **optr); cptr 1807 src/dps8/dps8_sys.c const char * cptr = get_glyph (text, gbuf, 0); /* get command glyph */ cptr 1811 src/dps8/dps8_sys.c t_stat stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ cptr 3679 src/dps8/dps8_sys.c static t_stat clear_yield (int32 flag, UNUSED const char * cptr) cptr 3684 src/dps8/dps8_sys.c static t_stat yield (int32 flag, UNUSED const char * cptr) cptr 3691 src/dps8/dps8_sys.c static t_stat set_luf (int32 flag, UNUSED const char * cptr) cptr 4732 src/dps8/dps8_sys.c static t_addr parse_addr (UNUSED DEVICE * dptr, const char *cptr, cptr 4736 src/dps8/dps8_sys.c if (strchr(cptr, '|')) cptr 4739 src/dps8/dps8_sys.c (void)strcpy(addspec, cptr); cptr 4748 src/dps8/dps8_sys.c *optr = cptr; // signal error cptr 4806 src/dps8/dps8_sys.c if (strncasecmp(cptr, prt->alias, strlen(prt->alias)) == 0) cptr 4818 src/dps8/dps8_sys.c *optr = cptr + strlen(prt->alias); cptr 4825 src/dps8/dps8_sys.c return (t_addr)strtol(cptr, (char **) optr, 8); cptr 4893 src/dps8/dps8_sys.c t_stat parse_sym (UNUSED const char * cptr, UNUSED t_addr addr, cptr 4920 src/dps8/dps8_sys.c UNUSED const char * cptr, UNUSED void * desc) cptr 4950 src/dps8/dps8_sys.c const char * cptr, UNUSED void * desc) cptr 4957 src/dps8/dps8_sys.c int rc = cfg_parse ("sys_set_config", cptr, sys_config_list, & cfg_state, cptr 100 src/dps8/dps8_urp.c static t_stat urpSetUnits (UNUSED UNIT * uptr, UNUSED int32 value, const char * cptr, UNUSED void * desc) cptr 102 src/dps8/dps8_urp.c if (! cptr) cptr 104 src/dps8/dps8_urp.c int n = atoi (cptr); cptr 120 src/dps8/dps8_urp.c static t_stat urpSetDeviceName (UNUSED UNIT * uptr, UNUSED int32 value, UNUSED const char * cptr, UNUSED void * desc) cptr 125 src/dps8/dps8_urp.c if (cptr) cptr 127 src/dps8/dps8_urp.c strncpy (urpState[n].deviceName, cptr, MAX_DEV_NAME_LEN - 1); cptr 1448 src/dps8/dps8_utils.c int cfg_parse (const char * tag, const char * cptr, config_list_t * clist, config_state_t * state, int64_t * result) cptr 1450 src/dps8/dps8_utils.c if (! cptr) cptr 1455 src/dps8/dps8_utils.c state -> copy = strdup (cptr); cptr 43 src/dps8/dps8_utils.h int cfg_parse (const char * tag, const char * cptr, config_list_t * clist, config_state_t * state, int64_t * result); cptr 129 src/dps8/udplib.c int sim_parse_addr (const char * cptr, char * host, size_t hostlen, const char * default_host, cptr 548 src/dps8/udplib.c int sim_parse_addr (const char *cptr, char *host, size_t host_len, const char *default_host, char *port, size_t port_len, const char *default_port, const char *validate_addr) cptr 555 src/dps8/udplib.c if ((cptr == NULL) || (*cptr == 0)) cptr 562 src/dps8/udplib.c strncpy (gbuf, cptr, sizeof(gbuf)-1); cptr 205 src/simh/scp.c t_addr (*sim_vm_parse_addr) (DEVICE *dptr, CONST char *cptr, CONST char **tptr) = NULL; cptr 214 src/simh/scp.c t_stat set_dev_radix (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 215 src/simh/scp.c t_stat set_dev_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 216 src/simh/scp.c t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 217 src/simh/scp.c t_stat set_unit_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 218 src/simh/scp.c t_stat ssh_break (FILE *st, const char *cptr, int32 flg); cptr 219 src/simh/scp.c t_stat show_cmd_fi (FILE *ofile, int32 flag, CONST char *cptr); cptr 220 src/simh/scp.c t_stat show_config (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 221 src/simh/scp.c t_stat show_queue (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 222 src/simh/scp.c t_stat show_time (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 223 src/simh/scp.c t_stat show_mod_names (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 224 src/simh/scp.c t_stat show_show_commands (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 225 src/simh/scp.c t_stat show_log_names (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 226 src/simh/scp.c t_stat show_dev_radix (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 227 src/simh/scp.c t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 228 src/simh/scp.c t_stat show_dev_logicals (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 229 src/simh/scp.c t_stat show_dev_modifiers (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 230 src/simh/scp.c t_stat show_dev_show_commands (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 231 src/simh/scp.c t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 233 src/simh/scp.c t_stat show_prom (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 234 src/simh/scp.c t_stat show_default_base_system_script (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 235 src/simh/scp.c t_stat show_default (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 236 src/simh/scp.c t_stat show_break (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 237 src/simh/scp.c t_stat show_on (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 238 src/simh/scp.c t_stat sim_show_send (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 239 src/simh/scp.c t_stat sim_show_expect (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 243 src/simh/scp.c t_stat show_one_mod (FILE *st, DEVICE *dptr, UNIT *uptr, MTAB *mptr, CONST char *cptr, int32 flag); cptr 263 src/simh/scp.c SCHTAB *get_rsearch (CONST char *cptr, int32 radix, SCHTAB *schptr); cptr 264 src/simh/scp.c SCHTAB *get_asearch (CONST char *cptr, int32 radix, SCHTAB *schptr); cptr 267 src/simh/scp.c int32 get_switches (const char *cptr); cptr 268 src/simh/scp.c CONST char *get_sim_sw (CONST char *cptr); cptr 279 src/simh/scp.c char *sim_trim_endspc (char *cptr); cptr 283 src/simh/scp.c t_stat scp_attach_unit (DEVICE *dptr, UNIT *uptr, const char *cptr); cptr 288 src/simh/scp.c t_stat assign_device (DEVICE *dptr, const char *cptr); cptr 291 src/simh/scp.c t_stat exdep_reg_loop (FILE *ofile, SCHTAB *schptr, int32 flag, CONST char *cptr, cptr 294 src/simh/scp.c t_stat dep_reg (int32 flag, CONST char *cptr, REG *rptr, uint32 idx); cptr 295 src/simh/scp.c t_stat exdep_addr_loop (FILE *ofile, SCHTAB *schptr, int32 flag, const char *cptr, cptr 298 src/simh/scp.c t_stat dep_addr (int32 flag, const char *cptr, t_addr addr, DEVICE *dptr, cptr 303 src/simh/scp.c t_stat set_on (int32 flag, CONST char *cptr); cptr 304 src/simh/scp.c t_stat set_verify (int32 flag, CONST char *cptr); cptr 305 src/simh/scp.c t_stat set_message (int32 flag, CONST char *cptr); cptr 306 src/simh/scp.c t_stat set_quiet (int32 flag, CONST char *cptr); cptr 307 src/simh/scp.c t_stat set_localopc (int32 flag, CONST char *cptr); cptr 308 src/simh/scp.c t_stat set_asynch (int32 flag, CONST char *cptr); cptr 309 src/simh/scp.c t_stat sim_show_asynch (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 310 src/simh/scp.c t_stat do_cmd_label (int32 flag, CONST char *cptr, CONST char *label); cptr 312 src/simh/scp.c t_stat set_prompt (int32 flag, CONST char *cptr); cptr 313 src/simh/scp.c t_stat sim_set_asynch (int32 flag, CONST char *cptr); cptr 314 src/simh/scp.c t_stat sim_set_environment (int32 flag, CONST char *cptr); cptr 1496 src/simh/scp.c char *cptr, *cptr2; cptr 1857 src/simh/scp.c cptr = getenv("HOME"); cptr 1858 src/simh/scp.c if (cptr == NULL) { cptr 1859 src/simh/scp.c cptr = getenv("HOMEPATH"); cptr 1910 src/simh/scp.c CONST char *cptr; cptr 1916 src/simh/scp.c if ((cptr = sim_brk_getact (cbuf, sizeof(cbuf)))) /* pending action? */ cptr 1917 src/simh/scp.c printf ("%s%s\n", sim_prompt, cptr); /* echo */ cptr 1920 src/simh/scp.c cptr = (*sim_vm_read) (cbuf, sizeof(cbuf), stdin); cptr 1922 src/simh/scp.c else cptr = read_line_p (sim_prompt, cbuf, sizeof(cbuf), stdin);/* read with prompt*/ cptr 1923 src/simh/scp.c if (cptr == NULL) { /* EOF? */ cptr 1927 src/simh/scp.c if (*cptr == 0) /* ignore blank */ cptr 1931 src/simh/scp.c fprintf (sim_log, "%s%s\n", sim_prompt, cptr); cptr 1933 src/simh/scp.c fprintf (sim_deb, "%s%s\n", sim_prompt, cptr); cptr 1934 src/simh/scp.c cptr = get_glyph_cmd (cptr, gbuf); /* get command glyph */ cptr 1937 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* if found, exec */ cptr 1959 src/simh/scp.c t_stat set_prompt (int32 flag, CONST char *cptr) cptr 1963 src/simh/scp.c if ((!cptr) || (*cptr == '\0')) cptr 1966 src/simh/scp.c cptr = get_glyph_nc (cptr, gbuf, '"'); /* get quote delimited token */ cptr 1969 src/simh/scp.c strncpy (gbuf, cptr, sizeof (gbuf)-1); cptr 2006 src/simh/scp.c t_stat exit_cmd (int32 flag, CONST char *cptr) cptr 2381 src/simh/scp.c t_stat help_dev_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr) cptr 2386 src/simh/scp.c if (*cptr) { cptr 2387 src/simh/scp.c (void)get_glyph (cptr, gbuf, 0); cptr 2391 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); cptr 2413 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); cptr 2422 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); cptr 2427 src/simh/scp.c return dptr->help (st, dptr, uptr, flag, cptr); cptr 2458 src/simh/scp.c t_stat help_cmd (int32 flag, CONST char *cptr) cptr 2463 src/simh/scp.c GET_SWITCHES (cptr); cptr 2466 src/simh/scp.c if (*cptr) { cptr 2467 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 2469 src/simh/scp.c if (*cptr) { cptr 2474 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 2568 src/simh/scp.c r = help_dev_help (stdout, dptr, uptr, flag, cptr); cptr 2570 src/simh/scp.c help_dev_help (sim_log, dptr, uptr, flag | SCP_HELP_FLAT, cptr); cptr 2584 src/simh/scp.c t_stat spawn_cmd (int32 flag, CONST char *cptr) cptr 2587 src/simh/scp.c if ((cptr == NULL) || (strlen (cptr) == 0)) cptr 2588 src/simh/scp.c cptr = getenv("SHELL"); cptr 2589 src/simh/scp.c if ((cptr == NULL) || (strlen (cptr) == 0)) cptr 2590 src/simh/scp.c cptr = getenv("ComSpec"); cptr 2596 src/simh/scp.c status = system (cptr); cptr 2603 src/simh/scp.c t_stat echo_cmd (int32 flag, CONST char *cptr) cptr 2605 src/simh/scp.c sim_printf ("%s\n", cptr); cptr 2648 src/simh/scp.c CONST char *cptr; cptr 2732 src/simh/scp.c cptr = get_glyph (cbuf, gbuf, 0); /* get command glyph */ cptr 2741 src/simh/scp.c sim_do_ocptr[sim_do_depth] = cptr = sim_brk_getact (cbuf, sizeof(cbuf)); /* get bkpt action */ cptr 2743 src/simh/scp.c sim_do_ocptr[sim_do_depth] = cptr = read_line (cbuf, sizeof(cbuf), fpin);/* get cmd line */ cptr 2747 src/simh/scp.c if (cptr == NULL) { /* EOF? */ cptr 2751 src/simh/scp.c if (*cptr == 0) /* ignore blank */ cptr 2754 src/simh/scp.c sim_printf("%s> %s\n", do_position(), cptr); cptr 2755 src/simh/scp.c if (*cptr == ':') /* ignore label */ cptr 2757 src/simh/scp.c cptr = get_glyph_cmd (cptr, gbuf); /* get command glyph */ cptr 2768 src/simh/scp.c stat = do_cmd (sim_do_depth+1, cptr); /* exec DO cmd */ cptr 2771 src/simh/scp.c stat = cmdp->action (cmdp->arg, cptr); /* exec other cmd */ cptr 2848 src/simh/scp.c if (cmdp && (cmdp->action == &return_cmd) && (0 != *cptr)) { /* return command with argument? */ cptr 2849 src/simh/scp.c sim_string_to_stat (cptr, &stat); cptr 3284 src/simh/scp.c t_stat assert_cmd (int32 flag, CONST char *cptr) cptr 3297 src/simh/scp.c cptr = (CONST char *)get_sim_opt (CMD_OPT_SW|CMD_OPT_DFT, (CONST char *)cptr, &r); cptr 3300 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 3302 src/simh/scp.c tptr = get_glyph (cptr, gbuf, 0); /* get token */ cptr 3305 src/simh/scp.c cptr = (CONST char *)tptr; cptr 3307 src/simh/scp.c if (*cptr == '"') { /* quoted string comparison? */ cptr 3331 src/simh/scp.c tptr = (CONST char *)get_glyph_gen (cptr, gbuf, '=', (sim_switches & SWMASK ('I')), TRUE, '\\'); cptr 3335 src/simh/scp.c cptr += strlen (gbuf); cptr 3336 src/simh/scp.c while (sim_isspace (*cptr)) /* skip spaces */ cptr 3337 src/simh/scp.c ++cptr; cptr 3338 src/simh/scp.c (void)get_glyph (cptr, op, '"'); cptr 3344 src/simh/scp.c cptr += strlen (op); cptr 3345 src/simh/scp.c while (sim_isspace (*cptr)) /* skip spaces */ cptr 3346 src/simh/scp.c ++cptr; cptr 3347 src/simh/scp.c cptr = (CONST char *)get_glyph_gen (cptr, gbuf2, 0, (sim_switches & SWMASK ('I')), TRUE, '\\'); cptr 3349 src/simh/scp.c if (*cptr) { /* more? */ cptr 3363 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get register */ cptr 3389 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 3391 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get search cond */ cptr 3393 src/simh/scp.c if (*cptr) { /* more? */ cptr 3420 src/simh/scp.c sim_brk_setact (cptr); /* set up IF actions */ cptr 3430 src/simh/scp.c t_stat send_cmd (int32 flag, CONST char *cptr) cptr 3441 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 3442 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 3447 src/simh/scp.c cptr = tptr; cptr 3453 src/simh/scp.c while (*cptr) { cptr 3458 src/simh/scp.c cptr = tptr; cptr 3459 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 3466 src/simh/scp.c cptr = tptr; cptr 3467 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 3470 src/simh/scp.c if ((*cptr == '"') || (*cptr == '\'')) cptr 3474 src/simh/scp.c if (*cptr) { cptr 3475 src/simh/scp.c if ((*cptr != '"') && (*cptr != '\'')) //-V560 cptr 3477 src/simh/scp.c cptr = get_glyph_quoted (cptr, gbuf, 0); cptr 3478 src/simh/scp.c if (*cptr != '\0') cptr 3489 src/simh/scp.c t_stat sim_show_send (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 3496 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 3501 src/simh/scp.c cptr = tptr; cptr 3505 src/simh/scp.c if (*cptr) cptr 3510 src/simh/scp.c t_stat expect_cmd (int32 flag, CONST char *cptr) cptr 3516 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 3517 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 3519 src/simh/scp.c cptr = tptr; cptr 3524 src/simh/scp.c return sim_set_expect (exp, cptr); cptr 3526 src/simh/scp.c return sim_set_noexpect (exp, cptr); cptr 3529 src/simh/scp.c t_stat sim_show_expect (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 3536 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 3541 src/simh/scp.c cptr = tptr; cptr 3545 src/simh/scp.c if (*cptr && (*cptr != '"') && (*cptr != '\'')) cptr 3547 src/simh/scp.c tptr = get_glyph_quoted (cptr, gbuf, 0); cptr 3550 src/simh/scp.c if (*cptr && (cptr[strlen(cptr)-1] != '"') && (cptr[strlen(cptr)-1] != '\'')) cptr 3560 src/simh/scp.c const char *cptr; cptr 3573 src/simh/scp.c cptr = read_line (cbuf, sizeof(cbuf), sim_gotofile);/* get cmd line */ cptr 3574 src/simh/scp.c if (cptr == NULL) break; /* exit on eof */ cptr 3576 src/simh/scp.c if (*cptr == 0) continue; /* ignore blank */ cptr 3577 src/simh/scp.c if (*cptr != ':') continue; /* ignore non-labels */ cptr 3578 src/simh/scp.c ++cptr; /* skip : */ cptr 3579 src/simh/scp.c while (sim_isspace (*cptr)) ++cptr; /* skip blanks */ cptr 3580 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get label glyph */ cptr 3630 src/simh/scp.c const char *cptr; cptr 3633 src/simh/scp.c cptr = get_glyph (fcptr, gbuf, 0); cptr 3635 src/simh/scp.c snprintf(cbuf, sizeof (cbuf), "%s %s", sim_do_filename[sim_do_depth], cptr); cptr 3642 src/simh/scp.c t_stat on_cmd (int32 flag, CONST char *cptr) cptr 3647 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 3654 src/simh/scp.c if ((NULL == cptr) || ('\0' == *cptr)) { /* Empty Action */ cptr 3659 src/simh/scp.c (char *)realloc(sim_on_actions[sim_do_depth][cond], 1+strlen(cptr)); cptr 3672 src/simh/scp.c strcpy(sim_on_actions[sim_do_depth][cond], cptr); cptr 3679 src/simh/scp.c t_stat noop_cmd (int32 flag, CONST char *cptr) cptr 3681 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 3688 src/simh/scp.c t_stat set_on (int32 flag, CONST char *cptr) cptr 3690 src/simh/scp.c if ((flag) && (cptr) && (*cptr)) { /* Set ON with arg */ cptr 3693 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get command glyph */ cptr 3696 src/simh/scp.c (*cptr)) cptr 3704 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 3724 src/simh/scp.c t_stat set_verify (int32 flag, CONST char *cptr) cptr 3726 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 3736 src/simh/scp.c t_stat set_message (int32 flag, CONST char *cptr) cptr 3738 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 3748 src/simh/scp.c t_stat set_localopc (int32 flag, CONST char *cptr) cptr 3750 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 3759 src/simh/scp.c t_stat set_quiet (int32 flag, CONST char *cptr) cptr 3761 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 3771 src/simh/scp.c t_stat sim_set_environment (int32 flag, CONST char *cptr) cptr 3775 src/simh/scp.c if ((!cptr) || (*cptr == 0)) /* now eol? */ cptr 3777 src/simh/scp.c cptr = get_glyph (cptr, varname, '='); /* get environment variable name */ cptr 3778 src/simh/scp.c setenv(varname, cptr, 1); cptr 3784 src/simh/scp.c t_stat set_cmd (int32 flag, CONST char *cptr) cptr 3796 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 3797 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 3799 src/simh/scp.c cptr = get_glyph (svptr = cptr, gbuf, 0); /* get glob/dev/unit */ cptr 3805 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 3812 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 3815 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 3816 src/simh/scp.c return gcmdp->action (gcmdp->arg, cptr); /* do the rest */ cptr 3825 src/simh/scp.c cptr = svptr; cptr 3826 src/simh/scp.c while (sim_isspace(*cptr)) cptr 3827 src/simh/scp.c ++cptr; cptr 3837 src/simh/scp.c if ((*cptr == 0) || (*cptr == ';') || (*cptr == '#')) /* must be more */ cptr 3839 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 3841 src/simh/scp.c while (*cptr != 0) { /* do all mods */ cptr 3842 src/simh/scp.c cptr = get_glyph (svptr = cptr, gbuf, ','); /* get modifier */ cptr 3860 src/simh/scp.c cptr = svptr; cptr 3934 src/simh/scp.c t_stat set_dev_radix (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 3936 src/simh/scp.c if (cptr) cptr 3944 src/simh/scp.c t_stat set_dev_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 3949 src/simh/scp.c if (cptr) cptr 3975 src/simh/scp.c t_stat set_unit_enbdis (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 3977 src/simh/scp.c if (cptr) cptr 3994 src/simh/scp.c t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 4001 src/simh/scp.c if (cptr == NULL) { /* no arguments? */ cptr 4011 src/simh/scp.c while (*cptr) { cptr 4012 src/simh/scp.c cptr = get_glyph (cptr, gbuf, ';'); /* get debug flag */ cptr 4029 src/simh/scp.c t_stat show_cmd (int32 flag, CONST char *cptr) cptr 4033 src/simh/scp.c cptr = get_sim_opt (CMD_OPT_SW|CMD_OPT_OF, cptr, &r); cptr 4035 src/simh/scp.c if (!cptr) /* error? */ cptr 4038 src/simh/scp.c r = show_cmd_fi (sim_ofile, flag, cptr); /* do show */ cptr 4042 src/simh/scp.c r = show_cmd_fi (stdout, flag, cptr); /* no, stdout, log */ cptr 4044 src/simh/scp.c show_cmd_fi (sim_log, flag, cptr); cptr 4046 src/simh/scp.c show_cmd_fi (sim_deb, flag, cptr); cptr 4051 src/simh/scp.c t_stat show_cmd_fi (FILE *ofile, int32 flag, CONST char *cptr) cptr 4061 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 4062 src/simh/scp.c if ((*cptr == 0) || (*cptr == ';') || (*cptr == '#')) /* must be more */ cptr 4064 src/simh/scp.c cptr = get_glyph (svptr = cptr, gbuf, 0); /* get next glyph */ cptr 4070 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 4079 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 4082 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 4083 src/simh/scp.c return shptr->action (ofile, NULL, NULL, shptr->arg, cptr); cptr 4095 src/simh/scp.c cptr = svptr; cptr 4096 src/simh/scp.c while (sim_isspace(*cptr)) cptr 4097 src/simh/scp.c ++cptr; cptr 4104 src/simh/scp.c return shptr->action (ofile, sim_dflt_dev, uptr, shptr->arg, cptr); cptr 4110 src/simh/scp.c if ((*cptr == 0) || (*cptr == ';') || (*cptr == '#')) { /* now eol? */ cptr 4115 src/simh/scp.c GET_SWITCHES (cptr); /* get more switches */ cptr 4117 src/simh/scp.c while (*cptr != 0) { /* do all mods */ cptr 4118 src/simh/scp.c cptr = get_glyph (cptr, gbuf, ','); /* get modifier */ cptr 4137 src/simh/scp.c r = shptr->action (ofile, dptr, uptr, shptr->arg, cptr); cptr 4307 src/simh/scp.c t_stat show_default_base_system_script (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 4374 src/simh/scp.c t_stat show_prom (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 4410 src/simh/scp.c t_stat show_buildinfo (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 4529 src/simh/scp.c t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 4535 src/simh/scp.c if (cptr && (*cptr != 0)) cptr 5171 src/simh/scp.c t_stat show_config (FILE *st, DEVICE *dnotused, UNIT *unotused, int32 flag, CONST char *cptr) cptr 5177 src/simh/scp.c if (cptr && (*cptr != 0)) cptr 5186 src/simh/scp.c t_stat show_log_names (FILE *st, DEVICE *dnotused, UNIT *unotused, int32 flag, CONST char *cptr) cptr 5191 src/simh/scp.c if (cptr && (*cptr != 0)) cptr 5194 src/simh/scp.c show_dev_logicals (st, dptr, NULL, 1, cptr); cptr 5198 src/simh/scp.c t_stat show_dev_logicals (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5207 src/simh/scp.c t_stat show_queue (FILE *st, DEVICE *dnotused, UNIT *unotused, int32 flag, CONST char *cptr) cptr 5213 src/simh/scp.c if (cptr && (*cptr != 0)) cptr 5245 src/simh/scp.c sim_show_clock_queues (st, dnotused, unotused, flag, cptr); cptr 5249 src/simh/scp.c t_stat show_time (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5251 src/simh/scp.c if (cptr && (*cptr != 0)) cptr 5257 src/simh/scp.c t_stat show_break (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5261 src/simh/scp.c if (cptr && (*cptr != 0)) cptr 5262 src/simh/scp.c r = ssh_break (st, cptr, 1); /* more? */ cptr 5268 src/simh/scp.c t_stat show_dev_radix (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5274 src/simh/scp.c t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5306 src/simh/scp.c t_stat show_on (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5310 src/simh/scp.c if (cptr && (*cptr != 0)) return SCPE_2MARG; /* now eol? */ cptr 5334 src/simh/scp.c t_stat show_mod_names (FILE *st, DEVICE *dnotused, UNIT *unotused, int32 flag, CONST char *cptr) cptr 5339 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 5342 src/simh/scp.c show_dev_modifiers (st, dptr, NULL, flag, cptr); cptr 5344 src/simh/scp.c show_dev_modifiers (st, dptr, NULL, flag, cptr); cptr 5348 src/simh/scp.c t_stat show_dev_modifiers (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5379 src/simh/scp.c CONST char *cptr, int32 flag) cptr 5384 src/simh/scp.c r = mptr->disp (st, uptr, mptr->match, (CONST void *)(cptr? cptr: mptr->desc)); cptr 5394 src/simh/scp.c t_stat show_show_commands (FILE *st, DEVICE *dnotused, UNIT *unotused, int32 flag, CONST char *cptr) cptr 5399 src/simh/scp.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 5402 src/simh/scp.c show_dev_show_commands (st, dptr, NULL, flag, cptr); cptr 5404 src/simh/scp.c show_dev_show_commands (st, dptr, NULL, flag, cptr); cptr 5408 src/simh/scp.c t_stat show_dev_show_commands (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 5416 src/simh/scp.c t_stat brk_cmd (int32 flg, CONST char *cptr) cptr 5418 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 5419 src/simh/scp.c return ssh_break (NULL, cptr, flg); /* call common code */ cptr 5422 src/simh/scp.c t_stat ssh_break (FILE *st, const char *cptr, int32 flg) cptr 5441 src/simh/scp.c strncpy (abuf, cptr, sizeof(abuf)-1); cptr 5442 src/simh/scp.c cptr = abuf; cptr 5448 src/simh/scp.c if (*cptr == 0) { /* no argument? */ cptr 5452 src/simh/scp.c while (*cptr) { cptr 5453 src/simh/scp.c cptr = get_glyph (cptr, gbuf, ','); cptr 5516 src/simh/scp.c t_stat reset_cmd (int32 flag, CONST char *cptr) cptr 5521 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 5523 src/simh/scp.c if (*cptr == 0) /* reset(cr) */ cptr 5525 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5526 src/simh/scp.c if (*cptr != 0) /* now eol? */ cptr 5594 src/simh/scp.c t_stat attach_cmd (int32 flag, CONST char *cptr) cptr 5601 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 5602 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 5604 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5605 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 5606 src/simh/scp.c if (*cptr == 0) /* now eol? */ cptr 5625 src/simh/scp.c strncpy (gbuf, cptr, sizeof(gbuf)-1); cptr 5632 src/simh/scp.c t_stat scp_attach_unit (DEVICE *dptr, UNIT *uptr, const char *cptr) cptr 5635 src/simh/scp.c return dptr->attach (uptr, (CONST char *)cptr); /* call it */ cptr 5636 src/simh/scp.c return attach_unit (uptr, (CONST char *)cptr); /* no, std routine */ cptr 5641 src/simh/scp.c t_stat attach_unit (UNIT *uptr, CONST char *cptr) cptr 5654 src/simh/scp.c strncpy (uptr->filename, cptr, CBUFSIZE-1); /* save name */ cptr 5660 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ cptr 5665 src/simh/scp.c sim_printf ("%s: unit is read only (%s)\n", sim_dname (dptr), cptr); cptr 5670 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+"); /* open new file */ cptr 5674 src/simh/scp.c sim_printf ("%s: creating new file (%s)\n", sim_dname (dptr), cptr); cptr 5678 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb+"); /* open r/w */ cptr 5694 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ cptr 5699 src/simh/scp.c sim_printf ("%s: unit is read only (%s)\n", sim_dname (dptr), cptr); cptr 5705 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+");/* open new file */ cptr 5709 src/simh/scp.c sim_printf ("%s: creating new file (%s)\n", sim_dname (dptr), cptr); cptr 5742 src/simh/scp.c t_stat detach_cmd (int32 flag, CONST char *cptr) cptr 5748 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 5749 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 5751 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5752 src/simh/scp.c if (*cptr != 0) /* now eol? */ cptr 5880 src/simh/scp.c t_stat run_cmd (int32 flag, CONST char *cptr) cptr 5892 src/simh/scp.c GET_SWITCHES (cptr); /* get switches */ cptr 5896 src/simh/scp.c if (*cptr != 0) { /* argument? */ cptr 5897 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5913 src/simh/scp.c if ((*cptr) || (MATCH_CMD (gbuf, "UNTIL") == 0)) { //-V600 /* should be end */ cptr 5917 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5920 src/simh/scp.c (flag == RU_RUN) ? "RUN" : "GO", gbuf, cptr); cptr 5922 src/simh/scp.c GET_SWITCHES (cptr); cptr 5923 src/simh/scp.c if ((*cptr == '\'') || (*cptr == '"')) { /* Expect UNTIL condition */ cptr 5924 src/simh/scp.c r = expect_cmd (1, cptr); cptr 5933 src/simh/scp.c r = ssh_break (NULL, cptr, SSH_ST); cptr 5935 src/simh/scp.c return sim_messagef (r, "Unable to establish breakpoint at: %s\n", cptr); cptr 5949 src/simh/scp.c if (*cptr != 0) { /* argument? */ cptr 5950 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5951 src/simh/scp.c if (*cptr != 0) /* should be end */ cptr 5964 src/simh/scp.c if (*cptr != 0) { /* argument? */ cptr 5965 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5966 src/simh/scp.c if (*cptr != 0) /* should be end */ cptr 5982 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 5984 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ cptr 5985 src/simh/scp.c if (*cptr != 0) /* should be end */ cptr 6010 src/simh/scp.c if (*cptr != 0) /* should be end (no arguments allowed) */ cptr 6281 src/simh/scp.c t_stat exdep_cmd (int32 flag, CONST char *cptr) cptr 6296 src/simh/scp.c cptr = get_sim_opt (opt, cptr, &reason); /* get cmd options */ cptr 6297 src/simh/scp.c if (!cptr) /* error? */ cptr 6299 src/simh/scp.c if (*cptr == 0) /* must be more */ cptr 6303 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get list */ cptr 6304 src/simh/scp.c if ((flag == EX_D) && (*cptr == 0)) /* deposit needs more */ cptr 6320 src/simh/scp.c reason = exdep_reg_loop (ofile, sim_schrptr, flag, cptr, cptr 6348 src/simh/scp.c reason = exdep_reg_loop (ofile, sim_schrptr, flag, cptr, cptr 6360 src/simh/scp.c reason = exdep_addr_loop (ofile, sim_schaptr, flag, cptr, low, high, cptr 6374 src/simh/scp.c t_stat exdep_reg_loop (FILE *ofile, SCHTAB *schptr, int32 flag, CONST char *cptr, cptr 6430 src/simh/scp.c reason = dep_reg (flag, cptr, rptr, idx); cptr 6460 src/simh/scp.c t_stat exdep_addr_loop (FILE *ofile, SCHTAB *schptr, int32 flag, const char *cptr, cptr 6487 src/simh/scp.c reason = dep_addr (flag, cptr, i, dptr, uptr, reason); cptr 6594 src/simh/scp.c t_stat dep_reg (int32 flag, CONST char *cptr, REG *rptr, uint32 idx) cptr 6602 src/simh/scp.c if ((cptr == NULL) || (rptr == NULL)) cptr 6607 src/simh/scp.c cptr = read_line (gbuf, sizeof(gbuf), stdin); cptr 6609 src/simh/scp.c fprintf (sim_log, "%s\n", cptr? cptr: ""); cptr 6610 src/simh/scp.c if (cptr == NULL) /* force exit */ cptr 6612 src/simh/scp.c if (*cptr == 0) /* success */ cptr 6618 src/simh/scp.c val = sim_vm_parse_addr (sim_dflt_dev, cptr, &tptr); cptr 6619 src/simh/scp.c if ((tptr == cptr) || (*tptr != 0) || (val > mask)) cptr 6624 src/simh/scp.c (parse_sym ((CONST char *)cptr, (rptr->flags & REG_UFMASK) | rdx, NULL, cptr 6626 src/simh/scp.c val = get_uint (cptr, rdx, mask, &r); cptr 6813 src/simh/scp.c t_stat dep_addr (int32 flag, const char *cptr, t_addr addr, DEVICE *dptr, cptr 6826 src/simh/scp.c cptr = read_line (gbuf, sizeof(gbuf), stdin); cptr 6828 src/simh/scp.c fprintf (sim_log, "%s\n", cptr? cptr: ""); cptr 6829 src/simh/scp.c if (cptr == NULL) /* force exit */ cptr 6831 src/simh/scp.c if (*cptr == 0) /* success */ cptr 6839 src/simh/scp.c if ((reason = parse_sym ((CONST char *)cptr, addr, uptr, sim_eval, sim_switches)) > 0) { cptr 6840 src/simh/scp.c sim_eval[0] = get_uint (cptr, rdx, mask, &reason); cptr 6883 src/simh/scp.c t_stat eval_cmd (int32 flg, CONST char *cptr) cptr 6891 src/simh/scp.c GET_SWITCHES (cptr); cptr 6895 src/simh/scp.c if (*cptr == 0) cptr 6897 src/simh/scp.c if ((r = parse_sym ((CONST char *)cptr, 0, dptr->units, sim_eval, sim_switches)) > 0) { cptr 6898 src/simh/scp.c sim_eval[0] = get_uint (cptr, rdx, width_mask[dptr->dwidth], &r); cptr 6933 src/simh/scp.c char *read_line (char *cptr, int32 size, FILE *stream) cptr 6935 src/simh/scp.c return read_line_p (NULL, cptr, size, stream); cptr 6950 src/simh/scp.c char *read_line_p (const char *prompt, char *cptr, int32 size, FILE *stream) cptr 6958 src/simh/scp.c cptr = NULL; cptr 6960 src/simh/scp.c strncpy (cptr, tmpc, size-1); /* copy result */ cptr 6969 src/simh/scp.c cptr = fgets (cptr, size, stream); /* get cmd line */ cptr 6972 src/simh/scp.c else cptr = fgets (cptr, size, stream); /* get cmd line */ cptr 6974 src/simh/scp.c if (cptr == NULL) { cptr 6978 src/simh/scp.c for (tptr = cptr; tptr < (cptr + size); tptr++) { /* remove cr or nl */ cptr 6980 src/simh/scp.c (tptr == (cptr + size - 1))) { /* str max length? */ cptr 6985 src/simh/scp.c if (0 == memcmp (cptr, "\xEF\xBB\xBF", 3)) /* Skip/ignore UTF8_BOM */ cptr 6986 src/simh/scp.c memmove (cptr, cptr + 3, strlen (cptr + 3)); cptr 6987 src/simh/scp.c while (sim_isspace (*cptr)) /* trim leading spc */ cptr 6988 src/simh/scp.c cptr++; cptr 6989 src/simh/scp.c if ((*cptr == ';') || (*cptr == '#')) { /* ignore comment */ cptr 6991 src/simh/scp.c sim_printf("%s> %s\n", do_position(), cptr); cptr 6992 src/simh/scp.c *cptr = 0; cptr 6995 src/simh/scp.c return cptr; cptr 7089 src/simh/scp.c char *sim_trim_endspc (char *cptr) cptr 7093 src/simh/scp.c tptr = cptr + strlen (cptr); cptr 7094 src/simh/scp.c while ((--tptr >= cptr) && sim_isspace (*tptr)) cptr 7096 src/simh/scp.c return cptr; cptr 7145 src/simh/scp.c t_value get_uint (const char *cptr, uint32 radix, t_value max, t_stat *status) cptr 7151 src/simh/scp.c val = strtotv ((CONST char *)cptr, &tptr, radix); cptr 7152 src/simh/scp.c if ((cptr == tptr) || (val > max)) cptr 7177 src/simh/scp.c CONST char *get_range (DEVICE *dptr, CONST char *cptr, t_addr *lo, t_addr *hi, cptr 7182 src/simh/scp.c if (max && strncmp (cptr, "ALL", strlen ("ALL")) == 0) { /* ALL? */ cptr 7183 src/simh/scp.c tptr = cptr + strlen ("ALL"); cptr 7188 src/simh/scp.c if ((strncmp (cptr, ".", strlen (".")) == 0) && /* .? */ cptr 7189 src/simh/scp.c ((cptr[1] == '\0') || cptr 7190 src/simh/scp.c (cptr[1] == '-') || cptr 7191 src/simh/scp.c (cptr[1] == ':') || cptr 7192 src/simh/scp.c (cptr[1] == '/'))) { cptr 7193 src/simh/scp.c tptr = cptr + strlen ("."); cptr 7197 src/simh/scp.c if (strncmp (cptr, "$", strlen ("$")) == 0) { /* $? */ cptr 7198 src/simh/scp.c tptr = cptr + strlen ("$"); cptr 7203 src/simh/scp.c *lo = sim_vm_parse_addr (dptr, cptr, &tptr); cptr 7205 src/simh/scp.c *lo = (t_addr) strtotv (cptr, &tptr, rdx); cptr 7206 src/simh/scp.c if (cptr == tptr) /* error? */ cptr 7211 src/simh/scp.c cptr = tptr + 1; cptr 7213 src/simh/scp.c *hi = sim_vm_parse_addr (dptr, cptr, &tptr); cptr 7214 src/simh/scp.c else *hi = (t_addr) strtotv (cptr, &tptr, rdx); cptr 7215 src/simh/scp.c if (cptr == tptr) cptr 7221 src/simh/scp.c cptr = tptr + 1; cptr 7222 src/simh/scp.c *hi = (t_addr) strtotv (cptr, &tptr, rdx); /* get high */ cptr 7223 src/simh/scp.c if ((cptr == tptr) || (*hi == 0)) cptr 7434 src/simh/scp.c DEVICE *find_dev (const char *cptr) cptr 7439 src/simh/scp.c if (cptr == NULL) cptr 7442 src/simh/scp.c if ((strcmp (cptr, dptr->name) == 0) || cptr 7444 src/simh/scp.c (strcmp (cptr, dptr->lname) == 0))) cptr 7448 src/simh/scp.c if ((strcmp (cptr, dptr->name) == 0) || cptr 7450 src/simh/scp.c (strcmp (cptr, dptr->lname) == 0))) cptr 7467 src/simh/scp.c DEVICE *find_unit (const char *cptr, UNIT **uptr) cptr 7478 src/simh/scp.c if ((dptr = find_dev (cptr))) { /* exact match? */ cptr 7490 src/simh/scp.c (strncmp (cptr, nptr, strlen (nptr)) == 0)) || /* LINTED E_EQUALITY_NOT_ASSIGNMENT*/ cptr 7492 src/simh/scp.c (strncmp (cptr, nptr, strlen (nptr)) == 0)))) { cptr 7493 src/simh/scp.c tptr = cptr + strlen (nptr); cptr 7506 src/simh/scp.c if (0 == strcmp (cptr, sim_uname (&dptr->units[u]))) { cptr 7600 src/simh/scp.c REG *find_reg_glob (CONST char *cptr, CONST char **optr, DEVICE **gdptr) cptr 7610 src/simh/scp.c if ((rptr = find_reg (cptr, optr, dptr))) { /* found? */ cptr 7631 src/simh/scp.c REG *find_reg (CONST char *cptr, CONST char **optr, DEVICE *dptr) cptr 7637 src/simh/scp.c if ((cptr == NULL) || (dptr == NULL) || (dptr->registers == NULL)) cptr 7639 src/simh/scp.c tptr = cptr; cptr 7643 src/simh/scp.c slnt = tptr - cptr; cptr 7646 src/simh/scp.c (strncmp (cptr, rptr->name, slnt) == 0)) { cptr 7664 src/simh/scp.c int32 get_switches (const char *cptr) cptr 7668 src/simh/scp.c if (*cptr != '-') cptr 7671 src/simh/scp.c for (cptr++; (sim_isspace (*cptr) == 0) && (*cptr != 0); cptr++) { cptr 7672 src/simh/scp.c if (sim_isalpha (*cptr) == 0) cptr 7674 src/simh/scp.c sw = sw | SWMASK (toupper (*cptr)); cptr 7688 src/simh/scp.c CONST char *get_sim_sw (CONST char *cptr) cptr 7693 src/simh/scp.c while (*cptr == '-') { /* while switches */ cptr 7694 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get switch glyph */ cptr 7700 src/simh/scp.c return cptr; cptr 7713 src/simh/scp.c CONST char *get_sim_opt (int32 opt, CONST char *cptr, t_stat *st) cptr 7791 src/simh/scp.c while (*cptr) { /* loop through modifiers */ cptr 7792 src/simh/scp.c svptr = cptr; /* save current position */ cptr 7793 src/simh/scp.c if ((opt & CMD_OPT_OF) && (*cptr == '@')) { /* output file spec? */ cptr 7799 src/simh/scp.c cptr = get_glyph (cptr + 1, gbuf, 0); cptr 7808 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 7832 src/simh/scp.c return cptr; cptr 7873 src/simh/scp.c SCHTAB *get_rsearch (CONST char *cptr, int32 radix, SCHTAB *schptr) cptr 7882 src/simh/scp.c if (*cptr == 0) /* check for clause */ cptr 7885 src/simh/scp.c for (logop = cmpop = -1; (c = *cptr++); ) { /* loop thru clauses */ cptr 7888 src/simh/scp.c logval = strtotv (cptr, &tptr, radix); cptr 7889 src/simh/scp.c if (cptr == tptr) cptr 7891 src/simh/scp.c cptr = tptr; cptr 7895 src/simh/scp.c if (*cptr == '=') { cptr 7897 src/simh/scp.c cptr++; cptr 7899 src/simh/scp.c cmpval = strtotv (cptr, &tptr, radix); cptr 7900 src/simh/scp.c if (cptr == tptr) cptr 7902 src/simh/scp.c cptr = tptr; cptr 7935 src/simh/scp.c SCHTAB *get_asearch (CONST char *cptr, int32 radix, SCHTAB *schptr) cptr 7940 src/simh/scp.c CONST char *ocptr = cptr; cptr 7945 src/simh/scp.c if (*cptr == 0) /* check for clause */ cptr 7950 src/simh/scp.c for (logop = cmpop = -1; (c = *cptr++); ) { /* loop thru clauses */ cptr 7953 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 7963 src/simh/scp.c if (*cptr == '=') { cptr 7965 src/simh/scp.c cptr++; cptr 7967 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 8399 src/simh/scp.c UNIT *cptr, *prvptr; cptr 8410 src/simh/scp.c for (cptr = sim_clock_queue; cptr != QUEUE_LIST_END; cptr = cptr->next) { cptr 8411 src/simh/scp.c if (event_time < (accum + cptr->time)) cptr 8413 src/simh/scp.c accum = accum + cptr->time; cptr 8414 src/simh/scp.c prvptr = cptr; cptr 8417 src/simh/scp.c cptr = uptr->next = sim_clock_queue; cptr 8421 src/simh/scp.c cptr = uptr->next = prvptr->next; /* insert at prvptr */ cptr 8425 src/simh/scp.c if (cptr != QUEUE_LIST_END) cptr 8426 src/simh/scp.c cptr->time = cptr->time - uptr->time; cptr 8478 src/simh/scp.c UNIT *cptr, *nptr; cptr 8493 src/simh/scp.c for (cptr = sim_clock_queue; cptr != QUEUE_LIST_END; cptr = cptr->next) { cptr 8494 src/simh/scp.c if (cptr->next == uptr) { cptr 8495 src/simh/scp.c nptr = cptr->next = uptr->next; cptr 8545 src/simh/scp.c UNIT *cptr; cptr 8548 src/simh/scp.c for (cptr = sim_clock_queue; cptr != QUEUE_LIST_END; cptr = cptr->next) { cptr 8549 src/simh/scp.c if (cptr == sim_clock_queue) { cptr 8554 src/simh/scp.c accum = accum + cptr->time; cptr 8555 src/simh/scp.c if (cptr == uptr) cptr 9163 src/simh/scp.c t_stat sim_set_expect (EXPECT *exp, CONST char *cptr) cptr 9177 src/simh/scp.c if ((cptr == NULL) || (*cptr == 0)) cptr 9179 src/simh/scp.c if (*cptr == '[') { cptr 9180 src/simh/scp.c cnt = (int32) strtotv (cptr + 1, &c1ptr, 10); cptr 9181 src/simh/scp.c if ((cptr == c1ptr) || (*c1ptr != ']')) cptr 9183 src/simh/scp.c cptr = c1ptr + 1; cptr 9184 src/simh/scp.c while (sim_isspace(*cptr)) cptr 9185 src/simh/scp.c ++cptr; cptr 9187 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); cptr 9193 src/simh/scp.c cptr = tptr; cptr 9195 src/simh/scp.c if ((*cptr != '"') && (*cptr != '\'')) cptr 9197 src/simh/scp.c cptr = get_glyph_quoted (cptr, gbuf, 0); cptr 9199 src/simh/scp.c return sim_exp_set (exp, gbuf, cnt, (after_set ? after : exp->after), sim_switches, cptr); cptr 9204 src/simh/scp.c t_stat sim_set_noexpect (EXPECT *exp, const char *cptr) cptr 9208 src/simh/scp.c if (!cptr || !*cptr) cptr 9210 src/simh/scp.c if ((*cptr != '"') && (*cptr != '\'')) cptr 9212 src/simh/scp.c cptr = get_glyph_quoted (cptr, gbuf, 0); cptr 9213 src/simh/scp.c if (*cptr != '\0') cptr 9681 src/simh/scp.c t_stat sim_string_to_stat (const char *cptr, t_stat *stat) cptr 9687 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 10687 src/simh/scp.c char cbuf[CBUFSIZE], *cptr; cptr 10696 src/simh/scp.c cptr = cbuf; cptr 10697 src/simh/scp.c while (*cptr) { cptr 10698 src/simh/scp.c if (blankch (*cptr)) { cptr 10699 src/simh/scp.c *cptr++ = '_'; cptr 10702 src/simh/scp.c *cptr = (char)toupper (*cptr); cptr 10703 src/simh/scp.c cptr++; cptr 10721 src/simh/scp.c const char *help, const char *cptr, va_list ap) cptr 10821 src/simh/scp.c while (cptr && *cptr) { cptr 10822 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 10846 src/simh/scp.c cptr = NULL; cptr 10909 src/simh/scp.c if (!cptr || !*cptr) { cptr 10914 src/simh/scp.c cptr = read_line_p (pstring+1, cbuf, sizeof (cbuf), stdin); cptr 10916 src/simh/scp.c if ((cptr != NULL) && /* Got something? */ cptr 10917 src/simh/scp.c ((0 == strcmp (cptr, "\x04")) || /* was it a bare ^D? */ cptr 10918 src/simh/scp.c (0 == strcmp (cptr, "\x1A")))) /* was it a bare ^Z? */ cptr 10919 src/simh/scp.c cptr = NULL; /* These are EOF synonyms */ cptr 10922 src/simh/scp.c if (!cptr) /* EOF, exit help */ cptr 10925 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); cptr 10949 src/simh/scp.c cptr = NULL; cptr 10955 src/simh/scp.c cptr = NULL; cptr 10961 src/simh/scp.c cptr = NULL; cptr 10980 src/simh/scp.c const char *help, const char *cptr, ...) cptr 10985 src/simh/scp.c va_start (ap, cptr); cptr 10986 src/simh/scp.c r = scp_vhelp (st, dptr, uptr, flag, help, cptr, ap); cptr 127 src/simh/scp.h t_stat attach_unit (UNIT *uptr, CONST char *cptr); cptr 129 src/simh/scp.h t_stat assign_device (DEVICE *dptr, const char *cptr); cptr 142 src/simh/scp.h CONST char *get_sim_opt (int32 opt, CONST char *cptr, t_stat *st); cptr 148 src/simh/scp.h t_value get_uint (const char *cptr, uint32 radix, t_value max, t_stat *status); cptr 149 src/simh/scp.h CONST char *get_range (DEVICE *dptr, CONST char *cptr, t_addr *lo, t_addr *hi, cptr 154 src/simh/scp.h t_value strtotv (CONST char *cptr, CONST char **endptr, uint32 radix); cptr 160 src/simh/scp.h char *read_line (char *cptr, int32 size, FILE *stream); cptr 185 src/simh/scp.h t_stat sim_set_expect (EXPECT *exp, CONST char *cptr); cptr 186 src/simh/scp.h t_stat sim_set_noexpect (EXPECT *exp, const char *cptr); cptr 193 src/simh/scp.h t_stat show_version (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 194 src/simh/scp.h t_stat set_dev_debug (DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 195 src/simh/scp.h t_stat show_dev_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 197 src/simh/scp.h t_stat sim_string_to_stat (const char *cptr, t_stat *cond); cptr 212 src/simh/scp.h UNIT *uptr, int32 flag, const char *help, const char *cptr, ...); cptr 214 src/simh/scp.h UNIT *uptr, int32 flag, const char *help, const char *cptr, va_list ap); cptr 216 src/simh/scp.h UNIT *uptr, int32 flag, const char *help, const char *cptr, ...); cptr 218 src/simh/scp.h UNIT *uptr, int32 flag, const char *help, const char *cptr, va_list ap); cptr 268 src/simh/scp.h extern t_stat parse_sym (CONST char *cptr, t_addr addr, UNIT *uptr, t_value *val, cptr 280 src/simh/scp.h extern t_addr (*sim_vm_parse_addr) (DEVICE *dptr, CONST char *cptr, CONST char **tptr); cptr 111 src/simh/sim_console.c static t_stat sim_set_rem_telnet (int32 flag, CONST char *cptr); cptr 112 src/simh/sim_console.c static t_stat sim_set_rem_connections (int32 flag, CONST char *cptr); cptr 113 src/simh/sim_console.c static t_stat sim_set_rem_timeout (int32 flag, CONST char *cptr); cptr 116 src/simh/sim_console.c static t_stat sim_set_halt (int32 flag, CONST char *cptr); cptr 117 src/simh/sim_console.c static t_stat sim_set_response (int32 flag, CONST char *cptr); cptr 118 src/simh/sim_console.c static t_stat sim_set_delay (int32 flag, CONST char *cptr); cptr 281 src/simh/sim_console.c t_stat sim_set_console (int32 flag, CONST char *cptr) cptr 287 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) cptr 289 src/simh/sim_console.c while (*cptr != 0) { /* do all mods */ cptr 290 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */ cptr 306 src/simh/sim_console.c t_stat sim_show_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 312 src/simh/sim_console.c if (*cptr == 0) { /* show all */ cptr 314 src/simh/sim_console.c show_con_tab[i].action (st, dptr, uptr, show_con_tab[i].arg, cptr); cptr 317 src/simh/sim_console.c while (*cptr != 0) { cptr 318 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, ','); /* get modifier */ cptr 370 src/simh/sim_console.c t_stat sim_set_remote_console (int32 flag, CONST char *cptr) cptr 376 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) cptr 378 src/simh/sim_console.c while (*cptr != 0) { /* do all mods */ cptr 379 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */ cptr 395 src/simh/sim_console.c t_stat sim_show_remote_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 400 src/simh/sim_console.c if (*cptr != 0) cptr 472 src/simh/sim_console.c static t_stat x_continue_cmd (int32 flag, CONST char *cptr) cptr 477 src/simh/sim_console.c static t_stat x_step_cmd (int32 flag, CONST char *cptr) cptr 482 src/simh/sim_console.c static t_stat x_run_cmd (int32 flag, CONST char *cptr) cptr 487 src/simh/sim_console.c static t_stat x_help_cmd (int32 flag, CONST char *cptr); cptr 545 src/simh/sim_console.c static t_stat x_help_cmd (int32 flag, CONST char *cptr) cptr 549 src/simh/sim_console.c if (*cptr) { cptr 554 src/simh/sim_console.c r = help_cmd (flag, cptr); cptr 611 src/simh/sim_console.c CONST char *cptr; cptr 619 src/simh/sim_console.c cptr = cbuf; cptr 620 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, 0); /* get command glyph */ cptr 624 src/simh/sim_console.c stat = sim_rem_active_command->action (sim_rem_active_command->arg, cptr);/* execute command */ cptr 646 src/simh/sim_console.c CONST char *cptr; cptr 884 src/simh/sim_console.c cptr = cbuf; cptr 885 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, 0); /* get command glyph */ cptr 920 src/simh/sim_console.c if (*cptr != 0) { /* argument? */ cptr 921 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, 0);/* get next glyph */ cptr 922 src/simh/sim_console.c if (*cptr != 0) /* should be end */ cptr 936 src/simh/sim_console.c stat = basecmdp->action (cmdp->arg, cptr); cptr 1051 src/simh/sim_console.c static t_stat sim_set_rem_telnet (int32 flag, CONST char *cptr) cptr 1056 src/simh/sim_console.c r = sim_parse_addr (cptr, NULL, 0, NULL, NULL, 0, NULL, NULL); cptr 1064 src/simh/sim_console.c r = tmxr_attach (&sim_rem_con_tmxr, &sim_rem_con_unit[0], cptr);/* open master socket */ cptr 1088 src/simh/sim_console.c static t_stat sim_set_rem_connections (int32 flag, CONST char *cptr) cptr 1094 src/simh/sim_console.c if (cptr == NULL) cptr 1096 src/simh/sim_console.c lines = (int32) get_uint (cptr, 10, MAX_REMOTE_SESSIONS, &r); cptr 1205 src/simh/sim_console.c static t_stat sim_set_rem_timeout (int32 flag, CONST char *cptr) cptr 1210 src/simh/sim_console.c if (cptr == NULL) cptr 1212 src/simh/sim_console.c timeout = (int32) get_uint (cptr, 10, 3600, &r); cptr 1224 src/simh/sim_console.c t_stat sim_set_kmap (int32 flag, CONST char *cptr) cptr 1230 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) cptr 1234 src/simh/sim_console.c val = (int32) get_uint (cptr, rdx, 0177, &r); //-V536 cptr 1244 src/simh/sim_console.c t_stat sim_show_kmap (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 1254 src/simh/sim_console.c t_stat sim_set_pchar (int32 flag, CONST char *cptr) cptr 1260 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) cptr 1264 src/simh/sim_console.c val = (uint32) get_uint (cptr, rdx, 0xFFFFFFFF, &r); cptr 1274 src/simh/sim_console.c t_stat sim_set_cons_speed (int32 flag, CONST char *cptr) cptr 1276 src/simh/sim_console.c return tmxr_set_line_speed (&sim_con_ldsc, cptr); cptr 1279 src/simh/sim_console.c t_stat sim_show_cons_speed (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 1292 src/simh/sim_console.c t_stat sim_set_logon (int32 flag, CONST char *cptr) cptr 1298 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) /* need arg */ cptr 1300 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */ cptr 1301 src/simh/sim_console.c if (*cptr != 0) /* now eol? */ cptr 1320 src/simh/sim_console.c t_stat sim_set_logoff (int32 flag, CONST char *cptr) cptr 1322 src/simh/sim_console.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 1336 src/simh/sim_console.c t_stat sim_show_log (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 1338 src/simh/sim_console.c if (cptr && (*cptr != 0)) cptr 1349 src/simh/sim_console.c t_stat sim_set_debon (int32 flag, CONST char *cptr) cptr 1367 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) /* need arg */ cptr 1369 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */ cptr 1370 src/simh/sim_console.c if (*cptr != 0) /* now eol? */ cptr 1440 src/simh/sim_console.c t_stat sim_set_deboff (int32 flag, CONST char *cptr) cptr 1442 src/simh/sim_console.c if (cptr && (*cptr != 0)) /* now eol? */ cptr 1456 src/simh/sim_console.c t_stat sim_show_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 1460 src/simh/sim_console.c if (cptr && (*cptr != 0)) cptr 1496 src/simh/sim_console.c t_stat sim_set_telnet (int32 flag, CONST char *cptr) cptr 1502 src/simh/sim_console.c if ((cptr == NULL) || (*cptr == 0)) cptr 1504 src/simh/sim_console.c while (*cptr != 0) { /* do all mods */ cptr 1505 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */ cptr 1529 src/simh/sim_console.c t_stat sim_set_notelnet (int32 flag, CONST char *cptr) cptr 1531 src/simh/sim_console.c if (cptr && (*cptr != 0)) /* too many arguments? */ cptr 1540 src/simh/sim_console.c t_stat sim_show_telnet (FILE *st, DEVICE *dunused, UNIT *uunused, int32 flag, CONST char *cptr) cptr 1542 src/simh/sim_console.c if (cptr && (*cptr != 0)) cptr 1567 src/simh/sim_console.c t_stat sim_set_cons_buff (int32 flg, CONST char *cptr) cptr 1571 src/simh/sim_console.c sprintf(cmdbuf, "BUFFERED%c%s", cptr ? '=' : '\0', cptr ? cptr : ""); cptr 1577 src/simh/sim_console.c t_stat sim_set_cons_unbuff (int32 flg, CONST char *cptr) cptr 1581 src/simh/sim_console.c sprintf(cmdbuf, "UNBUFFERED%c%s", cptr ? '=' : '\0', cptr ? cptr : ""); cptr 1587 src/simh/sim_console.c t_stat sim_set_cons_log (int32 flg, CONST char *cptr) cptr 1591 src/simh/sim_console.c sprintf(cmdbuf, "LOG%c%s", cptr ? '=' : '\0', cptr ? cptr : ""); cptr 1597 src/simh/sim_console.c t_stat sim_set_cons_nolog (int32 flg, CONST char *cptr) cptr 1601 src/simh/sim_console.c sprintf(cmdbuf, "NOLOG%c%s", cptr ? '=' : '\0', cptr ? cptr : ""); cptr 1605 src/simh/sim_console.c t_stat sim_show_cons_log (FILE *st, DEVICE *dunused, UNIT *uunused, int32 flag, CONST char *cptr) cptr 1607 src/simh/sim_console.c if (cptr && (*cptr != 0)) cptr 1616 src/simh/sim_console.c t_stat sim_show_cons_buff (FILE *st, DEVICE *dunused, UNIT *uunused, int32 flag, CONST char *cptr) cptr 1618 src/simh/sim_console.c if (cptr && (*cptr != 0)) cptr 1631 src/simh/sim_console.c t_stat sim_show_cons_expect (FILE *st, DEVICE *dunused, UNIT *uunused, int32 flag, CONST char *cptr) cptr 1633 src/simh/sim_console.c return sim_exp_show (st, &sim_con_expect, cptr); cptr 1825 src/simh/sim_console.c t_stat sim_show_cons_send_input (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 2351 src/simh/sim_console.c static t_stat sim_set_halt (int32 flag, CONST char *cptr) cptr 2359 src/simh/sim_console.c if (cptr == NULL || *cptr == 0) /* no match string? */ cptr 2364 src/simh/sim_console.c mbuf = (char *)malloc (1 + strlen (cptr)); cptr 2377 src/simh/sim_console.c decode (mbuf, cptr); /* save decoded match string */ cptr 2379 src/simh/sim_console.c mbuf2 = (char *)malloc (3 + strlen(cptr)); cptr 2407 src/simh/sim_console.c static t_stat sim_set_response (int32 flag, CONST char *cptr) cptr 2414 src/simh/sim_console.c if (cptr == NULL || *cptr == 0) cptr 2417 src/simh/sim_console.c rbuf = (uint8 *)malloc (1 + strlen(cptr)); cptr 2431 src/simh/sim_console.c decode ((char *)rbuf, cptr); /* decod string */ cptr 2441 src/simh/sim_console.c static t_stat sim_set_delay (int32 flag, CONST char *cptr) cptr 2446 src/simh/sim_console.c if (cptr == NULL || *cptr == 0) /* no argument string? */ cptr 2449 src/simh/sim_console.c val = (int32) get_uint (cptr, 10, INT_MAX, &r); /* parse the argument */ cptr 74 src/simh/sim_console.h t_stat sim_set_console (int32 flag, CONST char *cptr); cptr 75 src/simh/sim_console.h t_stat sim_set_remote_console (int32 flag, CONST char *cptr); cptr 77 src/simh/sim_console.h t_stat sim_set_kmap (int32 flag, CONST char *cptr); cptr 78 src/simh/sim_console.h t_stat sim_set_telnet (int32 flag, CONST char *cptr); cptr 79 src/simh/sim_console.h t_stat sim_set_notelnet (int32 flag, CONST char *cptr); cptr 80 src/simh/sim_console.h t_stat sim_set_serial (int32 flag, CONST char *cptr); cptr 81 src/simh/sim_console.h t_stat sim_set_noserial (int32 flag, CONST char *cptr); cptr 82 src/simh/sim_console.h t_stat sim_set_logon (int32 flag, CONST char *cptr); cptr 83 src/simh/sim_console.h t_stat sim_set_logoff (int32 flag, CONST char *cptr); cptr 84 src/simh/sim_console.h t_stat sim_set_debon (int32 flag, CONST char *cptr); cptr 85 src/simh/sim_console.h t_stat sim_set_cons_buff (int32 flg, CONST char *cptr); cptr 86 src/simh/sim_console.h t_stat sim_set_cons_unbuff (int32 flg, CONST char *cptr); cptr 87 src/simh/sim_console.h t_stat sim_set_cons_log (int32 flg, CONST char *cptr); cptr 88 src/simh/sim_console.h t_stat sim_set_cons_nolog (int32 flg, CONST char *cptr); cptr 89 src/simh/sim_console.h t_stat sim_set_deboff (int32 flag, CONST char *cptr); cptr 90 src/simh/sim_console.h t_stat sim_set_cons_expect (int32 flg, CONST char *cptr); cptr 91 src/simh/sim_console.h t_stat sim_set_cons_noexpect (int32 flg, CONST char *cptr); cptr 93 src/simh/sim_console.h t_stat sim_set_pchar (int32 flag, CONST char *cptr); cptr 94 src/simh/sim_console.h t_stat sim_set_cons_speed (int32 flag, CONST char *cptr); cptr 95 src/simh/sim_console.h t_stat sim_show_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 96 src/simh/sim_console.h t_stat sim_show_remote_console (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 97 src/simh/sim_console.h t_stat sim_show_kmap (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 98 src/simh/sim_console.h t_stat sim_show_telnet (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 99 src/simh/sim_console.h t_stat sim_show_log (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 100 src/simh/sim_console.h t_stat sim_show_debug (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 101 src/simh/sim_console.h t_stat sim_show_pchar (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 102 src/simh/sim_console.h t_stat sim_show_cons_speed (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 103 src/simh/sim_console.h t_stat sim_show_cons_buff (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 104 src/simh/sim_console.h t_stat sim_show_cons_log (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 105 src/simh/sim_console.h t_stat sim_show_cons_expect (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 112 src/simh/sim_console.h t_stat sim_show_cons_send_input (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 355 src/simh/sim_defs.h UNIT *uptr, int32 flag, const char *cptr); cptr 358 src/simh/sim_defs.h UNIT *uptr, int32 flag, const char *cptr); cptr 523 src/simh/sim_defs.h t_stat (*action)(int32 flag, CONST char *cptr); cptr 535 src/simh/sim_defs.h int32 flag, CONST char *cptr);/* action routine */ cptr 543 src/simh/sim_defs.h UNIT *uptr, int32 flag, CONST char *cptr); cptr 114 src/simh/sim_disk.c t_stat sim_disk_set_fmt (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 120 src/simh/sim_disk.c if (cptr == NULL) cptr 123 src/simh/sim_disk.c if (fmts[f].name && (strcmp (cptr, fmts[f].name) == 0)) { cptr 152 src/simh/sim_disk.c t_stat sim_disk_set_capac (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 158 src/simh/sim_disk.c if ((cptr == NULL) || (*cptr == 0)) cptr 162 src/simh/sim_disk.c cap = (t_offset) get_uint (cptr, 10, sim_taddr_64? 2000000: 2000, &r); cptr 736 src/simh/sim_disk.c t_stat sim_disk_attach (UNIT *uptr, const char *cptr, size_t sector_size, size_t xfer_element_size, t_bool dontautosize, cptr 757 src/simh/sim_disk.c cptr = get_glyph (cptr, gbuf, 0); /* get spec */ cptr 758 src/simh/sim_disk.c if (*cptr == 0) /* must be more */ cptr 793 src/simh/sim_disk.c strncpy (uptr->filename, cptr, CBUFSIZE); /* save name */ cptr 816 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ cptr 821 src/simh/sim_disk.c sim_printf ("%s%lu: unit is read only (%s)\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr); cptr 825 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb+"); /* open r/w */ cptr 830 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ cptr 835 src/simh/sim_disk.c sim_printf ("%s%lu: unit is read only (%s)\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr); cptr 841 src/simh/sim_disk.c uptr->fileref = create_function (cptr, ((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1));/* create new file */ cptr 843 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "wb+");/* open new file */ cptr 847 src/simh/sim_disk.c sim_printf ("%s%lu: creating new file (%s)\n", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr); cptr 871 src/simh/sim_disk.c remove (cptr); /* remove the create file */ cptr 884 src/simh/sim_disk.c remove (cptr); cptr 900 src/simh/sim_disk.c remove (cptr); /* remove the create file */ cptr 973 src/simh/sim_disk.c sim_printf ("%s%lu: The file system on the disk %s is larger than simulated device (%s > ", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr, sprint_capac (dptr, uptr)); cptr 983 src/simh/sim_disk.c sim_printf ("%s%lu: non expandable disk %s is smaller than simulated device (%s < ", sim_dname (dptr), (unsigned long)(uptr-dptr->units), cptr, sprint_capac (dptr, uptr)); cptr 1054 src/simh/sim_disk.c t_stat sim_disk_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr) cptr 70 src/simh/sim_disk.h t_stat sim_disk_attach (UNIT *uptr, const char *cptr, size_t sector_size, size_t xfer_element_size, t_bool dontautosize, cptr 73 src/simh/sim_disk.h t_stat sim_disk_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr); cptr 79 src/simh/sim_disk.h t_stat sim_disk_set_fmt (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 81 src/simh/sim_disk.h t_stat sim_disk_set_capac (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 488 src/simh/sim_sock.c int sim_parse_addr (const char *cptr, char *host, size_t host_len, const char *default_host, char *port, size_t port_len, const char *default_port, const char *validate_addr) cptr 500 src/simh/sim_sock.c if ((cptr == NULL) || (*cptr == 0)) { cptr 515 src/simh/sim_sock.c strncpy (gbuf, cptr, sizeof(gbuf)-1); cptr 652 src/simh/sim_sock.c int sim_parse_addr_ex (const char *cptr, char *host, size_t hostlen, const char *default_host, char *port, size_t port_len, char *localport, size_t localport_len, const char *default_port) cptr 658 src/simh/sim_sock.c hostp = strchr (cptr, ':'); cptr 662 src/simh/sim_sock.c if (localport_len > (size_t)(hostp-cptr)) cptr 663 src/simh/sim_sock.c localport_len = (size_t)(hostp-cptr); cptr 664 src/simh/sim_sock.c memcpy (localport, cptr, localport_len); cptr 668 src/simh/sim_sock.c return sim_parse_addr (cptr, host, hostlen, default_host, port, port_len, default_port, NULL); cptr 86 src/simh/sim_sock.h int sim_parse_addr (const char *cptr, char *host, size_t hostlen, const char *default_host, char *port, size_t port_len, const char *default_port, const char *validate_addr); cptr 88 src/simh/sim_sock.h int sim_parse_addr_ex (const char *cptr, char *host, size_t hostlen, const char *default_host, char *port, size_t port_len, char *localport, size_t local_port_len, const char *default_port); cptr 134 src/simh/sim_tape.c t_stat sim_tape_attach (UNIT *uptr, CONST char *cptr) cptr 140 src/simh/sim_tape.c return sim_tape_attach_ex (uptr, cptr, (dptr->flags & DEV_DEBUG) ? 0xFFFFFFFF : 0, 0); cptr 143 src/simh/sim_tape.c t_stat sim_tape_attach_ex (UNIT *uptr, const char *cptr, uint32 dbit, int completion_delay) cptr 155 src/simh/sim_tape.c cptr = get_glyph (cptr, gbuf, 0); /* get spec */ cptr 156 src/simh/sim_tape.c if (*cptr == 0) /* must be more */ cptr 165 src/simh/sim_tape.c r = attach_unit (uptr, (CONST char *)cptr); /* attach unit */ cptr 167 src/simh/sim_tape.c return sim_messagef (r, "Can't open tape image: %s\n", cptr); cptr 275 src/simh/sim_tape.c t_stat sim_tape_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr) cptr 1831 src/simh/sim_tape.c t_stat sim_tape_set_fmt (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 1839 src/simh/sim_tape.c if (cptr == NULL) cptr 1842 src/simh/sim_tape.c if (fmts[f].name && (strcmp (cptr, fmts[f].name) == 0)) { cptr 2011 src/simh/sim_tape.c t_stat sim_tape_set_capac (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 2016 src/simh/sim_tape.c if ((cptr == NULL) || (*cptr == 0)) cptr 2020 src/simh/sim_tape.c cap = (t_addr) get_uint (cptr, 10, sim_taddr_64? 2000000: 2000, &r); cptr 2065 src/simh/sim_tape.c t_stat sim_tape_set_dens (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 2081 src/simh/sim_tape.c if (cptr == NULL || *cptr == 0) /* but if no value is present */ cptr 2084 src/simh/sim_tape.c new_bpi = (uint32) get_uint (cptr, 10, UINT_MAX, &result); /* convert the string value */ cptr 156 src/simh/sim_tape.h t_stat sim_tape_attach_ex (UNIT *uptr, const char *cptr, uint32 dbit, int completion_delay); cptr 157 src/simh/sim_tape.h t_stat sim_tape_attach (UNIT *uptr, CONST char *cptr); cptr 159 src/simh/sim_tape.h t_stat sim_tape_attach_help(FILE *st, DEVICE *dptr, const UNIT *uptr, int32 flag, const char *cptr); cptr 198 src/simh/sim_tape.h t_stat sim_tape_set_fmt (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 200 src/simh/sim_tape.h t_stat sim_tape_set_capac (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 202 src/simh/sim_tape.h t_stat sim_tape_set_dens (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 567 src/simh/sim_timer.c t_stat sim_show_clock_queues (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr) cptr 604 src/simh/sim_timer.c t_stat sim_timer_clr_catchup (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 611 src/simh/sim_timer.c t_stat sim_timer_set_catchup (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 681 src/simh/sim_timer.c UNIT *cptr = sim_clock_cosched_queue[tmr]; cptr 682 src/simh/sim_timer.c sim_clock_cosched_queue[tmr] = cptr->next; cptr 683 src/simh/sim_timer.c cptr->next = NULL; cptr 684 src/simh/sim_timer.c cptr->cancel = NULL; cptr 685 src/simh/sim_timer.c _sim_activate (cptr, 0); cptr 847 src/simh/sim_timer.c UNIT *cptr = sim_clock_cosched_queue[tmr]; cptr 849 src/simh/sim_timer.c sim_clock_cosched_queue[tmr] = cptr->next; cptr 850 src/simh/sim_timer.c cptr->next = NULL; cptr 851 src/simh/sim_timer.c cptr->cancel = NULL; cptr 853 src/simh/sim_timer.c accum += cptr->time; cptr 854 src/simh/sim_timer.c _sim_activate (cptr, accum*rtc_currd[tmr]); cptr 948 src/simh/sim_timer.c UNIT *cptr; cptr 949 src/simh/sim_timer.c for (cptr = sim_clock_cosched_queue[tmr]; cptr 950 src/simh/sim_timer.c (cptr != QUEUE_LIST_END); cptr 951 src/simh/sim_timer.c cptr = cptr->next) cptr 952 src/simh/sim_timer.c if (cptr->next == (uptr)) { cptr 953 src/simh/sim_timer.c cptr->next = (uptr)->next; cptr 68 src/simh/sim_timer.h t_stat sim_show_clock_queues (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, CONST char *cptr); cptr 604 src/simh/sim_tmxr.c static TMLN *tmxr_get_ldsc (UNIT *uptr, const char *cptr, TMXR *mp, t_stat *status) cptr 620 src/simh/sim_tmxr.c else if (cptr == NULL) /* named line form, parameter supplied? */ cptr 624 src/simh/sim_tmxr.c ln = get_uint (cptr, 10, mp->lines - 1, &code); /* get line number */ cptr 2094 src/simh/sim_tmxr.c static int32 _tmln_speed_delta (CONST char *cptr) cptr 2124 src/simh/sim_tmxr.c nspeed = (uint32)strtotv (cptr, &cptr, 10); cptr 2125 src/simh/sim_tmxr.c if ((*cptr != '\0') && (*cptr != '-') && (*cptr != '*')) cptr 2143 src/simh/sim_tmxr.c CONST char *cptr; cptr 2152 src/simh/sim_tmxr.c lp->rxbps = (uint32)strtotv (speed, &cptr, 10); cptr 2153 src/simh/sim_tmxr.c if (*cptr == '*') { cptr 2154 src/simh/sim_tmxr.c uint32 rxbpsfactor = (uint32) get_uint (cptr+1, 10, 32, &r); cptr 2181 src/simh/sim_tmxr.c t_stat tmxr_open_master (TMXR *mp, CONST char *cptr) cptr 2188 src/simh/sim_tmxr.c CONST char *tptr = cptr; cptr 2227 src/simh/sim_tmxr.c cptr = tbuf; cptr 2228 src/simh/sim_tmxr.c if (!isdigit((unsigned char)*cptr)) { cptr 2230 src/simh/sim_tmxr.c CONST char *init_cptr = cptr; cptr 2232 src/simh/sim_tmxr.c cptr = get_glyph (cptr, gbuf, '='); cptr 2234 src/simh/sim_tmxr.c if ((NULL == cptr) || ('\0' == *cptr)) cptr 2236 src/simh/sim_tmxr.c nextline = (int32) get_uint (cptr, 10, mp->lines-1, &r); cptr 2238 src/simh/sim_tmxr.c return sim_messagef (SCPE_ARG, "Invalid Line Specifier: %s\n", cptr); cptr 2242 src/simh/sim_tmxr.c if ((NULL == cptr) || ('\0' == *cptr)) cptr 2244 src/simh/sim_tmxr.c strncpy(logfiletmpl, cptr, sizeof(logfiletmpl)-1); cptr 2248 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2249 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected Loopback Specifier: %s\n", cptr); cptr 2254 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2255 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected Unbuffered Specifier: %s\n", cptr); cptr 2260 src/simh/sim_tmxr.c if ((NULL == cptr) || ('\0' == *cptr)) cptr 2263 src/simh/sim_tmxr.c i = (int32) get_uint (cptr, 10, 1024*1024, &r); cptr 2265 src/simh/sim_tmxr.c return sim_messagef (SCPE_ARG, "Invalid Buffered Specifier: %s\n", cptr); cptr 2271 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2272 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected NoLog Specifier: %s\n", cptr); cptr 2277 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2278 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected NoModem Specifier: %s\n", cptr); cptr 2283 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2284 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected Modem Specifier: %s\n", cptr); cptr 2289 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2290 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected Datagram Specifier: %s\n", cptr); cptr 2295 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2296 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected Packet Specifier: %s\n", cptr); cptr 2301 src/simh/sim_tmxr.c if ((NULL != cptr) && ('\0' != *cptr)) cptr 2302 src/simh/sim_tmxr.c return sim_messagef (SCPE_2MARG, "Unexpected Stream Specifier: %s\n", cptr); cptr 2307 src/simh/sim_tmxr.c if ((NULL == cptr) || ('\0' == *cptr)) cptr 2309 src/simh/sim_tmxr.c (void)strcpy (destination, cptr); cptr 2313 src/simh/sim_tmxr.c if ((NULL == cptr) || ('\0' == *cptr) || cptr 2314 src/simh/sim_tmxr.c (_tmln_speed_delta (cptr) < 0)) cptr 2315 src/simh/sim_tmxr.c return sim_messagef (SCPE_ARG, "Invalid Speed Specifier: %s\n", (cptr ? cptr : "")); cptr 2316 src/simh/sim_tmxr.c (void)strcpy (speed, cptr); cptr 2319 src/simh/sim_tmxr.c cptr = get_glyph (gbuf, port, ';'); cptr 2322 src/simh/sim_tmxr.c if (cptr) { cptr 2323 src/simh/sim_tmxr.c char *tptr = gbuf + (cptr - gbuf); cptr 2324 src/simh/sim_tmxr.c (void)get_glyph (cptr, tptr, 0); /* upcase this string */ cptr 2325 src/simh/sim_tmxr.c if (0 == MATCH_CMD (cptr, "NOTELNET")) cptr 2328 src/simh/sim_tmxr.c if (0 == MATCH_CMD (cptr, "TELNET")) cptr 2333 src/simh/sim_tmxr.c cptr = init_cptr; cptr 2335 src/simh/sim_tmxr.c cptr = get_glyph_nc (cptr, port, ';'); cptr 2344 src/simh/sim_tmxr.c cptr = get_glyph (cptr, option, ';'); cptr 2345 src/simh/sim_tmxr.c (void)cptr; cptr 2946 src/simh/sim_tmxr.c static t_stat _tmxr_locate_line_send_expect (const char *cptr, SEND **snd, EXPECT **exp) cptr 2957 src/simh/sim_tmxr.c cptr = get_glyph(cptr, gbuf, ':'); cptr 2964 src/simh/sim_tmxr.c int line = (int)get_uint (cptr, 10, tmxr_open_devices[i]->lines, &r); cptr 2976 src/simh/sim_tmxr.c t_stat tmxr_locate_line_send (const char *cptr, SEND **snd) cptr 2978 src/simh/sim_tmxr.c return _tmxr_locate_line_send_expect (cptr, snd, NULL); cptr 2981 src/simh/sim_tmxr.c t_stat tmxr_locate_line_expect (const char *cptr, EXPECT **exp) cptr 2983 src/simh/sim_tmxr.c return _tmxr_locate_line_send_expect (cptr, NULL, exp); cptr 2993 src/simh/sim_tmxr.c t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, CONST char *cptr, t_bool async) cptr 2998 src/simh/sim_tmxr.c r = tmxr_open_master (mp, cptr); /* open master socket */ cptr 3228 src/simh/sim_tmxr.c t_stat tmxr_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr) cptr 3656 src/simh/sim_tmxr.c t_stat tmxr_dscln (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 3665 src/simh/sim_tmxr.c lp = tmxr_get_ldsc (uptr, cptr, mp, &status); /* get referenced line */ cptr 3682 src/simh/sim_tmxr.c t_stat tmxr_set_log (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 3688 src/simh/sim_tmxr.c if (cptr == NULL) /* no file name? */ cptr 3698 src/simh/sim_tmxr.c strncpy (lp->txlogname, cptr, CBUFSIZE-1); /* save file name */ cptr 3699 src/simh/sim_tmxr.c r = sim_open_logfile (cptr, TRUE, &lp->txlog, &lp->txlogref); /* open log */ cptr 3715 src/simh/sim_tmxr.c t_stat tmxr_set_nolog (UNIT *uptr, int32 val, CONST char *cptr, void *desc) cptr 3720 src/simh/sim_tmxr.c if (cptr) /* no arguments */ cptr 3785 src/simh/sim_tmxr.c CONST char *cptr; cptr 3818 src/simh/sim_tmxr.c cptr = tbuf; cptr 3820 src/simh/sim_tmxr.c while (*cptr) { /* parse command string */ cptr 3821 src/simh/sim_tmxr.c cptr = get_range (NULL, cptr, &low, &high, 10, max, ';');/* get a line range */ cptr 3823 src/simh/sim_tmxr.c if (cptr == NULL) { /* parsing error? */ cptr 230 src/simh/sim_tmxr.h t_stat tmxr_open_master (TMXR *mp, CONST char *cptr); cptr 232 src/simh/sim_tmxr.h t_stat tmxr_attach_ex (TMXR *mp, UNIT *uptr, CONST char *cptr, t_bool async); cptr 234 src/simh/sim_tmxr.h t_stat tmxr_attach_help(FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, const char *cptr); cptr 252 src/simh/sim_tmxr.h t_stat tmxr_set_log (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 253 src/simh/sim_tmxr.h t_stat tmxr_set_nolog (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 255 src/simh/sim_tmxr.h t_stat tmxr_dscln (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 260 src/simh/sim_tmxr.h t_stat tmxr_set_lnorder (UNIT *uptr, int32 val, CONST char *cptr, void *desc); cptr 284 src/simh/sim_tmxr.h # define tmxr_attach(mp, uptr, cptr) tmxr_attach_ex(mp, uptr, cptr, FALSE)