aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez>2005-04-12 12:36:57 +0000
committerantirez <antirez>2005-04-12 12:36:57 +0000
commit594664e0ec9753f5ab33754a9ad5660478063a6c (patch)
treeb177a5e7a3f7b5899b443003c1bd2639565ffd27
parentbaf666d55646bc522745ac9bbb81f2817f197a41 (diff)
downloadjimtcl-594664e0ec9753f5ab33754a9ad5660478063a6c.zip
jimtcl-594664e0ec9753f5ab33754a9ad5660478063a6c.tar.gz
jimtcl-594664e0ec9753f5ab33754a9ad5660478063a6c.tar.bz2
AIO fix: the Id is not get with the GetGlobalVar function.
-rw-r--r--ChangeLog4
-rw-r--r--jim-aio.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fab610..dfaa3cf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-12 14:27 antirez
+
+ * ChangeLog, jim.c: string tolower/toupper support
+
2005-04-12 10:34 antirez
* ChangeLog, jim-aio.c: new methods for AIO files, 'read' and
diff --git a/jim-aio.c b/jim-aio.c
index d01b9b0..fa8ce16 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -1,7 +1,7 @@
/* Jim - ANSI I/O extension
* Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
*
- * $Id: jim-aio.c,v 1.8 2005/04/12 08:34:41 antirez Exp $
+ * $Id: jim-aio.c,v 1.9 2005/04/12 12:36:57 antirez Exp $
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -324,7 +324,7 @@ static int JimAioOpenCommand(Jim_Interp *interp, int argc,
if (Jim_EvalGlobal(interp,
"if {[catch {incr aio.fileId}]} {set aio.fileId 0}") != JIM_OK)
return JIM_ERR;
- objPtr = Jim_GetVariableStr(interp, "aio.fileId", JIM_ERRMSG);
+ objPtr = Jim_GetGlobalVariableStr(interp, "aio.fileId", JIM_ERRMSG);
if (objPtr == NULL) return JIM_ERR;
if (Jim_GetLong(interp, objPtr, &fileId) != JIM_OK) return JIM_ERR;