summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* warnings.pl -> regen/warnings.plFather Chrysostomos2010-10-131-1/+1
|
* overload.pl -> regen/overload.plFather Chrysostomos2010-10-131-1/+1
|
* Fix typos in commentsKarl Williamson2010-10-121-2/+2
|
* charnames.t: Make sure code point aliasess are rightKarl Williamson2010-10-121-0/+4
| | | | | Some code points have two (possibly more names). This makes sure that all work.
* charnames.t: Extract common code to subroutineKarl Williamson2010-10-121-13/+15
|
* mktables: Change name of option to -annotateKarl Williamson2010-10-121-3/+3
| | | | | | | This name is more descriptive of what this option has come to be. The previous option name has been released only in a few of the 5.13 series Perls, and is for internal mktables development only, so backward compatibility shouldn't be an issue.
* mktables: Change variable nameKarl Williamson2010-10-121-14/+13
| | | | More than just names are output now, $output_names is renamed $annotate
* mktables: Extend -output_names optionKarl Williamson2010-10-121-34/+387
| | | | | | | | | | | | | | This option is not used for production, but is useful for someone running mktables by hand who wants to compare Unicode versions, and perhaps for debugging mktables. It causes the code points in the output tables to have comments added that give information about that code point, so it isn't necessary to look up the hex numbers. This patch is a significant expansion of the previous capability, and adds the character's representation, and text for the non-named characters. I'm finding it useful in moving to Unicode 6.0.
* mktables: Add arg to write() to say if in utf8Karl Williamson2010-10-121-10/+19
| | | | | This will be used for annotations. Currently no file is written in utf8, so the calls all have 0 for the parameter.
* mktables: Move method to different classKarl Williamson2010-10-121-30/+31
| | | | | | | matches_identically_to() was a Table method, but it really applies to the Range_List contained in the table. Moving it to that class instead will help with later code that wants to compare a Range_List that isn't in a table.
* mktables: Remove extraneous error messageKarl Williamson2010-10-121-7/+0
| | | | | | When I created matches_identically_to() originally, I just copied from another subroutine, changing a few things. I shouldn't have copied this message, as it was only applicable to the original routine.
* mktables: Change method name for clarityKarl Williamson2010-10-121-4/+4
| | | | | is_equivalent_to() doesn't mean what it says. Instead it means if the two objects have been set equivalent to each other.
* mktables: Finish the refactoring out of a pass.Karl Williamson2010-10-121-1/+6
| | | | | | Commit e1a3bfbd2f5194edc05010f0b5e5a568b1fdf508 omitted some code that was in my working version. My git skills aren't good enough to go back and add that in without zapping everything else.
* mktables: Remove unshift onto large arrayKarl Williamson2010-10-121-19/+15
| | | | | This changes the parameters to write() so it can accept more than one array ref, thus eliminating the need for an unshift onto a large array.
* mktables: Rmv obsolete fieldKarl Williamson2010-10-121-16/+0
| | | | | has_specials was used to avoid an extra pass for tables that didn't need it. That pass has been eliminated, so this code is useless.
* mktables: refactor to eliminate a pass over tablesKarl Williamson2010-10-121-225/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is mainly for performance, but in eliminating a pass which modified the tables, it allows for later changes to not have to rely on things happening in a certain order. Previously, tables that had special ranges in them, such as mappings to multiple characters and character names that are algorithmically derivable had a separate pass to process those ranges ahead of the main table, as the information about these is output at the beginning of the file. What this patch does is to add a call-back for the processing of the main body to call when it finds a special range that it doesn't handle. That call-back just adds the information to various temporaries, depending on what the range is. After the processing of all the ranges, those temporaries hold all the information needed to output the specials data. This is processed and the text is unshifted to the beginning of the output. pre_body() used to process all this. But it has been split up. The code that does need to go at the beginning is moved to the write() routine for the sub-class, which processes it before calling the super class's write. The code that figured out about the special ranges is moved to the new call-back handle_special_range(). The remaining code remains in pre_body(), but it is now called later in the process.
* mktables: Add # XXX so can find experimental codeKarl Williamson2010-10-121-2/+3
|
* mktables: Move 'format' to base classKarl Williamson2010-10-121-12/+18
| | | | | | | | | This patch is in preparation for adding more complete annotations to the output tables. Previously, only Map tables had a listed format. Match tables also have a format (empty), but that was understood. But the new annotation code will need to refer to that format, so I moved the field into the base class common to both types of tables, and added the EMPTY_FORMAT for use by Match tables.
* mktables: Change format name for Decomposition.plKarl Williamson2010-10-121-1/+3
| | | | | | | | | | | This table which is used only by Normalize.pm has a special format that is used in no other table. In preparation for adding annotations to it, make a special format signifier for it. This affects only one line at the top that indicates to the user the format of the table. The table has comments in it to say it is volatile and no one should use this table besides Normalize.pm, which currently doesn't look at that signifier.
* mktables: change variable name for clarityKarl Williamson2010-10-121-8/+8
| | | | I found that 'youngest' was confusing
* mktables: if modify during run, regen tablesKarl Williamson2010-10-121-9/+22
| | | | | | | | | | | | | | | This bug has bitten me enough times that I decided to fix it. It would only be applicable to someone who is developing mktables, and making changes to it while the program is running. Due to the complicated nature of the dependencies of mktables, it basically functions as its own make command, knowing when to rebuild or not based on the modification times of itself and its input and output files. Previously, it did not account for changes to itself made while running, so it would think that it wouldn't have to rebuild, even though it did. I solve this problem by keeping track of the time the process started, and storing it in mktables.lst. If something has changed since then, then the files need to be rebuilt.
* mktables: rewrite 'if' statement for clarityKarl Williamson2010-10-121-2/+2
|
* mktables: complement variable name for rebuildingKarl Williamson2010-10-121-6/+6
| | | | | | | This is an intermediate patch that changes the variable name as to whether the files need rebuilding or not to something I understand better. This has long been confusing, as up until a year ago, there had been a long-standing bug in the program that didn't get it right.
* mktables: Add type_of() method to get range's typeKarl Williamson2010-10-121-0/+16
| | | | This will be useful in outputting better annotations.
* mktables: Convert value_of() to use containing_range()Karl Williamson2010-10-121-5/+3
|
* mktables: Remove extraneous debug statementKarl Williamson2010-10-121-1/+0
|
* mktables: Add containing_range methodKarl Williamson2010-10-121-0/+17
| | | | This method will be used in multiple places
* mktables: Clarify comment in generated tablesKarl Williamson2010-10-121-1/+1
| | | | | | Tables whose values are strings, aren't arbitrary strings, as for example they can't contain '#' characters that start comments. So, don't say they are 'arbitrary'.
* mktables: Clarify comment in generated tablesKarl Williamson2010-10-121-2/+2
| | | | | | An installation may choose to output more tables than by default. The comment in tables should make it clearer that these are not necessarily present.
* mktables: Save reference to two commonly used tablesKarl Williamson2010-10-121-4/+5
| | | | | These two tables can be used frequently, so save a reference instead of looking it up each time
* mktables: Improve messageKarl Williamson2010-10-121-1/+1
|
* mktables: Remove commented out obsolete codeKarl Williamson2010-10-121-21/+0
| | | | This functionality is now in charnames.
* mktables: Can't generate simple casing tablesKarl Williamson2010-10-121-1/+1
| | | | | | | | The simple as opposed to the full casing tables weren't able to be generated correctly because I was passing the name of a table instead of its object. Normally these tables are generated at all, but I turned generation of them on temporarily for development purposes, and found this bug. So there is no test case that can be generated for this fix.
* mktables: Use more descriptive property namesKarl Williamson2010-10-121-2/+2
|
* mktables: Make generated files use hex code pointsKarl Williamson2010-10-121-13/+18
| | | | | | Certain generated files had some values converted from hex into decimal. All the published values are in hex, so should use the more familiar form for readability.
* mktables: fix typos in commentsKarl Williamson2010-10-121-9/+9
|
* Don't assume filenames can contain parenthesesCraig A. Berry2010-10-101-19/+25
| | | | | in the new File::DosGlob tests that came in with 2f3c8ce922663caa9b02d9fddae7536225b6f95d.
* Pod/Html.pm is now in ext/Pod-HtmlFlorian Ragwitz2010-10-101-0/+1
|
* Make the new perl5db.t taint test work on VMS.Craig A. Berry2010-10-091-0/+1
| | | | Follow-up to 07004ebbe530fe5ce1c67e63c0b8e1c0aa77b3b9.
* ExtUtils::XSSymSet can now let the compiler shorten symbols.Craig A. Berry2010-10-081-4/+16
| | | | | | | | | If the soon-to-be-implemented configuration option -Duseshortenedsymbols has been selected, bypass the home-grown symbol shortening traditionally done by xsubpp because the compiler's /NAMES=SHORTENED feature will be used instead. This is only relevant on VMS.
* Change vverify() to return HV or NULL (RT#78286)David Golden2010-10-081-1/+7
| | | | | | | | | | Multiple code paths were dereferencing version objects without checking the underlying type, which could result in segmentation faults per RT#78286 This patch consolidates all dereferencing into vverify() and has vverify return the underlying HV or NULL instead of a boolean value.
* Move Pod::Html from lib/ to ext/Nicholas Clark2010-10-058-2943/+0
|
* [perl #71998] overload::Method can die with blessed methodsFather Chrysostomos2010-09-282-3/+13
| | | | | | | | | | | | | | | | | | If an overload method is itself blessed into a class that has overloaded operators but does not have fallback enabled, then an error is produced: $ perl5.10.0 use overload '+' => sub{}; bless overload::Method main => '+'; overload::Method main => '+'; ^D Operation "ne": no method found, left argument in overloaded package main, right argument has no overloaded magic at /usr/local/lib/perl5/5.10.0/ overload.pm line 59. The attached patch fixes this.
* Version bump and perldelta for CarpFather Chrysostomos2010-09-271-1/+1
|
* [perl #78082] Carp.pm: Avoid autovivification of CORE::GLOBAL::callerAaron Crane2010-09-272-3/+9
| | | | And add a test to prevent this happening again.
* Try once more to fix sigtrap.tFather Chrysostomos2010-09-251-7/+9
| | | | | | | | | | | | | It produces output like this: lib/sigtrap....................................................sh: line 1: 66151 Abort trap ./perl "-I../lib" -Msigtrap=INT -e 'sub { kill q-INT-, $$ } -> (3)' 2>&1 ok And is effectively skipped on Windows. So this new revision of the test • calls the signal handler directly, instead of trying to trigger it with a signal and • overrides kill globally to stop sigtrap.pm from aborting.
* charnames.pm: reformat commentsKarl Williamson2010-09-251-8/+6
| | | | | | Now that have less indent, don't need so many lines. The only changes in this commit are several blocks of comments to occupy more of each line. No wording changes are involved.
* charnames.pm: indent less to fit in 80 columnsKarl Williamson2010-09-251-415/+415
| | | | | | This patch changes white space only. It lessens the indent of certain lines that were made longer in an earlier commit, and now most of them fit into 80 columns.
* Teach Perl about Unicode named character sequencesKarl Williamson2010-09-253-442/+652
| | | | | | | | | | | | | mktables is changed to process the Unicode named sequence file. charnames.pm is changed to cache the looked-up values in utf8. A new function, string_vianame is created that can handle named sequences, as the interface for vianame cannot. The subroutine lookup_name() is slightly refactored to do almost all of the common work for \N{} and the vianame routines. It now understands named sequences as created my mktables.. tests and documentation are added. In the randomized testing section, half use vianame() and half string_vianame().
* charnames.pm: Nits in podKarl Williamson2010-09-251-13/+16
|