Mercurial > vim
comparison src/regexp_nfa.c @ 4565:d1f3c77159f9 v7.3.1030
updated for version 7.3.1030
Problem: Can't build for debugging.
Solution: Fix struct member names.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 26 May 2013 23:13:07 +0200 |
parents | e7016af0cbf9 |
children | 96c1a7850097 |
comparison
equal
deleted
inserted
replaced
4564:ba503e7f5ceb | 4565:d1f3c77159f9 |
---|---|
3162 { | 3162 { |
3163 submatch->linelist[j].start = t->sub.linelist[j].start; | 3163 submatch->linelist[j].start = t->sub.linelist[j].start; |
3164 submatch->linelist[j].end = t->sub.linelist[j].end; | 3164 submatch->linelist[j].end = t->sub.linelist[j].end; |
3165 } | 3165 } |
3166 #ifdef ENABLE_LOG | 3166 #ifdef ENABLE_LOG |
3167 for (j = 0; j < 4; j++) | 3167 for (j = 0; j < t->sub.in_use; j++) |
3168 if (REG_MULTI) | 3168 if (REG_MULTI) |
3169 fprintf(log_fd, "\n *** group %d, start: c=%d, l=%d, end: c=%d, l=%d", | 3169 fprintf(log_fd, "\n *** group %d, start: c=%d, l=%d, end: c=%d, l=%d", |
3170 j, | 3170 j, |
3171 t->sub.startpos[j].col, | 3171 t->sub.multilist[j].start.col, |
3172 (int)t->sub.startpos[j].lnum, | 3172 (int)t->sub.multilist[j].start.lnum, |
3173 t->sub.endpos[j].col, | 3173 t->sub.multilist[j].end.col, |
3174 (int)t->sub.endpos[j].lnum); | 3174 (int)t->sub.multilist[j].end.lnum); |
3175 else | 3175 else |
3176 fprintf(log_fd, "\n *** group %d, start: \"%s\", end: \"%s\"", | 3176 fprintf(log_fd, "\n *** group %d, start: \"%s\", end: \"%s\"", |
3177 j, | 3177 j, |
3178 (char *)t->sub.start[j], | 3178 (char *)t->sub.linelist[j].start, |
3179 (char *)t->sub.end[j]); | 3179 (char *)t->sub.linelist[j].end); |
3180 fprintf(log_fd, "\n"); | 3180 fprintf(log_fd, "\n"); |
3181 #endif | 3181 #endif |
3182 /* Found the left-most longest match, do not look at any other | 3182 /* Found the left-most longest match, do not look at any other |
3183 * states at this position. When the list of states is going | 3183 * states at this position. When the list of states is going |
3184 * to be empty quit without advancing, so that "reginput" is | 3184 * to be empty quit without advancing, so that "reginput" is |