aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-08-26If possible, run tests within a sub-interpreterSteve Bennett4-1/+64
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-26Document the new interp commandSteve Bennett1-0/+24
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-26Add support for sub-interpretersSteve Bennett3-0/+183
Includes support for aliases in sub-interp These are not identical to Tcl interp, but are conceptually very similar For example: set i [interp] $i alias localcmd parentcmd arg1 $i eval { localcmd x } Invokes: parentcmd arg1 x Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-20Fix aio locking on non-linux platformsSteve Bennett3-26/+32
And improve the tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-20add POSIX lock/unlock methods to aio objectsHummyPkg3-0/+123
2016-08-17Don't unconditionally define _GNU_SOURCESteve Bennett7-8/+29
Also, fix build if JIM_OPTIMIZATION is disabled Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17eventloop: Switch to using fd for eventloopSteve Bennett3-20/+19
eventloop doesn't need a filehandle, so so simplify the interface by using file descriptors instead Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17expr: fixes for pow/**Steve Bennett2-22/+542
- integer version is much faster - handle -ve numbers - ** is right associative - add tests from Tcl 8.6 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17expr: fix adjacent terms in function callsSteve Bennett3-104/+104
Previously two adjacent terms were incorrectly accepted, such as in pow(2 3) Correctly generate an error in this case and improve the error message when an expression fails to parse correctly. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17expr: Improve mathfunc handlingSteve Bennett2-76/+113
Previously math functions with multiple arguments were handling poorly. For example: pow(1.0 + 3.0 - 2, .8 * 5) was evaluated as: pow(1.0 + 3.0, 2 - .8 * 5) Now commas correctly separate function parameters. Also, the error messages are more consistent and informative in the case of an invalid expression. Update and re-enable tests in tests/expr-old.test accordingly Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17expr: add support for atan2, hypot and fmodSteve Bennett2-84/+96
And enable some more math tests Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17sqlite3: Fix some compiler warningsSteve Bennett1-0/+4
Because of SQLITE_OMIT_INCRBLOB Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17sqlite3: Update the included sqlite3 to 3.14.1Steve Bennett5-32126/+107827
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17doc: Minor doc fixesSteve Bennett1-5/+5
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-17bootstrap: Add minimal package require supportSteve Bennett3-14/+23
Makes it easier to run the test suite if a minmal 'package require' is supported. Also omit SSL code from jim-aio.c Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-08-10README: a version of namespaces is implementedSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-07-10Boolean contstants in expr, `string is boolean` classificationNikita Borodikhin6-14/+198
* named boolean values in `expr` are internally converted to int * named constants are lower-case only
2016-04-11Fixed a documentation typoDima Krasner1-1/+1
2016-04-11tests/regexp: Remove regexp-22.1Steve Bennett1-32/+0
This test is unreliable since the OS may perform additonal caching. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-28zlib: Update zlib.test to use needs, testreportSteve Bennett1-27/+30
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-28zlib: add zlib bindingsDima Krasner4-0/+462
Including documentation and tests
2016-03-27Add Travis CIDanyil Bohdan1-0/+10
2016-03-27Convert unnecessary usage of posix external utilities in tests to use native ↵Evan Hunter2-10/+9
tcl instead
2016-03-27Don't include unistd.h unless configure has found itEvan Hunter2-2/+6
2016-03-27Ensure declaration matches definition for Jim_CreateCommand - it was missing ↵Evan Hunter1-2/+2
"*" for some arguments
2016-03-27exec: Fix a warning on mingwSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-27exec: Avoid lstrcpyn on windows and just use snprintf()Steve Bennett1-2/+1
2016-03-27Prevent static analysers from thinking that variable fn might be used whilst ↵Evan Hunter1-0/+1
null
2016-03-27Fix shift operator so result is the expected 64 bit valueEvan Hunter1-2/+2
2016-03-27Avoid static analysis warning: ↵Evan Hunter1-1/+1
https://msdn.microsoft.com/en-us/library/17b585f0-75e5-4fc0-935a-143ec67659f4(VS.110).aspx
2016-03-27exec: read output from pipe before waiting for childrenSteve Bennett2-17/+12
It is necessary to read output from the pipe before waiting for children to exit to avoid the output filling up and blocking. The error results still needs to be read after the children have exited, since it is read from a temp file, not a pipe. Increase the length of the input to test exec-8.1 to catch the problem. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-27Windows: Exponent modification is only required by MinGWEvan Hunter1-2/+4
2016-03-27aio: MinGW - Fix compilation errorEvan Hunter1-0/+5
Due to not having support for group or owner permission flags.
2016-03-27lsort test: allow unstable lsort implementation to return results of same ↵Evan Hunter1-3/+8
value in different orders.
2016-03-27docs: minor clarificationSteve Bennett1-1/+1
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-27oo: constructor, unknown and bug fixesSteve Bennett3-10/+47
- Added support for constructor, runs on new object creation - Added support for "unknown" method - Rename some dispatch variables (add double underscore) to avoid collision with user variables Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-27jim: Jim_ScriptIsComplete() now takes an objectSteve Bennett3-39/+32
Rather than taking a string and a length, it is simpler and more efficient to take a Jim_Obj Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-03-27Small code cleanupsSteve Bennett2-42/+28
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-11docs: fix more typosSteve Bennett3-8/+8
Some identified by frgm Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-11jim.c,jim.h: fix typosSteve Bennett2-12/+7
As identified by frgm Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-03regexp: document new character classes and constraint escapesSteve Bennett1-6/+7
Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-02regexp: Enable additional regexp/regsub testsSteve Bennett3-90/+99
Many Tcl regexp tests now work correctly with Jim regexp Also update regsub/regexp wrong # args error message to match Tcl 8.6 Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-02regexp: Add missing support for character classesSteve Bennett1-18/+64
[[::blank:]], [[::xdigit::]], etc. Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-02regexp: add partial support for \A \Z matchingSteve Bennett1-5/+28
Still not 100% correct, for example when used with regsub -all Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-02regexp: add support for \D, \W and \SSteve Bennett2-5/+12
These are the negated versions of \d, \w and \s Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-02aio: Fix crash in aio copySteve Bennett1-1/+1
Fix incorrect check for target as invalid filehandle. e.g. stdin copy blah Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-01aio: fix aio ssl supportSteve Bennett5-12/+44
The following changes were not merged: - commit examples/{certificate,key}.pem - return AioFile from JimMakeChannel to allow ssl-specific settings to be set - improve examples/ssl.{client,server} so they work out-of-the-box Signed-off-by: Steve Bennett <steveb@workware.net.au>
2016-02-01aio: replace HAVE_SOCKETPAIR with HAVE_DUPDima Krasner1-4/+3
in aio_cmd_ssl()
2016-02-01aio: add error message when SSL verification failsDima Krasner1-1/+11
2016-02-01aio: don't set ssl in make channelSteve Bennett1-17/+14
It is simpler if af->ssl is handled after creating the channel Signed-off-by: Steve Bennett <steveb@workware.net.au>