sort_count++;
}
-void extend_current_chunk(void)
+void extend_current_chunk(limit)
/* bump the end-line number on the last chunk, if there is one */
{
if (sort_count > 0)
extern void report_time(char *legend, ...);
struct filehdr_t *register_file(const char *file, linenum_t length);
extern void corehook(struct hash_t hash, struct filehdr_t *file);
-extern void extend_current_chunk(void);
+extern void extend_current_chunk(int);
extern void dump_array(const char *legend,
struct sorthash_t *obarray, int hashcount);
extern void dump_flags(const int flags, FILE *fp);
* styles). This is a kluge, but it means we will capture
* entire C functions that differ only by brace placement.
*/
- if (remove_braces && braceline && linecount < file->length)
- extend_current_chunk();
+ if (remove_braces && braceline)
+ extend_current_chunk(file->length);
continue;
}
accepted++;