]> www.ginac.de Git - ginac.git/blobdiff - ginsh/ginsh_lexer.ll
Added complex conjugation methods and GiNaC function "conjugate".
[ginac.git] / ginsh / ginsh_lexer.ll
index 3c6f0dfb723aa11db52823bb244e33b985bd53ac..4194f94337af97e8ecfa155cee9c34a3c892ac61 100644 (file)
@@ -87,9 +87,6 @@ score                 return T_SCORE;
 ">="                   return T_GREATEREQ;
 
                        /* last 1..3 expressions */
-\"                     return T_QUOTE;
-\"\"                   return T_QUOTE2;
-\"\"\"                 return T_QUOTE3;
 \%                     return T_QUOTE;
 \%\%                   return T_QUOTE2;
 \%\%\%                 return T_QUOTE3;
@@ -135,7 +132,11 @@ static char *line_ptr;
 static int ginsh_input(char *buf, int max_size)
 {
        int result;
+#if defined(YY_CURRENT_BUFFER)
+       if (YY_CURRENT_BUFFER->yy_is_interactive) {
+#else
        if (yy_current_buffer->yy_is_interactive) {
+#endif
 #ifdef HAVE_LIBREADLINE
                // Do we need to read a new line?
                int actual;