Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

static void tp_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
) [static]

The main scanner function which does all the work.

Definition at line 1289 of file tokenparser.c.

References tp_flush_buffer().

{
      int oerrno = errno;
    
      tp_flush_buffer(b );

      b->yy_input_file = file;
      b->yy_fill_buffer = 1;

    /* If b is the current buffer, then tp_init_buffer was _probably_
     * called from tprestart() or through yy_get_next_buffer.
     * In that case, we don't want to reset the lineno or column.
     */
    if (b != YY_CURRENT_BUFFER){
        b->yy_bs_lineno = 1;
        b->yy_bs_column = 0;
    }

        b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
    
      errno = oerrno;
}


Generated by  Doxygen 1.6.0   Back to index