Lines Matching defs:prog
712 regexec2(register regexp *prog, register constant char *string, int notbol)
717 if (prog == NULL || string == NULL) {
723 if (UCHARAT(prog->program) != MAGIC) {
729 if (prog->regmust != NULL) {
731 while ((s = strchr(s, prog->regmust[0])) != NULL) {
732 if (strncmp(s, prog->regmust, prog->regmlen) == 0)
747 if (prog->reganch)
748 return(regtry(prog, string));
752 if (prog->regstart != '\0')
754 while ((s = strchr(s, prog->regstart)) != NULL) {
755 if (regtry(prog, s))
762 if (regtry(prog, s))
771 regexec(register regexp *prog, register constant char *string)
773 return regexec2(prog, string, 0);
780 regtry(regexp *prog, constant char *string)
787 regstartp = prog->startp;
788 regendp = prog->endp;
790 sp = prog->startp;
791 ep = prog->endp;
796 if (regmatch(prog->program + 1)) {
797 prog->startp[0] = string;
798 prog->endp[0] = reginput;
815 regmatch(char *prog)
820 scan = prog;