Lines Matching refs:re
333 if (re == NULL || re->Expbuf[1] == 0) in compsub()
642 if(re != NULL && c >= '1' && c < re->Nbra + '1') { in dosub()
788 if (re == NULL || re->Expbuf[1] == 0) in vi_compile()
1022 if (re == NULL || re == scanre || re == subre) { in vi_compile()
1023 if ((re = calloc(1, sizeof(struct regexp))) == NULL) { in vi_compile()
1028 regex_comp_free(&re->Expbuf); in vi_compile()
1029 memset(re, 0, sizeof(struct regexp)); in vi_compile()
1032 compile((char *) genbuf, (char *) re->Expbuf, (char *) re->Expbuf in vi_compile()
1035 (void) _compile((const char *)genbuf, (char *)re->Expbuf, in vi_compile()
1036 (char *)(re->Expbuf + sizeof (re->Expbuf)), 1); in vi_compile()
1055 re->Nbra = nbra; in vi_compile()
1062 if (re) { in cerror()
1063 re->Expbuf[0] = re->Expbuf[1] = 0; in cerror()
1078 if (re == NULL || re->Expbuf[0]) in execute()
1128 ret = step((char *)p1, (char *)re->Expbuf); in execute()
1149 re = scanre = subre = NULL; in init_re()
1151 if ((re = calloc(1, sizeof(struct regexp))) == NULL) { in init_re()
1177 if (a == NULL || re == NULL) { in savere()
1182 *a = re; in savere()
1186 if (*a != re) { in savere()
1191 *a = re; in savere()
1194 memcpy(*a, re, sizeof(struct regexp)); in savere()
1211 if (re == NULL) { in resre()
1212 re = a; in resre()
1216 if (a != re) { in resre()
1217 if ((re != scanre) && (re != subre)) { in resre()
1218 regex_comp_free(&re->Expbuf); in resre()
1219 free(re); in resre()
1222 re = a; in resre()
1225 memcpy(re, a, sizeof(struct regexp)); in resre()