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:
- constVar.patch [download] added by msofer on 2002-07-17 02:41:07. [details]