static void orc_parse_init (OrcParser *parser, const char *code, int enable_errors);
static int orc_parse_has_data (OrcParser *parser);
static void orc_parse_get_line (OrcParser *parser);
-static void orc_parse_put_line (OrcParser *parser);
+static void orc_parse_free_line (OrcParser *parser);
static void orc_parse_copy_line (OrcParser *parser);
static void orc_parse_find_line_length (OrcParser *parser);
static void orc_parse_advance (OrcParser *parser);
} else {
orc_parse_handle_opcode (parser, line);
}
-
- orc_parse_put_line (parser);
}
+ orc_parse_free_line (parser);
if (parser->program) {
orc_parse_sanity_check (parser, parser->program);
static void
orc_parse_copy_line (OrcParser *parser)
{
+ orc_parse_free_line (parser);
parser->line = strndup (parser->p, parser->line_length);
parser->line_number++;
}
static void
-orc_parse_put_line (OrcParser *parser)
+orc_parse_free_line (OrcParser *parser)
{
if (parser->line) {
free (parser->line);