aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-09-12Trim the size of the boostrap jimsh sourceSteve Bennett7-24/+33
By removing comments and some large blocks of unnecessary code Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Fix make-bootstrap-jimSteve Bennett1-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12Implement full [exec] on mingw/msysSteve Bennett4-265/+762
This also involves some restructuring of the existing implementation to allow for as much reuse as possible. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-12No aio listen if JIM_ANSICSteve Bennett1-24/+23
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-06Add support for aio listenSteve Bennett1-0/+24
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-02Update to the latest autosetupSteve Bennett2-10/+5
For a couple of small bug fixes Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-09-02Updates to the manual for hyperlinked commandsSteve Bennett3-2004/+2037
Also various formatting improvements. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-31Document the Metakit extensionAlexander Shpilkin1-0/+316
2011-08-31Add examples of Metakit usage to examples/metakit.tclAlexander Shpilkin1-0/+112
2011-08-31Add Ratcl-style pipelines to Metakit extensionAlexander Shpilkin1-20/+135
Add pipeline support to Metakit cursors Make Metakit extension commands extensible
2011-08-31Create a Metakit extension for Jim TclAlexander Shpilkin3-5/+2212
Missing parts are binary properties and search.
2011-08-31Only link libs as requiredSteve Bennett2-19/+73
Both for loadable modules and for the core. Also, loadable modules should now build with BSD make. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-30Change Jim_EvalObjPrefix to accept arbitrary objectsAlexander Shpilkin3-7/+8
Jim_EvalObjPrefix now accepts an arbitrary Jim_Obj as a prefix, with Jim_EvalPrefix being equivalent to the older version.
2011-08-30Allow jim-subcmd.h to be used from C++Alexander Shpilkin1-0/+9
2011-08-22Allow -returnCodes to use numbers as well as namesSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-18Implement 'file mtime <file> newtime'Steve Bennett4-78/+289
Allows a file to be "touched" Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-18Add support for BSD makeSteve Bennett3-71/+52
Use the new conditional template support in autosetup to avoid (most) GNU-isms in the generated Makefile. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-18Fix build on Solaris (gcc)Steve Bennett5-15/+120
inet_ntop needs -lnsl on Solaris Solaris has sysinfo, but no uptime Link flags need to be a bit different Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-16Update autosetupSteve Bennett1-4/+7
Allows options and settings in any order Doesn't try to create temp files in /tmp on mingw which may fail. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-16add jimsh.exe into .gitignoreJie Zhang1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-14On mingw32, use Sleep() if usleep() is unavailableSteve Bennett2-1/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-04Update autosetup for better gentoo supportSteve Bennett1-17/+25
Adds --libdir, --datadir and others (which are ignored) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-03Fix commit cbeb3ea: unset missing array elementSteve Bennett4-10/+14
Although [dict unset] should not complain about being unable to unset a missing element, unset via array syntax (dict sugar) should - to be compatible with Tcl. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-08-01dict unset should not return error on missing last keySteve Bennett2-6/+17
dict unset was returning an error with no message Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-31Make some more static data read-onlySteve Bennett1-2/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-31debug show should not force object to 'string'Steve Bennett1-1/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-31Ensure that fileNameObj is never NULLSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-29Add Jim_EvalSource() to replace Jim_Eval_Named()Steve Bennett4-10/+11
Since the line number should correspond to the first line of the script, it is easier to use with __LINE__ if the filename and line number are before the script. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-29Switch to using Jim_Obj for filename trackingSteve Bennett2-155/+94
Remove the old shared-string implementation. The new approach reuses the Jim_Obj reference counting so it is smaller and a little more straight forward. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-29Track source locations in expressionsSteve Bennett1-4/+17
Commands in expressions should continue to track source location for the benefit of error messages and the debugger. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-27Return codes > 7 should be caught by defaultSteve Bennett1-11/+11
Fix a recent change which meant that return codes between 8 and 64 were no longer caught by default. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-27JimPanic() doesn't require interpSteve Bennett1-28/+23
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-27More info in debug show (maintainer mode)Steve Bennett1-2/+3
Display refcount and type Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-27Fix object leak in regexp/regsubSteve Bennett2-4/+12
During internal rep change to regex Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-25Simplify hash table conditionsmarrero1-6/+6
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-23Update autosetup to the latest versionSteve Bennett6-327/+348
Now supports Solaris, Haiku and various other improvements. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-22Ensure that catch works properly with 32 bit intsSteve Bennett1-2/+2
A bit vs. byte error meant that on platforms with 32 bit ints, signal, exit and eval were always caught by catch. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-22Help Jim Tcl build on HaikuSteve Bennett9-14/+23
Don't use -Werror Prefer user CFLAGS over default options Haiku needs -lnetwork for networking functions Haiku does not have -lm Haiku does not have SIGIO Silence some warnings Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-22Small changes to keep older compilers happySteve Bennett3-1/+7
e.g. gcc 2.95 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-22Fix an instance of declaration after codeSteve Bennett1-3/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-18Update documentation for recent featuresSteve Bennett2-90/+175
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-18Don't load and save history if not on a ttySteve Bennett2-3/+7
If jimsh is run in interactive mode but without a tty, don't bother to load and save line editing history. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-18Don't add a local proc context in source and evalSteve Bennett2-28/+2
Only procedures add a local proc context. Otherwise it is not possible to use local/upcall in Tcl packages. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-18Allow install to be a no-op with --disable-install-jimSteve Bennett2-0/+12
When running under automake (as openocd does) it seems impossible to build jimtcl but not install it, so add --disable-install-jim to help out. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Setup auto_path directly in tests/testing.tclSteve Bennett2-1/+3
Rather than relying on setting JIMLIB in the Makefile. Makes it easier to run individual tests manually. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Simplify approach for generated codeSteve Bennett4-30/+36
All generated sources are now prefixed with an underscore Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Add tcl_platform(pathSeparator)Steve Bennett7-34/+47
Tcl compatible. Also move jimsh initialisation script into initjimsh.tcl Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-13Generate static Tcl extensions slightly differentlySteve Bennett1-12/+8
Revert to using inline strings rather than static const char[] to avoid confusing bloat-check Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-12Fix a string length error in [file join] from 3b317b1Steve Bennett1-0/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-12Return an absolute path for [info nameofexec]Steve Bennett1-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>