Exemple #1
0
static void
_add_parser_match_debug_info(RFindNodeState *state, RNode *root, RParserNode *parser_node, gchar *remaining_key,
                             gint extracted_match_len, RParserMatch *match_slot)
{
  if (state->dbg_list && match_slot)
    _add_debug_info(state, root, parser_node, extracted_match_len,
                    ((gint16) match_slot->ofs) + remaining_key - state->whole_key, ((gint16) match_slot->len) + extracted_match_len);
}
Exemple #2
0
static void
_add_literal_match_to_debug_info(RFindNodeState *state, RNode *node, gint literal_prefix)
{
  _add_debug_info(state, node, NULL, literal_prefix, 0, 0);
}