Implemented the SHOW command and massaged the SET command to fit
[pspp-builds.git] / src / lexer.c
index 94793bfb9557d4d0191b411c93405bc09fcd98e2..5b1b39415393548b4619dc16873a09bfaa28c48f 100644 (file)
@@ -422,7 +422,7 @@ lex_double_p (void)
 
 /* Returns the value of the current token, which must be a
    floating point number. */
-long
+double
 lex_double (void)
 {
   assert (lex_double_p ());
@@ -794,12 +794,12 @@ lex_preprocess_line (void)
       len--;
 
     /* Check for and remove terminal dot. */
-    if (len > 0 && s[len - 1] == set_endcmd)
+    if (len > 0 && s[len - 1] == get_endcmd() )
       {
        dot = 1;
        len--;
       }
-    else if (len == 0 && set_nullline)
+    else if (len == 0 && get_nullline() )
       dot = 1;
     else
       dot = 0;