ep 8796 src/simh/scp.c char *ep; ep 8806 src/simh/scp.c if ((ep = strchr (sim_brk_act[sim_do_depth], ';'))) { /* cmd delimiter? */ ep 8807 src/simh/scp.c lnt = ep - sim_brk_act[sim_do_depth]; /* cmd length */ ep 9021 src/simh/scp.c t_stat sim_exp_clr_tab (EXPECT *exp, EXPTAB *ep) ep 9025 src/simh/scp.c if (!ep) /* not there? ok */ ep 9027 src/simh/scp.c FREE (ep->match); /* deallocate match string */ ep 9028 src/simh/scp.c FREE (ep->match_pattern); /* deallocate the display format match string */ ep 9029 src/simh/scp.c FREE (ep->act); /* deallocate action */ ep 9032 src/simh/scp.c for (i=ep-exp->rules; i<exp->size; i++) /* shuffle up remaining rules */ ep 9044 src/simh/scp.c EXPTAB *ep = (EXPTAB *)sim_exp_fnd (exp, match, 0); ep 9046 src/simh/scp.c while (ep) { ep 9047 src/simh/scp.c sim_exp_clr_tab (exp, ep); ep 9048 src/simh/scp.c ep = (EXPTAB *)sim_exp_fnd (exp, match, ep - exp->rules); ep 9078 src/simh/scp.c EXPTAB *ep; ep 9123 src/simh/scp.c ep = &exp->rules[exp->size]; ep 9126 src/simh/scp.c memset (ep, 0, sizeof(*ep)); ep 9127 src/simh/scp.c ep->match_pattern = (char *)malloc (strlen (match) + 1); ep 9128 src/simh/scp.c if (ep->match_pattern) ep 9129 src/simh/scp.c strcpy (ep->match_pattern, match); ep 9130 src/simh/scp.c ep->cnt = cnt; /* set proceed count */ ep 9131 src/simh/scp.c ep->switches = switches; /* set switches */ ep 9133 src/simh/scp.c if ((match_buf == NULL) || (ep->match_pattern == NULL)) { ep 9134 src/simh/scp.c sim_exp_clr_tab (exp, ep); /* clear it */ ep 9145 src/simh/scp.c ep->match = match_buf; ep 9146 src/simh/scp.c ep->size = match_size; ep 9148 src/simh/scp.c ep->match_pattern = (char *)malloc (strlen (match) + 1); ep 9149 src/simh/scp.c if (!ep->match_pattern) ep 9161 src/simh/scp.c strcpy (ep->match_pattern, match); ep 9162 src/simh/scp.c if (ep->act) { /* replace old action? */ ep 9163 src/simh/scp.c FREE (ep->act); /* deallocate */ ep 9164 src/simh/scp.c ep->act = NULL; /* now no action */ ep 9172 src/simh/scp.c ep->act = newp; /* set pointer */ ep 9176 src/simh/scp.c uint32 compare_size = (exp->rules[i].switches & EXP_TYP_REGEX) ? MAX(10 * strlen(ep->match_pattern), 1024) : exp->rules[i].size; ep 9187 src/simh/scp.c t_stat sim_exp_show_tab (FILE *st, const EXPECT *exp, const EXPTAB *ep) ep 9189 src/simh/scp.c if (!ep) ep 9192 src/simh/scp.c if (ep->switches & EXP_TYP_PERSIST) ep 9194 src/simh/scp.c if (ep->switches & EXP_TYP_CLEARALL) ep 9196 src/simh/scp.c if (ep->switches & EXP_TYP_REGEX) ep 9198 src/simh/scp.c if (ep->switches & EXP_TYP_REGEX_I) ep 9200 src/simh/scp.c fprintf (st, " %s", ep->match_pattern); ep 9201 src/simh/scp.c if (ep->cnt > 0) ep 9202 src/simh/scp.c fprintf (st, " [%d]", ep->cnt); ep 9203 src/simh/scp.c if (ep->act) ep 9204 src/simh/scp.c fprintf (st, " %s", ep->act); ep 9211 src/simh/scp.c CONST EXPTAB *ep = (CONST EXPTAB *)sim_exp_fnd (exp, match, 0); ep 9228 src/simh/scp.c if (!ep) { ep 9233 src/simh/scp.c sim_exp_show_tab (st, exp, ep); ep 9234 src/simh/scp.c ep = (CONST EXPTAB *)sim_exp_fnd (exp, match, 1 + (ep - exp->rules)); ep 9235 src/simh/scp.c } while (ep); ep 9255 src/simh/scp.c EXPTAB *ep = NULL; ep 9265 src/simh/scp.c ep = &exp->rules[i]; ep 9266 src/simh/scp.c if (ep == NULL) ep 9268 src/simh/scp.c if (ep->switches & EXP_TYP_REGEX) { ep 9271 src/simh/scp.c if (exp->buf_ins < ep->size) { /* Match stradle end of buffer */ ep 9279 src/simh/scp.c char *mstr = sim_encode_quoted_string (&ep->match[ep->size-exp->buf_ins], exp->buf_ins); ep 9286 src/simh/scp.c if (memcmp (exp->buf, &ep->match[ep->size-exp->buf_ins], exp->buf_ins)) ep 9290 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->size-exp->buf_ins); ep 9291 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size-exp->buf_ins); ep 9293 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[%d:%d]: %s\n", exp->buf_size-(ep->size-exp->buf_ins), ep->size-exp->buf_ins, estr); ep 9298 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_size-(ep->size-exp->buf_ins)], ep->match, ep->size-exp->buf_ins)) ep 9304 src/simh/scp.c char *estr = sim_encode_quoted_string (&exp->buf[exp->buf_ins-ep->size], ep->size); ep 9305 src/simh/scp.c char *mstr = sim_encode_quoted_string (ep->match, ep->size); ep 9307 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Checking String[%d:%d]: %s\n", exp->buf_ins-ep->size, ep->size, estr); ep 9312 src/simh/scp.c if (memcmp (&exp->buf[exp->buf_ins-ep->size], ep->match, ep->size)) ep 9322 src/simh/scp.c if ((ep != NULL) && (i != exp->size)) { /* Found? */ ep 9324 src/simh/scp.c if (ep->cnt > 0) { ep 9325 src/simh/scp.c ep->cnt -= 1; ep 9327 src/simh/scp.c ep->cnt, (ep->cnt == 1) ? "" : "es"); ep 9331 src/simh/scp.c int32 switches = ep->switches; ep 9332 src/simh/scp.c if (ep->act && *ep->act) { ep 9333 src/simh/scp.c sim_debug (exp->dbit, exp->dptr, "Initiating actions: %s\n", ep->act); ep 9338 src/simh/scp.c sim_brk_setact (ep->act); /* set up actions */ ep 9339 src/simh/scp.c if (ep->switches & EXP_TYP_CLEARALL) /* Clear-all expect rule? */ ep 9342 src/simh/scp.c if (!(ep->switches & EXP_TYP_PERSIST)) /* One shot expect rule? */ ep 9343 src/simh/scp.c sim_exp_clr_tab (exp, ep); /* delete it */ ep 10047 src/simh/scp.c const char *ep; ep 10137 src/simh/scp.c ep = start; ep 10138 src/simh/scp.c while (*ep) { ep 10139 src/simh/scp.c if (*ep == '\n') { ep 10140 src/simh/scp.c ep++; /* Segment to \n */ ep 10141 src/simh/scp.c appendText (topic, start, ep - start); ep 10142 src/simh/scp.c if (*ep) { /* More past \n, indent */ ep 10147 src/simh/scp.c start = ep; ep 10150 src/simh/scp.c ep++; ep 10152 src/simh/scp.c appendText (topic, start, ep-start);