Skip to content
Tcl Source Code View Ticket
Login

View Ticket

allow use of 'inline' in Tcl sources

Closed / Accepted1754128fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-07-14 22:23:16
Miguel Sofer, as part of the 'Var reform' patch, 
has asked for the ability to use 'inline' functions
in tclVar.c

This turns out to be easy. AC_C_INLINE in the
'configure.in' files should, if the compiler doesn't
support 'inline', define a macro of that name that
expands to '__inline__', '__inline', or nothing,
as appropriate. ('Nothing' will have the effect of
making the 'static inline' function fall back on being
an ordinary static function.)

I don't see any compelling reason not to let him have
his inline, do you?
kennykbplain2007-07-15 05:23:17
File Added - 237028: inline.patch
kennykbplain2007-07-15 05:40:01
File Deleted - 237028: 



File Added - 237029: inline.patch

Logged In: YES 
user_id=99768
Originator: YES

pdated patch - missed 'makefile.vc' on the first go.
File Added: inline.patch
dkfplain2007-07-24 04:09:28
Logged In: YES 
user_id=79902
Originator: NO

No objections provided this is only used for 'static' functions. But make sure that no sniff of it goes anywhere near tcl.m4; there's enough stuff in there that's got cargo-cult-ed to goodness knows how many TEA extensions which really doesn't need to be there, and it's tricky (!) to make it work with stubs as it tends to bind the API version too tightly into the callers. (None of that matters if it is used sensibly, of course.)
msofer Closed ticket [1754128fff]. [History diff]2007-07-31 21:05:49
Log in (anonymous is fine) to add a comment.

Attachments: