summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Update gitignore files for moved pod scriptsFlorian Ragwitz2010-10-101-0/+1
|
* XS::APItest tests for XS_APIVERSION_BOOTCHECK.Nicholas Clark2010-10-083-0/+22
|
* xs_version_bootcheck() must use mortals, as {new,upg}_version() can croak.Nicholas Clark2010-10-084-1/+47
| | | | | | | It's unlikely that XS_VERSION will contain a bogus version string (for long), but the value passed in (or derived from $XS_VERSION or $VERSION) might well. For that case, without this change, temporary SVs created within xs_version_bootcheck() won't be freed (before interpreter exit).
* XS::APItest tests for XS_VERSION_BOOTCHECK.Nicholas Clark2010-10-074-1/+124
|
* Improve DynaLoader::bootstrap documentation.Nicholas Clark2010-10-071-1/+8
| | | | | Document that all arguments are passed on to the module's bootstrap function, and the behaviour of the bootstrap function in modules built by xsubpp.
* Remove MEMBER_TO_FPTR.Ben Morrow2010-10-061-3/+2
| | | | This is left over from PERL_OBJECT (see beeff2, 16c915, and so on).
* Move pod2html.PL into ext/Pod-HtmlNicholas Clark2010-10-051-0/+183
| | | | | Let ExtUtils::MakeMaker deal with running these extraction scripts, rather than repeating the logic in (at least) 5 places.
* Move Pod::Html from lib/ to ext/Nicholas Clark2010-10-058-0/+2933
|
* [PATCH] function to parse Perl statement sequenceZefram2010-10-043-2/+105
| | | | | New API function parse_stmtseq() parses a sequence of statements, up to closing brace or EOF.
* Fix perl build problems on Stratus VOSPaul Green2010-10-031-12/+37
| | | | | | | | | | | | | | | | | | The attached text files contain patches to correct build problems on the Stratus VOS (recently renamed "OpenVOS") operating system. I have tested these changes on OpenVOS Release 17.0, which is the most-current customer release. None of these changes should affect any other OS. Makefile.SH: This patch removes the "miniperl" dependency of the "all" target. On an operating system that does not require an executable suffix, the miniperl$(EXE_EXT) dependency evaluates to "miniperl", too. But on an operating system like VOS that does have an executable suffix, miniperl$(EXE_EXT) evaluates to (in our case) "miniperl.pm" and the "miniperl" target is unresolved. ext/Socket/Socket.xs: Sadly, OpenVOS does not yet support IPv6. I edited the code to allow for this case, while retaining IPv6 support for operating systems that do support it.
* G_KEEPERR sometimes set $@David Mitchell2010-10-031-4/+6
| | | | | | eval_sv(sv,G_KEEPERR) is supposed to warn on errors, rather than set $@; but in the particular case of compile-time errors it still set $@ instead. See [perl ##3719].
* eval_sv() and eval_pv() don't fail on syntax errDavid Mitchell2010-10-031-1/+89
| | | | | | [perl #3719] eval_sv("some syntax err") cleared $@ and didn't return a failure indication. This also affected eval_pv() which calls eval_sv(). Fix this and add lots of tests.
* rt 76474: Avoid the child perl reading from stdoutTony Cook2010-10-011-1/+1
| | | | | | | FD 1 is stdout, and the "<&1" redirect in the test sets the child to read from its parent's stdout, on Linux (and presumably OS X) doesn't let you read from stdout, but FreeBSD does, without the -e perl will try to read its program from stdin, so provide one.
* Fix IPC::Open3’s fd.t to work on WindowsFather Chrysostomos2010-09-271-2/+6
|
* Skip ext/IPC-Open3/t/fd.t on stdioFather Chrysostomos2010-09-271-1/+7
|
* Version bump and perldelta for IPC::Open3 and [perl #76474]Father Chrysostomos2010-09-261-1/+1
|
* tests for [perl #76474]Father Chrysostomos2010-09-261-0/+15
|
* [perl #76474]: IPC::Open3 doesn't handle file descriptors correctlyVernon Lyon2010-09-261-1/+1
| | | | | | | | | | | | | | | | | | In the POD docs it says: "The filehandles may also be integers, in which case they are under- stood as file descriptors." However IPC::Open3 doesn't handle the file descriptors correctly. As an example, if we try to dup STDIN in a child process by using it's file descriptor, we get: > perl -MIPC::Open3 -wle 'open3("<&1", my $out, undef, $^X)' close() on unopened filehandle 1 at /usr/share/perl/5.10/IPC/Open3.pm line 70. open3: close(1) failed: Bad file descriptor at -e line 1 This is because in IPC::Open3 the subroutines xpipe*, xclose* and xopen don't cater for descriptors being passed in instead of filehandles.
* merge XS-APItest-KeywordRPN into XS-APItestZefram2010-09-2611-519/+346
| | | | | XS-APItest-KeywordRPN has turned out to be less useful as an independent module than expected, and less strictly about RPN than it originally was.
* Add a warning to test.pl if quotes are used in one-liners.Nicholas Clark2010-09-241-1/+1
| | | | | | Fix all the tests that were using quotes, and (by implication) working because barewords are treated as strings, and one-liners aren't run under strict.
* Some tests for Perl_grok_number().Nicholas Clark2010-09-234-2/+102
| | | | Not yet comprehensive - only tests the integer conversion code paths.
* Make dquote_static.c available to ext/re/Tony Cook2010-09-231-1/+6
| | | | | | Under Win32 the main perl source directory isn't in the C include path, so as we do with the re source files, copy dquote_static.c to the ext/re directory.
* Remove unneeded 'use' from ext/XS-APItest/t/peep.t Devel::Peek is not used ↵Jerry D. Hedden2010-09-221-2/+0
| | | | by ext/XS-APItest/t/peep.t, so remove it from the test code.
* re.pm: Change comment to use new (?^...)Karl Williamson2010-09-221-1/+1
|
* Change .t to use new (?^...)Karl Williamson2010-09-221-1/+1
| | | | | | There is a line in this .t which uses the old regex stringification. The contents are not currently tested for, but for cleanliness, change to the new.
* Change comments, documentation for new (?^...)Karl Williamson2010-09-221-3/+3
| | | | I overlooked these earlier in adding the caret notation.
* Remove boilerplate and (un)conditional code from Makefile.PLs in extNicholas Clark2010-09-212-22/+4
|
* Tweak XS::APItest to automatically add all functions to @EXPORT.Nicholas Clark2010-09-212-22/+40
| | | | | | | This saves manually maintaining the export list, which is makework given that the module is only used by its own tests. As the export now folds in symbols from subpackages, this will allow refactoring/reordering/rationalisation of the layout of testing routines in it.
* Add two (SV *) casts to placate C++.Tony Cook2010-09-211-2/+2
|
* Add (?^...) regex constructKarl Williamson2010-09-201-3/+3
| | | | | | | | | | | | | | | | | | This adds (?^...) to signify to use the default regex modifiers for the cluster or embedded pattern-match modifier change. The major purpose of this is to simplify regex stringification, so that "^" is output in place of "-xism". As a result, the stringification will not change in the future when new regex modifiers are added, so tests, etc. that rely on a particular stringification will have to change now, but never again. Code that needs to work properly with both old- and new-style regexes can use something like the following: # Accept both old and new-style stringification my $modifiers = (qr/foobar/ =~ /\Q(?^/) ? '^' : '-xism'; This construct is Ben Morrow's idea.
* Remove unnecessary XS-APItest test boilerplateFlorian Ragwitz2010-09-2013-178/+54
| | | | | | | If perl was configured without XS/APItest as an extension, make test and make test_harness won't even run the tests anyway. Also, XS-APItest only lives in the core, so it's only ever going to be tested there, making conditional tests depending on $] unnecessary.
* Add tests for PL_peepp/PL_rpeeppFlorian Ragwitz2010-09-202-0/+124
|
* Bump VERSIONs in XS-APItest and XS-APItest-KeywordRPNSteve Hay2010-09-192-2/+2
| | | | | Not strictly necessary for these modules since they don't get installed anyway, but their XS files have been changed since 5.13.4
* Bump VERSION in PerlIO-scalarSteve Hay2010-09-191-1/+1
| | | | The XS file has been changed since 5.13.4
* reftype() used without checking for undefChas. Owens2010-09-161-3/+5
| | | | | | | | | Hash::Util used "reftype($v) eq 'HASH'" without checking for undefinendness. This patch rectifies that. Also bumps Hash::Util version. Original patch and detective work by Chas. Owens. Modified by Steffen Mueller.
* add hv_copy_hints_hv and save_hints to the APIZefram2010-09-163-0/+88
|
* [perl #77684] Restore the 5.10/12 behaviour of open $fh, ">", \$glob_copyFather Chrysostomos2010-09-131-0/+7
| | | | | | | | | This restores the perl 5.10/12 behaviour, making open treat \$foo as a scalar reference if it is a glob copy (SvFAKE). It also fixes an existing assertion failure that the test now trig- gers. PerlIOScalar_pushed was not downgrading the sv before set- ting SvCUR.
* Bump $POSIX::VERSIONFlorian Ragwitz2010-09-111-1/+1
|
* Add missing POSIX signal constantsFlorian Ragwitz2010-09-112-2/+4
|
* Tests for caller_cx, cop_hints_*.Ben Morrow2010-09-072-1/+109
| | | | | It seems that the runtime hinthash isn't returned correctly when running under the debugger, so mark those tests TODO for now.
* function interface to parse Perl statementZefram2010-09-062-0/+184
| | | | | | | | | | | | | yyparse() becomes reentrant. The yacc stack and related resources are allocated in yyparse(), rather than in lex_start(), and they are localised to yyparse(), preserving their values from any outer parser. yyparse() now takes a parameter which determines which production it will parse at the top level. New API function parse_fullstmt() uses this facility to parse just a single statement. The top-level single-statement production that is used for this then messes with the parser's head so that the parsing stops without seeing EOF, and any lookahead token seen after the statement is pushed back to the lexer.
* Bump $Errno::VERSION after change be54382Florian Ragwitz2010-09-031-1/+1
|
* Sanity check on Errno values.Curtis Jewell2010-09-021-2/+3
| | | | | | On a few machines (Win32/gcc using mingw64 headers) Errno.pm will find a value that is not numeric for a proposed error key. This change adds a sanity check to discard such keys.
* better silencing of APItest deprecation warningDavid Mitchell2010-08-311-1/+2
| | | | | | | | | Commit 95ddc6755c1ff41d06e5afc2212c85f918ebcd28 attempted to add -Wno-deprecated-declarations' to the ccflags for APItest.xs; however it ended up deleting existing flags rather than appending. Under -DDEBUG_LEAKING_SCALARS this caused the PerlInterpreter structure to have different field alignments in core and APItest.xs. Ouch!
* fix the AIX skip to only skip on AIXTony Cook2010-08-311-1/+1
|
* rt77432: sigaction would crash/assert with a replaced %SIGTony Cook2010-08-312-2/+9
|
* silence APItest deprecation warningRobin Barker2010-08-281-0/+3
|
* Peephole optimise adjacent pairs of nextstate ops.Nicholas Clark2010-08-272-312/+298
| | | | | | | | | | | | | | | | | | | | | Previously, in code such as use constant DEBUG=>0; sub GAK { warn if DEBUG; print "stuff\n"; } the ops for C<warn if DEBUG;> would be folded to a null op (ex-const), but the nextstate op would remain, resulting in a runtime op dispatch of nextstate, nextstate, ... The execution of a sequence of nexstate ops is indistinguishable from just the last nextstate op, so teach the peephole optimiser to eliminate the first of a pair of nextstate ops. (Except where the first carries a label, as labels mustn't be eliminated by the optimiser, and label usage isn't conclusively known at compile time.)
* prevent Devel::Peek::Dump from lieing to us about evil class namesYves Orton2010-08-251-1/+23
| | | | | While one certainly can argue the merits of using a class name like "\0", it is legal so lets avoid it confusing our primary debugging tool.
* add lex_stuff_pvs()Zefram2010-08-221-1/+1
| | | | New macro lex_stuff_pvs(), wrapping lex_stuff_pvn() for literal strings.