diff options
author | antirez <antirez> | 2005-03-18 11:39:10 +0000 |
---|---|---|
committer | antirez <antirez> | 2005-03-18 11:39:10 +0000 |
commit | 32cc4bd7be3bf8045943e592691b538153713719 (patch) | |
tree | ee1724049dd28ab989e17311392702f45c12fdd3 | |
parent | 1e6f3e5395aa9538406a2ee8548eb97f2cddf3e3 (diff) | |
download | jimtcl-32cc4bd7be3bf8045943e592691b538153713719.zip jimtcl-32cc4bd7be3bf8045943e592691b538153713719.tar.gz jimtcl-32cc4bd7be3bf8045943e592691b538153713719.tar.bz2 |
now [setref] returns the value assigned to the reference instead of
the reference itself.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | jim.c | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +2005-03-18 10:36 antirez + + * ChangeLog, Makefile, jim.c: Fixed an EXPR bug. + 2005-03-17 22:39 antirez * ChangeLog, README, TODO, jim.c: [lreverse] @@ -1,7 +1,7 @@ /* Jim - A small embeddable Tcl interpreter * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org> * - * $Id: jim.c,v 1.119 2005/03/18 09:36:26 antirez Exp $ + * $Id: jim.c,v 1.120 2005/03/18 11:39:10 antirez Exp $ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -9512,7 +9512,7 @@ static int Jim_SetrefCoreCommand(Jim_Interp *interp, int argc, Jim_IncrRefCount(argv[2]); Jim_DecrRefCount(interp, refPtr->objPtr); refPtr->objPtr = argv[2]; - Jim_SetResult(interp, argv[1]); + Jim_SetResult(interp, argv[2]); return JIM_OK; } @@ -10158,7 +10158,7 @@ int Jim_InteractivePrompt(Jim_Interp *interp) printf("Welcome to Jim version %d.%d, " "Copyright (c) 2005 Salvatore Sanfilippo\n", JIM_VERSION / 100, JIM_VERSION % 100); - printf("CVS ID: $Id: jim.c,v 1.119 2005/03/18 09:36:26 antirez Exp $\n"); + printf("CVS ID: $Id: jim.c,v 1.120 2005/03/18 11:39:10 antirez Exp $\n"); Jim_SetVariableStrWithStr(interp, "jim_interactive", "1"); while (1) { char buf[1024]; |