[cairo] [PATCH 8/8] Use NULL instead of 0, fix comments for indices

Pavel Roskin proski at gnu.org
Sat Aug 12 22:58:04 PDT 2006


From: Pavel Roskin <proski at gnu.org>

Using NULL is encouraged for pointers.  While fixing that, it turned out
that the comments indicating the current index were wrong, so I'm fixing
them too.

Signed-off-by: Pavel Roskin <proski at gnu.org>
---

 src/cairo-type1-subset.c |   33 ++++++++++++++++++++-------------
 1 files changed, 20 insertions(+), 13 deletions(-)

diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index 52f05f8..f9606e0 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -481,8 +481,10 @@ cairo_type1_font_subset_decode_integer (
 }
 
 static const char *ps_standard_encoding[256] = {
-    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*   0 */
-    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/*  16 */
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,	/*   0 */
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,	/*  16 */
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
     "space", "exclam", "quotedbl", "numbersign",	/*  32 */
     "dollar", "percent", "ampersand", "quoteright",
     "parenleft", "parenright", "asterisk", "plus",
@@ -500,26 +502,31 @@ static const char *ps_standard_encoding[
     "i", "j", "k", "l", "m", "n", "o", "p",
     "q", "r", "s", "t", "u", "v", "w", "x",		/* 112 */
     "y", "z", "braceleft", "bar",
-    "braceright", "asciitilde", 0, 0,
-    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/* 128 */
-    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/* 144 */
-    "exclamdown", "cent", "sterling", "fraction",
+    "braceright", "asciitilde", NULL, NULL,
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,	/* 128 */
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,	/* 144 */
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    "exclamdown", "cent", "sterling", "fraction",	/* 160 */
     "yen", "florin", "section", "currency",
     "quotesingle", "quotedblleft", "guillemotleft", "guilsinglleft",
     "guilsinglright", "fi", "fl", NULL,
-    "endash", "dagger", "daggerdbl", "periodcentered",	/* 160 */
+    "endash", "dagger", "daggerdbl", "periodcentered",	/* 176 */
     NULL, "paragraph", "bullet", "quotesinglbase",
     "quotedblbase", "quotedblright", "guillemotright", "ellipsis",
     "perthousand", NULL, "questiondown", NULL,
-    "grave", "acute", "circumflex", "tilde",		/* 176 */
+    "grave", "acute", "circumflex", "tilde",		/* 192 */
     "macron", "breve", "dotaccent", "dieresis",
     NULL, "ring", "cedilla", NULL,
     "hungarumlaut", "ogonek", "caron", "emdash",
-    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,	/* 192 */
-    "AE", 0, "ordfeminine", 0, 0, 0, 0, "Lslash",	/* 208 */
-    "Oslash", "OE", "ordmasculine", 0, 0, 0, 0, 0,
-    "ae", 0, 0, 0, "dotlessi", 0, 0, "lslash",		/* 224 */
-    "oslash", "oe", "germandbls", 0, 0, 0, 0
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,	/* 208 */
+    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
+    "AE", NULL, "ordfeminine", NULL,			/* 224 */
+    NULL, NULL, NULL, "Lslash",
+    "Oslash", "OE", "ordmasculine", NULL, NULL, NULL, NULL, NULL,
+    "ae", NULL, NULL, NULL,				/* 240 */
+    "dotlessi", NULL, NULL, "lslash",
+    "oslash", "oe", "germandbls", NULL, NULL, NULL, NULL
 };
 
 static void


More information about the cairo mailing list