summaryrefslogtreecommitdiff
path: root/intrpvar.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-09-01 13:39:56 +0200
committerYves Orton <demerphq@gmail.com>2022-09-07 09:02:11 +0200
commit7ca60b44877e7461db603f1562b29a7432b93a7e (patch)
tree80bc3dc0f74e3f1038c1a21b5d4b4362efdad582 /intrpvar.h
parentbf1e8ebed0962ba06b49af19728839af435e9332 (diff)
downloadperl-7ca60b44877e7461db603f1562b29a7432b93a7e.tar.gz
intrpvar.h - move size declaration to a define
so it can be reused and so the PERLVAR() lines up better.
Diffstat (limited to 'intrpvar.h')
-rw-r--r--intrpvar.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/intrpvar.h b/intrpvar.h
index 85fa739c53..d5018e2328 100644
--- a/intrpvar.h
+++ b/intrpvar.h
@@ -1067,7 +1067,8 @@ PERLVAR(I, wcrtomb_ps, mbstate_t)
/* Enough space for the reserved byte, 1 for a potential leading 0, then enough
* for the longest representable integer plus an extra, the 3 flag characters,
* and NUL */
-PERLVARA(I, mem_log, 1 + 1 + TYPE_DIGITS(UV) + 1 + 3 + 1, char)
+#define PERL_MEM_LOG_ARYLEN (1 + 1 + TYPE_DIGITS(UV) + 1 + 3 + 1)
+PERLVARA(I, mem_log, PERL_MEM_LOG_ARYLEN, char)
#endif
/* The most recently seen `use VERSION` declaration, encoded in a single