/* Returns CR_OK upon successful completion, an error code otherwise.  */
enum CRStatus cr_parser_set_tknzr(CRParser *a_this, CRTknzr *a_tknzr)
/* Returns CR_OK upon successful completion, an error code otherwise.  */
enum CRStatus cr_parser_set_tknzr(CRParser *a_this, CRTknzr *a_tknzr)
{
        g_return_val_if_fail (a_this && PRIVATE (a_this), CR_BAD_PARAM_ERROR);
        if (PRIVATE (a_this)->tknzr) {
                cr_tknzr_unref (PRIVATE (a_this)->tknzr);
        }
        PRIVATE (a_this)->tknzr = a_tknzr;
        if (a_tknzr)
                cr_tknzr_ref (a_tknzr);
        return CR_OK;
}