aboutsummaryrefslogtreecommitdiff
path: root/jim-file.c
diff options
context:
space:
mode:
authorAlexander Shpilkin <ashpilkin@gmail.com>2011-08-29 20:33:05 +0400
committerSteve Bennett <steveb@workware.net.au>2011-08-30 12:28:31 +1000
commit4f1aac96264a55165a04396f37b4302111602b5b (patch)
treeb17e4158bf5885b216ed90a308723af74c1825f4 /jim-file.c
parenta213c750258a7d2a362d39aae6b8654723c58ea9 (diff)
downloadjimtcl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jim-file.c b/jim-file.c
index 6e12de7..3ac23d6 100644
--- a/jim-file.c
+++ b/jim-file.c
@@ -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)