Lines Matching defs:rep
516 SRE_REPEAT* rep;
1088 ctx->u.rep = (SRE_REPEAT*) PyObject_Malloc(sizeof(*ctx->u.rep));
1089 if (!ctx->u.rep) {
1093 ctx->u.rep->count = -1;
1094 ctx->u.rep->pattern = pattern;
1095 ctx->u.rep->prev = state->repeat;
1096 ctx->u.rep->last_ptr = NULL;
1097 state->repeat = ctx->u.rep;
1101 state->repeat = ctx->u.rep->prev;
1102 PyObject_Free(ctx->u.rep);
1117 ctx->u.rep = state->repeat;
1118 if (!ctx->u.rep)
1123 ctx->count = ctx->u.rep->count+1;
1128 if (ctx->count < (Py_ssize_t) ctx->u.rep->pattern[1]) {
1130 ctx->u.rep->count = ctx->count;
1132 ctx->u.rep->pattern+3);
1137 ctx->u.rep->count = ctx->count-1;
1142 if ((ctx->count < (Py_ssize_t) ctx->u.rep->pattern[2] ||
1143 ctx->u.rep->pattern[2] == SRE_MAXREPEAT) &&
1144 state->ptr != ctx->u.rep->last_ptr) {
1147 ctx->u.rep->count = ctx->count;
1151 DATA_PUSH(&ctx->u.rep->last_ptr);
1152 ctx->u.rep->last_ptr = state->ptr;
1154 ctx->u.rep->pattern+3);
1155 DATA_POP(&ctx->u.rep->last_ptr);
1163 ctx->u.rep->count = ctx->count-1;
1169 state->repeat = ctx->u.rep->prev;
1171 state->repeat = ctx->u.rep; // restore repeat before return
1181 ctx->u.rep = state->repeat;
1182 if (!ctx->u.rep)
1187 ctx->count = ctx->u.rep->count+1;
1190 ptr, ctx->count, ctx->u.rep->pattern));
1192 if (ctx->count < (Py_ssize_t) ctx->u.rep->pattern[1]) {
1194 ctx->u.rep->count = ctx->count;
1196 ctx->u.rep->pattern+3);
1201 ctx->u.rep->count = ctx->count-1;
1207 state->repeat = ctx->u.rep->prev;
1215 state->repeat = ctx->u.rep; // restore repeat before return
1229 if ((ctx->count >= (Py_ssize_t) ctx->u.rep->pattern[2]
1230 && ctx->u.rep->pattern[2] != SRE_MAXREPEAT) ||
1231 state->ptr == ctx->u.rep->last_ptr)
1234 ctx->u.rep->count = ctx->count;
1236 DATA_PUSH(&ctx->u.rep->last_ptr);
1237 ctx->u.rep->last_ptr = state->ptr;
1239 ctx->u.rep->pattern+3);
1240 DATA_POP(&ctx->u.rep->last_ptr);
1245 ctx->u.rep->count = ctx->count-1;