Go to the source code of this file.
◆ _ungetwc_nolock()
Definition at line 151 of file ungetwc.cpp.
152{
154
155
158
159
160
164
165 if (!is_in_read_mode && !(is_in_update_mode && !is_in_write_mode))
167
168
169 if (
stream->_base ==
nullptr)
171
172
173
175 {
177 }
178
179
180
182}
void __cdecl __acrt_stdio_allocate_buffer_nolock(FILE *const public_stream)
_Check_return_ _CRTIMP int __cdecl _fileno(_In_ FILE *_File)
static wint_t __cdecl ungetwc_text_mode_nolock(wint_t const c, __crt_stdio_stream const stream)
static wint_t __cdecl ungetwc_binary_mode_nolock(wint_t const c, __crt_stdio_stream const stream)
Referenced by ungetwc().
◆ ungetwc()
Definition at line 16 of file ungetwc.cpp.
17{
19
21
24 {
26 }
28 {
30 }
32
33 return return_value;
34}
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
_CRTIMP void __cdecl _unlock_file(_Inout_ FILE *_File)
_CRTIMP void __cdecl _lock_file(_Inout_ FILE *_File)
wint_t __cdecl _ungetwc_nolock(wint_t const c, FILE *const public_stream)
◆ ungetwc_binary_mode_nolock()
Definition at line 98 of file ungetwc.cpp.
99{
100 wchar_t const wide_c =
static_cast<wchar_t>(
c);
101
102
103
104
106 {
107
108
109
112
113 if (
sizeof(
wchar_t) >
stream->_bufsiz)
115
117 }
118
119 wchar_t*& wide_stream_ptr =
reinterpret_cast<wchar_t*&
>(
stream->_ptr);
120
121
122
123
124
125
126 if (
stream.is_string_backed())
127 {
128 if (*--wide_stream_ptr != wide_c)
129 {
130 ++wide_stream_ptr;
132 }
133 }
134
135
136 else
137 {
138 *--wide_stream_ptr = wide_c;
139 }
140
142
145
146 return static_cast<wint_t>(wide_c);
147}
Referenced by _ungetwc_nolock().
◆ ungetwc_text_mode_nolock()
Definition at line 39 of file ungetwc.cpp.
40{
41
42
44
47
48
49
50
52 {
53
56 }
57
58
59
60
61 else
62 {
63 char const* c_bytes =
reinterpret_cast<char const*
>(&
c);
64 characters[0] = c_bytes[0];
65 characters[1] = c_bytes[1];
67 }
68
69
70
71
73 {
76
79
81 }
82
84 {
85 *--
stream->_ptr = characters[
i];
86 }
87
89
92 return static_cast<wint_t>(0xffff &
c);
93}
GLuint GLuint GLsizei count
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define _textmode_safe(i)
errno_t __cdecl wctomb_s(int *const return_value, char *const destination, size_t const destination_count, wchar_t const wchar)
Referenced by _ungetwc_nolock().