added the _instsize field to qse_awk_t and qse_awk_rtx_t to get rid of qse_awk_getxtnstd() and qse_awk_rtx_getxtnstd()
This commit is contained in:
@ -30,7 +30,7 @@ static qse_ssize_t handle_console (
|
||||
qse_char_t* data,
|
||||
qse_size_t count)
|
||||
{
|
||||
console_t* con = qse_awk_rtx_getxtnstd (rtx);
|
||||
console_t* con = qse_awk_rtx_getxtn(rtx);
|
||||
|
||||
/* this function is called separately for the console input and console
|
||||
* output. however, since i don't maintain underlying resources like
|
||||
@ -129,7 +129,7 @@ static int awk_main (int argc, qse_char_t* argv[])
|
||||
}
|
||||
|
||||
/* get the pointer to the extension area. */
|
||||
con = (console_t*)qse_awk_rtx_getxtnstd (rtx);
|
||||
con = (console_t*)qse_awk_rtx_getxtn(rtx);
|
||||
/* initialize fields that require non-zero values.
|
||||
* the entire extension area was initialized to zeros
|
||||
* when it was created. */
|
||||
|
@ -26,7 +26,7 @@ static int awk_main (int argc, qse_char_t* argv[])
|
||||
ginfo_t* ginfo;
|
||||
|
||||
/* create an awk object */
|
||||
awk = qse_awk_openstd (QSE_SIZEOF(*ginfo), QSE_NULL);
|
||||
awk = qse_awk_openstd(QSE_SIZEOF(*ginfo), QSE_NULL);
|
||||
if (awk == QSE_NULL)
|
||||
{
|
||||
qse_fprintf (QSE_STDERR, QSE_T("ERROR: cannot open awk\n"));
|
||||
@ -36,7 +36,7 @@ static int awk_main (int argc, qse_char_t* argv[])
|
||||
/* add global variables G1, G2, and G3. store the IDs to the extension
|
||||
* area. the extension area is used for demonstration. there is no special
|
||||
* need to use it when adding global variables. */
|
||||
ginfo = qse_awk_getxtnstd (awk);
|
||||
ginfo = qse_awk_getxtn(awk);
|
||||
for (i = 0; i < QSE_COUNTOF(ginfo->g); i++)
|
||||
{
|
||||
qse_char_t name[] = QSE_T("GX");
|
||||
|
@ -39,7 +39,8 @@ static qse_ssize_t new_pipe_handler (
|
||||
qse_char_t* data, qse_size_t size)
|
||||
{
|
||||
struct rtx_xtn_t* xtn;
|
||||
xtn = qse_awk_rtx_getxtnstd (rtx);
|
||||
|
||||
xtn = qse_awk_rtx_getxtn(rtx);
|
||||
|
||||
if (cmd == QSE_AWK_RIO_OPEN)
|
||||
qse_fprintf (QSE_STDERR, QSE_T("LOG: Executing [%s] for piping\n"), riod->name);
|
||||
@ -55,7 +56,7 @@ static void extend_pipe_handler (qse_awk_rtx_t* rtx)
|
||||
struct rtx_xtn_t* xtn;
|
||||
qse_awk_rio_t rio;
|
||||
|
||||
xtn = qse_awk_rtx_getxtnstd (rtx);
|
||||
xtn = qse_awk_rtx_getxtn(rtx);
|
||||
|
||||
/* get the previous handler functions */
|
||||
qse_awk_rtx_getrio (rtx, &rio);
|
||||
|
Reference in New Issue
Block a user