summaryrefslogtreecommitdiffabout
path: root/lib
authorMichael Krelin <hacker@klever.net>2005-04-02 17:13:21 (UTC)
committer Michael Krelin <hacker@klever.net>2005-04-02 17:13:21 (UTC)
commit67b825ecb491066424b7e48f864c0b76b4156b28 (patch) (unidiff)
tree32c9f346060d04adc5a1d527656306489a7b0274 /lib
parent986589d804cf07f58b0b9b8786267bf9032d231c (diff)
downloadsitecing-67b825ecb491066424b7e48f864c0b76b4156b28.zip
sitecing-67b825ecb491066424b7e48f864c0b76b4156b28.tar.gz
sitecing-67b825ecb491066424b7e48f864c0b76b4156b28.tar.bz2
removed debugging output
Diffstat (limited to 'lib') (more/less context) (ignore whitespace changes)
-rw-r--r--lib/sitecing_enflesher.ll1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sitecing_enflesher.ll b/lib/sitecing_enflesher.ll
index bb667be..f833af2 100644
--- a/lib/sitecing_enflesher.ll
+++ b/lib/sitecing_enflesher.ll
@@ -227,33 +227,32 @@ void sitecing_enflesher::outs_close() {
227 int rb = remaining; 227 int rb = remaining;
228 if(rb>sizeof(t1)) 228 if(rb>sizeof(t1))
229 rb = sizeof(t1); 229 rb = sizeof(t1);
230 if(i_s.read(t1,rb).gcount()!=rb) 230 if(i_s.read(t1,rb).gcount()!=rb)
231 throw preprocessor_error(CODEPOINT,"error reading just created file"); 231 throw preprocessor_error(CODEPOINT,"error reading just created file");
232 if(i_d.read(t2,rb).gcount()!=rb) 232 if(i_d.read(t2,rb).gcount()!=rb)
233 throw preprocessor_error(CODEPOINT,"error reading the old preprocessed source"); 233 throw preprocessor_error(CODEPOINT,"error reading the old preprocessed source");
234 if(memcmp(t1,t2,rb)) { 234 if(memcmp(t1,t2,rb)) {
235 overwrite = true; 235 overwrite = true;
236 break; 236 break;
237 } 237 }
238 remaining -= rb; 238 remaining -= rb;
239 } 239 }
240 } 240 }
241 } 241 }
242 if(overwrite) { 242 if(overwrite) {
243 cerr << "renaming '" << fn_s << "'" << endl;
244 if(rename(fn_s.c_str(),fn_d.c_str())) 243 if(rename(fn_s.c_str(),fn_d.c_str()))
245 throw preprocessor_error(CODEPOINT,"failed to rename() generated output"); 244 throw preprocessor_error(CODEPOINT,"failed to rename() generated output");
246 } 245 }
247 } 246 }
248 outs_filename.erase(); 247 outs_filename.erase();
249} 248}
250 249
251void sitecing_enflesher::outs_open(const string& nfile) { 250void sitecing_enflesher::outs_open(const string& nfile) {
252 outs_close(); 251 outs_close();
253 outs_filename = nfile; 252 outs_filename = nfile;
254 outs.open((nfile+".new").c_str(),ios::trunc); 253 outs.open((nfile+".new").c_str(),ios::trunc);
255 if(!outs.good()) 254 if(!outs.good())
256 throw preprocessor_error(CODEPOINT,"failed to write preprocessor output"); 255 throw preprocessor_error(CODEPOINT,"failed to write preprocessor output");
257} 256}
258/* 257/*
259 * vim:set ft=lex: 258 * vim:set ft=lex: