18 Apr
2001
18 Apr
'01
5:53 p.m.
Ian Pilcher <ian.pilcher(a)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(a)winehq.com