src/scanner.c

changeset 54
76d46533b9a9
parent 48
0d2c13c24fd0
child 57
68018eac46c3
equal deleted inserted replaced
53:32b9e0a5cebd 54:76d46533b9a9
161 161
162 /* Count lines */ 162 /* Count lines */
163 lines = 0; 163 lines = 0;
164 bfile = false; 164 bfile = false;
165 bfile_reset(settings->bfileHeuristics); 165 bfile_reset(settings->bfileHeuristics);
166 regex_parser_reset(settings->regex);
166 char line_buffer[REGEX_MAX_LINELENGTH]; 167 char line_buffer[REGEX_MAX_LINELENGTH];
167 int line_buffer_offset = 0; 168 int line_buffer_offset = 0;
168 169
169 FILE *file = fopen(filelist->filename, "r"); 170 FILE *file = fopen(filelist->filename, "r");
170 if (file == NULL) { 171 if (file == NULL) {

mercurial