gbuf 1034 src/dps8/dps8_console.c char gbuf[simh_buffer_sz]; gbuf 1035 src/dps8/dps8_console.c cptr = (char *) get_glyph (cptr, gbuf, 0); /* get command glyph */ gbuf 1036 src/dps8/dps8_console.c if (strlen (gbuf)) gbuf 1039 src/dps8/dps8_console.c if ((cmdp = find_cmd (gbuf))) /* lookup command */ gbuf 1752 src/dps8/dps8_sys.c char gbuf[257]; gbuf 1753 src/dps8/dps8_sys.c const char * cptr = get_glyph (text, gbuf, 0); /* get command glyph */ gbuf 1755 src/dps8/dps8_sys.c if ((cmdp = find_cmd (gbuf))) /* lookup command */ gbuf 570 src/dps8/udplib.c char gbuf[CBUFSIZE]; gbuf 581 src/dps8/udplib.c gbuf[sizeof(gbuf)-1] = '\0'; gbuf 582 src/dps8/udplib.c strncpy (gbuf, cptr, sizeof(gbuf)-1); gbuf 583 src/dps8/udplib.c hostp = gbuf; /* default addr */ gbuf 585 src/dps8/udplib.c if ((portp = strrchr (gbuf, ':')) && /* x:y? split */ gbuf 592 src/dps8/udplib.c portp = gbuf; /* Input is the port specifier */ gbuf 618 src/dps8/udplib.c strncpy(gbuf, hostp+1, sizeof(gbuf)-1); /* remove brackets from domain literal host */ gbuf 619 src/dps8/udplib.c hostp = gbuf; gbuf 2133 src/simh/scp.c char cbuf[4*CBUFSIZE], gbuf[CBUFSIZE]; gbuf 2158 src/simh/scp.c cptr = get_glyph_cmd (cptr, gbuf); /* get command glyph */ gbuf 2160 src/simh/scp.c if ((cmdp = find_cmd (gbuf))) /* lookup command */ gbuf 2185 src/simh/scp.c char gbuf[CBUFSIZE], *gptr; gbuf 2190 src/simh/scp.c cptr = get_glyph_nc (cptr, gbuf, '"'); /* get quote delimited token */ gbuf 2191 src/simh/scp.c if (gbuf[0] == '\0') { /* Token started with quote */ gbuf 2192 src/simh/scp.c gbuf[sizeof (gbuf)-1] = '\0'; gbuf 2193 src/simh/scp.c strncpy (gbuf, cptr, sizeof (gbuf)-1); gbuf 2194 src/simh/scp.c gptr = strchr (gbuf, '"'); gbuf 2198 src/simh/scp.c sim_prompt = (char *)realloc (sim_prompt, strlen (gbuf) + 2); /* nul terminator and trailing blank */ gbuf 2211 src/simh/scp.c (void)sprintf (sim_prompt, "%s ", gbuf); gbuf 2217 src/simh/scp.c CTAB *find_cmd (const char *gbuf) gbuf 2222 src/simh/scp.c cmdp = find_ctab (sim_vm_cmd, gbuf); gbuf 2224 src/simh/scp.c cmdp = find_ctab (cmd_table, gbuf); gbuf 2607 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 2628 src/simh/scp.c (void)fprintf (st, "The default breakpoint type is: %s\n", put_switches (gbuf, sizeof(gbuf), sim_brk_dflt)); gbuf 2634 src/simh/scp.c (void)fprintf (st, " %s %s\n", put_switches (gbuf, sizeof(gbuf), brkt->btyp), brkt->desc); gbuf 2637 src/simh/scp.c (void)fprintf (st, "The default breakpoint type is: %s\n", put_switches (gbuf, sizeof(gbuf), sim_brk_dflt)); gbuf 2642 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 2646 src/simh/scp.c (void)get_glyph (cptr, gbuf, 0); gbuf 2647 src/simh/scp.c if ((cmdp = find_cmd (gbuf))) { gbuf 2676 src/simh/scp.c if (MATCH_CMD (gbuf, "REGISTERS") == 0) { gbuf 2682 src/simh/scp.c (void)fprintf (st, "No %s HELP is available for the %s device\n", gbuf, dptr->name); gbuf 2719 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 2726 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 2727 src/simh/scp.c if ((cmdp = find_cmd (gbuf))) { gbuf 2733 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 2734 src/simh/scp.c dptr = find_unit (gbuf, &uptr); gbuf 2736 src/simh/scp.c dptr = find_dev (gbuf); gbuf 2745 src/simh/scp.c if ((cmdp = find_ctab (set_glob_tab, gbuf)) && gbuf 2750 src/simh/scp.c SHTAB *shptr = find_shtab (show_glob_tab, gbuf); gbuf 2823 src/simh/scp.c dptr = find_unit (gbuf, &uptr); gbuf 2825 src/simh/scp.c dptr = find_dev (gbuf); gbuf 2910 src/simh/scp.c char cbuf[4*CBUFSIZE], gbuf[CBUFSIZE], abuf[4*CBUFSIZE], quote, *c, *do_arg[11]; gbuf 2995 src/simh/scp.c cptr = get_glyph (cbuf, gbuf, 0); /* get command glyph */ gbuf 2996 src/simh/scp.c cmdp = find_cmd (gbuf); /* return the errorStage things to the stat will be returned */ gbuf 3023 src/simh/scp.c cptr = get_glyph_cmd (cptr, gbuf); /* get command glyph */ gbuf 3027 src/simh/scp.c if ((cmdp = find_cmd (gbuf))) { /* lookup command */ gbuf 3168 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3239 src/simh/scp.c (void)get_glyph_nc (ip+1, gbuf, '%'); /* first try using the literal name */ gbuf 3240 src/simh/scp.c ap = getenv(gbuf); gbuf 3242 src/simh/scp.c (void)get_glyph (ip+1, gbuf, '%'); /* now try using the upcased name */ gbuf 3243 src/simh/scp.c ap = getenv(gbuf); gbuf 3245 src/simh/scp.c ip += 1 + strlen (gbuf); gbuf 3249 src/simh/scp.c if (!strcmp ("DATE", gbuf)) { gbuf 3256 src/simh/scp.c else if (!strcmp ("TIME", gbuf)) { gbuf 3263 src/simh/scp.c else if (!strcmp ("DATETIME", gbuf)) { gbuf 3274 src/simh/scp.c if (!strcmp ("LDATE", gbuf)) { gbuf 3278 src/simh/scp.c else if (!strcmp ("LTIME", gbuf)) { gbuf 3282 src/simh/scp.c else if (!strcmp ("CTIME", gbuf)) { gbuf 3287 src/simh/scp.c else if (!strcmp ("DATE_YYYY", gbuf)) {/* Year (0000-9999) */ gbuf 3291 src/simh/scp.c else if (!strcmp ("DATE_YY", gbuf)) {/* Year (00-99) */ gbuf 3295 src/simh/scp.c else if (!strcmp ("DATE_YC", gbuf)) {/* Century (year/100) */ gbuf 3299 src/simh/scp.c else if ((!strcmp ("DATE_19XX_YY", gbuf)) || /* Year with same calendar */ gbuf 3300 src/simh/scp.c (!strcmp ("DATE_19XX_YYYY", gbuf))) { gbuf 3310 src/simh/scp.c if (!strcmp ("DATE_19XX_YY", gbuf)) gbuf 3316 src/simh/scp.c else if (!strcmp ("DATE_MM", gbuf)) {/* Month number (01-12) */ gbuf 3320 src/simh/scp.c else if (!strcmp ("DATE_MMM", gbuf)) {/* Month number (01-12) */ gbuf 3324 src/simh/scp.c else if (!strcmp ("DATE_DD", gbuf)) {/* Day of Month (01-31) */ gbuf 3328 src/simh/scp.c else if (!strcmp ("DATE_D", gbuf)) { /* ISO 8601 weekday number (1-7) */ gbuf 3332 src/simh/scp.c else if ((!strcmp ("DATE_WW", gbuf)) || /* ISO 8601 week number (01-53) */ gbuf 3333 src/simh/scp.c (!strcmp ("DATE_WYYYY", gbuf))) {/* ISO 8601 week year number (0000-9999) */ gbuf 3347 src/simh/scp.c if (!strcmp ("DATE_WW", gbuf)) gbuf 3353 src/simh/scp.c else if (!strcmp ("DATE_JJJ", gbuf)) {/* day of year (001-366) */ gbuf 3357 src/simh/scp.c else if (!strcmp ("TIME_HH", gbuf)) {/* Hour of day (00-23) */ gbuf 3361 src/simh/scp.c else if (!strcmp ("TIME_MM", gbuf)) {/* Minute of hour (00-59) */ gbuf 3365 src/simh/scp.c else if (!strcmp ("TIME_SS", gbuf)) {/* Second of minute (00-59) */ gbuf 3369 src/simh/scp.c else if (!strcmp ("STATUS", gbuf)) { gbuf 3373 src/simh/scp.c else if (!strcmp ("TSTATUS", gbuf)) { gbuf 3377 src/simh/scp.c else if (!strcmp ("SIM_VERIFY", gbuf)) { gbuf 3381 src/simh/scp.c else if (!strcmp ("SIM_VERBOSE", gbuf)) { gbuf 3385 src/simh/scp.c else if (!strcmp ("SIM_LOCALOPC", gbuf)) { gbuf 3389 src/simh/scp.c else if (!strcmp ("SIM_QUIET", gbuf)) { gbuf 3393 src/simh/scp.c else if (!strcmp ("SIM_MESSAGE", gbuf)) { gbuf 3397 src/simh/scp.c else if (!strcmp ("HOSTID", gbuf)) { gbuf 3405 src/simh/scp.c else if (!strcmp ("UID", gbuf)) { gbuf 3413 src/simh/scp.c else if (!strcmp ("GID", gbuf)) { gbuf 3421 src/simh/scp.c else if (!strcmp ("EUID", gbuf)) { gbuf 3429 src/simh/scp.c else if (!strcmp ("EGID", gbuf)) { gbuf 3437 src/simh/scp.c else if (!strcmp ("PID", gbuf)) { gbuf 3445 src/simh/scp.c else if (!strcmp ("PPID", gbuf)) { gbuf 3453 src/simh/scp.c else if (!strcmp ("PGID", gbuf)) { gbuf 3461 src/simh/scp.c else if (!strcmp ("SID", gbuf)) { gbuf 3469 src/simh/scp.c else if (!strcmp ("ENDIAN", gbuf)) { gbuf 3479 src/simh/scp.c else if (!strcmp("SIM_NAME", gbuf)) { gbuf 3483 src/simh/scp.c else if (!strcmp("SIM_VERSION", gbuf)) { gbuf 3491 src/simh/scp.c else if (!strcmp("SIM_HASH", gbuf)) { gbuf 3499 src/simh/scp.c else if (!strcmp("SIM_RELT", gbuf)) { gbuf 3507 src/simh/scp.c else if (!strcmp("SIM_DATE", gbuf)) { gbuf 3515 src/simh/scp.c else if ( (!strcmp("CPUS", gbuf)) \ gbuf 3516 src/simh/scp.c || (!strcmp("SIM_PROCESSORS", gbuf) ) ) { gbuf 3558 src/simh/scp.c char gbuf[CBUFSIZE], gbuf2[CBUFSIZE]; gbuf 3581 src/simh/scp.c tptr = get_glyph (cptr, gbuf, 0); /* get token */ gbuf 3582 src/simh/scp.c if (!strcmp (gbuf, "NOT")) { /* Conditional Inversion? */ gbuf 3610 src/simh/scp.c tptr = (CONST char *)get_glyph_gen (cptr, gbuf, '=', (sim_switches & SWMASK ('I')), TRUE, '\\'); gbuf 3614 src/simh/scp.c cptr += strlen (gbuf); gbuf 3636 src/simh/scp.c result = sim_cmp_string (gbuf, gbuf2); gbuf 3642 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get register */ gbuf 3643 src/simh/scp.c rptr = find_reg (gbuf, &gptr, sim_dfdev); /* parse register */ gbuf 3659 src/simh/scp.c addr = sim_vm_parse_addr (sim_dfdev, gbuf, &gptr); gbuf 3661 src/simh/scp.c addr = (t_addr) strtotv (gbuf, &gptr, sim_dfdev ? sim_dfdev->dradix : sim_dflt_dev->dradix); //-V547 gbuf 3662 src/simh/scp.c if (gbuf == gptr) /* error? */ gbuf 3666 src/simh/scp.c (void)get_glyph (gptr, gbuf, 0); gbuf 3670 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get search cond */ gbuf 3685 src/simh/scp.c if (!get_rsearch (gbuf, rptr->radix, &sim_stabr) || /* parse condition */ gbuf 3700 src/simh/scp.c if (!get_asearch (gbuf, sim_dfdev->dradix, &sim_staba) || /* parse condition */ gbuf 3727 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3737 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 3738 src/simh/scp.c if (sim_isalpha(gbuf[0]) && (strchr (gbuf, ':'))) { gbuf 3739 src/simh/scp.c r = tmxr_locate_line_send (gbuf, &snd); gbuf 3743 src/simh/scp.c tptr = get_glyph (tptr, gbuf, ','); gbuf 3749 src/simh/scp.c if ((!strncmp(gbuf, "DELAY=", 6)) && (gbuf[6])) { gbuf 3750 src/simh/scp.c delay = (uint32)get_uint (&gbuf[6], 10, 2000000000, &r); gbuf 3754 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 3757 src/simh/scp.c if ((!strncmp(gbuf, "AFTER=", 6)) && (gbuf[6])) { gbuf 3758 src/simh/scp.c after = (uint32)get_uint (&gbuf[6], 10, 2000000000, &r); gbuf 3762 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 3772 src/simh/scp.c cptr = get_glyph_quoted (cptr, gbuf, 0); gbuf 3776 src/simh/scp.c if (SCPE_OK != sim_decode_quoted_string (gbuf, dbuf, &dsize)) gbuf 3786 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3791 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 3792 src/simh/scp.c if (sim_isalpha(gbuf[0]) && (strchr (gbuf, ':'))) { gbuf 3793 src/simh/scp.c r = tmxr_locate_line_send (gbuf, &snd); gbuf 3807 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3812 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 3813 src/simh/scp.c if (sim_isalpha(gbuf[0]) && (strchr (gbuf, ':'))) { gbuf 3831 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3836 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 3837 src/simh/scp.c if (sim_isalpha(gbuf[0]) && (strchr (gbuf, ':'))) { gbuf 3838 src/simh/scp.c r = tmxr_locate_line_expect (gbuf, &exp); gbuf 3847 src/simh/scp.c tptr = get_glyph_quoted (cptr, gbuf, 0); gbuf 3852 src/simh/scp.c return sim_exp_show (st, exp, gbuf); gbuf 3859 src/simh/scp.c char cbuf[CBUFSIZE], gbuf[CBUFSIZE], gbuf1[CBUFSIZE]; gbuf 3880 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get label glyph */ gbuf 3881 src/simh/scp.c if (0 == strcmp(gbuf, gbuf1)) { gbuf 3929 src/simh/scp.c char cbuf[2*CBUFSIZE], gbuf[CBUFSIZE]; gbuf 3933 src/simh/scp.c cptr = get_glyph (fcptr, gbuf, 0); gbuf 3934 src/simh/scp.c if ('\0' == gbuf[0]) return SCPE_ARG; /* unspecified goto target */ gbuf 3937 src/simh/scp.c return do_cmd_label (flag, cbuf, gbuf); gbuf 3944 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3947 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 3948 src/simh/scp.c if ('\0' == gbuf[0]) return SCPE_ARG; /* unspecified condition */ gbuf 3949 src/simh/scp.c if (0 == strcmp("ERROR", gbuf)) gbuf 3952 src/simh/scp.c if (SCPE_OK != sim_string_to_stat (gbuf, &cond)) gbuf 3991 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 3993 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get command glyph */ gbuf 3994 src/simh/scp.c if (((MATCH_CMD(gbuf,"INHERIT")) && gbuf 3995 src/simh/scp.c (MATCH_CMD(gbuf,"NOINHERIT"))) || //-V600 gbuf 3998 src/simh/scp.c if ((gbuf[0]) && (0 == MATCH_CMD(gbuf,"INHERIT"))) //-V560 gbuf 4000 src/simh/scp.c if ((gbuf[0]) && (0 == MATCH_CMD(gbuf,"NOINHERIT"))) //-V560 gbuf 4088 src/simh/scp.c char gbuf[CBUFSIZE], *cvptr; gbuf 4099 src/simh/scp.c cptr = get_glyph (svptr = cptr, gbuf, 0); /* get glob/dev/unit */ gbuf 4101 src/simh/scp.c if ((dptr = find_dev (gbuf))) { /* device match? */ gbuf 4107 src/simh/scp.c else if ((dptr = find_unit (gbuf, &uptr))) { /* unit match? */ gbuf 4114 src/simh/scp.c else if ((gcmdp = find_ctab (set_glob_tab, gbuf))) { /* global? */ gbuf 4120 src/simh/scp.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 4123 src/simh/scp.c if (mptr->mstring && (MATCH_CMD (gbuf, mptr->mstring) == 0)) { gbuf 4142 src/simh/scp.c cptr = get_glyph (svptr = cptr, gbuf, ','); /* get modifier */ gbuf 4143 src/simh/scp.c if (0 == strcmp (gbuf, ";")) gbuf 4145 src/simh/scp.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 4149 src/simh/scp.c (MATCH_CMD (gbuf, mptr->mstring) == 0)) { /* matches option? */ gbuf 4157 src/simh/scp.c svptr = get_glyph_quoted (svptr, gbuf, ','); gbuf 4158 src/simh/scp.c if ((cvptr = strchr (gbuf, '='))) { gbuf 4165 src/simh/scp.c (void)get_glyph_nc (svptr, gbuf, ','); gbuf 4166 src/simh/scp.c if ((cvptr = strchr (gbuf, '='))) gbuf 4195 src/simh/scp.c if ((glbr = find_c1tab (ctbr, gbuf))) { /* global match? */ gbuf 4210 src/simh/scp.c CTAB *find_ctab (CTAB *tab, const char *gbuf) gbuf 4215 src/simh/scp.c if (MATCH_CMD (gbuf, tab->name) == 0) gbuf 4221 src/simh/scp.c C1TAB *find_c1tab (C1TAB *tab, const char *gbuf) gbuf 4226 src/simh/scp.c if (MATCH_CMD (gbuf, tab->name) == 0) gbuf 4296 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 4312 src/simh/scp.c cptr = get_glyph (cptr, gbuf, ';'); /* get debug flag */ gbuf 4314 src/simh/scp.c if (strcmp (dep->name, gbuf) == 0) { /* match? */ gbuf 4354 src/simh/scp.c char gbuf[CBUFSIZE], *cvptr; gbuf 4364 src/simh/scp.c cptr = get_glyph (svptr = cptr, gbuf, 0); /* get next glyph */ gbuf 4366 src/simh/scp.c if ((dptr = find_dev (gbuf))) { /* device match? */ gbuf 4372 src/simh/scp.c else if ((dptr = find_unit (gbuf, &uptr))) { /* unit match? */ gbuf 4374 src/simh/scp.c return sim_messagef (SCPE_NXUN, "Non-existent unit: %s\n", gbuf); gbuf 4376 src/simh/scp.c return sim_messagef (SCPE_UDIS, "Unit disabled: %s\n", gbuf); gbuf 4381 src/simh/scp.c else if ((shptr = find_shtab (show_glob_tab, gbuf))) { /* global? */ gbuf 4387 src/simh/scp.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 4391 src/simh/scp.c (mptr->pstring && (MATCH_CMD (gbuf, mptr->pstring) == 0))) || //-V600 gbuf 4392 src/simh/scp.c (!(mptr->mask & MTAB_VDV) && (mptr->mstring && (MATCH_CMD (gbuf, mptr->mstring) == 0)))) { gbuf 4403 src/simh/scp.c if (sim_dflt_dev && (shptr = find_shtab (show_dev_tab, gbuf))) /* global match? */ gbuf 4406 src/simh/scp.c return sim_messagef (SCPE_NXDEV, "Non-existent device: %s\n", gbuf);/* no match */ gbuf 4418 src/simh/scp.c cptr = get_glyph (cptr, gbuf, ','); /* get modifier */ gbuf 4419 src/simh/scp.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 4425 src/simh/scp.c (MATCH_CMD (gbuf, mptr->pstring) == 0)) gbuf 4428 src/simh/scp.c return sim_messagef (SCPE_ARG, "Invalid Argument: %s=%s\n", gbuf, cvptr); gbuf 4434 src/simh/scp.c if (shtb && (shptr = find_shtab (shtb, gbuf))) {/* global match? */ gbuf 4445 src/simh/scp.c return sim_messagef (SCPE_NXPAR, "Non-existent parameter: %s\n", gbuf); gbuf 4452 src/simh/scp.c SHTAB *find_shtab (SHTAB *tab, const char *gbuf) gbuf 4457 src/simh/scp.c if (MATCH_CMD (gbuf, tab->name) == 0) gbuf 5827 src/simh/scp.c char gbuf[CBUFSIZE], *aptr, abuf[4*CBUFSIZE]; gbuf 5856 src/simh/scp.c cptr = get_glyph (cptr, gbuf, ','); gbuf 5857 src/simh/scp.c tptr = get_range (dptr, gbuf, &lo, &hi, dptr->aradix, max, 0); gbuf 5859 src/simh/scp.c return sim_messagef (SCPE_ARG, "Invalid address specifier: %s\n", gbuf); gbuf 5920 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 5927 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 5930 src/simh/scp.c if (strcmp (gbuf, "ALL") == 0) gbuf 5932 src/simh/scp.c dptr = find_dev (gbuf); /* locate device */ gbuf 5998 src/simh/scp.c char gbuf[4*CBUFSIZE]; gbuf 6006 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6010 src/simh/scp.c dptr = find_unit (gbuf, &uptr); /* locate unit */ gbuf 6026 src/simh/scp.c gbuf[sizeof(gbuf)-1] = '\0'; gbuf 6027 src/simh/scp.c strncpy (gbuf, cptr, sizeof(gbuf)-1); gbuf 6028 src/simh/scp.c sim_trim_endspc (gbuf); /* trim trailing spc */ gbuf 6029 src/simh/scp.c return scp_attach_unit (dptr, uptr, gbuf); /* attach */ gbuf 6146 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 6153 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6156 src/simh/scp.c if (strcmp (gbuf, "ALL") == 0) gbuf 6158 src/simh/scp.c dptr = find_unit (gbuf, &uptr); /* locate unit */ gbuf 6285 src/simh/scp.c char gbuf[CBUFSIZE] = ""; gbuf 6300 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6301 src/simh/scp.c if (MATCH_CMD (gbuf, "UNTIL") != 0) { gbuf 6303 src/simh/scp.c pcv = sim_vm_parse_addr (sim_dflt_dev, gbuf, &tptr); gbuf 6304 src/simh/scp.c else pcv = strtotv (gbuf, &tptr, sim_PC->radix);/* parse PC */ gbuf 6305 src/simh/scp.c if ((tptr == gbuf) || (*tptr != 0) || /* error? */ gbuf 6316 src/simh/scp.c if ((*cptr) || (MATCH_CMD (gbuf, "UNTIL") == 0)) { //-V600 /* should be end */ gbuf 6319 src/simh/scp.c if (MATCH_CMD (gbuf, "UNTIL") != 0) gbuf 6320 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6321 src/simh/scp.c if (MATCH_CMD (gbuf, "UNTIL") != 0) gbuf 6323 src/simh/scp.c (flag == RU_RUN) ? "RUN" : "GO", gbuf, cptr); gbuf 6353 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6356 src/simh/scp.c sim_step = (int32) get_uint (gbuf, 10, INT_MAX, &r); gbuf 6368 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6371 src/simh/scp.c sim_next = (int32) get_uint (gbuf, 10, INT_MAX, &r); gbuf 6387 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get next glyph */ gbuf 6390 src/simh/scp.c dptr = find_unit (gbuf, &uptr); /* locate unit */ gbuf 6686 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 6706 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get list */ gbuf 6712 src/simh/scp.c for (gptr = gbuf, reason = SCPE_OK; gbuf 7005 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 7012 src/simh/scp.c cptr = read_line (gbuf, sizeof(gbuf), stdin); gbuf 7227 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 7232 src/simh/scp.c cptr = read_line (gbuf, sizeof(gbuf), stdin); gbuf 8097 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 8100 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); /* get switch glyph */ gbuf 8101 src/simh/scp.c lsw = get_switches (gbuf); /* parse */ gbuf 8122 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 8205 src/simh/scp.c cptr = get_glyph (cptr + 1, gbuf, 0); gbuf 8206 src/simh/scp.c sim_ofile = sim_fopen (gbuf, "a"); /* open for append */ gbuf 8214 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 8215 src/simh/scp.c if ((t = get_switches (gbuf)) != 0) { /* try for switches */ gbuf 8223 src/simh/scp.c get_rsearch (gbuf, sim_dfdev->dradix, &sim_stabr)) { /* try for search */ gbuf 8225 src/simh/scp.c sim_schaptr = get_asearch (gbuf, sim_dfdev->dradix, &sim_staba);/* populate memory version of the same expression */ gbuf 8230 src/simh/scp.c (tdptr = find_unit (gbuf, &tuptr)) && /* try for default */ gbuf 8352 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 8365 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 8366 src/simh/scp.c reason = parse_sym (gbuf, 0, sim_dfunit, logval, sim_switches); gbuf 8379 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 8380 src/simh/scp.c reason = parse_sym (gbuf, 0, sim_dfunit, cmpval, sim_switches); gbuf 9181 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 9183 src/simh/scp.c return sim_messagef (SCPE_NOFNC, "Unknown breakpoint type; %s\n", put_switches(gbuf, sizeof(gbuf), sw & ~sim_brk_types)); gbuf 9597 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 9619 src/simh/scp.c tptr = get_glyph (cptr, gbuf, ','); gbuf 9620 src/simh/scp.c if ((!strncmp(gbuf, "HALTAFTER=", 10)) && (gbuf[10])) { gbuf 9621 src/simh/scp.c after = (uint32)get_uint (&gbuf[10], 10, 2000000000, &r); gbuf 9629 src/simh/scp.c cptr = get_glyph_quoted (cptr, gbuf, 0); gbuf 9631 src/simh/scp.c return sim_exp_set (exp, gbuf, cnt, (after_set ? after : exp->after), sim_switches, cptr); gbuf 9638 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 9644 src/simh/scp.c cptr = get_glyph_quoted (cptr, gbuf, 0); gbuf 9647 src/simh/scp.c return sim_exp_clr (exp, gbuf); /* clear one rule */ gbuf 10139 src/simh/scp.c char gbuf[CBUFSIZE]; gbuf 10143 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 10144 src/simh/scp.c if (0 == memcmp("SCPE_", gbuf, 5)) gbuf 10145 src/simh/scp.c memmove (gbuf, gbuf + 5, 1 + strlen (gbuf + 5)); /* skip leading SCPE_ */ gbuf 10147 src/simh/scp.c if (0 == strcmp(scp_errors[cond].code, gbuf)) { gbuf 10151 src/simh/scp.c if (0 == strcmp(gbuf, "OK")) gbuf 10154 src/simh/scp.c unsigned long numeric_cond = strtol(gbuf, NULL, 0); gbuf 11181 src/simh/scp.c char cbuf [CBUFSIZE], gbuf[CBUFSIZE]; gbuf 11271 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 11272 src/simh/scp.c if (!gbuf[0]) gbuf 11274 src/simh/scp.c if (!strcmp (gbuf, "HELP")) { /* HELP (about help) */ gbuf 11279 src/simh/scp.c match = matchHelpTopicName (topic, gbuf); gbuf 11287 src/simh/scp.c (void)fprintf (st, "\n%s is ambiguous in %s\n", gbuf, topic->title); gbuf 11291 src/simh/scp.c (void)fprintf (st, "\n%s is not available in %s\n", gbuf, topic->title); gbuf 11375 src/simh/scp.c cptr = get_glyph (cptr, gbuf, 0); gbuf 11376 src/simh/scp.c if (!strcmp (gbuf, "*")) { /* Wildcard */ gbuf 11378 src/simh/scp.c gbuf[0] = '\0'; /* Displayed all subtopics, go up */ gbuf 11380 src/simh/scp.c if (!gbuf[0]) { /* Blank, up a level */ gbuf 11386 src/simh/scp.c if (!strcmp (gbuf, "?")) /* ?, repaint current topic */ gbuf 11388 src/simh/scp.c if (!strcmp (gbuf, "HELP")) { /* HELP (about help) */ gbuf 11392 src/simh/scp.c if (!strcmp (gbuf, "EXIT") || !strcmp (gbuf, "QUIT")) /* EXIT (help) */ gbuf 11402 src/simh/scp.c match = matchHelpTopicName (topic, gbuf); gbuf 11404 src/simh/scp.c (void)fprintf (st, "%s is ambiguous, please type more of the topic name\n", gbuf); gbuf 11410 src/simh/scp.c (void)fprintf (st, "Help for %s is not available\n", gbuf); gbuf 164 src/simh/scp.h CTAB *find_cmd (const char *gbuf); gbuf 171 src/simh/scp.h CTAB *find_ctab (CTAB *tab, const char *gbuf); gbuf 172 src/simh/scp.h C1TAB *find_c1tab (C1TAB *tab, const char *gbuf); gbuf 173 src/simh/scp.h SHTAB *find_shtab (SHTAB *tab, const char *gbuf); gbuf 285 src/simh/sim_console.c char *cvptr, gbuf[CBUFSIZE]; gbuf 292 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */ gbuf 293 src/simh/sim_console.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 295 src/simh/sim_console.c (void)get_glyph (gbuf, gbuf, 0); /* modifier to UC */ gbuf 296 src/simh/sim_console.c if ((ctptr = find_ctab (set_con_tab, gbuf))) { /* match? */ gbuf 310 src/simh/sim_console.c char gbuf[CBUFSIZE]; gbuf 320 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, ','); /* get modifier */ gbuf 321 src/simh/sim_console.c if ((shptr = find_shtab (show_con_tab, gbuf))) gbuf 374 src/simh/sim_console.c char *cvptr, gbuf[CBUFSIZE]; gbuf 381 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */ gbuf 382 src/simh/sim_console.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 384 src/simh/sim_console.c (void)get_glyph (gbuf, gbuf, 0); /* modifier to UC */ gbuf 385 src/simh/sim_console.c if ((ctptr = find_ctab (set_rem_con_tab, gbuf))) { /* match? */ gbuf 618 src/simh/sim_console.c char cbuf[4*CBUFSIZE], gbuf[CBUFSIZE], *argv[1] = {NULL}; gbuf 628 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, 0); /* get command glyph */ gbuf 629 src/simh/sim_console.c sim_rem_active_command = find_cmd (gbuf); /* find command */ gbuf 634 src/simh/sim_console.c stat = _sim_rem_message (gbuf, stat); /* display results */ gbuf 653 src/simh/sim_console.c char cbuf[4*CBUFSIZE], gbuf[CBUFSIZE], *argv[1] = {NULL}; gbuf 900 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, 0); /* get command glyph */ gbuf 913 src/simh/sim_console.c basecmdp = find_cmd (gbuf); /* validate basic command */ gbuf 915 src/simh/sim_console.c if ((gbuf[0] == ';') || (gbuf[0] == '#')) { /* ignore comment */ gbuf 929 src/simh/sim_console.c allowed_remote_cmds), gbuf))) { /* lookup command */ gbuf 939 src/simh/sim_console.c cptr = get_glyph (cptr, gbuf, 0);/* get next glyph */ gbuf 943 src/simh/sim_console.c steps = (int32) get_uint (gbuf, 10, INT_MAX, &stat); gbuf 971 src/simh/sim_console.c stat = _sim_rem_message (gbuf, stat); gbuf 1312 src/simh/sim_console.c char gbuf[CBUFSIZE]; gbuf 1318 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */ gbuf 1322 src/simh/sim_console.c r = sim_open_logfile (gbuf, (sim_switches & SWMASK ('B')) == SWMASK ('B'), gbuf 1369 src/simh/sim_console.c char gbuf[CBUFSIZE]; gbuf 1376 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, 0); /* get file name */ gbuf 1379 src/simh/sim_console.c r = sim_open_logfile (gbuf, FALSE, &sim_deb, &sim_deb_ref); gbuf 1501 src/simh/sim_console.c char *cvptr, gbuf[CBUFSIZE]; gbuf 1508 src/simh/sim_console.c cptr = get_glyph_nc (cptr, gbuf, ','); /* get modifier */ gbuf 1509 src/simh/sim_console.c if ((cvptr = strchr (gbuf, '='))) /* = value? */ gbuf 1511 src/simh/sim_console.c (void)get_glyph (gbuf, gbuf, 0); /* modifier to UC */ gbuf 1512 src/simh/sim_console.c if ((ctptr = find_ctab (set_con_telnet_tab, gbuf))) { /* match? */ gbuf 1520 src/simh/sim_console.c r = tmxr_attach (&sim_con_tmxr, &sim_con_unit, gbuf);/* open master socket */ gbuf 1646 src/simh/sim_console.c char gbuf[CBUFSIZE - 1]; gbuf 1651 src/simh/sim_console.c tptr = get_glyph (filename, gbuf, 0); gbuf 1656 src/simh/sim_console.c if (strcmp (gbuf, "LOG") == 0) { /* output to log? */ gbuf 1664 src/simh/sim_console.c else if (strcmp (gbuf, "DEBUG") == 0) { /* output to debug? */ gbuf 1672 src/simh/sim_console.c else if (strcmp (gbuf, "STDOUT") == 0) { /* output to stdout? */ gbuf 1676 src/simh/sim_console.c else if (strcmp (gbuf, "STDERR") == 0) { /* output to stderr? */ gbuf 1684 src/simh/sim_console.c (void)get_glyph_nc (filename, gbuf, 0); /* reparse */ gbuf 1685 src/simh/sim_console.c (void)strncpy ((*pref)->name, gbuf, sizeof((*pref)->name) - 1); gbuf 1688 src/simh/sim_console.c *pf = sim_fopen (gbuf, (binary ? "w+b" : "w+"));/* then open an empty file */ gbuf 1690 src/simh/sim_console.c *pf = sim_fopen (gbuf, (binary ? "a+b" : "a+"));/* append to an existing file */ gbuf 768 src/simh/sim_disk.c char gbuf[CBUFSIZE]; gbuf 769 src/simh/sim_disk.c cptr = get_glyph (cptr, gbuf, 0); /* get spec */ gbuf 772 src/simh/sim_disk.c if (sim_disk_set_fmt (uptr, 0, gbuf, NULL) != SCPE_OK) gbuf 773 src/simh/sim_disk.c return sim_messagef (SCPE_ARG, "Invalid Disk Format: %s\n", gbuf); gbuf 494 src/simh/sim_sock.c char gbuf[CBUFSIZE], default_pbuf[CBUFSIZE]; gbuf 518 src/simh/sim_sock.c gbuf[sizeof(gbuf)-1] = '\0'; gbuf 519 src/simh/sim_sock.c strncpy (gbuf, cptr, sizeof(gbuf)-1); gbuf 520 src/simh/sim_sock.c hostp = gbuf; /* default addr */ gbuf 523 src/simh/sim_sock.c if ((portp = strrchr (gbuf, ':')) && /* x:y? split */ gbuf 530 src/simh/sim_sock.c portp = gbuf; /* Input is the port specifier */ gbuf 556 src/simh/sim_sock.c strncpy(gbuf, hostp+1, sizeof(gbuf)-1); /* remove brackets from domain literal host */ gbuf 557 src/simh/sim_sock.c gbuf[strlen(gbuf)-1] = '\0'; //-V557 gbuf 558 src/simh/sim_sock.c hostp = gbuf; gbuf 149 src/simh/sim_tape.c char gbuf[CBUFSIZE]; gbuf 156 src/simh/sim_tape.c cptr = get_glyph (cptr, gbuf, 0); /* get spec */ gbuf 159 src/simh/sim_tape.c if (sim_tape_set_fmt (uptr, 0, gbuf, NULL) != SCPE_OK) gbuf 160 src/simh/sim_tape.c return sim_messagef (SCPE_ARG, "Invalid Tape Format: %s\n", gbuf); gbuf 2221 src/simh/sim_tmxr.c char gbuf[CBUFSIZE]; gbuf 2224 src/simh/sim_tmxr.c cptr = get_glyph (cptr, gbuf, '='); gbuf 2225 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "LINE")) { gbuf 2233 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "LOG")) { gbuf 2239 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "LOOPBACK")) { gbuf 2245 src/simh/sim_tmxr.c if ((0 == MATCH_CMD (gbuf, "NOBUFFERED")) || (0 == MATCH_CMD (gbuf, "UNBUFFERED"))) { //-V600 gbuf 2251 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "BUFFERED")) { gbuf 2262 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "NOLOG")) { gbuf 2268 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "NOMODEM")) { gbuf 2274 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "MODEM")) { gbuf 2280 src/simh/sim_tmxr.c if ((0 == MATCH_CMD (gbuf, "DATAGRAM")) || (0 == MATCH_CMD (gbuf, "UDP"))) { //-V600 gbuf 2286 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "PACKET")) { gbuf 2292 src/simh/sim_tmxr.c if ((0 == MATCH_CMD (gbuf, "STREAM")) || (0 == MATCH_CMD (gbuf, "TCP"))) { //-V600 gbuf 2298 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "CONNECT")) { gbuf 2304 src/simh/sim_tmxr.c if (0 == MATCH_CMD (gbuf, "SPEED")) { gbuf 2311 src/simh/sim_tmxr.c cptr = get_glyph (gbuf, port, ';'); gbuf 2315 src/simh/sim_tmxr.c char *tptr = gbuf + (cptr - gbuf); gbuf 2946 src/simh/sim_tmxr.c char gbuf[CBUFSIZE]; gbuf 2955 src/simh/sim_tmxr.c cptr = get_glyph(cptr, gbuf, ':'); gbuf 2956 src/simh/sim_tmxr.c dptr = find_dev (gbuf); /* device match? */