/* Create object */
ud->section_pointer = init_view (ud->cfg->cfg_pool);
}
+#if GLIB_MINOR_VERSION >= 18
else if (subparsers != NULL && (subparser = g_hash_table_lookup (subparsers, element_name)) != NULL) {
ud->state = XML_SUBPARSER;
g_markup_parse_context_push (context, subparser->parser, subparser->user_data);
rspamd_strlcpy (ud->section_name, element_name, sizeof (ud->section_name));
}
+#endif
else {
/* Extract other tags */
rspamd_strlcpy (ud->section_name, element_name, sizeof (ud->section_name));
break;
case XML_SKIP_ELEMENTS:
return;
+#if GLIB_MINOR_VERSION >= 18
case XML_SUBPARSER:
CHECK_TAG (ud->section_name, TRUE);
if (subparsers != NULL && (subparser = g_hash_table_lookup (subparsers, element_name)) != NULL) {
}
ud->state = XML_READ_PARAM;
break;
+#endif
default:
ud->state = XML_ERROR;
break;
if (re) {
data = luaL_checkstring (L, 2);
if (data) {
+#if GLIB_MINOR_VERSION >= 26
if ((g_regex_get_compile_flags (re) & G_REGEX_RAW) == 0) {
/* Validate input */
if (!g_utf8_validate (data, -1, NULL)) {
return 1;
}
}
+#endif
if (g_regex_match_full (re, data, -1, 0, 0, &mi, NULL)) {
matches = g_match_info_fetch_all (mi);
lua_newtable (L);