This is a live mirror of the Perl 5 development currently hosted at
21 months agoembed.fnc: Restrict the 'ref' function's accessibility
Karl Williamson [Sat, 31 Aug 2019 21:31:56 +0000 (15:31 -0600)]
embed.fnc: Restrict the 'ref' function's accessibility

This could otherwise cause name collisions.  It is only used in two .c
files in the core

21 months agoNote that config.h contains usable API macros
Karl Williamson [Sat, 31 Aug 2019 21:24:41 +0000 (15:24 -0600)]
Note that config.h contains usable API macros

Things like UVSIZE...

21 months agoFix documentation of WITH_LC_NUMERIC_foo
Karl Williamson [Sat, 31 Aug 2019 20:55:46 +0000 (14:55 -0600)]
Fix documentation of WITH_LC_NUMERIC_foo

Now that Devel::PPPort can handle a macro whose argument is a {...}
block, we can appropriately document these.

21 months agoDocument STMT_START .. STMT_END
Karl Williamson [Sat, 31 Aug 2019 20:55:07 +0000 (14:55 -0600)]

Now that we have the 'u' flag we can document these macros and not have
to break downstream processing.

21 months agoMark BHK macros as unorthodox
Karl Williamson [Sat, 31 Aug 2019 20:47:48 +0000 (14:47 -0600)]
Mark BHK macros as unorthodox

This is because they take a preprocessor token as an argument

21 months agoNote that STR_WITH_LEN() is unorthodox
Karl Williamson [Sat, 31 Aug 2019 20:45:25 +0000 (14:45 -0600)]
Note that STR_WITH_LEN() is unorthodox

Now that we have the 'u' flag for macros, this one returns
a pair of values, so should be marked as such.

21 months agoChange pod for macros that require "literal strings"
Karl Williamson [Sat, 31 Aug 2019 20:40:12 +0000 (14:40 -0600)]
Change pod for macros that require "literal strings"

Now that Devel::PPPort  has the ability to handle these, we can loosen
the syntax for clarity.

21 months agoembed.fnc: Clarify comments, and note 'u' flag exceptions
Karl Williamson [Sat, 31 Aug 2019 20:30:29 +0000 (14:30 -0600)]
embed.fnc: Clarify comments, and note 'u' flag exceptions

The next release of Devel::PPPort will know how to handle all these
unorthodox functions, so no need to declare them as such, and in fact
they shouldn't be declared so.

21 months agoembed.fnc: Add 'u' flag for unorthodox parameter macros
Karl Williamson [Sat, 31 Aug 2019 20:25:26 +0000 (14:25 -0600)]
embed.fnc: Add 'u' flag for unorthodox parameter macros

This tells downstream processors, such as Devel::PPPort that compiling
macros like these will be won't work, as they have some issue.  For
example, aTHX_ expands to have a trailing comma.

21 months agoRefer to CopLABEL_len[_flags] in pod for cop_fetch_label
Karl Williamson [Sat, 31 Aug 2019 20:12:49 +0000 (14:12 -0600)]
Refer to CopLABEL_len[_flags] in pod for cop_fetch_label

21 months agoDocument CopLABEL[_len[_flags]]
Karl Williamson [Sat, 31 Aug 2019 20:10:52 +0000 (14:10 -0600)]
Document CopLABEL[_len[_flags]]

21 months agoNote that various items in perlguts are documented
Karl Williamson [Sat, 31 Aug 2019 19:58:16 +0000 (13:58 -0600)]
Note that various items in perlguts are documented

21 months agoperlguts: Document save_item
Karl Williamson [Sat, 31 Aug 2019 19:59:35 +0000 (13:59 -0600)]
perlguts: Document save_item

21 months agosv.c: Note that some SV flags are documented
Karl Williamson [Sat, 31 Aug 2019 18:59:08 +0000 (12:59 -0600)]
sv.c: Note that some SV flags are documented

