summaryrefslogtreecommitdiff
path: root/lib/libfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfile.c')
-rw-r--r--lib/libfile.c37
1 files changed, 19 insertions, 18 deletions
diff --git a/lib/libfile.c b/lib/libfile.c
index 525b2bc..7e123b7 100644
--- a/lib/libfile.c
+++ b/lib/libfile.c
@@ -1,20 +1,21 @@
-/* libfile.c: open and read a single auxiliary data file.
+# libfile.c: open and read a single auxiliary data file.
+#
+# Copyright (C) 1992, 2011 Free Software Foundation, Inc.
+#
+# 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 3 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, see <http://www.gnu.org/licenses/>.
+#
-Copyright (C) 1992, 2011 Free Software Foundation, Inc.
-
-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 3, 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., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "config.h"
#include "paths.h"
@@ -66,7 +67,7 @@ libfile_close ()
fclose (lib_file);
lib_file = NULL;
}
-
+
/* Return the name of the currently open file, or NULL if none. */
string
@@ -83,7 +84,7 @@ libfile_linenumber ()
{
return lib_file == NULL ? 0 : lib_file_line_number;
}
-
+
/* Return the next nonblank non-comment line from `lib_file', or NULL if
we are at EOF. Also remove any trailing comment on the line. */