/* cinfo.err = jpeg_std_error(&err); after which the application may override some of the methods.  */
jpeg_std_error(struct jpeg_error_mgr *err)
/* cinfo.err = jpeg_std_error(&err); after which the application may override some of the methods.  */
jpeg_std_error(struct jpeg_error_mgr *err)
{
    err->error_exit = error_exit;
    err->emit_message = emit_message;
    err->output_message = output_message;
    err->format_message = format_message;
    err->reset_error_mgr = reset_error_mgr;
    err->trace_level = 0;
    err->num_warnings = 0;
    err->msg_code = 0;
    err->jpeg_message_table = jpeg_std_message_table;
    err->last_jpeg_message = (int)JMSG_LASTMSGCODE - 1;
    err->addon_message_table = NULL;
    err->first_addon_message = 0;
    err->last_addon_message = 0;
    return err;
}