21 months agoRemove redundant documentation for PL_parser
Karl Williamson [Sat, 31 Aug 2019 17:10:54 +0000 (11:10 -0600)]
Remove redundant documentation for PL_parser

21 months agoNote that various XS macros are documented
Karl Williamson [Sat, 31 Aug 2019 17:09:19 +0000 (11:09 -0600)]
Note that various XS macros are documented

21 months agoNote that AvFILLp is not for public use
Karl Williamson [Sat, 31 Aug 2019 17:07:38 +0000 (11:07 -0600)]
Note that AvFILLp is not for public use

21 months agoNote that PERL_VERSION and kin are documented
Karl Williamson [Sat, 31 Aug 2019 17:05:58 +0000 (11:05 -0600)]
Note that PERL_VERSION and kin are documented

21 months agoNote that mro[gs]et_private_data are documented
Karl Williamson [Sat, 31 Aug 2019 17:05:11 +0000 (11:05 -0600)]
Note that mro[gs]et_private_data are documented

21 months agoNote that filter_add, filter_read are documented
Karl Williamson [Sat, 31 Aug 2019 17:03:45 +0000 (11:03 -0600)]
Note that filter_add, filter_read are documented

21 months agoNote that PL_errgv is documented
Karl Williamson [Sat, 31 Aug 2019 17:03:21 +0000 (11:03 -0600)]
Note that PL_errgv is documented

21 months agoNote that G_METHOD[_NAMED] are documented
Karl Williamson [Sat, 31 Aug 2019 17:02:14 +0000 (11:02 -0600)]
Note that G_METHOD[_NAMED] are documented

21 months agoNote that PERL_MAGIC_foo are documented
Karl Williamson [Fri, 30 Aug 2019 20:19:18 +0000 (14:19 -0600)]
Note that PERL_MAGIC_foo are documented

21 months agoDocument PERL_INT_MAX, and similar
Karl Williamson [Fri, 30 Aug 2019 20:18:09 +0000 (14:18 -0600)]
Document PERL_INT_MAX, and similar

21 months agoDocument my_exit()
Karl Williamson [Fri, 30 Aug 2019 20:14:28 +0000 (14:14 -0600)]
Document my_exit()

21 months agonumeric.c: Note that flag bit names are documented
Karl Williamson [Fri, 30 Aug 2019 20:11:49 +0000 (14:11 -0600)]
numeric.c: Note that flag bit names are documented

21 months agoNote that [cm]alloc, realloc are documented
Karl Williamson [Fri, 30 Aug 2019 20:09:48 +0000 (14:09 -0600)]
Note that [cm]alloc, realloc are documented

As they are really Unix calls

21 months agoDocument HvFILL
Karl Williamson [Fri, 30 Aug 2019 20:09:13 +0000 (14:09 -0600)]
Document HvFILL

21 months agoDocument WIDEST_UTYPE
Karl Williamson [Fri, 30 Aug 2019 20:08:13 +0000 (14:08 -0600)]

21 months agogv.c: Note that some GV_foo constants are documented
Karl Williamson [Fri, 30 Aug 2019 20:06:20 +0000 (14:06 -0600)]
gv.c: Note that some GV_foo constants are documented

21 months agodump.c: Note that constants to pass are documented
Karl Williamson [Fri, 30 Aug 2019 20:05:27 +0000 (14:05 -0600)]
dump.c: Note that constants to pass are documented

21 months agoConfig: mention it is generated by configpm
Karl Williamson [Fri, 30 Aug 2019 20:00:36 +0000 (14:00 -0600)]
Config: mention it is generated by configpm

21 months agoDocument UTF8_MAXBYTES
Karl Williamson [Fri, 30 Aug 2019 19:57:05 +0000 (13:57 -0600)]

21 months agoDocument rsignal()
Karl Williamson [Fri, 30 Aug 2019 19:56:30 +0000 (13:56 -0600)]
Document rsignal()

