diff options
author | dgp <dgp@users.sourceforge.net> | 2016-07-01 18:54:36 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-07-01 18:54:36 (GMT) |
commit | 9076f328f235876d960fb4d78ecec610ac3e81fd (patch) | |
tree | d789fa52eb0aed5c1d0a1a2162c3894263f24071 /generic/tclInt.h | |
parent | dc9d79ca409ce43c255fbf0d12b742bdd795a1f7 (diff) | |
download | tcl-9076f328f235876d960fb4d78ecec610ac3e81fd.zip tcl-9076f328f235876d960fb4d78ecec610ac3e81fd.tar.gz tcl-9076f328f235876d960fb4d78ecec610ac3e81fd.tar.bz2 |
[4402cfa58c] Rework the spell check machinery into something that will not be
foiled by value sharing.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r-- | generic/tclInt.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h index b3cfc00..03b648d 100644 --- a/generic/tclInt.h +++ b/generic/tclInt.h @@ -401,7 +401,7 @@ typedef struct { * ensemble. */ Tcl_Command token; /* Reference to the comamnd for which this * structure is a cache of the resolution. */ - Tcl_HashTable *tablePtr; /* The subcommand hash table. */ + Tcl_Obj *fix; /* Corrected spelling, if needed. */ Tcl_HashEntry *hPtr; /* Direct link to entry in the subcommand * hash table. */ } EnsembleCmdRep; @@ -3109,6 +3109,9 @@ MODULE_SCOPE void TclSetDuplicateObj(Tcl_Obj *dupPtr, Tcl_Obj *objPtr); MODULE_SCOPE void TclSetProcessGlobalValue(ProcessGlobalValue *pgvPtr, Tcl_Obj *newValue, Tcl_Encoding encoding); MODULE_SCOPE void TclSignalExitThread(Tcl_ThreadId id, int result); +MODULE_SCOPE void TclSpellFix(Tcl_Interp *interp, + Tcl_Obj *const *objv, int objc, int subIdx, + Tcl_Obj *bad, Tcl_Obj *fix); MODULE_SCOPE void * TclStackRealloc(Tcl_Interp *interp, void *ptr, int numBytes); MODULE_SCOPE int TclStringMatch(const char *str, int strLen, |