int onig_set_retraction_callout_of_code P_((OnigCalloutFunc f));
ONIG_EXTERN
int onig_set_callout_of_name P_((UChar* name, UChar* name_end, OnigCalloutFunc callout, OnigCalloutFunc retraction_callout)); /* name: single-byte string */
+ONIG_EXTERN
+UChar* onig_get_callout_name_from_id P_((int id));
+/* used in callout functions */
ONIG_EXTERN
int onig_get_capture_range_in_callout P_((OnigCalloutArgs* args, int mem_num, int* begin, int* end));
ONIG_EXTERN
return CalloutNameFuncList->v[id].retraction_callout;
}
+extern UChar*
+onig_get_callout_name_from_id(int id)
+{
+ return CalloutNameFuncList->v[id].name;
+}
+
extern int
onig_callout_names_free(void)
{