add const to gd internal tables (gdCostT, gdSinT, UnicodeTbl)
parent
3e31ccac83
commit
96f5a6d464
4
src/gd.c
4
src/gd.c
|
@ -61,8 +61,8 @@ static const unsigned char gd_toascii[256] = {
|
|||
};
|
||||
#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);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
int gdCosT[] = {
|
||||
const int gdCosT[] = {
|
||||
1024,
|
||||
1023,
|
||||
1023,
|
||||
|
@ -362,7 +362,7 @@ int gdCosT[] = {
|
|||
1023
|
||||
};
|
||||
|
||||
int gdSinT[] = {
|
||||
const int gdSinT[] = {
|
||||
0,
|
||||
17,
|
||||
35,
|
||||
|
|
|
@ -8,7 +8,7 @@ extern "C" {
|
|||
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,
|
||||
|
|
Loading…
Reference in New Issue