summaryrefslogtreecommitdiff
path: root/lib/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/encoding.c')
-rw-r--r--lib/encoding.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/lib/encoding.c b/lib/encoding.c
index d969c50..3335dc4 100644
--- a/lib/encoding.c
+++ b/lib/encoding.c
@@ -1,20 +1,21 @@
-/* encoding.c: read a font encoding (.enc) file.
+# encoding.c: read a font encoding (.enc) 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"
@@ -26,7 +27,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
static encoding_char_type parse_encoding_line (string);
static tfm_ligature_type parse_ligature (void);
-
+
/* Look through INFO for NAME. */
int
@@ -44,7 +45,7 @@ encoding_number (encoding_info_type info, string name)
return -1;
}
-
+
/* Return the basename for the encoding file in which the encoding
CODING_SCHEME can be found. If we can't find CODING_SCHEME, return
DEFAULT_ENCODING. */
@@ -85,7 +86,7 @@ coding_scheme_to_filename (string coding_scheme)
return enc_name;
}
-
+
/* Parse the encoding file `FILENAME.enc' and return a structure
describing what we read. If the file doesn't exist, give a fatal
error. */
@@ -118,7 +119,7 @@ read_encoding_file (string filename)
return info;
}
-
+
/* Parse one line of the encoding file; this specifies one character.
The BNF is: