Store each glyph name only once in PS driver
Alexandre Julliard
julliard at winehq.com
Wed Apr 18 12:53:59 CDT 2001
Ian Pilcher <ian.pilcher at home.com> writes:
> typedef struct {
> + INT index;
> + CHAR sz[0];
> +} GLYPHNAME;
> +
> +typedef struct {
> + LONG UV;
> + GLYPHNAME *name;
> +} UNICODEGLYPH;
> +
> +typedef struct {
> + INT size;
> + UNICODEGLYPH glyphs[0];
> +} UNICODEVECTOR;
Zero-size arrays are not portable, and the standard method of using a
size of 1 doesn't work well with initialized data (lots of warnings).
So you probably need to change your data structures a bit; also it
would be nice to store all the preinitialized stuff, or at least the
strings, in read-only memory to save a bit of swap space.
--
Alexandre Julliard
julliard at winehq.com
More information about the wine-devel
mailing list