X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f8d45a204f506bb2398a7c807b1bc1bd1e7cd3a9..50a3d79f79a223e8a119fe7531fd0a47ebd09d45:/Console.cpp diff --git a/Console.cpp b/Console.cpp index eeda0f9..883f03f 100644 --- a/Console.cpp +++ b/Console.cpp @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2014 Jay Freeman (saurik) + * Copyright (C) 2009-2015 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -85,7 +85,8 @@ static void sigint(int) { case Parsing: longjmp(ctrlc_, 1); case Running: - throw "*** Ctrl-C"; + CYCancel(); + return; case Sending: return; case Waiting: @@ -386,7 +387,7 @@ static char **Complete(const char *word, int start, int end) { // need char *, not const char * static char name_[] = "cycript"; -static char break_[] = " \t\n\"\\'`@$><=;|&{(" ")}" ".:[]"; +static char break_[] = " \t\n\"\\'`@><=;|&{(" ")}" ".:[]"; class History { private: @@ -553,9 +554,9 @@ static void Console(CYOptions &options) { if (parser.parse() != 0 || !driver.errors_.empty()) { for (CYDriver::Errors::const_iterator error(driver.errors_.begin()); error != driver.errors_.end(); ++error) { - cy::position begin(error->location_.begin); + CYPosition begin(error->location_.begin); if (begin.line != lines.size() || begin.column < lines.back().size() || error->warning_) { - cy::position end(error->location_.end); + CYPosition end(error->location_.end); if (begin.line != lines.size()) { std::cerr << " | ";