cvs: gd /libgd gd.c gdtables.c jisx0208.h

[email protected] ("Nuno Lopes") Sun, 17 Jun 2007 22:11:20 -0000
Newsgroups php.gd.cvs
Message-ID <cvsnlopess1182118280@cvsserver>
nlopess		Sun Jun 17 22:11:20 2007 UTC

  Modified files:              
    /gd/libgd	gd.c gdtables.c jisx0208.h 
  Log:
  add const to gd internal tables (gdCostT, gdSinT, UnicodeTbl)
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.61&r2=1.62&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.61 gd/libgd/gd.c:1.62
--- gd/libgd/gd.c:1.61	Sun Jun 17 18:56:28 2007
+++ gd/libgd/gd.c	Sun Jun 17 22:11:20 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.61 2007/06/17 18:56:28 nlopess Exp $ */
+/* $Id: gd.c,v 1.62 2007/06/17 22:11:20 nlopess Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -61,8 +61,8 @@
 };
 #endif /*CHARSET_EBCDIC */
 
-extern int gdCosT[];
-extern int gdSinT[];
+extern const int gdCosT[];
+extern const int gdSinT[];
 
 static void gdImageBrushApply (gdImagePtr im, int x, int y);
 static void gdImageTileApply (gdImagePtr im, int x, int y);
http://cvs.php.net/viewvc.cgi/gd/libgd/gdtables.c?r1=1.3&r2=1.4&diff_format=u
Index: gd/libgd/gdtables.c
diff -u gd/libgd/gdtables.c:1.3 gd/libgd/gdtables.c:1.4
--- gd/libgd/gdtables.c:1.3	Wed Apr  5 15:46:42 2006
+++ gd/libgd/gdtables.c	Sun Jun 17 22:11:20 2007
@@ -1,5 +1,5 @@
 
-int gdCosT[] = {
+const int gdCosT[] = {
   1024,
   1023,
   1023,
@@ -362,7 +362,7 @@
   1023
 };
 
-int gdSinT[] = {
+const int gdSinT[] = {
   0,
   17,
   35,
http://cvs.php.net/viewvc.cgi/gd/libgd/jisx0208.h?r1=1.3&r2=1.4&diff_format=u
Index: gd/libgd/jisx0208.h
diff -u gd/libgd/jisx0208.h:1.3 gd/libgd/jisx0208.h:1.4
--- gd/libgd/jisx0208.h:1.3	Wed Apr  5 15:54:20 2006
+++ gd/libgd/jisx0208.h	Sun Jun 17 22:11:20 2007
@@ -8,7 +8,7 @@
    by Dr. Kakugawa */
 
 /* JIS -> Unicode mapping table */
-static unsigned short UnicodeTbl[][94] = {
+static const unsigned short UnicodeTbl[][94] = {
   {				/* category 01 */
    0x0000, 0x3001, 0x3002, 0xFF0C, 0xFF0E, 0x30FB, 0xFF1A, 0xFF1B,
    0xFF1F, 0xFF01, 0x309B, 0x309C, 0x00B4, 0xFF40, 0x00A8, 0xFF3E,