mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
regex: Deprecate an obsolete error code
G_REGEX_ERROR_DEFINE_REPETION is dead and never raised by PCRE.
This commit is contained in:
parent
d9e8d3e0f0
commit
20ab7e2aea
@ -386,9 +386,6 @@ translate_compile_error (gint *errcode, const gchar **errmsg)
|
|||||||
case G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE:
|
case G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE:
|
||||||
*errmsg = _("DEFINE group contains more than one branch");
|
*errmsg = _("DEFINE group contains more than one branch");
|
||||||
break;
|
break;
|
||||||
case G_REGEX_ERROR_DEFINE_REPETION:
|
|
||||||
*errmsg = _("repeating a DEFINE group is not allowed");
|
|
||||||
break;
|
|
||||||
case G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS:
|
case G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS:
|
||||||
*errmsg = _("inconsistent NEWLINE options");
|
*errmsg = _("inconsistent NEWLINE options");
|
||||||
break;
|
break;
|
||||||
|
@ -104,7 +104,7 @@ G_BEGIN_DECLS
|
|||||||
* @G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: "DEFINE" group contains more
|
* @G_REGEX_ERROR_TOO_MANY_BRANCHES_IN_DEFINE: "DEFINE" group contains more
|
||||||
* than one branch. Since 2.16
|
* than one branch. Since 2.16
|
||||||
* @G_REGEX_ERROR_DEFINE_REPETION: Repeating a "DEFINE" group is not allowed.
|
* @G_REGEX_ERROR_DEFINE_REPETION: Repeating a "DEFINE" group is not allowed.
|
||||||
* Since 2.16
|
* This error is never raised. Since: 2.16 Deprecated: 2.34
|
||||||
* @G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: Inconsistent newline options.
|
* @G_REGEX_ERROR_INCONSISTENT_NEWLINE_OPTIONS: Inconsistent newline options.
|
||||||
* Since 2.16
|
* Since 2.16
|
||||||
* @G_REGEX_ERROR_MISSING_BACK_REFERENCE: "\\g" is not followed by a braced
|
* @G_REGEX_ERROR_MISSING_BACK_REFERENCE: "\\g" is not followed by a braced
|
||||||
|
Loading…
Reference in New Issue
Block a user