Skip to content
Tcl Source Code View Ticket
Login

View Ticket

make TCL_ALIGN file static?

Closed / Wont Fix926445ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-03-31 05:20:09
It appears that the TCL_ALIGN()
macro is used only within
tclCompile.c .  Given that, how
about defining it there as well
(as ALIGN() ) and remove the
definition from tclInt.h ?
msoferplain2004-04-03 02:22:50
Logged In: YES 
user_id=148712

Why do the comments in the tests scan-11 refer to TCL_ALIGN?
Was the macro previously used by [scan]? To be checked.
msoferplain2004-04-03 03:19:41
Logged In: YES 
user_id=148712

Done.
dkfplain2004-04-03 03:50:28
Logged In: YES 
user_id=79902

In response to miguel's question, yes, the [scan] of Tcl 7.1
to 8.0 used TCL_ALIGN so it could use sscanf() internally -
it allocated a temporary buffer that all sscanf() results
were written to before being copied out into Tcl variables
(either with conversion to strings or to objects, depending
on whether you were in 7.* or 8.0).

Everything was rewritten for 8.1 because sscanf() couldn't
cope well with UTF-8 characters (or at least not on all
platforms.)
msoferplain2004-05-04 03:01:09
Logged In: YES 
user_id=148712

Reverted the fix: tbcload at least requires the macro, so we
keep it in tclInt.h for its sake.
Log in (anonymous is fine) to add a comment.