content = 0;
if (name_id != ONIG_NO_NAME_ID) {
- UChar* name = onig_get_callout_name_from_id(name_id);
+ UChar* name = onig_get_callout_name_from_name_id(name_id);
fprintf(stdout, "name: %s\n", name);
}
fprintf(stdout,
ONIG_EXTERN
int onig_set_callout_of_name P_((OnigUChar* name, OnigUChar* name_end, int callout_in, OnigCalloutFunc callout, int arg_num, OnigType arg_types[], int optional_arg_num, OnigValue opt_defaults[])); /* name: single-byte string */
ONIG_EXTERN
-OnigUChar* onig_get_callout_name_from_id P_((int id));
+OnigUChar* onig_get_callout_name_from_name_id P_((int id));
/* used in callout functions */
ONIG_EXTERN
}\
else {\
aof = ONIG_CALLOUT_OF_NAME;\
- func = onig_get_callout_start_func_from_id(stk->zid);\
+ func = onig_get_callout_start_func_from_name_id(stk->zid);\
}\
RETRACTION_CALLOUT(func, aof, stk->zid, stk->u.callout.num, stk->u.callout.content, stk->u.callout.content_end, msa->mp->callout_user_data);\
}
of = ONIG_CALLOUT_OF_NAME;
GET_MEMNUM_INC(name_id, p);
- func = onig_get_callout_start_func_from_id(name_id);
+ func = onig_get_callout_start_func_from_name_id(name_id);
callout_common_entry:
GET_MEMNUM_INC(num, p);
retraction_callout2:
if ((dirs & ONIG_CALLOUT_IN_RETRACTION) != 0) {
if (of == ONIG_CALLOUT_OF_NAME) {
- func = onig_get_callout_start_func_from_id(name_id);
+ func = onig_get_callout_start_func_from_name_id(name_id);
if (IS_NOT_NULL(func)) {
STACK_PUSH_CALLOUT_NAME(name_id, num, content_start, content_end);
}
CALLOUT_TYPE_START_MARK_END_CALL = 3,
} CalloutType;
-extern OnigCalloutFunc onig_get_callout_start_func_from_id(int id);
+extern OnigCalloutFunc onig_get_callout_start_func_from_name_id(int id);
extern OnigCalloutFunc onig_get_callout_end_func_from_name_id(int id);
extern int onig_callout_tag_table_free(void* table);
#endif
}
extern OnigCalloutFunc
-onig_get_callout_start_func_from_id(int name_id)
+onig_get_callout_start_func_from_name_id(int name_id)
{
return CalloutNameFuncList->v[name_id].start_func;
}
}
extern UChar*
-onig_get_callout_name_from_id(int id)
+onig_get_callout_name_from_name_id(int name_id)
{
- return CalloutNameFuncList->v[id].name;
+ return CalloutNameFuncList->v[name_id].name;
}
extern int