Mercurial > hg > octave-nkf
changeset 18539:b2a2f097c5e0
maint: merge gui-release to default.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 15 Feb 2014 20:19:42 -0800 |
parents | 0bfa7798c496 (current diff) 044bbf569cd3 (diff) |
children | 16b0cd465ecd |
files | libinterp/parse-tree/lex.ll |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/sighandlers.cc +++ b/libinterp/corefcn/sighandlers.cc @@ -139,6 +139,12 @@ octave_jump_to_enclosing_context_sync (); else { + // 64-bit Windows does not appear to have threadContext.Eip. + // Something else must be done here to allow interrupts to + // properly work across threads. + +#if ! (defined (__MINGW64__) || defined (_WIN64)) + CONTEXT threadContext; SuspendThread (thread); @@ -147,6 +153,7 @@ threadContext.Eip = (DWORD) octave_jump_to_enclosing_context_sync; SetThreadContext (thread, &threadContext); ResumeThread (thread); +#endif } }
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -461,7 +461,7 @@ %} <COMMAND_START>([\.]|[^#% \t\r\n\.\,\;\"\'\(\[\{\}\]\)]*) { - curr_lexer->lexer_debug ("<COMMAND_START>([\.]|[^#% \\t\\r\n\\.\\,\\;\\\"\\'\\(\\[\\{\\}\\]\\)]*"); + curr_lexer->lexer_debug ("<COMMAND_START>([\\.]|[^#% \\t\\r\\n\\.\\,\\;\\\"\\'\\(\\[\\{\\}\\]\\)]*"); curr_lexer->string_text += yytext; curr_lexer->current_input_column += yyleng;