~vojtech-horky/helenos/helenos-qemu

« back to all changes in this revision

Viewing changes to uspace/lib/c/generic/private/stdio.h

  • Committer: Vojtech Horky
  • Date: 2017-02-13 11:51:33 UTC
  • mfrom: (2103.1.479 HelenOS.clean)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170213115133-j4tgzq0p3xmioj8c
MergeĀ mainlineĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <stdio.h>
40
40
#include <async.h>
41
41
 
 
42
/** Maximum characters that can be pushed back by ungetc() */
 
43
#define UNGETC_MAX 1
 
44
 
42
45
struct _IO_FILE {
43
46
        /** Linked list pointer. */
44
47
        link_t link;
81
84
        
82
85
        /** Points to end of occupied space when in read mode. */
83
86
        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;
84
93
};
85
94
 
86
95
#endif