Revision 827b0813 qerror.c

b/qerror.c
224 224
    QError *qerr;
225 225

  
226 226
    qerr = qerror_new();
227
    loc_save(&qerr->loc);
227 228
    qerr->linenr = linenr;
228 229
    qerr->file = file;
229 230
    qerr->func = func;
......
321 322
 * it uses error_report() for this, so that the output is routed to the right
322 323
 * place (ie. stderr or Monitor's device).
323 324
 */
324
void qerror_print(const QError *qerror)
325
void qerror_print(QError *qerror)
325 326
{
326 327
    QString *qstring = qerror_human(qerror);
328
    loc_push_restore(&qerror->loc);
327 329
    error_report("%s", qstring_get_str(qstring));
330
    loc_pop(&qerror->loc);
328 331
    QDECREF(qstring);
329 332
}
330 333

  

Also available in: Unified diff