Skip to content

Commit

Permalink
Report error locations in almost all cases and more accurately.
Browse files Browse the repository at this point in the history
  • Loading branch information
schani committed Jul 25, 2009
1 parent 34fe388 commit 41d93c3
Show file tree
Hide file tree
Showing 14 changed files with 590 additions and 191 deletions.
1 change: 1 addition & 0 deletions TODO
Expand Up @@ -51,6 +51,7 @@ builtin for getting size of an image
real gamma function buggy

** Compiler
Make exprtree and scanner use compiler pools as well
Generator for simplifiers
Simplify coordinate stuff (non-stretched ident filter)
calculate R in the filter code
Expand Down
2 changes: 1 addition & 1 deletion backends/cc.c
Expand Up @@ -804,7 +804,7 @@ generate_plug_in (char *filter, char *output_filename,

sprintf(template_path, "%s/%s", TEMPLATE_DIR, template_filename);

mathmap = parse_mathmap(filter, FALSE);
mathmap = parse_mathmap(filter);

if (mathmap == 0)
{
Expand Down
6 changes: 3 additions & 3 deletions cocoa.c
Expand Up @@ -36,11 +36,11 @@ delete_expression_marker (void)
}

void
set_expression_marker (int line, int column)
set_expression_marker (int start_line, int start_column, int end_line, int end_column)
{
delete_expression_marker();
printf("FIXME: the error is at %d:%d\n", line, column);

printf("FIXME: the error is at %d:%d\n", start_line, start_column);
}

void
Expand Down
6 changes: 3 additions & 3 deletions expression_db.c
Expand Up @@ -387,7 +387,7 @@ fetch_expression_mathmap (expression_db_t *expr, designer_design_type_t *design_
if (source == NULL)
return NULL;

expr->v.expression.mathmap = parse_mathmap(source, FALSE);
expr->v.expression.mathmap = parse_mathmap(source);

g_free(source);
}
Expand All @@ -411,7 +411,7 @@ fetch_expression_mathmap (expression_db_t *expr, designer_design_type_t *design_

source = make_filter_source_from_design(design, NULL);

expr->v.design.mathmap = parse_mathmap(source, FALSE);
expr->v.design.mathmap = parse_mathmap(source);

g_free(source);
designer_free_design(design);
Expand Down Expand Up @@ -474,7 +474,7 @@ get_expression_docstring (expression_db_t *edb)
if (expression == NULL)
return NULL;

mathmap = parse_mathmap(expression, FALSE);
mathmap = parse_mathmap(expression);
if (mathmap == NULL)
return NULL;

Expand Down

0 comments on commit 41d93c3

Please sign in to comment.