Logo Search packages:      
Sourcecode: inkscape version File versions

enum CRStatus cr_input_set_cur_pos ( CRInput a_this,
CRInputPos *  a_pos 

Sets the current position in the input stream.

a_this the "this pointer" of the current instance of CRInput.
a_pos the new position.

Definition at line 1098 of file cr-input.c.

Referenced by cr_tknzr_get_nb_bytes_left(), cr_tknzr_peek_byte(), cr_tknzr_peek_char(), and cr_tknzr_read_char().

        g_return_val_if_fail (a_this && PRIVATE (a_this) && a_pos,

        cr_input_set_column_num (a_this, a_pos->col);
        cr_input_set_line_num (a_this, a_pos->line);
        cr_input_set_cur_index (a_this, a_pos->next_byte_index);
        cr_input_set_end_of_line (a_this, a_pos->end_of_line);
        cr_input_set_end_of_file (a_this, a_pos->end_of_file);

        return CR_OK;

Generated by  Doxygen 1.6.0   Back to index