tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] inline functions


From: Pierre
Subject: [Tinycc-devel] inline functions
Date: Tue, 10 Dec 2013 14:59:03 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

Hello,

About TCC inline functions, the default storage class is extern, is it a choice ?
Normally an inline must be locally defined ?

In my code I have several c sources sharing a .h where an inline function code is declared.
Then at link it produce an error (error: 'func' defined twice").

Could it be a good idea to define default inline storage class as static in TCC ?

then
inline proc => static
static inline => static
extern inline => extern , export symbol

Thanks
Pierre





reply via email to

[Prev in Thread] Current Thread [Next in Thread]