21 months agoDocument my_setenv()
Karl Williamson [Fri, 30 Aug 2019 19:56:10 +0000 (13:56 -0600)]
Document my_setenv()

21 months agoDocument instr()
Karl Williamson [Fri, 30 Aug 2019 19:49:36 +0000 (13:49 -0600)]
Document instr()

21 months agoNote that the PerlIO functions and macros are documented
Karl Williamson [Sat, 31 Aug 2019 23:15:45 +0000 (17:15 -0600)]
Note that the PerlIO functions and macros are documented

in perlapio

21 months agoNote that the warnings categories are documented
Karl Williamson [Fri, 30 Aug 2019 03:23:20 +0000 (21:23 -0600)]
Note that the warnings categories are documented

This generates a hidden apidoc entry for the warnings categories, for
downstream processing, like Devel::PPPort.

21 months agowarnings.h: Add pod about finding the XS warning category
Karl Williamson [Thu, 29 Aug 2019 22:52:45 +0000 (16:52 -0600)]
warnings.h: Add pod about finding the XS warning category

The XS category names are easily derivable from the chart of perl-space

21 months agoregen/ Enforce 'b' without 'M' requires 'D'
Karl Williamson [Sun, 1 Sep 2019 02:53:03 +0000 (20:53 -0600)]
regen/ Enforce 'b' without 'M' requires 'D'

21 months agoembed.fnc: Functions in mathoms are deprecated
Karl Williamson [Sun, 1 Sep 2019 02:03:04 +0000 (20:03 -0600)]
embed.fnc: Functions in mathoms are deprecated

(unless there is a macro to bypass them)

These functions can be removed at any time, and any installation may
disallow them.  So they are effectively deprecated.  Make this explicit.

21 months agoregen/ Enforce mutual exclusivity of 'b', 'm'
Karl Williamson [Sun, 1 Sep 2019 02:51:52 +0000 (20:51 -0600)]
regen/ Enforce mutual exclusivity of 'b', 'm'

21 months agoembed.fnc: pack_cat, pad_compname_type have macro
Karl Williamson [Sat, 31 Aug 2019 22:43:35 +0000 (16:43 -0600)]
embed.fnc: pack_cat, pad_compname_type have macro

contrary to what was specified here

21 months agoembed.fnc: Use M flag generally with b, not m.
Karl Williamson [Tue, 20 Aug 2019 18:35:49 +0000 (12:35 -0600)]
embed.fnc: Use M flag generally with b, not m.

Commit 54c193aee0eb1f20806952d8fcd2ddadd5e57600 introduced the M flag,
to indicate an extra macro in addition to a regular function, beyond the
m flag which indicates a macro that replaces the function.  This
distinction matters to downstream processes.

But some of the functions with the b flag (hence in mathoms) still had
an m flag, but the macro is actually extra.  This commit changes those
from m to M.

21 months agoembed.fnc: There is no macro for sv_nolocking()
Karl Williamson [Sat, 31 Aug 2019 23:00:26 +0000 (17:00 -0600)]
embed.fnc: There is no macro for sv_nolocking()

Contrary to what this said.

21 months agoperlapi: Formally give prototypes for isFOO variants
Karl Williamson [Mon, 5 Aug 2019 03:03:42 +0000 (21:03 -0600)]
perlapi: Formally give prototypes for isFOO variants

These macros are documented unconventionally, with the main one of a
type documented, and the corresponding variants listed with a pointer to
how the variant differs from the main entry.  This is because they all
have similar corresponding variants, and doing it this way makes the
documentation more compact.  But downstream software is looking for
an apidoc entry to know about the existence of these.  This commit adds
that, using the new 'h', or hidden flag to suppress them from being

21 months Add h flag for hidden documentation
Karl Williamson [Thu, 29 Aug 2019 22:28:33 +0000 (16:28 -0600)] Add h flag for hidden documentation

