Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/private/stdio.h

    r9d58539 rbd5414e  
    4040#include <async.h>
    4141
     42/** Maximum characters that can be pushed back by ungetc() */
     43#define UNGETC_MAX 1
     44
    4245struct _IO_FILE {
    4346        /** Linked list pointer. */
     
    5356        int eof;
    5457       
    55         /** Klog indicator */
    56         int klog;
     58        /** KIO indicator */
     59        int kio;
    5760       
    5861        /** Session to the file provider */
     
    8285        /** Points to end of occupied space when in read mode. */
    8386        uint8_t *buf_tail;
     87
     88        /** Pushed back characters */
     89        uint8_t ungetc_buf[UNGETC_MAX];
     90
     91        /** Number of pushed back characters */
     92        int ungetc_chars;
    8493};
    8594
Note: See TracChangeset for help on using the changeset viewer.