version 1.1.1.3, 2018/04/24 18:06:37
|
version 1.1.1.4, 2018/04/24 18:23:38
|
Line 11
|
Line 11
|
* |
* |
*/ |
*/ |
|
|
#include <stdbool.h> |
#include <stdarg.h> |
|
|
#include "qemu-common.h" |
#include "qemu-common.h" |
#include "qstring.h" |
#include "qstring.h" |
Line 93 static int token_is_escape(QObject *obj,
|
Line 93 static int token_is_escape(QObject *obj,
|
*/ |
*/ |
static void parse_error(JSONParserContext *ctxt, QObject *token, const char *msg, ...) |
static void parse_error(JSONParserContext *ctxt, QObject *token, const char *msg, ...) |
{ |
{ |
fprintf(stderr, "parse error: %s\n", msg); |
va_list ap; |
|
va_start(ap, msg); |
|
fprintf(stderr, "parse error: "); |
|
vfprintf(stderr, msg, ap); |
|
fprintf(stderr, "\n"); |
|
va_end(ap); |
} |
} |
|
|
/** |
/** |
Line 200 static QString *qstring_from_escaped_str
|
Line 205 static QString *qstring_from_escaped_str
|
qstring_append(str, "\b"); |
qstring_append(str, "\b"); |
ptr++; |
ptr++; |
break; |
break; |
|
case 'f': |
|
qstring_append(str, "\f"); |
|
ptr++; |
|
break; |
case 'n': |
case 'n': |
qstring_append(str, "\n"); |
qstring_append(str, "\n"); |
ptr++; |
ptr++; |
Line 247 static QString *qstring_from_escaped_str
|
Line 256 static QString *qstring_from_escaped_str
|
} |
} |
} |
} |
|
|
ptr++; |
|
|
|
return str; |
return str; |
|
|
out: |
out: |