Loading error.c +0 −4 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ struct Error { QDict *obj; char *msg; ErrorClass err_class; }; Loading Loading @@ -51,8 +50,6 @@ Error *error_copy(const Error *err) err_new = g_malloc0(sizeof(*err)); err_new->msg = g_strdup(err->msg); err_new->err_class = err->err_class; err_new->obj = err->obj; QINCREF(err_new->obj); return err_new; } Loading @@ -75,7 +72,6 @@ const char *error_get_pretty(Error *err) void error_free(Error *err) { if (err) { QDECREF(err->obj); g_free(err->msg); g_free(err); } Loading qerror.c +0 −4 Original line number Diff line number Diff line Loading @@ -100,7 +100,6 @@ void qerror_report(ErrorClass eclass, const char *fmt, ...) /* Evil... */ struct Error { QDict *obj; char *msg; ErrorClass err_class; }; Loading @@ -111,8 +110,6 @@ void qerror_report_err(Error *err) qerr = qerror_new(); loc_save(&qerr->loc); QINCREF(err->obj); qerr->error = err->obj; qerr->err_msg = g_strdup(err->msg); qerr->err_class = err->err_class; Loading Loading @@ -154,7 +151,6 @@ static void qerror_destroy_obj(QObject *obj) assert(obj != NULL); qerr = qobject_to_qerror(obj); QDECREF(qerr->error); g_free(qerr->err_msg); g_free(qerr); } qerror.h +0 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ typedef struct QError { QObject_HEAD; QDict *error; Location loc; char *err_msg; ErrorClass err_class; Loading Loading
error.c +0 −4 Original line number Diff line number Diff line Loading @@ -19,7 +19,6 @@ struct Error { QDict *obj; char *msg; ErrorClass err_class; }; Loading Loading @@ -51,8 +50,6 @@ Error *error_copy(const Error *err) err_new = g_malloc0(sizeof(*err)); err_new->msg = g_strdup(err->msg); err_new->err_class = err->err_class; err_new->obj = err->obj; QINCREF(err_new->obj); return err_new; } Loading @@ -75,7 +72,6 @@ const char *error_get_pretty(Error *err) void error_free(Error *err) { if (err) { QDECREF(err->obj); g_free(err->msg); g_free(err); } Loading
qerror.c +0 −4 Original line number Diff line number Diff line Loading @@ -100,7 +100,6 @@ void qerror_report(ErrorClass eclass, const char *fmt, ...) /* Evil... */ struct Error { QDict *obj; char *msg; ErrorClass err_class; }; Loading @@ -111,8 +110,6 @@ void qerror_report_err(Error *err) qerr = qerror_new(); loc_save(&qerr->loc); QINCREF(err->obj); qerr->error = err->obj; qerr->err_msg = g_strdup(err->msg); qerr->err_class = err->err_class; Loading Loading @@ -154,7 +151,6 @@ static void qerror_destroy_obj(QObject *obj) assert(obj != NULL); qerr = qobject_to_qerror(obj); QDECREF(qerr->error); g_free(qerr->err_msg); g_free(qerr); }
qerror.h +0 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,6 @@ typedef struct QError { QObject_HEAD; QDict *error; Location loc; char *err_msg; ErrorClass err_class; Loading