[b83ec692] | 1 | /*
|
---|
[de53138] | 2 | * Copyright (c) 2018 Jaroslav Jindrak
|
---|
[b83ec692] | 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 |
|
---|
[058c240] | 29 | #ifndef LIBCPP_CSTDIO
|
---|
| 30 | #define LIBCPP_CSTDIO
|
---|
| 31 |
|
---|
| 32 |
|
---|
[de53138] | 33 | namespace std::hel
|
---|
| 34 | {
|
---|
| 35 | extern "C" {
|
---|
| 36 | #include <stdio.h>
|
---|
| 37 | }
|
---|
| 38 | }
|
---|
| 39 |
|
---|
[058c240] | 40 | namespace std
|
---|
| 41 | {
|
---|
[de53138] | 42 | using std::hel::FILE;
|
---|
[7bbf91e] | 43 | using std::hel::stdin;
|
---|
| 44 | using std::hel::stdout;
|
---|
| 45 | using std::hel::stderr;
|
---|
[de53138] | 46 | /* using std::hel::fpos_t */
|
---|
| 47 | using std::hel::size_t;
|
---|
[058c240] | 48 |
|
---|
[de53138] | 49 | using std::hel::clearerr;
|
---|
| 50 | using std::hel::fclose;
|
---|
| 51 | using std::hel::feof;
|
---|
| 52 | using std::hel::ferror;
|
---|
| 53 | using std::hel::fflush;
|
---|
| 54 | using std::hel::fgetc;
|
---|
| 55 | /* using std::hel::fgetpos; */
|
---|
| 56 | using std::hel::fgets;
|
---|
| 57 | using std::hel::fopen;
|
---|
| 58 | using std::hel::fprintf;
|
---|
| 59 | using std::hel::fputc;
|
---|
| 60 | using std::hel::fputs;
|
---|
| 61 | using std::hel::fread;
|
---|
| 62 | using std::hel::freopen;
|
---|
| 63 | /* using std::hel::fscanf; */
|
---|
| 64 | using std::hel::fseek;
|
---|
| 65 | /* using std::hel::fsetpos; */
|
---|
| 66 | using std::hel::ftell;
|
---|
| 67 | using std::hel::fwrite;
|
---|
| 68 | /* using std::hel::getc; */
|
---|
| 69 | using std::hel::getchar;
|
---|
| 70 | /* using std::hel::perror; */
|
---|
| 71 | using std::hel::printf;
|
---|
| 72 | /* using std::hel::putc; */
|
---|
| 73 | using std::hel::putchar;
|
---|
| 74 | using std::hel::puts;
|
---|
| 75 | using std::hel::remove;
|
---|
| 76 | using std::hel::rename;
|
---|
| 77 | using std::hel::rewind;
|
---|
| 78 | /* using std::hel::scanf; */
|
---|
| 79 | using std::hel::setbuf;
|
---|
| 80 | using std::hel::setvbuf;
|
---|
| 81 | using std::hel::snprintf;
|
---|
| 82 | /* using std::hel::sprintf; */
|
---|
| 83 | /* using std::hel::sscanf; */
|
---|
| 84 | /* using std::hel::tmpfile; */
|
---|
| 85 | /* using std::hel::tmpnam; */
|
---|
| 86 | using std::hel::ungetc;
|
---|
| 87 | using std::hel::vfprintf;
|
---|
| 88 | using std::hel::vprintf;
|
---|
| 89 | /* using std::hel::vscanf; */
|
---|
| 90 | using std::hel::vsnprintf;
|
---|
| 91 | /* using std::hel::vsprintf; */
|
---|
| 92 | /* using std::hel::vsscanf; */
|
---|
[058c240] | 93 | }
|
---|
| 94 |
|
---|
[de53138] | 95 | using std::hel::FILE;
|
---|
| 96 | /* using std::hel::fpos_t */
|
---|
| 97 | using std::hel::size_t;
|
---|
| 98 |
|
---|
| 99 | using std::hel::clearerr;
|
---|
| 100 | using std::hel::fclose;
|
---|
| 101 | using std::hel::feof;
|
---|
| 102 | using std::hel::ferror;
|
---|
| 103 | using std::hel::fflush;
|
---|
| 104 | using std::hel::fgetc;
|
---|
| 105 | /* using std::hel::fgetpos; */
|
---|
| 106 | using std::hel::fgets;
|
---|
| 107 | using std::hel::fopen;
|
---|
| 108 | using std::hel::fprintf;
|
---|
| 109 | using std::hel::fputc;
|
---|
| 110 | using std::hel::fputs;
|
---|
| 111 | using std::hel::fread;
|
---|
| 112 | using std::hel::freopen;
|
---|
| 113 | /* using std::hel::fscanf; */
|
---|
| 114 | using std::hel::fseek;
|
---|
| 115 | /* using std::hel::fsetpos; */
|
---|
| 116 | using std::hel::ftell;
|
---|
| 117 | using std::hel::fwrite;
|
---|
| 118 | /* using std::hel::getc; */
|
---|
| 119 | using std::hel::getchar;
|
---|
| 120 | /* using std::hel::perror; */
|
---|
| 121 | using std::hel::printf;
|
---|
| 122 | /* using std::hel::putc; */
|
---|
| 123 | using std::hel::putchar;
|
---|
| 124 | using std::hel::puts;
|
---|
| 125 | using std::hel::remove;
|
---|
| 126 | using std::hel::rename;
|
---|
| 127 | using std::hel::rewind;
|
---|
| 128 | /* using std::hel::scanf; */
|
---|
| 129 | using std::hel::setbuf;
|
---|
| 130 | using std::hel::setvbuf;
|
---|
| 131 | using std::hel::snprintf;
|
---|
| 132 | /* using std::hel::sprintf; */
|
---|
| 133 | /* using std::hel::sscanf; */
|
---|
| 134 | /* using std::hel::tmpfile; */
|
---|
| 135 | /* using std::hel::tmpnam; */
|
---|
| 136 | using std::hel::ungetc;
|
---|
| 137 | using std::hel::vfprintf;
|
---|
| 138 | using std::hel::vprintf;
|
---|
| 139 | /* using std::hel::vscanf; */
|
---|
| 140 | using std::hel::vsnprintf;
|
---|
| 141 | /* using std::hel::vsprintf; */
|
---|
| 142 | /* using std::hel::vsscanf; */
|
---|
[058c240] | 143 |
|
---|
| 144 | #endif
|
---|