sim_do_depth      450 src/simh/scp.c static int32 sim_do_depth        = 0;
sim_do_depth     2901 src/simh/scp.c (void)snprintf (cbuf, sizeof (cbuf), "%s%s%s-%d", sim_do_filename[sim_do_depth],
sim_do_depth     2902 src/simh/scp.c                 sim_do_label[sim_do_depth] ? "::" : "",
sim_do_depth     2903 src/simh/scp.c                 sim_do_label[sim_do_depth] ? sim_do_label[sim_do_depth] : "",
sim_do_depth     2904 src/simh/scp.c                 sim_goto_line[sim_do_depth]);
sim_do_depth     2963 src/simh/scp.c     ++sim_do_depth;
sim_do_depth     2965 src/simh/scp.c         sim_on_check[sim_do_depth] = sim_on_check[sim_do_depth-1]; /* inherit On mode */
sim_do_depth     2967 src/simh/scp.c             if (sim_on_actions[sim_do_depth-1][i]) {
sim_do_depth     2968 src/simh/scp.c                 sim_on_actions[sim_do_depth][i] = (char *)malloc(1+strlen(sim_on_actions[sim_do_depth-1][i]));
sim_do_depth     2969 src/simh/scp.c                 if (NULL == sim_on_actions[sim_do_depth][i]) {
sim_do_depth     2971 src/simh/scp.c                         FREE(sim_on_actions[sim_do_depth][i]);
sim_do_depth     2972 src/simh/scp.c                         sim_on_actions[sim_do_depth][i] = NULL;
sim_do_depth     2974 src/simh/scp.c                     sim_on_check[sim_do_depth] = 0;
sim_do_depth     2976 src/simh/scp.c                     --sim_do_depth;                     /* unwind nesting */
sim_do_depth     2980 src/simh/scp.c                 strcpy(sim_on_actions[sim_do_depth][i], sim_on_actions[sim_do_depth-1][i]);
sim_do_depth     2986 src/simh/scp.c strcpy( sim_do_filename[sim_do_depth], do_arg[0]);      /* stash away do file name for possible use by 'call' command */
sim_do_depth     2987 src/simh/scp.c sim_do_label[sim_do_depth] = label;                     /* stash away do label for possible use in messages */
sim_do_depth     2988 src/simh/scp.c sim_goto_line[sim_do_depth] = 0;
sim_do_depth     3004 src/simh/scp.c     sim_do_ocptr[sim_do_depth] = cptr = sim_brk_getact (cbuf, sizeof(cbuf)); /* get bkpt action */
sim_do_depth     3005 src/simh/scp.c     if (!sim_do_ocptr[sim_do_depth]) {                  /* no pending action? */
sim_do_depth     3006 src/simh/scp.c         sim_do_ocptr[sim_do_depth] = cptr = read_line (cbuf, sizeof(cbuf), fpin);/* get cmd line */
sim_do_depth     3007 src/simh/scp.c         sim_goto_line[sim_do_depth] += 1;
sim_do_depth     3031 src/simh/scp.c             if (sim_do_depth >= MAX_DO_NEST_LVL)        /* nest too deep? */
sim_do_depth     3034 src/simh/scp.c                 stat = do_cmd (sim_do_depth+1, cptr);   /* exec DO cmd */
sim_do_depth     3053 src/simh/scp.c             staying = (sim_on_check[sim_do_depth] &&        /* if trap action defined */
sim_do_depth     3054 src/simh/scp.c                        sim_on_actions[sim_do_depth][stat]); /* use it, otherwise exit */
sim_do_depth     3070 src/simh/scp.c             sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);
sim_do_depth     3075 src/simh/scp.c             cmdp->message ((!echo && !sim_quiet) ? sim_do_ocptr[sim_do_depth] : NULL, stat);
sim_do_depth     3083 src/simh/scp.c         (sim_on_check[sim_do_depth]) &&
sim_do_depth     3086 src/simh/scp.c         if ((stat <= SCPE_MAX_ERR) && sim_on_actions[sim_do_depth][stat])
sim_do_depth     3087 src/simh/scp.c             sim_brk_setact (sim_on_actions[sim_do_depth][stat]);
sim_do_depth     3089 src/simh/scp.c             sim_brk_setact (sim_on_actions[sim_do_depth][0]);
sim_do_depth     3106 src/simh/scp.c         FREE (sim_on_actions[sim_do_depth][i]);
sim_do_depth     3107 src/simh/scp.c         sim_on_actions[sim_do_depth][i] = NULL;
sim_do_depth     3109 src/simh/scp.c     sim_on_check[sim_do_depth] = 0;                     /* clear on mode */
sim_do_depth     3112 src/simh/scp.c     --sim_do_depth;                                     /* unwind nesting */
sim_do_depth     3863 src/simh/scp.c int32 saved_goto_line = sim_goto_line[sim_do_depth];
sim_do_depth     3870 src/simh/scp.c sim_goto_line[sim_do_depth] = 0;                        /* reset line number */
sim_do_depth     3875 src/simh/scp.c     sim_goto_line[sim_do_depth] += 1;                   /* record line number */
sim_do_depth     3891 src/simh/scp.c sim_goto_line[sim_do_depth] = saved_goto_line;     /* restore start line number */
sim_do_depth     3935 src/simh/scp.c (void)snprintf(cbuf, sizeof (cbuf), "%s %s", sim_do_filename[sim_do_depth], cptr);
sim_do_depth     3955 src/simh/scp.c     FREE(sim_on_actions[sim_do_depth][cond]);           /* Clear existing condition */
sim_do_depth     3956 src/simh/scp.c     sim_on_actions[sim_do_depth][cond] = NULL; }
sim_do_depth     3958 src/simh/scp.c     sim_on_actions[sim_do_depth][cond] =
sim_do_depth     3959 src/simh/scp.c         (char *)realloc(sim_on_actions[sim_do_depth][cond], 1+strlen(cptr));
sim_do_depth     3960 src/simh/scp.c     if (!sim_on_actions[sim_do_depth][cond])
sim_do_depth     3972 src/simh/scp.c     strcpy(sim_on_actions[sim_do_depth][cond], cptr);
sim_do_depth     4006 src/simh/scp.c sim_on_check[sim_do_depth] = flag;
sim_do_depth     4007 src/simh/scp.c if ((sim_do_depth != 0) &&
sim_do_depth     4008 src/simh/scp.c     (NULL == sim_on_actions[sim_do_depth][0])) {        /* default handler set? */
sim_do_depth     4009 src/simh/scp.c     sim_on_actions[sim_do_depth][0] =                   /* No, so make "RETURN" */
sim_do_depth     4011 src/simh/scp.c     strcpy(sim_on_actions[sim_do_depth][0], "RETURN");
sim_do_depth     4013 src/simh/scp.c if ((sim_do_depth != 0) &&
sim_do_depth     4014 src/simh/scp.c     (NULL == sim_on_actions[sim_do_depth][SCPE_AFAIL])) {/* handler set for AFAIL? */
sim_do_depth     4015 src/simh/scp.c     sim_on_actions[sim_do_depth][SCPE_AFAIL] =          /* No, so make "RETURN" */
sim_do_depth     4017 src/simh/scp.c     strcpy(sim_on_actions[sim_do_depth][SCPE_AFAIL], "RETURN");
sim_do_depth     5714 src/simh/scp.c for (lvl=sim_do_depth; lvl >= 0; --lvl) {
sim_do_depth     9443 src/simh/scp.c if (sim_brk_act[sim_do_depth] == NULL)                  /* any action? */
sim_do_depth     9445 src/simh/scp.c while (sim_isspace (*sim_brk_act[sim_do_depth]))        /* skip spaces */
sim_do_depth     9446 src/simh/scp.c     sim_brk_act[sim_do_depth]++;
sim_do_depth     9447 src/simh/scp.c if (*sim_brk_act[sim_do_depth] == 0) {                  /* now empty? */
sim_do_depth     9450 src/simh/scp.c if ((ep = strchr (sim_brk_act[sim_do_depth], ';'))) {   /* cmd delimiter? */
sim_do_depth     9451 src/simh/scp.c     lnt = ep - sim_brk_act[sim_do_depth];               /* cmd length */
sim_do_depth     9452 src/simh/scp.c     memcpy (buf, sim_brk_act[sim_do_depth], lnt + 1);   /* copy with ; */
sim_do_depth     9454 src/simh/scp.c     sim_brk_act[sim_do_depth] += lnt + 1;               /* adv ptr */
sim_do_depth     9457 src/simh/scp.c     strncpy (buf, sim_brk_act[sim_do_depth], size);     /* copy action */
sim_do_depth     9467 src/simh/scp.c FREE (sim_brk_act_buf[sim_do_depth]);
sim_do_depth     9468 src/simh/scp.c return sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth] = NULL;
sim_do_depth     9476 src/simh/scp.c     sim_brk_act_buf[sim_do_depth] = (char *)realloc (sim_brk_act_buf[sim_do_depth], strlen (action) + 1);
sim_do_depth     9477 src/simh/scp.c     if (!sim_brk_act_buf[sim_do_depth])
sim_do_depth     9489 src/simh/scp.c     strcpy (sim_brk_act_buf[sim_do_depth], action);
sim_do_depth     9490 src/simh/scp.c     sim_brk_act[sim_do_depth] = sim_brk_act_buf[sim_do_depth];
sim_do_depth     10393 src/simh/scp.c if (sim_do_ocptr[sim_do_depth]) {
sim_do_depth     10395 src/simh/scp.c         sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);
sim_do_depth     10398 src/simh/scp.c             (void)fprintf (sim_deb, "%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);