This is to be used when the documentation exists, but isn't the typical
sort in perlapi or perlintern.

21 months agoperlapi: Document memEQs memNEs
Karl Williamson [Mon, 5 Aug 2019 00:26:16 +0000 (18:26 -0600)]
perlapi: Document memEQs memNEs

21 months agoperlapi: Document C_ARRAY_LENGTH, END
Karl Williamson [Mon, 5 Aug 2019 00:25:31 +0000 (18:25 -0600)]
perlapi: Document C_ARRAY_LENGTH, END

21 months agoperlapi: Document __ASSERT_
Karl Williamson [Mon, 5 Aug 2019 00:23:03 +0000 (18:23 -0600)]
perlapi: Document __ASSERT_

21 months agoperlapi: Document cBOOL
Karl Williamson [Mon, 5 Aug 2019 00:22:16 +0000 (18:22 -0600)]
perlapi: Document cBOOL

21 months agoperlapi: Document XST_mUV
Karl Williamson [Mon, 5 Aug 2019 00:21:11 +0000 (18:21 -0600)]
perlapi: Document XST_mUV

This one was missing from the set

21 months agoperlapi: Document GROK_NUMERIC_RADIX, PERL_ABS
Karl Williamson [Mon, 5 Aug 2019 00:19:25 +0000 (18:19 -0600)]

21 months agoperlapi: Document my_strotod, Strtod
Karl Williamson [Mon, 5 Aug 2019 00:17:48 +0000 (18:17 -0600)]
perlapi: Document my_strotod, Strtod

21 months agoperlapi: Document IN_LOCALE, and related
Karl Williamson [Mon, 5 Aug 2019 00:16:10 +0000 (18:16 -0600)]
perlapi: Document IN_LOCALE, and related

21 months agoperlapi: Document LIKELY, UNLIKELY
Karl Williamson [Mon, 5 Aug 2019 00:14:43 +0000 (18:14 -0600)]
perlapi: Document LIKELY, UNLIKELY

21 months agoperlapi: Document SvUVXx()
Karl Williamson [Mon, 5 Aug 2019 00:03:03 +0000 (18:03 -0600)]
perlapi: Document SvUVXx()

I'm doing so because Devel::PPPort provides this function.

21 months agoperlapi: Document UNICODE_REPLACEMENT
Karl Williamson [Mon, 5 Aug 2019 00:01:11 +0000 (18:01 -0600)]

21 months agoperlapi: Document NATIVE_to_foo, converse functions
Karl Williamson [Mon, 5 Aug 2019 00:00:01 +0000 (18:00 -0600)]
perlapi: Document NATIVE_to_foo, converse functions

21 months agoperlapi: Generalize SEE ALSO lists
Karl Williamson [Sat, 31 Aug 2019 17:16:40 +0000 (11:16 -0600)]
perlapi: Generalize SEE ALSO lists

This makes sure perlintern and perlapi are consistent

21 months agoregen/ Improve error msg
Karl Williamson [Sun, 1 Sep 2019 02:45:08 +0000 (20:45 -0600)]
regen/ Improve error msg

by indicating which function the problem occurs in

21 months agoregen/ Sort accepted flags list; N n s are legal
Karl Williamson [Fri, 30 Aug 2019 19:06:18 +0000 (13:06 -0600)]
regen/ Sort accepted flags list; N n s are legal

This makes it easier to look up a flag in the list.  It had gotten out
of order due to an earlier renaming of a flag.  And several legal flags
(though not used in embed.fnc) were missing

21 months agoperlapi: Clarify pod for cop_store_label
Karl Williamson [Sat, 31 Aug 2019 20:13:57 +0000 (14:13 -0600)]
perlapi: Clarify pod for cop_store_label

21 months agoperlapi: Fix pod for perl_clone()
Karl Williamson [Sat, 31 Aug 2019 19:01:24 +0000 (13:01 -0600)]
perlapi: Fix pod for perl_clone()

