Home | History | Annotate | Download | only in qemu

Lines Matching defs:ap

41 static QObject *parse_value(JSONParserContext *ctxt, QList **tokens, va_list *ap);
97 va_list ap;
98 va_start(ap, msg);
100 vfprintf(stderr, msg, ap);
102 va_end(ap);
270 static int parse_pair(JSONParserContext *ctxt, QDict *dict, QList **tokens, va_list *ap)
276 key = parse_value(ctxt, &working, ap);
288 value = parse_value(ctxt, &working, ap);
311 static QObject *parse_object(JSONParserContext *ctxt, QList **tokens, va_list *ap)
328 if (parse_pair(ctxt, dict, &working, ap) == -1) {
341 if (parse_pair(ctxt, dict, &working, ap) == -1) {
367 static QObject *parse_array(JSONParserContext *ctxt, QList **tokens, va_list *ap)
386 obj = parse_value(ctxt, &working, ap);
404 obj = parse_value(ctxt, &working, ap);
468 static QObject *parse_escape(JSONParserContext *ctxt, QList **tokens, va_list *ap)
473 if (ap == NULL) {
480 obj = va_arg(*ap, QObject *);
482 obj = QOBJECT(qbool_from_int(va_arg(*ap, int)));
484 obj = QOBJECT(qint_from_int(va_arg(*ap, int)));
486 obj = QOBJECT(qint_from_int(va_arg(*ap, long)));
489 obj = QOBJECT(qint_from_int(va_arg(*ap, long long)));
491 obj = QOBJECT(qstring_from_str(va_arg(*ap, const char *)));
493 obj = QOBJECT(qfloat_from_double(va_arg(*ap, double)));
545 static QObject *parse_value(JSONParserContext *ctxt, QList **tokens, va_list *ap)
549 obj = parse_object(ctxt, tokens, ap);
551 obj = parse_array(ctxt, tokens, ap);
554 obj = parse_escape(ctxt, tokens, ap);
566 QObject *json_parser_parse(QList *tokens, va_list *ap)
572 result = parse_value(&ctxt, &working, ap);