From 850822ffbfd441d05161452be28b54f882b1b378 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 1 Nov 2017 03:41:16 -0700 Subject: 4102 --- html/087file.cc.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/087file.cc.html') diff --git a/html/087file.cc.html b/html/087file.cc.html index 2b2a60d1..25952ce2 100644 --- a/html/087file.cc.html +++ b/html/087file.cc.html @@ -172,7 +172,7 @@ if ('onhashchange' in window) { 111 long long int x = static_cast<long long int>(ingredients.at(0).at(0)); 112 FILE* f = reinterpret_cast<FILE*>(x); 113 if (f == NULL) { -114 ¦ raise << maybe(current_recipe_name()) << "can't read from null file in '" << to_string(current_instruction()) << "'\n" << end(); +114 ¦ raise << maybe(current_recipe_name()) << "can't read from null file in '" << to_string(current_instruction()) << "'\n" << end(); 115 ¦ break; 116 } 117 products.resize(2); @@ -182,7 +182,7 @@ if ('onhashchange' in window) { 121 ¦ break; 122 } 123 if (ferror(f)) { -124 ¦ raise << maybe(current_recipe_name()) << "file in invalid state in '" << to_string(current_instruction()) << "'\n" << end(); +124 ¦ raise << maybe(current_recipe_name()) << "file in invalid state in '" << to_string(current_instruction()) << "'\n" << end(); 125 ¦ break; 126 } 127 char c = getc(f); // todo: unicode @@ -192,7 +192,7 @@ if ('onhashchange' in window) { 131 ¦ break; 132 } 133 if (ferror(f)) { -134 ¦ raise << maybe(current_recipe_name()) << "couldn't read from file in '" << to_string(current_instruction()) << "'\n" << end(); +134 ¦ raise << maybe(current_recipe_name()) << "couldn't read from file in '" << to_string(current_instruction()) << "'\n" << end(); 135 ¦ raise << " errno: " << errno << '\n' << end(); 136 ¦ break; 137 } @@ -232,19 +232,19 @@ if ('onhashchange' in window) { 171 long long int x = static_cast<long long int>(ingredients.at(0).at(0)); 172 FILE* f = reinterpret_cast<FILE*>(x); 173 if (f == NULL) { -174 ¦ raise << maybe(current_recipe_name()) << "can't write to null file in '" << to_string(current_instruction()) << "'\n" << end(); +174 ¦ raise << maybe(current_recipe_name()) << "can't write to null file in '" << to_string(current_instruction()) << "'\n" << end(); 175 ¦ break; 176 } 177 if (feof(f)) break; 178 if (ferror(f)) { -179 ¦ raise << maybe(current_recipe_name()) << "file in invalid state in '" << to_string(current_instruction()) << "'\n" << end(); +179 ¦ raise << maybe(current_recipe_name()) << "file in invalid state in '" << to_string(current_instruction()) << "'\n" << end(); 180 ¦ break; 181 } 182 long long int y = static_cast<long long int>(ingredients.at(1).at(0)); 183 char c = static_cast<char>(y); 184 putc(c, f); // todo: unicode 185 if (ferror(f)) { -186 ¦ raise << maybe(current_recipe_name()) << "couldn't write to file in '" << to_string(current_instruction()) << "'\n" << end(); +186 ¦ raise << maybe(current_recipe_name()) << "couldn't write to file in '" << to_string(current_instruction()) << "'\n" << end(); 187 ¦ raise << " errno: " << errno << '\n' << end(); 188 ¦ break; 189 } -- cgit 1.4.1-2-gfad0