From mint-bounce@lists.fishpool.fi  Fri May 21 16:46:19 2010
X-Squirrel-UserHash: EhVcX1lFRQVaRwYcDQ==
X-Squirrel-FromHash: UANfXltBRAc=
Message-ID: <24babc22984cc1db69b51c60b4b755a6-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYOW0F0ADpUX1hbRUIGWV5a-webmailer2@server08.webmailer.hosteurope.de>
In-Reply-To: <4BF45B4D.7040706@freesbee.fr>
References: 
    <8e7396f3b18992df2cdbd355b37ce16e-EhVcX1lFRQVaRwYcDTpQCEFddQZLVF5dQUBFBDBTXF5bVkYPWkF+ATpUX1hbQkUGWVpe-webmailer2@server01.webmailer.hosteurope.de>
    <4BF45B4D.7040706@freesbee.fr>
Date: Fri, 21 May 2010 22:44:03 +0200
Subject: Re: [MiNT] gcc-4.4.3 usage
From: "Ole Loots" <ole@monochrom.net>
To: =?iso-8859-1?Q?=22Vincent_Rivi=E8re=22?= <vincent.riviere@freesbee.fr>
Cc: mint@lists.fishpool.fi
Reply-To: ole@monochrom.net
User-Agent: Host Europe Webmailer/1.0
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
X-HE-Access: Yes
X-bounce-key: webpack.hosteurope.de;ole@monochrom.net;1274474784;82eb79ef;
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: ole@monochrom.net
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>

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 :-)
>


