diff options
author | Alexander Shpilkin <ashpilkin@gmail.com> | 2011-08-29 20:33:05 +0400 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2011-08-30 12:28:31 +1000 |
commit | 4f1aac96264a55165a04396f37b4302111602b5b (patch) | |
tree | b17e4158bf5885b216ed90a308723af74c1825f4 /jim-file.c | |
parent | a213c750258a7d2a362d39aae6b8654723c58ea9 (diff) | |
download | jimtcl-4f1aac96264a55165a04396f37b4302111602b5b.zip jimtcl-4f1aac96264a55165a04396f37b4302111602b5b.tar.gz jimtcl-4f1aac96264a55165a04396f37b4302111602b5b.tar.bz2 |
Change Jim_EvalObjPrefix to accept arbitrary objects
Jim_EvalObjPrefix now accepts an arbitrary Jim_Obj as a prefix,
with Jim_EvalPrefix being equivalent to the older version.
Diffstat (limited to 'jim-file.c')
-rw-r--r-- | jim-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -372,7 +372,7 @@ static int file_cmd_delete(Jim_Interp *interp, int argc, Jim_Obj *const *argv) if (unlink(path) == -1 && errno != ENOENT) { if (rmdir(path) == -1) { /* Maybe try using the script helper */ - if (!force || Jim_EvalObjPrefix(interp, "file delete force", 1, argv) != JIM_OK) { + if (!force || Jim_EvalPrefix(interp, "file delete force", 1, argv) != JIM_OK) { Jim_SetResultFormatted(interp, "couldn't delete file \"%s\": %s", path, strerror(errno)); return JIM_ERR; @@ -584,7 +584,7 @@ static int file_cmd_mtime(Jim_Interp *interp, int argc, Jim_Obj *const *argv) static int file_cmd_copy(Jim_Interp *interp, int argc, Jim_Obj *const *argv) { - return Jim_EvalObjPrefix(interp, "file copy", argc, argv); + return Jim_EvalPrefix(interp, "file copy", argc, argv); } static int file_cmd_size(Jim_Interp *interp, int argc, Jim_Obj *const *argv) |