Commits

Anonymous committed 96f5a6d

add const to gd internal tables (gdCostT, gdSinT, UnicodeTbl)

  • Participants
  • Parent commits 3e31cca

Comments (0)

Files changed (3)

 };
 #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);

File src/gdtables.c

 
-int gdCosT[] = {
+const int gdCosT[] = {
   1024,
   1023,
   1023,
   1023
 };
 
-int gdSinT[] = {
+const int gdSinT[] = {
   0,
   17,
   35,

File src/jisx0208.h

    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,