Differences From Artifact [84c5c256ee865537]:
- File
jim-aio.c
-
2005-03-16 16:28:34
- part of checkin
[96901be9ba]
on branch trunk
- [env] modified to just be able to read a specified var name
form the environment, i.e. to be ANSI-C.
Minor fix to AIO extension to use the new DelProc API. (user: antirez
-
2005-03-16 16:28:34
- part of checkin
[96901be9ba]
on branch trunk
- [env] modified to just be able to read a specified var name
form the environment, i.e. to be ANSI-C.
To Artifact [626a63dd7f47bfe3]:
- File
jim-aio.c
- 2005-03-31 12:20:21 - part of checkin [03bc04873c] on branch trunk - Implemented the C API "background" for the packages system of Jim. (user: antirez
1 1 /* Jim - ANSI I/O extension
2 2 * Copyright 2005 Salvatore Sanfilippo <antirez@invece.org>
3 3 *
4 - * $Id: jim-aio.c,v 1.6 2005/03/16 16:28:34 antirez Exp $
4 + * $Id: jim-aio.c,v 1.7 2005/03/31 12:20:21 antirez Exp $
5 5 *
6 6 * Licensed under the Apache License, Version 2.0 (the "License");
7 7 * you may not use this file except in compliance with the License.
8 8 * You may obtain a copy of the License at
9 9 *
10 10 * http://www.apache.org/licenses/LICENSE-2.0
11 11 *
................................................................................
261 261 Jim_CreateCommand(interp, buf, JimAioHandlerCommand, af, JimAioDelProc);
262 262 Jim_SetResultString(interp, buf, -1);
263 263 return JIM_OK;
264 264 }
265 265
266 266 int Jim_OnLoad(Jim_Interp *interp)
267 267 {
268 - Jim_InitExtension(interp, "1.0");
268 + Jim_InitExtension(interp);
269 + if (Jim_PackageProvide(interp, "aio", "1.0", JIM_ERRMSG) != JIM_OK)
270 + return JIM_ERR;
269 271 Jim_CreateCommand(interp, "aio.open", JimAioOpenCommand, NULL, NULL);
270 272 return JIM_OK;
271 273 }