Tcl Source Code

View Ticket
Login
Ticket UUID: 582429
Title: CONST for variable access interfaces
Type: Patch Version: None
Submitter: msofer Created on: 2002-07-16 19:41:07
Subsystem: None Assigned To: dgp
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2002-08-05 10:45:11
Resolution: Out of Date Closed By: dgp
    Closed on: 2002-08-05 03:45:11
Description:
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.
User Comments: dgp added on 2002-08-05 10:45:11:
Logged In: YES 
user_id=80530

This patch was folded in to 585105 and accepted.

dgp added on 2002-07-24 10:52:17:
Logged In: YES 
user_id=80530

See also Patch 585105.

msofer added on 2002-07-17 02:41:07:

File Added - 27156: constVar.patch

Attachments: