put back the hawk_rtx_call and hawk_rtx_exec macros

This commit is contained in:
hyung-hwan 2023-07-07 08:09:40 +09:00
parent 58f645f96f
commit 0603e3b1ba
2 changed files with 10 additions and 2 deletions

View File

@ -681,7 +681,7 @@ int main ()
}
/* execute the BEGIN/pattern-action/END blocks */
retv = hawk_rtx_loop(rtx);
retv = hawk_rtx_loop(rtx); /* alternatively, hawk_rtx_exec(rtx, HAWK_NULL, 0) */
if (!retv)
{
hawk_logbfmt (hawk, HAWK_LOG_STDERR, "ERROR(rtx_loop): %js\n", hawk_geterrmsg(hawk));
@ -724,7 +724,7 @@ int main ()
}
HAWK::Hawk::Value vr;
hawk.exec (&vr, HAWK_NULL, 0);
hawk.loop (&vr); // alternatively, hawk.exec (&vr, HAWK_NULL, 0);
hawk.close ();
return 0;

View File

@ -2405,10 +2405,18 @@ HAWK_EXPORT hawk_val_t* hawk_rtx_execwithbcstrarr (
# define hawk_rtx_callwithoocstr hawk_rtx_callwithucstr
# define hawk_rtx_callwithoocstrarr hawk_rtx_callwithucstrarr
# define hawk_rtx_execwithoocstrarr hawk_rtx_execwithucstrarr
# define hawk_rtx_call hawk_rtx_callwithucstr
# define hawk_rtx_call hawk_rtx_callwithucstrarr
# define hawk_rtx_exec hawk_rtx_execwithucstrarr
#else
# define hawk_rtx_callwithoocstr hawk_rtx_callwithbcstr
# define hawk_rtx_callwithoocstrarr hawk_rtx_callwithbcstrarr
# define hawk_rtx_execwithoocstrarr hawk_rtx_execwithbcstrarr
# define hawk_rtx_call hawk_rtx_callwithbcstr
# define hawk_rtx_call hawk_rtx_callwithbcstrarr
# define hawk_rtx_exec hawk_rtx_execwithbcstrarr
#endif
/**