summaryrefslogtreecommitdiff
path: root/lib/fontmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fontmap.c')
-rw-r--r--lib/fontmap.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/lib/fontmap.c b/lib/fontmap.c
index 59344d5..5d83e74 100644
--- a/lib/fontmap.c
+++ b/lib/fontmap.c
@@ -1,20 +1,21 @@
-/* fontmap.c: read a file for additional font names.
+# fontmap.c: read a file for additional font names.
+#
+# Copyright (C) 1993, 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) 1993, 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"
@@ -45,7 +46,7 @@ map_hash (key)
return n;
}
-
+
/* Look up STR in MAP. Return the corresponding `value' or NULL. */
static char *
@@ -97,7 +98,7 @@ map_lookup (map, key)
return ret;
}
-
+
/* If KEY is not already in MAP, insert it and VALUE. */
static void
@@ -124,7 +125,7 @@ map_insert (map, key, value)
(**trailer)->next = NULL;
}
}
-
+
/* Open and read the mapping file FILENAME, putting its entries into
MAP. Comments begin with % and continue to the end of the line. Each
line of the file defines an entry: the first word is the real