summaryrefslogtreecommitdiff
path: root/src/poison.hpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-11-15 17:51:29 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-11-15 17:51:29 -0800
commitf906959a09d58c85d87b445fd1791d91bf278bfa (patch)
treeb65282b2c731d4eb2157ae719828cddf6b086943 /src/poison.hpp
parent1fb7ce5a604db78c4d02f719053827269705ce13 (diff)
downloadtmwa-f906959a09d58c85d87b445fd1791d91bf278bfa.tar.gz
tmwa-f906959a09d58c85d87b445fd1791d91bf278bfa.tar.bz2
tmwa-f906959a09d58c85d87b445fd1791d91bf278bfa.tar.xz
tmwa-f906959a09d58c85d87b445fd1791d91bf278bfa.zip
Use new IO classes
Diffstat (limited to 'src/poison.hpp')
-rw-r--r--src/poison.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/poison.hpp b/src/poison.hpp
index e7cc4cc..d4a6cd0 100644
--- a/src/poison.hpp
+++ b/src/poison.hpp
@@ -1,3 +1,5 @@
+#ifndef GENERATING_DEPENDENCIES
+
// impossible(*) to use safely
// removed in C11
#pragma GCC poison gets
@@ -85,3 +87,15 @@
#pragma GCC poison tolower
#pragma GCC poison isupper
#pragma GCC poison islower
+
+// in favor of io::ReadFile and io::WriteFile
+// note that stdout and stderr are NOT poisoned (yet)
+#pragma GCC poison FILE
+#pragma GCC poison istream
+#pragma GCC poison ostream
+#pragma GCC poison iostream
+#pragma GCC poison ifstream
+#pragma GCC poison ofstream
+#pragma GCC poison fstream
+
+#endif // GENERATING_DEPENDENCIES