comparison src/tokenizer.cpp @ 27:28fec0c67646

make add/remove commands configureable
author carl
date Sun, 12 Feb 2006 10:54:03 -0800
parents 8fe310e5cd44
children 6a2f26976898
comparison
equal deleted inserted replaced
26:00bd0b0ef015 27:28fec0c67646
331 } 331 }
332 332
333 333
334 bool TOKEN::next_char(u_char &uc) { 334 bool TOKEN::next_char(u_char &uc) {
335 if (pushed) { 335 if (pushed) {
336 uc = (u_char)tolower((char)pushed_char); 336 //uc = (u_char)tolower((char)pushed_char);
337 uc = pushed_char;
337 pushed = false; 338 pushed = false;
338 return true; 339 return true;
339 } 340 }
340 while (!streams.empty() && streams.front()->eof()) { 341 while (!streams.empty() && streams.front()->eof()) {
341 pop(); 342 pop();
346 if (is->eof()) return next_char(uc); 347 if (is->eof()) return next_char(uc);
347 if (uc == (u_char)'\n') { 348 if (uc == (u_char)'\n') {
348 int &line = linenumbers.front(); 349 int &line = linenumbers.front();
349 line++; 350 line++;
350 } 351 }
351 uc = (u_char)tolower((char)uc); 352 //uc = (u_char)tolower((char)uc);
352 return true; 353 return true;
353 } 354 }
354 355
355 356
356 bool TOKEN::include(char *fn) { 357 bool TOKEN::include(char *fn) {