pspp-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pspp-cvs] Changes to pspp/src/expressions/parse.c


From: Ben Pfaff
Subject: [Pspp-cvs] Changes to pspp/src/expressions/parse.c
Date: Fri, 11 Mar 2005 20:08:34 -0500

Index: pspp/src/expressions/parse.c
diff -u pspp/src/expressions/parse.c:1.5 pspp/src/expressions/parse.c:1.6
--- pspp/src/expressions/parse.c:1.5    Mon Mar  7 03:34:47 2005
+++ pspp/src/expressions/parse.c        Sat Mar 12 01:08:33 2005
@@ -336,7 +336,8 @@
 
     case OP_ni_format:
       if ((*node)->type == OP_format
-          && check_input_specifier (&(*node)->format.f, 0))
+          && check_input_specifier (&(*node)->format.f, false)
+          && check_specifier_type (&(*node)->format.f, NUMERIC, false))
         {
           if (do_coercion)
             (*node)->type = OP_ni_format;
@@ -346,7 +347,8 @@
 
     case OP_no_format:
       if ((*node)->type == OP_format
-          && check_output_specifier (&(*node)->format.f, 0))
+          && check_output_specifier (&(*node)->format.f, false)
+          && check_specifier_type (&(*node)->format.f, NUMERIC, false))
         {
           if (do_coercion)
             (*node)->type = OP_no_format;
@@ -1098,14 +1100,12 @@
     }
   else 
     {
-      ds_create (&s, _("Function invocation "));
+      ds_puts (&s, _("Function invocation "));
       put_invocation (&s, func_name, args, arg_cnt);
       ds_puts (&s, _(" does not match any known function.  Candidates are:"));
 
       for (f = first; f < last; f++)
-        {
-          ds_printf (&s, "\n%s", f->prototype);
-        }
+        ds_printf (&s, "\n%s", f->prototype);
     }
   ds_putc (&s, '.');
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]