From d7e4cf0c06473bd201cb4da7056e2cf5d3f18087 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 30 Mar 2021 05:39:37 -0600 Subject: intrpvar.h: Swap position of two defns; add comment --- intrpvar.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'intrpvar.h') 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) -- cgit v1.2.1