From 5d44077dc5e785c490707f57a420fb92ff99015f Mon Sep 17 00:00:00 2001 From: Steve Bennett Date: Fri, 5 Jun 2020 11:51:19 +1000 Subject: core: command (proc) names may now contained embedded nulls The hash table used to store commands now uses Jim_Obj keys rather than allocated char *, so embedded nulls are supported. This means that some API function such as Jim_RenameCommand() now take Jim_Obj * rather than const char *, however Jim_CreateCommand() is retained with const char * for convenience and the new Jim_CreateCommandObj() is added. This is generally a performance win as the existing Jim_Obj can be used as the key. Signed-off-by: Steve Bennett --- jim_tcl.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'jim_tcl.txt') diff --git a/jim_tcl.txt b/jim_tcl.txt index 24c380b..25e2130 100644 --- a/jim_tcl.txt +++ b/jim_tcl.txt @@ -63,6 +63,7 @@ Changes between 0.78 and 0.79 7. `aio tty` now allows setting +echo+ without full +raw+ mode 8. `regsub` now fully supports +{backslash}A+ 9. Add `socket pty` to create a pseudo-tty pair +10. Null characters (\x00) are now supported in variable and proc names Changes between 0.77 and 0.78 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1123,8 +1124,6 @@ following special sequences may appear in +'pattern'+: avoiding the special interpretation of the characters +{backslash}*?[]+ in +'pattern'+. -*NOTE* Jim considers that both patterns and strings end at a null character (\x00). - COMMAND RESULTS --------------- Each command produces two results: a code and a string. The -- cgit v1.1