fixed more file inclusion bugs

This commit is contained in:
2013-05-15 14:20:29 +00:00
parent 639391d887
commit caf3cf8171
7 changed files with 215 additions and 193 deletions

View File

@ -207,11 +207,23 @@ public:
return this->mode;
}
bool isMaster() const
{
return this->arg->prev == QSE_NULL;
}
const char_t* getName() const
{
return this->arg->name;
}
// since it doesn't copy the contents,
// it should point to something that outlives this object.
void setName (const char_t* name)
{
this->arg->name = name;
}
const char_t* getPrevName() const
{
return this->arg->prev->name;

View File

@ -497,18 +497,13 @@ struct qse_awk_sio_lxc_t
};
typedef struct qse_awk_sio_lxc_t qse_awk_sio_lxc_t;
enum qse_awk_sio_arg_flag_t
{
QSE_AWK_SIO_INCLUDED = (1 << 0)
};
typedef struct qse_awk_sio_arg_t qse_awk_sio_arg_t;
struct qse_awk_sio_arg_t
{
/**
* [IN/OUT] name of I/O object.
* It is #QSE_NULL for the top-level stream. It points to a stream name
* for an included stream.
* for an included stream. This can be changed by an I/O handler.
*/
const qse_char_t* name;

View File

@ -231,9 +231,9 @@ typedef struct qse_xli_io_arg_t qse_xli_io_arg_t;
struct qse_xli_io_arg_t
{
/**
* [IN] name of I/O object.
* [IN/OUT] name of I/O object.
* It is #QSE_NULL for the top-level stream. It points to a stream name
* for an included stream.
* for an included stream. This can be changed by an I/O handler.
*/
const qse_char_t* name;