put back the hawk_rtx_call and hawk_rtx_exec macros
This commit is contained in:
parent
58f645f96f
commit
0603e3b1ba
@ -681,7 +681,7 @@ int main ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* execute the BEGIN/pattern-action/END blocks */
|
/* 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)
|
if (!retv)
|
||||||
{
|
{
|
||||||
hawk_logbfmt (hawk, HAWK_LOG_STDERR, "ERROR(rtx_loop): %js\n", hawk_geterrmsg(hawk));
|
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::Hawk::Value vr;
|
||||||
hawk.exec (&vr, HAWK_NULL, 0);
|
hawk.loop (&vr); // alternatively, hawk.exec (&vr, HAWK_NULL, 0);
|
||||||
|
|
||||||
hawk.close ();
|
hawk.close ();
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -2405,10 +2405,18 @@ HAWK_EXPORT hawk_val_t* hawk_rtx_execwithbcstrarr (
|
|||||||
# define hawk_rtx_callwithoocstr hawk_rtx_callwithucstr
|
# define hawk_rtx_callwithoocstr hawk_rtx_callwithucstr
|
||||||
# define hawk_rtx_callwithoocstrarr hawk_rtx_callwithucstrarr
|
# define hawk_rtx_callwithoocstrarr hawk_rtx_callwithucstrarr
|
||||||
# define hawk_rtx_execwithoocstrarr hawk_rtx_execwithucstrarr
|
# 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
|
#else
|
||||||
# define hawk_rtx_callwithoocstr hawk_rtx_callwithbcstr
|
# define hawk_rtx_callwithoocstr hawk_rtx_callwithbcstr
|
||||||
# define hawk_rtx_callwithoocstrarr hawk_rtx_callwithbcstrarr
|
# define hawk_rtx_callwithoocstrarr hawk_rtx_callwithbcstrarr
|
||||||
# define hawk_rtx_execwithoocstrarr hawk_rtx_execwithbcstrarr
|
# 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
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user