Esempio n. 1
0
void jsonp_error_set(json_error_t *error, int line, int column,
                     size_t position, const char *msg, ...)
{
    va_list ap;

    va_start(ap, msg);
    jsonp_error_vset(error, line, column, position, msg, ap);
    va_end(ap);
}
Esempio n. 2
0
static void set_error(scanner_t *s, const char *source, const char *fmt, ...)
{
    va_list ap;
    va_start(ap, fmt);

    jsonp_error_vset(s->error, s->token.line, s->token.column, s->token.pos,
                     fmt, ap);

    jsonp_error_set_source(s->error, source);

    va_end(ap);
}
Esempio n. 3
0
static void set_error(scanner_t *s, const char *source, const char *fmt, ...)
{
    va_list ap;
    size_t pos;
    va_start(ap, fmt);

    pos = (size_t)(s->fmt - s->start);
    jsonp_error_vset(s->error, s->line, s->column, pos, fmt, ap);

    jsonp_error_set_source(s->error, source);

    va_end(ap);
}