Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-08-05
10:45 • Closed ticket [582429ffff]: CONST for variable access interfaces plus 7 othe... artifact: 9e1797900b user: dgp
2002-07-24
10:52 • Ticket [582429ffff]: 4 changes artifact: 9a3d908595 user: dgp
2002-07-17
02:41 • Add attachment constVar.patch to ticket [582429ffff] artifact: 7b51d97aff user: msofer
02:41 • Ticket [582429ffff] CONST for variable access interfaces status still Open w... artifact: da5c8422e3 user: msofer
2002-07-16
19:41 • New ticket [582429ffff]. artifact: 57d0ac6b60 user: msofer

CONST for variable access interfaces

Closed / Out of Date582429ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-07-16 19:41:07
This patch CONST-ifies the function TclLookupVar, which
in turn enables CONSTification of the variable access
functions. The modified signatures of non-static
functions (all of the same nature: part1 of the
variable nameis now CONST char *) are:

(1) in tcl.decls
Tcl_GetVar(2(Ex)?)?, Tcl_SetVar(2(Ex)?)?,
Tcl_UnsetVar2?, Tcl_UpVar2?, Tcl_(Un)?TraceVar2?,
Tcl_VarTraceInfo2?

(2) in tcl.h
typedef Tcl_VarTraceProc

(3) in tclInt.decls
TclLookupVar, TclPrecTraceProc, Tcl_VarTraceExists

The patch still needs (a) review by someone
knowledgeable, and (b) updating the docs.
msoferplain2002-07-17 02:41:07
File Added - 27156: constVar.patch
dgpplain2002-07-24 10:52:17
Logged In: YES 
user_id=80530

See also Patch 585105.
dgpplain2002-08-05 10:45:11
Logged In: YES 
user_id=80530

This patch was folded in to 585105 and accepted.
Log in (anonymous is fine) to add a comment.

Attachments: