[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] gcc-4.4.3 usage
Hello,
I hit another problem - not my fault! ;)
layout.c: 1239: warning: implicit declaration of funtion 'typeof'
layout.c: 1239: warning: nested extern declaration of 'typeof'
I checked layout.c, but I couldn't find "typeof" ... so I did:
find . -exec grep "typeof" {} \; -print
it outputs:
#define _TALLOC_TYPEOF(ptr) __typeof__(ptr)
./netsurf/utils/talloc.h
if ( typeof displayDescription != "undefined") {
./netsurf/hubbub/test/data/html/.svn/text-base/www.directline.com.html.svn-base
... so I was wondering what's going on here... the last line is
javascript, the first line does not produce an error.
I'm not familiar with typeof usage in gcc / C ..., can somebody give me a
hint how to fix this error in the Source Code, ehm, I don't even know
where to fix it, here is the code of layout.c @ 1239:
width = min(max(box->min_width, available_width),
box->max_width);
min is defined this way:
#define min(a,b) ((a)<(b)?(a):(b))
I suppose max is like that...
The only suspicious thing I'v seen so far is the function declaration:
void layout_float_find_dimensions(int available_width,
const css_computed_style *style, struct box *box)
{
}
struct is defined in layout.h:
struct box;
that's something I don't understand, because I would declare a struct
variable like this:
struct foobar box;
Has anybody hints, or should I contact the netsurf developers?
greets,
...
Am Mi, 19.05.2010, 23:42 schrieb Vincent Rivière:
> Ole Loots wrote:
>> Where should I post such questions? I
>> don't wan't to annoy the list :)
>
> While there is not hundreds of problems, you can post them here :-)
>