From: "Erich E. Hoover" Subject: [PATCH 1/3] wineps.drv: Make the Unicode name-sorted glyph table fully const. Message-Id: Date: Tue, 15 Sep 2015 16:02:00 -0600 This patch series fixes several places where glyph table values are not const, preventing the compiler from placing the table in read-only memory. Noticed by Dmitry Timoshkov. From 5e161cec75f6b7123da20ba90a057ec7cbd06766 Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Tue, 15 Sep 2015 15:55:08 -0600 Subject: wineps.drv: Make the Unicode name-sorted glyph table fully const. --- dlls/wineps.drv/data/agl.c | 2 +- dlls/wineps.drv/mkagl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wineps.drv/data/agl.c b/dlls/wineps.drv/data/agl.c index c7c2d38..64e18f5 100644 --- a/dlls/wineps.drv/data/agl.c +++ b/dlls/wineps.drv/data/agl.c @@ -1353,7 +1353,7 @@ GLYPHNAME PSDRV_AGLGlyphNames[1258] = const INT PSDRV_AGLbyNameSize = 1039; -const UNICODEGLYPH PSDRV_AGLbyName[1039] = +const UNICODEGLYPH const PSDRV_AGLbyName[1039] = { { 0x0041, GN_A }, { 0x00c6, GN_AE }, { 0x01fc, GN_AEacute }, { 0xf7e6, GN_AEsmall }, diff --git a/dlls/wineps.drv/mkagl.c b/dlls/wineps.drv/mkagl.c index f8919e3..c898b8f 100644 --- a/dlls/wineps.drv/mkagl.c +++ b/dlls/wineps.drv/mkagl.c @@ -410,7 +410,7 @@ static void write_encoding_by_name(FILE *f) "\n", f); fprintf(f, "const INT PSDRV_AGLbyNameSize = %i;\n\n", size); - fprintf(f, "const UNICODEGLYPH PSDRV_AGLbyName[%i] =\n{\n", size); + fprintf(f, "const UNICODEGLYPH const PSDRV_AGLbyName[%i] =\n{\n", size); for (i = 0; i < num_glyphs - 1; ++i) { -- 1.9.1