Completely rewrite src/data/format.[ch], to achieve better
[pspp-builds.git] / src / language / lexer / range-parser.c
index 41d01984fb5528dc7ff1b09e90ad07cdf57e3f8e..1682935c5fb65591f5e43fdf111d5a8c9a2359c6 100644 (file)
@@ -1,12 +1,31 @@
+/* PSPP - computes sample statistics.
+   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+   Written by Ben Pfaff <blp@gnu.org>.
+
+   This program is free software; you can redistribute it and/or
+   modify it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful, but
+   WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+   02110-1301, USA. */
+
 #include <config.h>
 #include "range-parser.h"
 #include <stdbool.h>
-#include "data-in.h"
-#include "message.h"
+#include <data/data-in.h>
+#include <libpspp/message.h>
 #include "lexer.h"
-#include "magic.h"
-#include "str.h"
-#include "value.h"
+#include <libpspp/magic.h>
+#include <libpspp/str.h>
+#include <data/value.h>
 
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
@@ -95,7 +114,7 @@ parse_number (double *x, const struct fmt_spec *f)
       *x = v.f;
       if (*x == SYSMIS)
         {
-          lex_error (_("System-missing value is not valid here."));
+          msg (SE, _("System-missing value is not valid here."));
           return false;
         }
       return true;