summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-08-25 08:58:42 -0600
committerKarl Williamson <public@khwilliamson.com>2012-08-25 23:21:29 -0600
commit5d3d13d10da5429b4c98a44ea398eb3cfb8c457b (patch)
tree3bfb087559d3d4550910610254f8cda2fb4397eb /regcomp.c
parentab20d70a9a23debea96660523e287da51405d7de (diff)
downloadperl-5d3d13d10da5429b4c98a44ea398eb3cfb8c457b.tar.gz
utf8.c: collapse a function parameter
Now that we have a flags parameter, we can get put this parameter as just another flag, giving a cleaner interface to this internal-only function. This also renames the flag parameter to <flag_p> to indicate it needs to be dereferenced.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regcomp.c b/regcomp.c
index 5a771767cb..02382c49c6 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -11541,7 +11541,9 @@ parseit:
case 'P':
{
char *e;
- U8 swash_init_flags = 0;
+
+ /* This routine will handle any undefined properties */
+ U8 swash_init_flags = _CORE_SWASH_INIT_RETURN_IF_UNDEF;
if (RExC_parse >= RExC_end)
vFAIL2("Empty \\%c{}", (U8)value);
@@ -11597,8 +11599,6 @@ parseit:
swash = _core_swash_init("utf8", name, &PL_sv_undef,
1, /* binary */
0, /* not tr/// */
- TRUE, /* this routine will handle
- undefined properties */
NULL, /* No inversion list */
&swash_init_flags
);