Lines Matching defs:line
15 bc is a command-line calculator with a Turing-complete language.
321 #define bc_lex_err(l, e) (bc_vm_error((e), (l)->line))
322 #define bc_lex_verr(l, e, ...) (bc_vm_error((e), (l)->line, __VA_ARGS__))
410 size_t line;
429 #define bc_parse_err(p, e) (bc_vm_error((e), (p)->l.line))
430 #define bc_parse_verr(p, e, ...) (bc_vm_error((e), (p)->l.line, __VA_ARGS__))
470 #define bc_lex_posixErr(l, e) (bc_vm_posixError((e), (l)->line))
472 (bc_vm_posixError((e), (l)->line, __VA_ARGS__))
535 #define bc_parse_posixErr(p, e) (bc_vm_posixError((e), (p)->l.line))
613 BcStatus bc_vm_posixError(BcError e, size_t line, ...);
615 BcStatus bc_vm_error(BcError e, size_t line, ...);
707 "POSIX requires the left brace be on the same line as the function header",
2339 BcStatus bc_func_insert(BcFunc *f, char *name, BcType type, size_t line) {
2347 return bc_vm_error(BC_ERROR_PARSE_DUP_LOCAL, line, name);
2493 l->line += nlines;
2526 // Make sure to eat whitespace at the beginning of the line.
2578 l->line = 1;
2587 l->line += (l->i != 0 && l->buf[l->i - 1] == '\n');
2669 l->line += nlines;
3881 s = bc_func_insert(p->func, name, t, p->l.line);
3946 s = bc_func_insert(p->func, name, t, p->l.line);
5616 size_t line, va_list args)
5625 // If line is not 0, it is parsing.
5626 if (line) {
5628 fprintf(stderr, bc_err_line, line);
5640 BcStatus bc_vm_error(BcError e, size_t line, ...) {
5644 va_start(args, line);
5645 bc_vm_printError(e, bc_err_fmt, line, args);
5651 BcStatus bc_vm_posixError(BcError e, size_t line, ...) {
5657 va_start(args, line);
5658 bc_vm_printError(e, FLAG(s) ? bc_err_fmt : bc_warn_fmt, line, args);
5851 // parse command line argument files, then stdin