663 |
|
|
664 |
void InstrScript_error(YYLTYPE* locp, LinuxSampler::ParserContext* context, const char* err) { |
void InstrScript_error(YYLTYPE* locp, LinuxSampler::ParserContext* context, const char* err) { |
665 |
//fprintf(stderr, "%d: %s\n", locp->first_line, err); |
//fprintf(stderr, "%d: %s\n", locp->first_line, err); |
666 |
context->addErr(locp->first_line, locp->first_column+1, err); |
context->addErr(locp->first_line, locp->last_line, locp->first_column+1, locp->last_column+1, err); |
667 |
} |
} |
668 |
|
|
669 |
void InstrScript_warning(YYLTYPE* locp, LinuxSampler::ParserContext* context, const char* txt) { |
void InstrScript_warning(YYLTYPE* locp, LinuxSampler::ParserContext* context, const char* txt) { |
670 |
//fprintf(stderr, "WRN %d: %s\n", locp->first_line, txt); |
//fprintf(stderr, "WRN %d: %s\n", locp->first_line, txt); |
671 |
context->addWrn(locp->first_line, locp->first_column+1, txt); |
context->addWrn(locp->first_line, locp->last_line, locp->first_column+1, locp->last_column+1, txt); |
672 |
} |
} |