1 | /*
|
---|
2 | * Copyright (c) 2018 Jaroslav Jindrak
|
---|
3 | * All rights reserved.
|
---|
4 | *
|
---|
5 | * Redistribution and use in source and binary forms, with or without
|
---|
6 | * modification, are permitted provided that the following conditions
|
---|
7 | * are met:
|
---|
8 | *
|
---|
9 | * - Redistributions of source code must retain the above copyright
|
---|
10 | * notice, this list of conditions and the following disclaimer.
|
---|
11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
12 | * notice, this list of conditions and the following disclaimer in the
|
---|
13 | * documentation and/or other materials provided with the distribution.
|
---|
14 | * - The name of the author may not be used to endorse or promote products
|
---|
15 | * derived from this software without specific prior written permission.
|
---|
16 | *
|
---|
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
27 | */
|
---|
28 |
|
---|
29 | #ifndef LIBCPP_CSTDIO
|
---|
30 | #define LIBCPP_CSTDIO
|
---|
31 |
|
---|
32 | #include "internal/common.hpp"
|
---|
33 |
|
---|
34 | namespace std::hel
|
---|
35 | {
|
---|
36 | extern "C" {
|
---|
37 | #include <stdio.h>
|
---|
38 | }
|
---|
39 | }
|
---|
40 |
|
---|
41 | namespace std
|
---|
42 | {
|
---|
43 | using std::hel::FILE;
|
---|
44 | /* using std::hel::fpos_t */
|
---|
45 | using std::hel::size_t;
|
---|
46 |
|
---|
47 | using std::hel::clearerr;
|
---|
48 | using std::hel::fclose;
|
---|
49 | using std::hel::feof;
|
---|
50 | using std::hel::ferror;
|
---|
51 | using std::hel::fflush;
|
---|
52 | using std::hel::fgetc;
|
---|
53 | /* using std::hel::fgetpos; */
|
---|
54 | using std::hel::fgets;
|
---|
55 | using std::hel::fopen;
|
---|
56 | using std::hel::fprintf;
|
---|
57 | using std::hel::fputc;
|
---|
58 | using std::hel::fputs;
|
---|
59 | using std::hel::fread;
|
---|
60 | using std::hel::freopen;
|
---|
61 | /* using std::hel::fscanf; */
|
---|
62 | using std::hel::fseek;
|
---|
63 | /* using std::hel::fsetpos; */
|
---|
64 | using std::hel::ftell;
|
---|
65 | using std::hel::fwrite;
|
---|
66 | /* using std::hel::getc; */
|
---|
67 | using std::hel::getchar;
|
---|
68 | /* using std::hel::perror; */
|
---|
69 | using std::hel::printf;
|
---|
70 | /* using std::hel::putc; */
|
---|
71 | using std::hel::putchar;
|
---|
72 | using std::hel::puts;
|
---|
73 | using std::hel::remove;
|
---|
74 | using std::hel::rename;
|
---|
75 | using std::hel::rewind;
|
---|
76 | /* using std::hel::scanf; */
|
---|
77 | using std::hel::setbuf;
|
---|
78 | using std::hel::setvbuf;
|
---|
79 | using std::hel::snprintf;
|
---|
80 | /* using std::hel::sprintf; */
|
---|
81 | /* using std::hel::sscanf; */
|
---|
82 | /* using std::hel::tmpfile; */
|
---|
83 | /* using std::hel::tmpnam; */
|
---|
84 | using std::hel::ungetc;
|
---|
85 | using std::hel::vfprintf;
|
---|
86 | using std::hel::vprintf;
|
---|
87 | /* using std::hel::vscanf; */
|
---|
88 | using std::hel::vsnprintf;
|
---|
89 | /* using std::hel::vsprintf; */
|
---|
90 | /* using std::hel::vsscanf; */
|
---|
91 | }
|
---|
92 |
|
---|
93 | using std::hel::FILE;
|
---|
94 | /* using std::hel::fpos_t */
|
---|
95 | using std::hel::size_t;
|
---|
96 |
|
---|
97 | using std::hel::clearerr;
|
---|
98 | using std::hel::fclose;
|
---|
99 | using std::hel::feof;
|
---|
100 | using std::hel::ferror;
|
---|
101 | using std::hel::fflush;
|
---|
102 | using std::hel::fgetc;
|
---|
103 | /* using std::hel::fgetpos; */
|
---|
104 | using std::hel::fgets;
|
---|
105 | using std::hel::fopen;
|
---|
106 | using std::hel::fprintf;
|
---|
107 | using std::hel::fputc;
|
---|
108 | using std::hel::fputs;
|
---|
109 | using std::hel::fread;
|
---|
110 | using std::hel::freopen;
|
---|
111 | /* using std::hel::fscanf; */
|
---|
112 | using std::hel::fseek;
|
---|
113 | /* using std::hel::fsetpos; */
|
---|
114 | using std::hel::ftell;
|
---|
115 | using std::hel::fwrite;
|
---|
116 | /* using std::hel::getc; */
|
---|
117 | using std::hel::getchar;
|
---|
118 | /* using std::hel::perror; */
|
---|
119 | using std::hel::printf;
|
---|
120 | /* using std::hel::putc; */
|
---|
121 | using std::hel::putchar;
|
---|
122 | using std::hel::puts;
|
---|
123 | using std::hel::remove;
|
---|
124 | using std::hel::rename;
|
---|
125 | using std::hel::rewind;
|
---|
126 | /* using std::hel::scanf; */
|
---|
127 | using std::hel::setbuf;
|
---|
128 | using std::hel::setvbuf;
|
---|
129 | using std::hel::snprintf;
|
---|
130 | /* using std::hel::sprintf; */
|
---|
131 | /* using std::hel::sscanf; */
|
---|
132 | /* using std::hel::tmpfile; */
|
---|
133 | /* using std::hel::tmpnam; */
|
---|
134 | using std::hel::ungetc;
|
---|
135 | using std::hel::vfprintf;
|
---|
136 | using std::hel::vprintf;
|
---|
137 | /* using std::hel::vscanf; */
|
---|
138 | using std::hel::vsnprintf;
|
---|
139 | /* using std::hel::vsprintf; */
|
---|
140 | /* using std::hel::vsscanf; */
|
---|
141 |
|
---|
142 | #endif
|
---|