[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA-dev: [PATCH] gschem: remember dialog size and position



Peter Clifton wrote:
> On Tue, 2007-05-01 at 11:16 +0200, Ivan Stankovic wrote:
> 
>>On Mon, Apr 30, 2007 at 10:29:39PM +0100, Peter Clifton wrote:
>>
>>>I'd not inline the functions - they don't appear to be called in a
>>>performance critical path. Also, they might be useful outside the
>>>x_dialog.c code?
>>
>>Perhaps, I didn't spend much time thinking of it.
>>The functions are only inlined if glib is older that 2.6.0 in which
>>case there's no point in wasting either time or space.
> 
> 
> Ok, I'm not sure myself what the use-cases are for the inline keyword.
> Does the compiler usually decide inline / normal functions when
> optimising?
> 
> Does anyone have any advice / info on usage of the inline keyword. DJ?
> 
> It it possible to inline a function in one C file, and have the linker
> correctly inline it where called from other files,

nope.  inlining is done by the compiler not the linker.  By the time you 
get to a .o file, it is too late.


> or does it have to be
> within the same source file?

same source file.

I was a little confused a while back about inline, but it turns out that 
the gcc manual explains it.

Note that just because you tell it "inline" doesn't mean it will be 
inlined.

-Dan


_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev