diff --git a/README.md b/README.md index 85f9f8ea..01c21260 100644 --- a/README.md +++ b/README.md @@ -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; diff --git a/lib/hawk.h b/lib/hawk.h index 054a9365..6cdf76ff 100644 --- a/lib/hawk.h +++ b/lib/hawk.h @@ -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 /**