static void merge_print_line (bool, const struct color **, const char *, const char *, FILE *);
static void complete_part_line (const char *, char **, FILE *);
static bool get_next_char (char *, const char **, FILE *, bool *);
-static void save_char (char, char **, unsigned long *, size_t *);
+static void save_char (char, char **, size_t *, size_t *);
static void find_color_entries (struct color_name **, const struct color **);
static void find_color_entry (const struct color_name *, unsigned int, const struct color **);
static void print_line (bool, const struct color **, const char * const, unsigned int);
#ifdef TEST_MERGE_PART_LINE
printf ("%s", part_line);
- free (merged_part_line);
- exit (EXIT_SUCCESS);
+ fflush (stdout);
+ _exit (EXIT_SUCCESS);
#else
print_line (bold, colors, part_line, 0);
free (merged_part_line);
{
bool got_next_char = false, read_from_stream;
char ch;
- unsigned long i = 0;
- size_t size;
+ size_t i = 0, size;
if (get_next_char (&ch, &p, stream, &read_from_stream))
{
}
static void
-save_char (char ch, char **buf, unsigned long *i, size_t *size)
+save_char (char ch, char **buf, size_t *i, size_t *size)
{
if (!*buf)
{