# HG changeset patch # User jwe # Date 1037120780 0 # Node ID 8b1da831dfeb4df397efb10988b20c699d2acb34 # Parent d5667eaf8859bd11fcb117c4a48d4c11b9d55298 [project @ 2002-11-12 17:06:19 by jwe] diff -r d5667eaf8859 -r 8b1da831dfeb src/ChangeLog --- a/src/ChangeLog Tue Nov 12 03:13:42 2002 +0000 +++ b/src/ChangeLog Tue Nov 12 17:06:20 2002 +0000 @@ -1,3 +1,8 @@ +2002-11-12 Joseph P. Skudlarek + + * input.cc (match_sans_spaces_semi): Rename from match_sans_spaces. + Ignore trailing semicolons too. Change all callers. + 2002-11-11 John W. Eaton * octave.gperf: Allow "persistent" as a synonym for static. diff -r d5667eaf8859 -r 8b1da831dfeb src/input.cc --- a/src/input.cc Tue Nov 12 03:13:42 2002 +0000 +++ b/src/input.cc Tue Nov 12 17:06:20 2002 +0000 @@ -500,13 +500,13 @@ } static bool -match_sans_spaces (const std::string& standard, const std::string& test) +match_sans_spaces_semi (const std::string& standard, const std::string& test) { size_t beg = test.find_first_not_of (" \t"); if (beg != NPOS) { - size_t end = test.find_last_not_of (" \t"); + size_t end = test.find_last_not_of ("; \t"); size_t len = end == NPOS ? NPOS : end - beg + 1; @@ -571,14 +571,14 @@ if (debug) { - if (match_sans_spaces ("exit", input_buf) - || match_sans_spaces ("quit", input_buf) - || match_sans_spaces ("return", input_buf) - || match_sans_spaces ("dbg_cont", input_buf)) + if (match_sans_spaces_semi ("exit", input_buf) + || match_sans_spaces_semi ("quit", input_buf) + || match_sans_spaces_semi ("return", input_buf) + || match_sans_spaces_semi ("dbg_cont", input_buf)) { return retval; } - else if (match_sans_spaces ("dbg_step", input_buf)) + else if (match_sans_spaces_semi ("dbg_step", input_buf)) { tree::break_next = true; @@ -588,7 +588,7 @@ return retval; } - else if (match_sans_spaces ("dbg_next", input_buf)) + else if (match_sans_spaces_semi ("dbg_next", input_buf)) { tree::break_next = true;