aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2011-07-12Fix some [file join] casesSteve Bennett2-2/+29
In particular, file join / anything Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Fix missing expr error message with || and &&Steve Bennett2-3/+12
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Make list to string conversion more Tcl compatibleSteve Bennett2-5/+16
If a list elements contains unmatch ] brackets, use backslash quoting instead of braces. This is what Tcl does. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Better proc optional arg handlingSteve Bennett4-218/+208
Allows args and optional parameters in any location, in addition to being smaller and faster. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Minor cleanup in JimParseVar()Steve Bennett1-24/+39
Also adds (disabled) $[...] expr sugar support in case we decide to use this syntax instead of $(...) Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Add configure --full optionSteve Bennett1-4/+9
To more easily select some optional features which are disabled by default. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08autosetup fix when running under tclshSteve Bennett1-7/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Update to the latest autosetupSteve Bennett7-510/+790
Mainly for msys/mingw support Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-08Update make-bootstrap-jim for consistent tcl_platformSteve Bennett1-2/+2
$tcl_platform(platform) should be "windows" on mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Improve diagnostics when a script is incompleteSteve Bennett1-28/+77
Now the diagnostics indicate the line which contains the unmatched quote, bracket or brace. Previously, a missing '[' was shown as a missing '"' Also, when sourcing a file, the script is not parsed twice. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Tab and newline are common in text filesSteve Bennett1-4/+4
So optimize char [split] to include those chars too. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Optimise [lrange] when returning the whole listSteve Bennett1-0/+3
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Minor improvements to oo.tclSteve Bennett1-1/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Make an array test more reliableSteve Bennett1-1/+1
Currently it depends on hash table ordering. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Minor code cleanupsSteve Bennett2-17/+12
Some unused variables Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Use clock instead of open for loadable module bugSteve Bennett1-3/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Use memset() when creating a new interpSteve Bennett1-20/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Support and ignore fconfigure -translation ...Steve Bennett1-0/+3
Jim is always in binary/utf-8 mode This makes it easier to run Tcl scripts unmodified Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Add support for file delete -forceSteve Bennett2-5/+23
Will recursively remove directories, even if not empty. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Simplify glob and make it work with mingwSteve Bennett1-52/+55
Support absolute paths which don't necessarily begin with / Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-07Do just enough to make Jim useable with msys/mingwSteve Bennett4-7/+50
Convert some paths from backslashes to forward slashes Handle splitting/joining paths which look like z:/abc/def Identify the platform as mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-07-04Add rand() and srand() functionsSteve Bennett1-10/+31
For Tcl compatibility Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-29Change the builtin regexp to avoid compiling twiceSteve Bennett2-284/+241
Simply guess the program size and realloc if needed. This also fixes a compile warning on some platforms. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-29Mark tests which require utf-8 supportSteve Bennett2-4/+4
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-29Remove autosetup/jimsh0.exe on distcleanSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-28Fix support for 64-bit mingwSteve Bennett7-60/+67
- Check for mkdir with one arg at configure time - mingw can't really do select(), so support only time events in eventloop - Declare dlerror() to be compatible with mingw Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-28Don't try to store an int into a (void *)Steve Bennett3-41/+37
Instead do it properly with a union Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-28Fix builtin regexp for memory overwriteSteve Bennett2-6/+10
Reported-By: Spencer Oliver <spen@spen-soft.co.uk> Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-25Update autosetup. Fixes a problem in make-c-ext.tclSteve Bennett3-493/+695
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-25Add some missing generated files to .gitignoreSteve Bennett1-0/+2
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-24Version now comes from jim.h0.71Steve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-22Remove an unnecessary initialisationSteve Bennett1-1/+0
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-22Fix script line numbering for multi-line commandsSteve Bennett1-4/+13
The line number stored with each line of the script should be the line number of the first token, not the last token. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-22aio: Ignore error indication on eofSteve Bennett1-5/+8
Reading from a pipe can set both ferror() and feof(). In this case, feof() takes precedence. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-21Fix crash on dup of object with script repSteve Bennett2-4/+13
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2011-06-20Add an uninstall targetSteve Bennett1-0/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>