nlopess         Fri Sep 15 15:11:54 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/gd/libgd       gd.h gdfontg.c gdfontl.c gdfontmb.c gdfonts.c 
                                gdfontt.c gdtables.c 
  Log:
  mark some huge arrays as read-only
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.h?r1=1.26.2.3&r2=1.26.2.3.2.1&diff_format=u
Index: php-src/ext/gd/libgd/gd.h
diff -u php-src/ext/gd/libgd/gd.h:1.26.2.3 
php-src/ext/gd/libgd/gd.h:1.26.2.3.2.1
--- php-src/ext/gd/libgd/gd.h:1.26.2.3  Sun Feb  5 15:53:58 2006
+++ php-src/ext/gd/libgd/gd.h   Fri Sep 15 15:11:53 2006
@@ -193,7 +193,7 @@
        /* Font data; array of characters, one row after another.
                Easily included in code, also easily loaded from
                data files. */
-       char *data;
+       const char *data;
 } gdFont;
 
 /* Text functions take these. */
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdfontg.c?r1=1.2&r2=1.2.6.1&diff_format=u
Index: php-src/ext/gd/libgd/gdfontg.c
diff -u php-src/ext/gd/libgd/gdfontg.c:1.2 
php-src/ext/gd/libgd/gdfontg.c:1.2.6.1
--- php-src/ext/gd/libgd/gdfontg.c:1.2  Mon Mar 29 18:20:33 2004
+++ php-src/ext/gd/libgd/gdfontg.c      Fri Sep 15 15:11:53 2006
@@ -13,7 +13,7 @@
 
 #include "gdfontg.h"
 
-char gdFontGiantData[] =
+static const char gdFontGiantData[] =
 {
 /* Char 0 */
   0, 0, 0, 0, 0, 0, 0, 0, 0,
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdfontl.c?r1=1.2&r2=1.2.6.1&diff_format=u
Index: php-src/ext/gd/libgd/gdfontl.c
diff -u php-src/ext/gd/libgd/gdfontl.c:1.2 
php-src/ext/gd/libgd/gdfontl.c:1.2.6.1
--- php-src/ext/gd/libgd/gdfontl.c:1.2  Mon Mar 29 18:20:33 2004
+++ php-src/ext/gd/libgd/gdfontl.c      Fri Sep 15 15:11:54 2006
@@ -14,7 +14,7 @@
 
 #include "gdfontl.h"
 
-char gdFontLargeData[] =
+static const char gdFontLargeData[] =
 {
 /* Char 0 */
   0, 0, 0, 0, 0, 0, 0, 0,
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdfontmb.c?r1=1.2&r2=1.2.6.1&diff_format=u
Index: php-src/ext/gd/libgd/gdfontmb.c
diff -u php-src/ext/gd/libgd/gdfontmb.c:1.2 
php-src/ext/gd/libgd/gdfontmb.c:1.2.6.1
--- php-src/ext/gd/libgd/gdfontmb.c:1.2 Mon Mar 29 18:20:33 2004
+++ php-src/ext/gd/libgd/gdfontmb.c     Fri Sep 15 15:11:54 2006
@@ -12,7 +12,7 @@
 
 #include "gdfontmb.h"
 
-char gdFontMediumBoldData[] =
+static const char gdFontMediumBoldData[] =
 {
 /* Char 0 */
   0, 0, 0, 0, 0, 0, 0,
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdfonts.c?r1=1.2&r2=1.2.6.1&diff_format=u
Index: php-src/ext/gd/libgd/gdfonts.c
diff -u php-src/ext/gd/libgd/gdfonts.c:1.2 
php-src/ext/gd/libgd/gdfonts.c:1.2.6.1
--- php-src/ext/gd/libgd/gdfonts.c:1.2  Mon Mar 29 18:20:33 2004
+++ php-src/ext/gd/libgd/gdfonts.c      Fri Sep 15 15:11:54 2006
@@ -12,7 +12,7 @@
 
 #include "gdfonts.h"
 
-char gdFontSmallData[] =
+static const char gdFontSmallData[] =
 {
 /* Char 0 */
   0, 0, 0, 0, 0, 0,
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdfontt.c?r1=1.2&r2=1.2.6.1&diff_format=u
Index: php-src/ext/gd/libgd/gdfontt.c
diff -u php-src/ext/gd/libgd/gdfontt.c:1.2 
php-src/ext/gd/libgd/gdfontt.c:1.2.6.1
--- php-src/ext/gd/libgd/gdfontt.c:1.2  Mon Mar 29 18:20:33 2004
+++ php-src/ext/gd/libgd/gdfontt.c      Fri Sep 15 15:11:54 2006
@@ -13,7 +13,7 @@
 
 #include "gdfontt.h"
 
-char gdFontTinyData[] =
+static const char gdFontTinyData[] =
 {
 /* Char 0 */
   0, 0, 0, 0, 0,
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdtables.c?r1=1.2.2.1&r2=1.2.2.1.2.1&diff_format=u
Index: php-src/ext/gd/libgd/gdtables.c
diff -u php-src/ext/gd/libgd/gdtables.c:1.2.2.1 
php-src/ext/gd/libgd/gdtables.c:1.2.2.1.2.1
--- php-src/ext/gd/libgd/gdtables.c:1.2.2.1     Sun Oct  9 12:06:27 2005
+++ php-src/ext/gd/libgd/gdtables.c     Fri Sep 15 15:11:54 2006
@@ -5,7 +5,7 @@
 
 #include "php_compat.h"
 
-int gdCosT[] =
+const int gdCosT[] =
 {
   1024,
   1023,
@@ -369,7 +369,7 @@
   1023
 };
 
-int gdSinT[] =
+const int gdSinT[] =
 {
   0,
   17,

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to