summaryrefslogtreecommitdiff
path: root/intrpvar.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-03-30 05:39:37 -0600
committerKarl Williamson <khw@cpan.org>2022-07-11 21:36:25 -0600
commitd7e4cf0c06473bd201cb4da7056e2cf5d3f18087 (patch)
tree9c40131971ac49c99e4e407fdfeaa87418bd4d12 /intrpvar.h
parentf9ea7fff19601966b922fa8d2b10871d20b2ddf4 (diff)
downloadperl-d7e4cf0c06473bd201cb4da7056e2cf5d3f18087.tar.gz
intrpvar.h: Swap position of two defns; add comment
Diffstat (limited to 'intrpvar.h')
-rw-r--r--intrpvar.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/intrpvar.h b/intrpvar.h
index 430422fbde..58fa5a4b9c 100644
--- a/intrpvar.h
+++ b/intrpvar.h
@@ -742,9 +742,12 @@ PERLVARA(I, curlocales, 12, const char *)
#endif
#ifdef USE_LOCALE_COLLATE
-PERLVAR(I, collation_name, char *) /* Name of current collation */
-PERLVAR(I, collxfrm_base, Size_t) /* Basic overhead in *xfrm() */
+/* The emory needed to store the collxfrm transformation of a string with
+ * length 'x' is predicted by the linear equation mx+b; m=mult, b=base */
PERLVARI(I, collxfrm_mult,Size_t, 2) /* Expansion factor in *xfrm() */
+PERLVAR(I, collxfrm_base, Size_t) /* Basic overhead in *xfrm() */
+
+PERLVAR(I, collation_name, char *) /* Name of current collation */
PERLVARI(I, collation_ix, U32, 0) /* Collation generation index */
PERLVARI(I, strxfrm_NUL_replacement, U8, 0) /* Code point to replace NULs */
PERLVARI(I, strxfrm_is_behaved, bool, TRUE)