summaryrefslogtreecommitdiff
path: root/gf/gf_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'gf/gf_input.c')
-rw-r--r--gf/gf_input.c47
1 files changed, 23 insertions, 24 deletions
diff --git a/gf/gf_input.c b/gf/gf_input.c
index be30941..1ba0d19 100644
--- a/gf/gf_input.c
+++ b/gf/gf_input.c
@@ -1,20 +1,20 @@
-/* gf_input.c: read objects from one GF file.
-
-Copyright (C) 1992, 2004, 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. */
+# gf_input.c: read objects from one GF file.
+#
+# Copyright (C) 1992, 2004, 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/>.
+#
#include "config.h"
@@ -33,7 +33,6 @@ static boolean tracing_gf_input = false;
static string gf_input_filename;
static FILE *gf_input_file;
-
/* Low-level input. These macros call the corresponding routines in
kbase, using the static variables for the input file and filename. */
@@ -87,7 +86,7 @@ static void get_new_row
static void append_byte (raw_char_type *, one_byte);
static void append_n_bytes (raw_char_type *, four_bytes, one_byte *);
static raw_char_type new_raw_gf_char (gf_char_locator_type);
-
+
/* Start reading FILENAME. Return false if it can't be opened. */
boolean
@@ -120,7 +119,7 @@ gf_close_input_file ()
for (code = 0; code <= MAX_CHARCODE; code++)
char_list[code] = NULL;
}
-
+
/* The only interesting thing in the preamble, either to the user or to
us, is the comment.
@@ -145,7 +144,7 @@ gf_get_preamble ()
return answer;
}
-
+
/* Reading the postamble. This is the user-level call. We make no
assumptions about the current position of the file pointer. */
@@ -256,7 +255,7 @@ get_locators ()
}
while (true);
}
-
+
/* Unlike `gf_get_next_char' (which comes next), this routine will get any
character by its code. It is meant to be called by the user. We
save all the characters we read in the static `char_list', to avoid
@@ -718,7 +717,7 @@ get_new_row (coordinate_type *current, boolean *painting_black,
printf ("\nnew_row %u (x,y now %d,%d) ", command - NEW_ROW_0,
current->x, current->y);
}
-
+
/* Instead of building a bitmap, this routine just reads the bytes that
define the character CHARCODE. If the character doesn't exist, we
return NULL. */
@@ -906,7 +905,7 @@ new_raw_gf_char (gf_char_locator_type locator)
bounding box information in the character isn't lost.) */
return c;
}
-
+
/* Read all specials beginning from the given location, leaving the file
pointer at the first non-special. We do not save the specials,
though. */