]> git.wh0rd.org - fontconfig.git/blobdiff - fc-case/fc-case.c
Bug 43321 - Required corrections in urdu.orth file
[fontconfig.git] / fc-case / fc-case.c
index 588ccf3a27c79644723b2272e319cefa8b8cfcf4..236bff5f0c741b2e9fe9f5c9e770eab7e9359d3e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id$
+ * fontconfig/fc-case/fc-case.c
  *
  * Copyright © 2004 Keith Packard
  *
@@ -7,15 +7,15 @@
  * documentation for any purpose is hereby granted without fee, provided that
  * the above copyright notice appear in all copies and that both that
  * copyright notice and this permission notice appear in supporting
- * documentation, and that the name of Keith Packard not be used in
+ * documentation, and that the name of the author(s) not be used in
  * advertising or publicity pertaining to distribution of the software without
- * specific, written prior permission.  Keith Packard makes no
+ * specific, written prior permission.  The authors make no
  * representations about the suitability of this software for any purpose.  It
  * is provided "as is" without express or implied warranty.
  *
- * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 typedef enum _caseFoldClass { CaseFoldCommon, CaseFoldFull, CaseFoldSimple, CaseFoldTurkic } CaseFoldClass;
 
 typedef struct _caseFoldClassMap {
-    char           *name;
+    const char     *name;
     CaseFoldClass   class;
 } CaseFoldClassMap;
 
-static CaseFoldClassMap        caseFoldClassMap[] = {
+static const CaseFoldClassMap  caseFoldClassMap[] = {
     { "C", CaseFoldCommon },
     { "F", CaseFoldFull },
     { "S", CaseFoldSimple },
@@ -51,7 +51,7 @@ typedef struct _caseFoldRaw {
 } CaseFoldRaw;
 
 static void
-panic (char *reason)
+panic (const char *reason)
 {
     fprintf (stderr, "fc-case: panic %s\n", reason);
     exit (1);
@@ -102,10 +102,10 @@ utf8_size (FcChar32 ucs4)
 }
 
 static FcChar8 *foldChars;
-int            nfoldChars;
-int            maxFoldChars;
-FcChar32       minFoldChar;
-FcChar32       maxFoldChar;
+static int     nfoldChars;
+static int     maxFoldChars;
+static FcChar32        minFoldChar;
+static FcChar32        maxFoldChar;
 
 static void
 addChar (FcChar32 c)
@@ -148,7 +148,7 @@ foldExtends (FcCaseFold *fold, CaseFoldRaw *raw)
     return 0;
 }
            
-static char *
+static const char *
 case_fold_method_name (FcChar16 method)
 {
     switch (method) {