Karl Williamson [Thu, 10 Feb 2011 04:30:13 +0000 (21:30 -0700)]
foldEQ_utf8: Add version with flags parameter
The parameter doesn't do anything yet. The old version becomes a macro
calling the new version with 0 as the flags.
Karl Williamson [Wed, 9 Feb 2011 23:47:32 +0000 (16:47 -0700)]
regcomp.sym: Add nodes for backref of EXACTFA
These are not used yet.
Karl Williamson [Thu, 3 Feb 2011 15:37:43 +0000 (08:37 -0700)]
regcomp.sym: Add regnode for /aa matching
It is not used yet.
Karl Williamson [Sat, 5 Feb 2011 17:48:15 +0000 (10:48 -0700)]
regexec.c: Fix comment
Karl Williamson [Thu, 3 Feb 2011 15:31:20 +0000 (08:31 -0700)]
regexec.c: Rmv wrong comment
Karl Williamson [Thu, 3 Feb 2011 00:48:56 +0000 (17:48 -0700)]
Initial setup to accommodate /aa regex modifier
This changes the bits to add a new charset type for /aa, and other bookkeeping
for it.
Karl Williamson [Thu, 10 Feb 2011 01:27:39 +0000 (18:27 -0700)]
regcomp.c: Add cast.
I found this through gdb. Sign extension was happening.
Karl Williamson [Wed, 9 Feb 2011 17:56:59 +0000 (10:56 -0700)]
regcomp.c: Handle more cases of tricky fold chars
Certain characters are not placed in EXACTish nodes because of problems
mostly with the optimizer. However, not all notations that generated
those characters were caught. This catches all but those in \N{}
constructs; which is coming later.
This does not use FOLDCHAR, which doesn't know the difference between
/d and /u; instead it uses ANYOFV, which does handle those cases already,
at the expense of larger (in storage) regexes for these few characters.
If this were deemed a problem, there would be some work involved in
adding FOLDCHARU, and fixing the code where it doesn't work properly now.
Karl Williamson [Wed, 9 Feb 2011 17:37:17 +0000 (10:37 -0700)]
regex: Add comments
Karl Williamson [Wed, 9 Feb 2011 17:34:02 +0000 (10:34 -0700)]
regexec.c: Give context for ANYOFV call
This converts one case where ANYOFV is now usable to allow it to match
more than one character.
Karl Williamson [Wed, 9 Feb 2011 17:07:47 +0000 (10:07 -0700)]
regexec.c: Give context for ANYOFV call
This converts one case where ANYOFV is now usable to allow it to match
more than one character.
Karl Williamson [Wed, 9 Feb 2011 16:44:10 +0000 (09:44 -0700)]
regcomp.c: Add comment
Karl Williamson [Mon, 7 Feb 2011 18:28:11 +0000 (11:28 -0700)]
regcomp.c: simplify conditional
A previous commit removed some things, so this block can be rearranged
Karl Williamson [Mon, 7 Feb 2011 18:27:49 +0000 (11:27 -0700)]
Add comments
Karl Williamson [Sat, 5 Feb 2011 17:50:37 +0000 (10:50 -0700)]
regexec.c: Remove folding now done in regcomp
Karl Williamson [Mon, 7 Feb 2011 18:14:50 +0000 (11:14 -0700)]
regcomp.c: Remove special handling for U+00DF
The code elsewhere is now better equipped to handle this.
Karl Williamson [Mon, 7 Feb 2011 18:11:16 +0000 (11:11 -0700)]
regcomp.c: tell regexec more about multi-char folds
A multi-char fold that matches in the Latin1 range needs to have that
fact communicated to regexec.
Karl Williamson [Mon, 7 Feb 2011 04:48:55 +0000 (21:48 -0700)]
regcomp.c: Synthetic start class should include ord >255 folds
Some characters above 255 fold to the < 256 range. These need to be in
the synthetic start class so the optimizer won't reject them.
This is temporary code which creates false positives, to be
replaced by more precise matching later.
Karl Williamson [Mon, 7 Feb 2011 04:22:32 +0000 (21:22 -0700)]
Revert "l1_char_class_tab.h: Remove multi-char fold targets"
This reverts commit
88c8c9616516015e2fe0b502cdb92dc4efcc0c10.
It turns out that these multi-char fold targets are now needed;
In a future commit, I plan to compile in the dozen or so rules that
are needed to avoid a Latin1-only regex from having to go out to the
utf8 tables to avoid the performance penalty; or calling code can use
the also forthcoming 'use re "/aa"'.
Karl Williamson [Sun, 6 Feb 2011 03:04:54 +0000 (20:04 -0700)]
regcomp.c: Be more precise about ANYOF matching flag
There are two flags for matching outside the ANYOF bitmap. Instead of
setting both, set the corresponding one.
Karl Williamson [Sun, 6 Feb 2011 02:52:42 +0000 (19:52 -0700)]
regcomp.c: Put two static functions in embed.fnc
Karl Williamson [Sun, 6 Feb 2011 02:36:47 +0000 (19:36 -0700)]
Update comment
Nicholas Clark [Sun, 13 Feb 2011 10:34:31 +0000 (10:34 +0000)]
Remove extraneous trailing whitespace from Win32 makefiles.
73c9ebc71cb12c3c added a "blank" line with two spaces to Makefile,
e64b1bd1d1005342 added a dependency rule with a trailing tab to Makefile,
and
9ce5b024fd73d3a7 propagated that rule to makefile.mk
Father Chrysostomos [Mon, 14 Feb 2011 07:55:40 +0000 (23:55 -0800)]
perldiag: Remove quotes around message
The quotes might make podchecker happy, but they cause this entry to
be formatted differently from the rest.
Father Chrysostomos [Mon, 14 Feb 2011 07:52:56 +0000 (23:52 -0800)]
perldiag: grammar
Father Chrysostomos [Mon, 14 Feb 2011 07:51:58 +0000 (23:51 -0800)]
perldiag: more sorting
Father Chrysostomos [Mon, 14 Feb 2011 07:49:07 +0000 (23:49 -0800)]
perldiag: grammar
Father Chrysostomos [Mon, 14 Feb 2011 07:45:48 +0000 (23:45 -0800)]
perldiag: pod syntax and reflow
Father Chrysostomos [Mon, 14 Feb 2011 07:44:00 +0000 (23:44 -0800)]
perldiag: resort some items
Father Chrysostomos [Mon, 14 Feb 2011 07:42:20 +0000 (23:42 -0800)]
perldiag: reflow some entries
Father Chrysostomos [Mon, 14 Feb 2011 07:37:49 +0000 (23:37 -0800)]
Delete ‘Recursive inheritance detected while looking for method’
from perldiag.
This message has not occurred since 5.8.x.
Father Chrysostomos [Mon, 14 Feb 2011 07:37:07 +0000 (23:37 -0800)]
perldiag: grammar
Father Chrysostomos [Mon, 14 Feb 2011 07:35:20 +0000 (23:35 -0800)]
perldiag: more resorting
Father Chrysostomos [Mon, 14 Feb 2011 07:27:48 +0000 (23:27 -0800)]
perldiag: typo
Father Chrysostomos [Mon, 14 Feb 2011 07:23:20 +0000 (23:23 -0800)]
perldiag: reflow an entry
Father Chrysostomos [Mon, 14 Feb 2011 07:10:59 +0000 (23:10 -0800)]
perldiag: Move the \p{} entry
Father Chrysostomos [Mon, 14 Feb 2011 07:02:21 +0000 (23:02 -0800)]
perldiag: sort some entries
Father Chrysostomos [Mon, 14 Feb 2011 07:02:01 +0000 (23:02 -0800)]
perldiag: missing article
Father Chrysostomos [Mon, 14 Feb 2011 06:58:09 +0000 (22:58 -0800)]
perldiag: remove repeated reference
Father Chrysostomos [Mon, 14 Feb 2011 06:57:31 +0000 (22:57 -0800)]
perldiag: reflow ‘Number with no digits’
Father Chrysostomos [Mon, 14 Feb 2011 06:52:48 +0000 (22:52 -0800)]
perldiag: missing dot
Father Chrysostomos [Mon, 14 Feb 2011 06:50:43 +0000 (22:50 -0800)]
perldiag: reflow ‘Non-octal character’
Father Chrysostomos [Mon, 14 Feb 2011 06:15:47 +0000 (22:15 -0800)]
perldiag: reflow; missing dot
Father Chrysostomos [Mon, 14 Feb 2011 06:14:30 +0000 (22:14 -0800)]
perldiag: punctuation and formatting
Father Chrysostomos [Mon, 14 Feb 2011 06:06:49 +0000 (22:06 -0800)]
perldiag: reflow ‘Invalid hexadecimal number’
Father Chrysostomos [Mon, 14 Feb 2011 06:04:56 +0000 (22:04 -0800)]
perldiag: resort some entries
Father Chrysostomos [Mon, 14 Feb 2011 06:03:31 +0000 (22:03 -0800)]
perldiag: missing hyphen
Father Chrysostomos [Mon, 14 Feb 2011 06:02:00 +0000 (22:02 -0800)]
perldiag: reflow a couple of entries
Father Chrysostomos [Mon, 14 Feb 2011 05:59:28 +0000 (21:59 -0800)]
perldiag: Make two entries for my/state and pkgs
Not only was it not put in alphabetical order when "my" was changed to
"%s" on the introduction of state variables, but it’s easier to find
them if there are two entries.
Father Chrysostomos [Mon, 14 Feb 2011 05:56:52 +0000 (21:56 -0800)]
perldiag: retitle Ambiguous use of %c{%s%s}
This is not very helpful:
=item Ambiguous use of %c{%s%s} resolved to %c%s%s
especially since it is functionally identical to the previous entry:
=item Ambiguous use of %c{%s} resolved to %c%s
Not only can diagnostics.pm never find it, but it is hard for human
beings to understand what the different is at first glance, too.
So filling in the second and fourth %s’s with the two possible values
slays a twain of avians with one piece of petrified matter.
Father Chrysostomos [Mon, 14 Feb 2011 05:37:48 +0000 (21:37 -0800)]
perldiag: reflow ‘Missing right brace on \N{}’
for ‘use diagnostics’ output on eighty-column terminals
Father Chrysostomos [Mon, 14 Feb 2011 02:46:53 +0000 (18:46 -0800)]
perldiag: reflow ‘Missing braces on \N{}’ for 80 cols.
Father Chrysostomos [Mon, 14 Feb 2011 02:41:59 +0000 (18:41 -0800)]
perldiag: sort the ma* entries
Father Chrysostomos [Mon, 14 Feb 2011 02:40:29 +0000 (18:40 -0800)]
perldiag: whitespace; grammar
Father Chrysostomos [Mon, 14 Feb 2011 02:34:02 +0000 (18:34 -0800)]
perldiag: an number -> a number
That’s my own typo.
Father Chrysostomos [Mon, 14 Feb 2011 02:31:50 +0000 (18:31 -0800)]
perldiag: reflow ‘Lexing code attempted to stuff...’
for the sake of diagnostics.pm, which displays the link simply as
lex_stuff_pvn_flags.
Karl Williamson [Sat, 12 Feb 2011 20:38:53 +0000 (13:38 -0700)]
Silence win32 smoke compiler warning
Karl Williamson [Sat, 12 Feb 2011 20:38:16 +0000 (13:38 -0700)]
Silence util.c compiler warning from win32 smokes
Father Chrysostomos [Mon, 14 Feb 2011 01:07:03 +0000 (17:07 -0800)]
perldiag: Suggest use re '/m' for $*
Father Chrysostomos [Mon, 14 Feb 2011 00:57:27 +0000 (16:57 -0800)]
perldiag: reflow $* and $#
Father Chrysostomos [Sun, 13 Feb 2011 22:52:14 +0000 (14:52 -0800)]
perldiag: more typos and grammar
Father Chrysostomos [Sun, 13 Feb 2011 22:47:10 +0000 (14:47 -0800)]
perldiag: fewer, not less
(plus a bit of reflow)
Father Chrysostomos [Sun, 13 Feb 2011 22:45:03 +0000 (14:45 -0800)]
Reflow perldiag/Invalid separator...
for an eighty-column terminal under ‘use diagnostics’
Father Chrysostomos [Sun, 13 Feb 2011 22:39:37 +0000 (14:39 -0800)]
Mention mro plugins in perldiag
and reflow the entry
Father Chrysostomos [Sun, 13 Feb 2011 22:49:36 +0000 (14:49 -0800)]
Sort some perldiag entries
Father Chrysostomos [Sun, 13 Feb 2011 22:26:52 +0000 (14:26 -0800)]
List all proto chars in perldiag
The description for ‘Illegal character in prototype’ did not include
the new + prototype.
Father Chrysostomos [Sun, 13 Feb 2011 22:23:54 +0000 (14:23 -0800)]
perldiag: Reflow ‘Having no space...’
This does not fit in an eighty-column terminal under ‘use
diagnostics’.
Father Chrysostomos [Sun, 13 Feb 2011 22:21:12 +0000 (14:21 -0800)]
Reflow perdiag/()-group...
This does not look very good:
$ ./perl -Ilib -Mdiagnostics -e 'warn "()-group starts with a count"'
()-group starts with a count at -e line 1 (#1)
(F) A ()-group started with a count. A count is
supposed to follow something: a template character or a ()-group.
See "pack" in perlfunc.
Father Chrysostomos [Sun, 13 Feb 2011 22:12:53 +0000 (14:12 -0800)]
perldiag: copy/paste error
When the ‘Filehandle opened only for output’ message is displayed, the user is trying to read from the handle, so saying ‘instead of "<" or nothing’ does not make sense, as it would not have produced the error.
Father Chrysostomos [Sun, 13 Feb 2011 22:08:21 +0000 (14:08 -0800)]
perldiag: missing article
Father Chrysostomos [Sun, 13 Feb 2011 21:59:31 +0000 (13:59 -0800)]
Replace mention of MacPerl with Symbian
Father Chrysostomos [Sun, 13 Feb 2011 20:36:39 +0000 (12:36 -0800)]
Improve perldiag/Eval-group not allowed at runtime
• Mention use re 'eval' within the description
• Improve text flow
Alexander Hartmaier [Fri, 11 Feb 2011 14:36:21 +0000 (15:36 +0100)]
perldoc improvements for map
Father Chrysostomos [Sun, 13 Feb 2011 19:39:58 +0000 (11:39 -0800)]
Add Alexander Hartmaier to AUTHORS
Michael Stevens [Sun, 13 Feb 2011 13:23:30 +0000 (13:23 +0000)]
Remove some whitespace pod warnings in perluniprops.pod
Tony Cook [Thu, 6 Jan 2011 10:52:24 +0000 (21:52 +1100)]
ignore extensions based on the configuration
Tony Cook [Thu, 6 Jan 2011 10:51:30 +0000 (21:51 +1100)]
actually handle the case of extensions being built statically
Father Chrysostomos [Sun, 13 Feb 2011 07:54:27 +0000 (23:54 -0800)]
Correct perldiag/Died
‘die’ does not look at $_.
Father Chrysostomos [Sun, 13 Feb 2011 07:51:35 +0000 (23:51 -0800)]
Reflow perldiag/Deprecated character in \N{...}
It wraps on a 80-character terminal under ‘use diagnostics’.
Father Chrysostomos [Sun, 13 Feb 2011 07:41:39 +0000 (23:41 -0800)]
Resort some perldiag entries
According to the description at the top, non-alphabetic characters and
%-format characters are ignored in alphabetisation.
Father Chrysostomos [Sun, 13 Feb 2011 07:39:13 +0000 (23:39 -0800)]
More perldiag grammar tweaks
Father Chrysostomos [Sun, 13 Feb 2011 07:32:02 +0000 (23:32 -0800)]
Delete perldiag/Can't unshift
This error message was removed by commit
49beac4814c9f4 fourteen
years ago.
Father Chrysostomos [Sun, 13 Feb 2011 07:30:13 +0000 (23:30 -0800)]
Make diagnostics.pm understand messages sharing descriptions
We currently have entries in perldiag like this:
=item Code point 0x%X is not Unicode, may not be portable
=item Code point 0x%X is not Unicode, no properties match it; all inverse properties do
(W utf8) You had a code point above the Unicode maximum of U+10FFFF.
...
diagnostics.pm needs to know that the description applies to the first
=item, as well as to the second.
Father Chrysostomos [Sun, 13 Feb 2011 07:10:23 +0000 (23:10 -0800)]
more perldiag grammar/punctuation tweaks
Father Chrysostomos [Sun, 13 Feb 2011 06:45:54 +0000 (22:45 -0800)]
Add Larwan Berke’s other address to checkAUTHORS.pl
Apocalypse [Sun, 13 Feb 2011 06:08:10 +0000 (23:08 -0700)]
Correctly list the allowed modifiers in the (?...) construct
Father Chrysostomos [Sun, 13 Feb 2011 03:11:41 +0000 (19:11 -0800)]
Reflow perldiag/Can't find Unicode property
so it appears slightly less unsightly under ‘use diagnostics’.
Karl Williamson [Sun, 13 Feb 2011 04:19:02 +0000 (21:19 -0700)]
regex: Deprecate \b{ and \B{
This allows future use by Perl of these
Karl Williamson [Sun, 13 Feb 2011 04:08:50 +0000 (21:08 -0700)]
regcomp.c: include { in unregcognized \q{ warning
The warning message about regex unrecognized escapes passed through is
changed to include any literal '{' following the 2-char escape.
e.g., "\q{" will include the { in the message as part of the escape.
Father Chrysostomos [Sun, 13 Feb 2011 02:05:14 +0000 (18:05 -0800)]
Improve diagnostics.pm’s link rendering.
The number of L<foo/bar> links in perldiag has grown over time, and
diagnostics.pm has never been updated to render them nicely, resulting
in output like this:
Lexing code attempted to stuff non-Latin-1 character into Latin-1 input at
lib/diagnostics.t line 36 (#3)
(F) An extension is attempting to insert text into the current parse
(using lex_stuff_pvn_flags|perlapi/lex_stuff_pvn_flags or similar), but
tried to insert a character that couldn't be part of the current input.
This is an inherent pitfall of the stuffing mechanism, and one of the
reasons to avoid it. Where it is necessary to stuff, stuffing only
plain ASCII is recommended.
I’ve implemented some rudimentary L<> parsing, which should suffice
for perldiag. I think using a real POD processor would be overkill.
Father Chrysostomos [Sun, 13 Feb 2011 01:12:23 +0000 (17:12 -0800)]
Delete perldiag/Can't declare class for non-scalar
This message no longer occurs as of
d5e98372e6efc4, which was included
in 5.12.0.
Father Chrysostomos [Sun, 13 Feb 2011 01:05:56 +0000 (17:05 -0800)]
Delete perldiag/Can't call method in empty package
This message has not been produced since
ac91690fe10ac7691f6f, four-
teen years ago!
Father Chrysostomos [Sun, 13 Feb 2011 01:04:39 +0000 (17:04 -0800)]
perldiag: Combine nearly identical entries
These entries--
=item Can't coerce %s to integer in %s
=item Can't coerce %s to number in %s
=item Can't coerce %s to string in %s
--can be combined into one. Currently, they say exactly the same
thing, except that the first one has more detail. Consequently,
diagnostics.pm will sometimes provide more, and sometimes less, infor-
mation, which is suboptimal.
Father Chrysostomos [Sat, 12 Feb 2011 23:06:20 +0000 (15:06 -0800)]
perldiag: pseudo-hashes are long gone
Father Chrysostomos [Sat, 12 Feb 2011 23:00:42 +0000 (15:00 -0800)]
perlfaq7: there are no empty packages any more
Father Chrysostomos [Sat, 12 Feb 2011 22:54:17 +0000 (14:54 -0800)]
perldiag: typos
Father Chrysostomos [Sat, 12 Feb 2011 21:54:23 +0000 (13:54 -0800)]
perldiag: be realistic
Father Chrysostomos [Sat, 12 Feb 2011 21:53:24 +0000 (13:53 -0800)]
perldiag: typos and slight English improvements
Father Chrysostomos [Sat, 12 Feb 2011 21:15:46 +0000 (13:15 -0800)]
Correct perldiag/Ambiguous use of -%s
Use of -foo to mean "-foo" is valid even in strict mode.
Curtis Jewell [Sat, 12 Feb 2011 18:32:12 +0000 (11:32 -0700)]
Add info to perlhist.pod for 5.12.{2,3}