Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: WG: win32 compile error

WG: win32 compile error

From: Danijel Ilisin <d.ilisin_at_wtnet.de>
Date: Fri, 20 Sep 2002 22:33:53 +0200

I fixed that.
Font.h was missing:

typedef unsigned short MWIMAGEBITS; /* bitmap image unit size*/
/* builtin C-based proportional/fixed font structure */
/* based on The Microwindows Project http://microwindows.org */
typedef struct {
    char * name; /* font name*/
    int maxwidth; /* max width in pixels*/
    int height; /* height in pixels*/
    int ascent; /* ascent (baseline) height*/
    int firstchar; /* first character in bitmap*/
    int size; /* font size in glyphs*/
    MWIMAGEBITS * bits; /* 16-bit right-padded bitmap
data*/
    unsigned long * offset; /* offsets into bitmap data*/
    unsigned char * width; /* character widths or NULL if
fixed*/
    int defaultchar; /* default char (not glyph index)*/
    long bits_size; /* # words of MWIMAGEBITS bits*/
    
    /* unused by runtime system, read in by convbdf*/
    char * facename; /* facename of font*/
    char * copyright; /* copyright info for loadable fonts*/
    int pixel_size;
    int descent;
    int fbbw, fbbh, fbbx, fbby;
} MWCFONT, *PMWCFONT;

-- was this a bug?

-Danijel


-----Ursprüngliche Nachricht-----
Von: Danijel Ilisin [mailto:d.ilisin_at_wtnet.de]
Gesendet: Freitag, 20. September 2002 22:28
An: 'rockbox_at_cool.haxx.se'
Betreff: win32 compile error

Latest CVS gives me this:

I wonder - where is MWIMAGEBITS defined? Can't find a definition for
that.

-Danijel

sh-elf-gcc -W -Wall -O -m1 -nostdlib -Wstrict-prototypes -Iinclude -I.
-Icommon
-Idrivers -DARCHOS_RECORDER=1 -DLCD_PROPFONTS -fomit-frame-pointer
-fschedule-in
sns -c ./sysfont.c -o sysfont.o
sysfont.c:19: parse error before "_clR6x8_bits"
sysfont.c:19: warning: type defaults to `int' in declaration of
`_clR6x8_bits'
sysfont.c:4010: warning: data definition has no type or storage class
sysfont.c:4241: parse error before "font_clR6x8"
sysfont.c:4241: warning: type defaults to `int' in declaration of
`font_clR6x8'
sysfont.c:4242: warning: initialization makes integer from pointer
without a cas
t
sysfont.c:4243: warning: excess elements in scalar initializer
sysfont.c:4243: warning: (near initialization for `font_clR6x8')
sysfont.c:4244: warning: excess elements in scalar initializer
sysfont.c:4244: warning: (near initialization for `font_clR6x8')
sysfont.c:4245: warning: excess elements in scalar initializer
sysfont.c:4245: warning: (near initialization for `font_clR6x8')
sysfont.c:4246: warning: excess elements in scalar initializer
sysfont.c:4246: warning: (near initialization for `font_clR6x8')
sysfont.c:4247: warning: excess elements in scalar initializer
sysfont.c:4247: warning: (near initialization for `font_clR6x8')
sysfont.c:4248: warning: excess elements in scalar initializer
sysfont.c:4248: warning: (near initialization for `font_clR6x8')
sysfont.c:4249: warning: excess elements in scalar initializer
sysfont.c:4249: warning: (near initialization for `font_clR6x8')
sysfont.c:4250: warning: excess elements in scalar initializer
sysfont.c:4250: warning: (near initialization for `font_clR6x8')
sysfont.c:4251: warning: excess elements in scalar initializer
sysfont.c:4251: warning: (near initialization for `font_clR6x8')
sysfont.c:4252: `MWIMAGEBITS' undeclared here (not in a function)
sysfont.c:4252: warning: excess elements in scalar initializer
sysfont.c:4252: warning: (near initialization for `font_clR6x8')
sysfont.c:4253: warning: data definition has no type or storage class
make: *** [sysfont.o] Error 1
Received on 2002-09-20

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy