Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(806)

Unified Diff: runtime/bin/stdio.h

Issue 2585443002: Error checking for Stdio calls (Closed)
Patch Set: Fix Windows Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/stdio.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio.h
diff --git a/runtime/bin/stdio.h b/runtime/bin/stdio.h
index 9bf079a0dbd1c5324225f882850a795159fe0d15..56b591499b6e54cb825fe8809bf12a7e62d200af 100644
--- a/runtime/bin/stdio.h
+++ b/runtime/bin/stdio.h
@@ -19,13 +19,13 @@ namespace bin {
class Stdin {
public:
- static int ReadByte();
+ static bool ReadByte(int* byte);
- static bool GetEchoMode();
- static void SetEchoMode(bool enabled);
+ static bool GetEchoMode(bool* enabled);
+ static bool SetEchoMode(bool enabled);
- static bool GetLineMode();
- static void SetLineMode(bool enabled);
+ static bool GetLineMode(bool* enabled);
+ static bool SetLineMode(bool enabled);
private:
DISALLOW_ALLOCATION();
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/stdio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698