diff options
author | antirez <antirez> | 2005-04-12 12:36:57 +0000 |
---|---|---|
committer | antirez <antirez> | 2005-04-12 12:36:57 +0000 |
commit | 594664e0ec9753f5ab33754a9ad5660478063a6c (patch) | |
tree | b177a5e7a3f7b5899b443003c1bd2639565ffd27 | |
parent | baf666d55646bc522745ac9bbb81f2817f197a41 (diff) | |
download | jimtcl-594664e0ec9753f5ab33754a9ad5660478063a6c.zip jimtcl-594664e0ec9753f5ab33754a9ad5660478063a6c.tar.gz jimtcl-594664e0ec9753f5ab33754a9ad5660478063a6c.tar.bz2 |
AIO fix: the Id is not get with the GetGlobalVar function.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | jim-aio.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -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 @@ -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; |