There were grammar mistakes, and the example it cited is no longer

21 months agot/re/pat.t: Use ASCII ' in comment, not Unicode char
Karl Williamson [Fri, 30 Aug 2019 16:32:15 +0000 (10:32 -0600)]
t/re/pat.t: Use ASCII ' in comment, not Unicode char

21 months agoperldelta for 6c3320363f6cd
Tony Cook [Tue, 3 Sep 2019 01:15:23 +0000 (11:15 +1000)]
perldelta for 6c3320363f6cd

21 months ago(perl #133981) fix for Win32 setlocale() abort
Tony Cook [Wed, 24 Jul 2019 05:56:08 +0000 (15:56 +1000)]
(perl #133981) fix for Win32 setlocale() abort

This appears to abort because the supplied locale string isn't validly
encoded in the current code page, so we see the following steps:

1) an internal sizing call to mbstowcs_s() fails, but

2) the calling (CRT) code doesn't handle that, allocating a zero length

3) mbstowcs_s() is called with a buffer and a zero size, causing the

Since it's the conversion that fails, perform our own conversion.

Rather than using the current code page always use CP_UTF8, since
this is perl's typical non-Latin1 encoding.

Unfortunately we don't have the SVf_UTF8 flag at this point, so
all we can do is assume UTF-8.

This introduces a change in behaviour - previously locale names
were interpreted in the current code page, but most locale names
are ASCII, so it shouldn't matter.

One issue is that the return value is freed on the next LEAVE, but
all callers immediately use or copy the string.

21 months agoperldelta for 05a03c0da6f3
Tony Cook [Mon, 2 Sep 2019 23:19:52 +0000 (09:19 +1000)]
perldelta for 05a03c0da6f3

