2006-06-16 07:37:27 +00:00
|
|
|
/*
|
2006-07-01 16:07:06 +00:00
|
|
|
* $Id: extio.c,v 1.17 2006-07-01 16:07:06 bacon Exp $
|
2006-06-16 07:37:27 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <xp/awk/awk_i.h>
|
|
|
|
|
|
|
|
#ifndef XP_AWK_STAND_ALONE
|
|
|
|
#include <xp/bas/assert.h>
|
|
|
|
#include <xp/bas/string.h>
|
|
|
|
#include <xp/bas/memory.h>
|
|
|
|
#endif
|
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
__MASK_READ = 0x01FF,
|
|
|
|
__MASK_WRITE = 0x02FF,
|
|
|
|
__MASK_RDWR = 0x04FF,
|
|
|
|
__MASK_CLEAR = 0x00FF
|
|
|
|
};
|
|
|
|
|
2006-06-21 13:52:15 +00:00
|
|
|
int xp_awk_readextio (
|
2006-06-28 14:19:01 +00:00
|
|
|
xp_awk_run_t* run, int in_type,
|
|
|
|
const xp_char_t* name, xp_str_t* buf, int* errnum)
|
2006-06-16 07:37:27 +00:00
|
|
|
{
|
2006-06-21 13:52:15 +00:00
|
|
|
xp_awk_extio_t* p = run->extio;
|
2006-06-28 10:40:24 +00:00
|
|
|
xp_awk_io_t handler;
|
2006-06-29 14:38:01 +00:00
|
|
|
int extio_type, extio_opt, extio_mask;
|
2006-06-21 15:37:51 +00:00
|
|
|
|
2006-06-28 10:40:24 +00:00
|
|
|
static int __in_type_map[] =
|
|
|
|
{
|
|
|
|
/* the order should match the order of the
|
|
|
|
* XP_AWK_IN_XXX values in tree.h */
|
|
|
|
XP_AWK_EXTIO_PIPE,
|
|
|
|
XP_AWK_EXTIO_COPROC,
|
2006-06-29 14:38:01 +00:00
|
|
|
XP_AWK_EXTIO_FILE,
|
|
|
|
XP_AWK_EXTIO_CONSOLE
|
2006-06-28 10:40:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
static int __in_opt_map[] =
|
|
|
|
{
|
|
|
|
/* the order should match the order of the
|
|
|
|
* XP_AWK_IN_XXX values in tree.h */
|
|
|
|
XP_AWK_IO_PIPE_READ,
|
|
|
|
0,
|
2006-06-29 14:38:01 +00:00
|
|
|
XP_AWK_IO_FILE_READ,
|
2006-06-28 10:40:24 +00:00
|
|
|
XP_AWK_IO_FILE_READ
|
|
|
|
};
|
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
static int __in_mask_map[] =
|
|
|
|
{
|
|
|
|
__MASK_READ,
|
|
|
|
__MASK_RDWR,
|
|
|
|
__MASK_READ,
|
|
|
|
__MASK_READ
|
|
|
|
};
|
|
|
|
|
2006-06-28 10:40:24 +00:00
|
|
|
xp_assert (in_type >= 0 && in_type <= xp_countof(__in_type_map));
|
|
|
|
xp_assert (in_type >= 0 && in_type <= xp_countof(__in_opt_map));
|
2006-06-29 14:38:01 +00:00
|
|
|
xp_assert (in_type >= 0 && in_type <= xp_countof(__in_mask_map));
|
2006-06-28 10:40:24 +00:00
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
/* translate the in_type into the relevant extio type and option */
|
2006-06-28 10:40:24 +00:00
|
|
|
extio_type = __in_type_map[in_type];
|
|
|
|
extio_opt = __in_opt_map[in_type];
|
2006-06-29 14:38:01 +00:00
|
|
|
extio_mask = __in_mask_map[in_type];
|
2006-06-28 10:40:24 +00:00
|
|
|
|
|
|
|
handler = run->awk->extio[extio_type];
|
2006-06-21 15:37:51 +00:00
|
|
|
if (handler == XP_NULL)
|
|
|
|
{
|
|
|
|
/* no io handler provided */
|
|
|
|
*errnum = XP_AWK_EIOIMPL; /* TODO: change the error code */
|
|
|
|
return -1;
|
|
|
|
}
|
2006-06-16 07:37:27 +00:00
|
|
|
|
|
|
|
while (p != XP_NULL)
|
|
|
|
{
|
2006-06-29 14:38:01 +00:00
|
|
|
if (p->type == (extio_type | extio_mask) &&
|
2006-06-28 10:40:24 +00:00
|
|
|
xp_strcmp(p->name,name) == 0) break;
|
2006-06-16 07:37:27 +00:00
|
|
|
p = p->next;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p == XP_NULL)
|
|
|
|
{
|
2006-06-19 09:10:57 +00:00
|
|
|
p = (xp_awk_extio_t*) xp_malloc (xp_sizeof(xp_awk_extio_t));
|
2006-06-16 07:37:27 +00:00
|
|
|
if (p == XP_NULL)
|
|
|
|
{
|
2006-06-16 11:24:32 +00:00
|
|
|
*errnum = XP_AWK_ENOMEM;
|
2006-06-16 07:37:27 +00:00
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2006-06-19 09:10:57 +00:00
|
|
|
p->name = xp_strdup (name);
|
2006-06-16 07:37:27 +00:00
|
|
|
if (p->name == XP_NULL)
|
|
|
|
{
|
|
|
|
xp_free (p);
|
2006-06-16 11:24:32 +00:00
|
|
|
*errnum = XP_AWK_ENOMEM;
|
2006-06-16 07:37:27 +00:00
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
p->type = (extio_type | extio_mask);
|
2006-06-16 07:37:27 +00:00
|
|
|
p->handle = XP_NULL;
|
2006-06-28 14:19:01 +00:00
|
|
|
|
|
|
|
p->in.buf[0] = XP_C('\0');
|
|
|
|
p->in.pos = 0;
|
|
|
|
p->in.len = 0;
|
|
|
|
p->in.eof = xp_false;
|
|
|
|
|
2006-06-19 09:10:57 +00:00
|
|
|
p->next = XP_NULL;
|
2006-06-16 07:37:27 +00:00
|
|
|
|
2006-06-28 10:40:24 +00:00
|
|
|
if (handler (XP_AWK_IO_OPEN, extio_opt, p, XP_NULL, 0) == -1)
|
2006-06-16 07:37:27 +00:00
|
|
|
{
|
2006-06-21 15:37:51 +00:00
|
|
|
xp_free (p->name);
|
|
|
|
xp_free (p);
|
2006-06-19 09:10:57 +00:00
|
|
|
|
|
|
|
/* TODO: set ERRNO */
|
|
|
|
*errnum = XP_AWK_ENOERR;
|
2006-06-16 07:37:27 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2006-06-19 04:38:51 +00:00
|
|
|
|
|
|
|
if (p->handle == XP_NULL)
|
|
|
|
{
|
2006-06-21 15:37:51 +00:00
|
|
|
xp_free (p->name);
|
|
|
|
xp_free (p);
|
2006-06-19 04:38:51 +00:00
|
|
|
|
2006-06-19 09:10:57 +00:00
|
|
|
/* wrong implementation of user io handler.
|
|
|
|
* the correct io handler should set p->handle to
|
|
|
|
* non XP_NULL when it returns 0. */
|
|
|
|
*errnum = XP_AWK_EIOIMPL;
|
2006-06-19 04:38:51 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2006-06-16 07:37:27 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
/* chain it */
|
2006-06-21 13:52:15 +00:00
|
|
|
p->next = run->extio;
|
|
|
|
run->extio = p;
|
2006-06-19 09:10:57 +00:00
|
|
|
}
|
|
|
|
|
2006-06-28 14:19:01 +00:00
|
|
|
/* read a line */
|
|
|
|
xp_str_clear (buf);
|
2006-06-19 04:38:51 +00:00
|
|
|
|
2006-06-28 14:19:01 +00:00
|
|
|
while (1)
|
2006-06-19 04:38:51 +00:00
|
|
|
{
|
2006-06-28 14:19:01 +00:00
|
|
|
xp_char_t c;
|
|
|
|
|
|
|
|
if (p->in.pos >= p->in.len)
|
|
|
|
{
|
|
|
|
xp_ssize_t n;
|
|
|
|
|
|
|
|
if (p->in.eof)
|
|
|
|
{
|
|
|
|
if (XP_STR_LEN(buf) == 0) return 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
n = handler (XP_AWK_IO_READ, 0,
|
|
|
|
p, p->in.buf, xp_countof(p->in.buf));
|
|
|
|
if (n == -1)
|
|
|
|
{
|
|
|
|
/* handler error. getline should return -1 */
|
|
|
|
/* TODO: set ERRNO */
|
|
|
|
*errnum = XP_AWK_ENOERR;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (n == 0)
|
|
|
|
{
|
|
|
|
p->in.eof = xp_true;
|
|
|
|
if (XP_STR_LEN(buf) == 0) return 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
p->in.len = n;
|
|
|
|
p->in.pos = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
c = p->in.buf[p->in.pos++];
|
|
|
|
if (c == XP_C('\n')) break;
|
2006-06-19 04:38:51 +00:00
|
|
|
|
2006-06-28 14:19:01 +00:00
|
|
|
if (xp_str_ccat (buf, c) == (xp_size_t)-1)
|
|
|
|
{
|
|
|
|
*errnum = XP_AWK_ENOMEM;
|
|
|
|
return -1;
|
|
|
|
}
|
2006-06-16 07:37:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2006-06-22 14:15:02 +00:00
|
|
|
int xp_awk_writeextio (
|
2006-06-28 03:44:40 +00:00
|
|
|
xp_awk_run_t* run, int out_type,
|
2006-06-22 14:15:02 +00:00
|
|
|
const xp_char_t* name, xp_awk_val_t* v, int* errnum)
|
|
|
|
{
|
|
|
|
xp_awk_extio_t* p = run->extio;
|
2006-06-28 03:44:40 +00:00
|
|
|
xp_awk_io_t handler;
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_t buf;
|
2006-06-29 14:38:01 +00:00
|
|
|
int extio_type, extio_opt, extio_mask;
|
2006-06-22 14:15:02 +00:00
|
|
|
|
2006-06-28 03:44:40 +00:00
|
|
|
static int __out_type_map[] =
|
|
|
|
{
|
|
|
|
/* the order should match the order of the
|
|
|
|
* XP_AWK_OUT_XXX values in tree.h */
|
|
|
|
XP_AWK_EXTIO_PIPE,
|
|
|
|
XP_AWK_EXTIO_COPROC,
|
|
|
|
XP_AWK_EXTIO_FILE,
|
|
|
|
XP_AWK_EXTIO_FILE,
|
|
|
|
XP_AWK_EXTIO_CONSOLE
|
|
|
|
};
|
|
|
|
|
|
|
|
static int __out_opt_map[] =
|
|
|
|
{
|
|
|
|
/* the order should match the order of the
|
|
|
|
* XP_AWK_OUT_XXX values in tree.h */
|
|
|
|
XP_AWK_IO_PIPE_WRITE,
|
|
|
|
0,
|
|
|
|
XP_AWK_IO_FILE_WRITE,
|
|
|
|
XP_AWK_IO_FILE_APPEND,
|
|
|
|
XP_AWK_IO_CONSOLE_WRITE
|
|
|
|
};
|
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
static int __out_mask_map[] =
|
|
|
|
{
|
|
|
|
__MASK_WRITE,
|
|
|
|
__MASK_RDWR,
|
|
|
|
__MASK_WRITE,
|
|
|
|
__MASK_WRITE,
|
|
|
|
__MASK_WRITE
|
|
|
|
};
|
|
|
|
|
2006-06-28 03:44:40 +00:00
|
|
|
xp_assert (out_type >= 0 && out_type <= xp_countof(__out_type_map));
|
|
|
|
xp_assert (out_type >= 0 && out_type <= xp_countof(__out_opt_map));
|
2006-06-29 14:38:01 +00:00
|
|
|
xp_assert (out_type >= 0 && out_type <= xp_countof(__out_mask_map));
|
2006-06-28 03:44:40 +00:00
|
|
|
|
2006-06-28 08:56:59 +00:00
|
|
|
/* translate the out_type into the relevant extio type and option */
|
2006-06-28 03:44:40 +00:00
|
|
|
extio_type = __out_type_map[out_type];
|
|
|
|
extio_opt = __out_opt_map[out_type];
|
2006-06-29 14:38:01 +00:00
|
|
|
extio_mask = __out_mask_map[out_type];
|
2006-06-28 03:44:40 +00:00
|
|
|
|
|
|
|
handler = run->awk->extio[extio_type];
|
2006-06-22 14:15:02 +00:00
|
|
|
if (handler == XP_NULL)
|
|
|
|
{
|
|
|
|
/* no io handler provided */
|
|
|
|
*errnum = XP_AWK_EIOIMPL; /* TODO: change the error code */
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2006-07-01 16:07:06 +00:00
|
|
|
/* TODO: optimize the buffer management.
|
|
|
|
* each xp_awk_run_t may have a buffer for this. */
|
2006-06-26 15:09:28 +00:00
|
|
|
if (xp_str_open (&buf, 256) == XP_NULL)
|
|
|
|
{
|
|
|
|
*errnum = XP_AWK_ENOMEM;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* convert the value to string representation first */
|
|
|
|
if (xp_awk_valtostr(v, errnum, &buf) == XP_NULL)
|
|
|
|
{
|
|
|
|
xp_str_close (&buf);
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* look for the corresponding extio for name */
|
2006-06-22 14:15:02 +00:00
|
|
|
while (p != XP_NULL)
|
|
|
|
{
|
2006-06-28 08:56:59 +00:00
|
|
|
/* the file "1.tmp", in the following code snippets,
|
|
|
|
* would be opened by the first print statement, but not by
|
|
|
|
* the second print statement. this is because
|
|
|
|
* both XP_AWK_OUT_FILE and XP_AWK_OUT_FILE_APPEND are
|
|
|
|
* translated to XP_AWK_EXTIO_FILE and it is used to
|
|
|
|
* keep track of file handles..
|
|
|
|
*
|
|
|
|
* print "1111" >> "1.tmp"
|
|
|
|
* print "1111" > "1.tmp"
|
|
|
|
*/
|
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
if (p->type == (extio_type | extio_mask) &&
|
2006-06-28 03:44:40 +00:00
|
|
|
xp_strcmp(p->name,name) == 0) break;
|
2006-06-22 14:15:02 +00:00
|
|
|
p = p->next;
|
|
|
|
}
|
|
|
|
|
2006-06-26 15:09:28 +00:00
|
|
|
/* if there is not corresponding extio for name, create one */
|
2006-06-22 14:15:02 +00:00
|
|
|
if (p == XP_NULL)
|
|
|
|
{
|
|
|
|
p = (xp_awk_extio_t*) xp_malloc (xp_sizeof(xp_awk_extio_t));
|
|
|
|
if (p == XP_NULL)
|
|
|
|
{
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_close (&buf);
|
2006-06-22 14:15:02 +00:00
|
|
|
*errnum = XP_AWK_ENOMEM;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
p->name = xp_strdup (name);
|
|
|
|
if (p->name == XP_NULL)
|
|
|
|
{
|
|
|
|
xp_free (p);
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_close (&buf);
|
2006-06-22 14:15:02 +00:00
|
|
|
*errnum = XP_AWK_ENOMEM;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
2006-06-29 14:38:01 +00:00
|
|
|
p->type = (extio_type | extio_mask);
|
2006-06-22 14:15:02 +00:00
|
|
|
p->handle = XP_NULL;
|
|
|
|
p->next = XP_NULL;
|
|
|
|
|
2006-06-28 03:44:40 +00:00
|
|
|
if (handler (XP_AWK_IO_OPEN, extio_opt, p, XP_NULL, 0) == -1)
|
2006-06-22 14:15:02 +00:00
|
|
|
{
|
|
|
|
xp_free (p->name);
|
|
|
|
xp_free (p);
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_close (&buf);
|
2006-06-22 14:15:02 +00:00
|
|
|
|
|
|
|
/* TODO: set ERRNO */
|
|
|
|
*errnum = XP_AWK_ENOERR;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (p->handle == XP_NULL)
|
|
|
|
{
|
|
|
|
xp_free (p->name);
|
|
|
|
xp_free (p);
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_close (&buf);
|
2006-06-22 14:15:02 +00:00
|
|
|
|
2006-06-26 15:09:28 +00:00
|
|
|
/* wrong implementation of the user io handler.
|
2006-06-22 14:15:02 +00:00
|
|
|
* the correct io handler should set p->handle to
|
|
|
|
* non XP_NULL when it returns 0. */
|
|
|
|
*errnum = XP_AWK_EIOIMPL;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* chain it */
|
|
|
|
p->next = run->extio;
|
|
|
|
run->extio = p;
|
|
|
|
}
|
|
|
|
|
2006-06-26 15:09:28 +00:00
|
|
|
if (handler (XP_AWK_IO_WRITE, 0,
|
|
|
|
p, XP_STR_BUF(&buf), XP_STR_LEN(&buf)) == 0)
|
2006-06-22 14:15:02 +00:00
|
|
|
{
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_close (&buf);
|
2006-06-22 14:15:02 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-06-26 15:09:28 +00:00
|
|
|
xp_str_close (&buf);
|
2006-06-22 14:15:02 +00:00
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2006-06-21 13:52:15 +00:00
|
|
|
int xp_awk_closeextio (xp_awk_run_t* run, const xp_char_t* name, int* errnum)
|
2006-06-16 07:37:27 +00:00
|
|
|
{
|
2006-06-21 13:52:15 +00:00
|
|
|
xp_awk_extio_t* p = run->extio, * px = XP_NULL;
|
2006-06-16 07:37:27 +00:00
|
|
|
|
|
|
|
while (p != XP_NULL)
|
|
|
|
{
|
2006-06-21 15:37:51 +00:00
|
|
|
/* it handles the first that matches the given name
|
2006-06-21 13:52:15 +00:00
|
|
|
* regardless of the extio type */
|
2006-06-19 09:10:57 +00:00
|
|
|
if (xp_strcmp(p->name,name) == 0)
|
2006-06-16 07:37:27 +00:00
|
|
|
{
|
2006-06-29 14:38:01 +00:00
|
|
|
xp_awk_io_t handler;
|
|
|
|
|
|
|
|
handler = run->awk->extio[p->type & __MASK_CLEAR];
|
2006-06-21 15:37:51 +00:00
|
|
|
if (handler != NULL)
|
2006-06-19 04:38:51 +00:00
|
|
|
{
|
2006-06-22 04:25:44 +00:00
|
|
|
/* TODO: io command should not be XP_AWK_IO_CLOSE
|
2006-06-21 15:37:51 +00:00
|
|
|
* it should be more generic form than this... */
|
2006-06-22 04:25:44 +00:00
|
|
|
if (handler (XP_AWK_IO_CLOSE, 0, p, XP_NULL, 0) == -1)
|
2006-06-21 15:37:51 +00:00
|
|
|
{
|
|
|
|
/* this is not a run-time error.*/
|
|
|
|
*errnum = XP_AWK_ENOERR;
|
|
|
|
return -1;
|
|
|
|
}
|
2006-06-19 04:38:51 +00:00
|
|
|
}
|
2006-06-16 07:37:27 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
if (px != XP_NULL) px->next = p->next;
|
|
|
|
else run->extio = p->next;
|
2006-06-16 07:37:27 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
xp_free (p->name);
|
|
|
|
xp_free (p);
|
2006-06-19 04:38:51 +00:00
|
|
|
return 0;
|
2006-06-16 07:37:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
px = p;
|
|
|
|
p = p->next;
|
|
|
|
}
|
|
|
|
|
2006-06-19 09:10:57 +00:00
|
|
|
/* this is not a run-time error */
|
|
|
|
*errnum = XP_AWK_ENOERR;
|
2006-06-16 07:37:27 +00:00
|
|
|
return -1;
|
|
|
|
}
|
2006-06-21 13:52:15 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
void xp_awk_clearextio (xp_awk_run_t* run)
|
2006-06-21 13:52:15 +00:00
|
|
|
{
|
|
|
|
xp_awk_extio_t* next;
|
|
|
|
xp_awk_io_t handler;
|
2006-06-21 15:37:51 +00:00
|
|
|
int n;
|
2006-06-21 13:52:15 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
while (run->extio != XP_NULL)
|
2006-06-21 13:52:15 +00:00
|
|
|
{
|
2006-06-29 14:38:01 +00:00
|
|
|
handler = run->awk->extio[run->extio->type & __MASK_CLEAR];
|
2006-06-21 15:37:51 +00:00
|
|
|
next = run->extio->next;
|
2006-06-21 13:52:15 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
if (handler != XP_NULL)
|
2006-06-21 13:52:15 +00:00
|
|
|
{
|
2006-06-21 15:37:51 +00:00
|
|
|
/* TODO: io command should not be XP_AWK_INPUT_CLOSE
|
|
|
|
* it should be more generic form than this... */
|
2006-06-22 04:25:44 +00:00
|
|
|
n = handler (XP_AWK_IO_CLOSE, 0, run->extio, XP_NULL, 0);
|
2006-06-21 15:37:51 +00:00
|
|
|
if (n == -1)
|
|
|
|
{
|
|
|
|
/* TODO:
|
|
|
|
* some warning actions need to be taken */
|
|
|
|
}
|
2006-06-21 13:52:15 +00:00
|
|
|
}
|
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
xp_free (run->extio->name);
|
|
|
|
xp_free (run->extio);
|
2006-06-21 13:52:15 +00:00
|
|
|
|
2006-06-21 15:37:51 +00:00
|
|
|
run->extio = next;
|
2006-06-21 13:52:15 +00:00
|
|
|
}
|
|
|
|
}
|