aboutsummaryrefslogtreecommitdiff
path: root/jim-namespace.c
AgeCommit message (Collapse)AuthorFilesLines
2023-07-04namespace: convert to use subcmdSteve Bennett1-110/+119
This means we get -commands and usage via -help Signed-off-by: Steve Bennett <steveb@workware.net.au>
2023-02-13ensemble: Add a simple ensemble commandSteve Bennett1-2/+2
Uses a prefix to automatically map from subcommand to implementation. Includes support for namespace ensemble Signed-off-by: Steve Bennett <steveb@workware.net.au>
2021-01-10package: add ABI version checkingSteve Bennett1-3/+1
jim.h now includes JIM_ABI_VERSION that should be incremented whenever the ABI changes. Then all loadable modules should call Jim_CheckAbiVersion() to make sure they are loaded against the correct version. Add Jim_PackageProvideCheck() that does both Jim_CheckAbiVersion() and Jim_PackageProvide() to simplify the implementation of loadable extensions. Also rename the "big" sqlite3 extension to just sqlite to avoid a naming conflict with the smaller jim-sqlite3 extension. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-09-29Add support for "-commands" to many commandsSteve Bennett1-1/+1
This option returns a list of support subcommands and is useful for command line completion. Support added to: socket, namespace, tcl::prefix, string, dict, info Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-10-10namespace: restore namespace import supportSteve Bennett1-1/+0
Commit 8e28d066 "fixed" infinite namespace import recursion by simply disabling support for import. This commit restores support by detecting self-import. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-01-15namespace: disallow array element syntax for variablesSteve Bennett1-10/+9
Detect and generate an appropriate message if the variable name is an array element (dict sugar syntax) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2014-01-03Remove tabs from source filesSteve Bennett1-2/+2
Tabs accidentally crept into source files in violaton of the style guide Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-11-18Fix previous incorrect namespace fixSteve Bennett1-3/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2013-11-18Avoid infinite recursion with namespace importSteve Bennett1-3/+3
Reported-By: Sergei Gavrikov <sergei.gavrikov@gmail.com> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-12Add support for [apply]Steve Bennett1-0/+2
apply has the advantage of not disturbing the proc epoch for short lived commands Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-12-12Add support for lightweight namespacesSteve Bennett1-0/+333
See README.namespaces Signed-off-by: Steve Bennett <steveb@workware.net.au>