21 months ago(perl #134390) don't leak the SV we just created on an early return
Tony Cook [Mon, 2 Sep 2019 05:35:36 +0000 (15:35 +1000)]
(perl #134390) don't leak the SV we just created on an early return

21 months agoMore SvPV* macros
Tony Cook [Mon, 2 Sep 2019 01:35:47 +0000 (11:35 +1000)]
More SvPV* macros

21 months agobump $XS::APItest::VERSION
Tony Cook [Mon, 2 Sep 2019 01:28:16 +0000 (11:28 +1000)]
bump $XS::APItest::VERSION

21 months agoImplement SvPV*_or_null*
Pali [Sat, 10 Feb 2018 14:10:04 +0000 (15:10 +0100)]
Implement SvPV*_or_null*

21 months agoImplement SvPVutf8_nomg and SvPVbyte_nomg
Pali [Sat, 10 Feb 2018 12:41:46 +0000 (13:41 +0100)]
Implement SvPVutf8_nomg and SvPVbyte_nomg

21 months agotest for desired magic fetches/stores for vec()
Tony Cook [Tue, 19 Mar 2019 23:53:17 +0000 (10:53 +1100)]
test for desired magic fetches/stores for vec()

for #132782

21 months agoFix do_vecget and do_vecset to process GET magic only once
Pali [Sat, 10 Feb 2018 12:41:19 +0000 (13:41 +0100)]
Fix do_vecget and do_vecset to process GET magic only once

21 months agoImplement sv_utf8_downgrade_nomg
Pali [Sat, 10 Feb 2018 12:40:47 +0000 (13:40 +0100)]
Implement sv_utf8_downgrade_nomg

21 months agoSupply missing right brace in regex example
James E Keenan [Sat, 31 Aug 2019 23:18:36 +0000 (19:18 -0400)]
Supply missing right brace in regex example

As suggested by Jim Avera in RT 134395.

21 months ago-DDEBUGGING does not go in ccflags on VMS.
Craig A. Berry [Sat, 31 Aug 2019 19:10:07 +0000 (14:10 -0500)]
-DDEBUGGING does not go in ccflags on VMS.

But there is a platform-specific %Config entry for it so use that
and avoid the assertion-induced failure of uv.t in debugging builds.

21 months agoFix parent directory in pod2usage auxiliary script.
Craig A. Berry [Fri, 30 Aug 2019 16:28:42 +0000 (11:28 -0500)]
Fix parent directory in pod2usage auxiliary script.

File::Basename::dirname does not always remove the last component
of the path if that component is already a directory, depending on
platform.  This behavior is documented. pod2usage.t has been
failing on VMS because we get the wrong directory into @INC.

So, since we already have File::Spec loaded, just use the more
obvious and portable method for getting the parent directory.

Reported upstream at:


21 months ago(perl #134365) IFF -> iff and talk about strict a bit
Tony Cook [Tue, 27 Aug 2019 04:44:35 +0000 (14:44 +1000)]
(perl #134365) IFF -> iff and talk about strict a bit

The IFF can be confusing, since "iff" for "if and only if" is
normally presented in lower case.

Since we really want people using strict, firstly tell users about
the behaviour under strict.

21 months agoAvoid 2 arg open and bareword handles
Dan Book [Wed, 28 Aug 2019 22:41:34 +0000 (18:41 -0400)]
Avoid 2 arg open and bareword handles

21 months agoRewrite paragraph on using strict and warnings
Dan Book [Wed, 28 Aug 2019 22:34:51 +0000 (18:34 -0400)]
Rewrite paragraph on using strict and warnings

21 months agoPATCH: [perl #134329] Use after free in regcomp.c
Karl Williamson [Fri, 23 Aug 2019 18:40:24 +0000 (12:40 -0600)]
PATCH: [perl #134329] Use after free in regcomp.c

A compiled regex is composed of nodes, forming a linked list, with
normally a maximum of 16 bits used to specify the offset of the next
link.  For patterns that require more space than this, the nodes that
jump around are replaced with ones that have wider offsets.  Most nodes
are unaffected, as they just contain the offset of the next node, and
that number is always small.  The jump nodes are the ones affected.

When compiling a pattern, the 16 bit mechanism is used, until it
overflows, at which point the pattern is recompiled with the long jumps

When I rewrote the compiler last year to make it generally one pass, I
noticed a lot of the cases where a node was added didn't check if the
result overflowed (the function that does this returns FALSE in that
case).  I presumed the prior authors knew better, and did not change
things, except to put in a bogus value in the link (offset) field that
should cause a crash if it were used.  That's what's happening in this

But seeing this example, it's clear that the return value should be
checked every time, because you can reach the limit at any time.  This
commit changes to do that, and to require the function's return value to
not be ignored, to guard against future changes.

My guess is that the reason it generally worked when there were multiple
passes is that the first pass didn't do anything except count space, and
that at some point before the end of the pass the return value did get
checked, so by the time the nodes were allocated for real, it knew
enough to use the long jumps.

21 months agoElvis has left the building
Chris 'BinGOs' Williams [Tue, 27 Aug 2019 15:42:37 +0000 (16:42 +0100)]
Elvis has left the building

21 months agoPATCH: [perl #134325] Heap buffer overflow
Karl Williamson [Sun, 25 Aug 2019 01:17:19 +0000 (19:17 -0600)]
PATCH: [perl #134325] Heap buffer overflow

This was the result of trying to continue to parse after realizing that
we were going to have to reparse using long jumps.  This continuing only
happened when we realized we were going to have to reparse in order to
count parentheses anyway, and it was an attempt to save a pass in the
regex compiler, as without doing the continuing we'd restart the parse
to use long jumps from the beginning, and then when finished, would
restart the parse to count the parentheses.

However, in most cases this doesn't help, as when we get towards the end
of the parse (as in the test case in this ticket), we need the long
jump, and will segfault because we don't have it.  So we need the extra
pass anyway.

So this commit restarts the parse as soon as we discover we are going to
need longjumps

21 months agoNVMANTBITS is 64 on mingw-w64 'long double' builds
sisyphus [Fri, 23 Aug 2019 11:58:00 +0000 (21:58 +1000)]
NVMANTBITS is 64 on mingw-w64 'long double' builds

21 months agoperldelta: Fix typo
Karl Williamson [Mon, 26 Aug 2019 18:18:01 +0000 (12:18 -0600)]
perldelta: Fix typo

21 months agoAdd ability to dump pre-optimized compiled pattern
Karl Williamson [Mon, 26 Aug 2019 17:53:06 +0000 (11:53 -0600)]
Add ability to dump pre-optimized compiled pattern

in qr//

21 months agoext/re/ Clarify pod slightly
Karl Williamson [Mon, 26 Aug 2019 17:48:50 +0000 (11:48 -0600)]
ext/re/ Clarify pod slightly

21 months agoext/re/ White-space only, bump version
Karl Williamson [Mon, 26 Aug 2019 17:47:40 +0000 (11:47 -0600)]
ext/re/ White-space only, bump version

21 months agoembed.fnc: Add caution about R flag
Karl Williamson [Fri, 23 Aug 2019 18:38:50 +0000 (12:38 -0600)]
embed.fnc: Add caution about R flag

21 months agoregcomp.c: Add FAIL3 macro
Karl Williamson [Mon, 26 Aug 2019 16:02:28 +0000 (10:02 -0600)]
regcomp.c: Add FAIL3 macro

This should have been included in 0e9b0dc26af667dfb49d2d2a9537ebda6f50c6db

21 months agoregcomp.c: Emit more info if we have it in a panic msg
Karl Williamson [Mon, 26 Aug 2019 15:21:11 +0000 (09:21 -0600)]
regcomp.c: Emit more info if we have it in a panic msg

21 months agoregcomp.c: Change message into a panic
Karl Williamson [Mon, 26 Aug 2019 15:15:09 +0000 (09:15 -0600)]
regcomp.c: Change message into a panic

Because that's what is happening, and the next commit would otherwise
say we need to document this diagnostic, but it's one that the observer
can do nothing about except file a bug report

21 months agoregcomp.c: Move code within #ifdef
Karl Williamson [Mon, 26 Aug 2019 14:35:21 +0000 (08:35 -0600)]
regcomp.c: Move code within #ifdef

This code does nothing except an 'if' without acting on it, as a result
of an #ifdef within it, so might as well move the whole thing inside the

21 months agoutil.c: Correct spelling in rarely compiled code
Karl Williamson [Mon, 26 Aug 2019 04:14:52 +0000 (22:14 -0600)]
util.c: Correct spelling in rarely compiled code

On Z/OS, this does get compiled, and fails due to the missepllings.

21 months agoregen/ Fix /i rules for non-ASCII machines
Karl Williamson [Mon, 26 Aug 2019 00:49:02 +0000 (18:49 -0600)]
regen/ Fix /i rules for non-ASCII machines

Two variable weren't getting initialized properly in one code path, with
the result that the case folding tables were pretty much garbage, but
not on ASCII platforms.

21 months agoregen/ Never remap 0
Karl Williamson [Mon, 26 Aug 2019 00:41:44 +0000 (18:41 -0600)]
regen/ Never remap 0

0 is a special marker, and shouldn't be remapped.  It would be
unlikely to be so, but this makes sure.

21 months agoregen/ inversion map requires a final entry
Karl Williamson [Mon, 26 Aug 2019 00:21:54 +0000 (18:21 -0600)]
regen/ inversion map requires a final entry

Inversion maps are supposed to have an entry for what to do above the
Unicode range.  This subroutine crafts a custom map that was missing

21 months agoregcomp.c: Use macro to remove some #ifdef EBCDIC lines
Karl Williamson [Mon, 26 Aug 2019 00:19:02 +0000 (18:19 -0600)]
regcomp.c: Use macro to remove some #ifdef EBCDIC lines