Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_tknzr_read_char ( CRTknzr *  a_this,
guint32 *  a_char 

Reads the next char from the parser input stream.

a_this the current instance of CRTknzr.
a_char out parameter. The read char.
CR_OK upon successfull completion, an error code otherwise.

Definition at line 1725 of file cr-tknzr.c.

References cr_input_read_char(), cr_input_set_cur_pos(), and cr_token_destroy().

Referenced by cr_declaration_parse_list_from_buf().

        g_return_val_if_fail (a_this && PRIVATE (a_this)
                              && PRIVATE (a_this)->input
                              && a_char, CR_BAD_PARAM_ERROR);

        if (PRIVATE (a_this)->token_cache) {
                cr_input_set_cur_pos (PRIVATE (a_this)->input,
                                      &PRIVATE (a_this)->prev_pos);
                cr_token_destroy (PRIVATE (a_this)->token_cache);
                PRIVATE (a_this)->token_cache = NULL;

        return cr_input_read_char (PRIVATE (a_this)->input, a_char);

Generated by  Doxygen 1.6.0   Back to index