Ignore:
Timestamp:
Dec 19, 2010, 6:26:34 AM (8 years ago)
Author:
cameron
Message:

Unify line/column reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/parabix2/pablo_template.c

    r842 r844  
    6969
    7070
    71 static inline void ReportError(const char * errmsg, int error_pos) {
    72   fprintf(stderr, "%s at line %i, column %i\n",
    73           errmsg,
    74           tracker.getLineNumber(error_pos),
    75           tracker.getColNumber(error_pos));
     71static inline void ReportError(const char * error_msg, int error_pos_in_block) {
     72  int error_line, error_column;
     73  tracker.get_Line_and_Column(error_pos_in_block, error_line, error_column);
     74  fprintf(stderr, "%s at line %i, column %i\n", error_msg, error_line, error_column);
    7675}
    7776
Note: See TracChangeset for help on using the changeset viewer.