GNU standards require "file name" instead of "filename" in
[pspp-builds.git] / src / language / line-buffer.c
index 53a63279a5b4eb97a3ab5acbc5daa9fa3597f552..24b09b8cd3d4fab225b69720d67934729e46d060 100644 (file)
@@ -26,7 +26,7 @@
 #include <libpspp/alloc.h>
 #include <language/command.h>
 #include <libpspp/message.h>
-#include <data/filename.h>
+#include <data/file-name.h>
 #include <language/lexer/lexer.h>
 #include <data/settings.h>
 #include <libpspp/str.h>
@@ -45,7 +45,7 @@ struct getl_source
     struct getl_source *next;          /* Next file in list. */
 
     /* Current location. */
-    char *fn;                          /* Filename. */
+    char *fn;                          /* File name. */
     int ln;                            /* Line number. */
 
     enum getl_source_type
@@ -123,7 +123,7 @@ void
 getl_add_include_dir (const char *path)
 {
   if (ds_length (&getl_include_path))
-    ds_putc (&getl_include_path, PATH_DELIMITER);
+    ds_putc (&getl_include_path, ':');
 
   ds_puts (&getl_include_path, path);
 }
@@ -228,8 +228,8 @@ getl_append_syntax_file (const char *fn)
   append_source (create_syntax_file_source (fn));
 }
 
-/* Inserts the given file with filename FN into the current file after
-   the current line. */
+/* Inserts the given file with name FN into the current file
+   after the current line. */
 void
 getl_include_syntax_file (const char *fn)
 {
@@ -427,7 +427,7 @@ err_location (struct file_locator *f)
   if (nfile_loc)
     *f = *file_loc[nfile_loc - 1];
   else
-    getl_location (&f->filename, &f->line_number);
+    getl_location (&f->file_name, &f->line_number);
 }
 
 /* Reads a line from syntax file source S into LINE.