summaryrefslogtreecommitdiff
path: root/perly.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years.Nicholas Clark2008-10-251-1/+1
| | | p4raw-id: //depot/perl@34585
* Silence Borland compiler warnings (except for warnings from zlib) here:Steve Hay2008-02-251-1/+1
| | | | | http://www.nntp.perl.org/group/perl.daily-build.reports/2008/02/msg53937.html p4raw-id: //depot/perl@33370
* [perl #43425] local $[: fix scoping during parser error handling.Dave Mitchell2007-07-161-0/+7
| | | | | | | | | Change 22306# inadvertently made 'local $[' statement-scoped rather than block-scoped; so revert that change and add a different fix. The problem was to ensure that the savestack got popped correctly while popping errored tokens. We how record the current value of PL_savestack_ix with each pushed parser state. p4raw-id: //depot/perl@31615
* Make parser_free() be called slightly later,Dave Mitchell2007-04-011-17/+3
| | | | | | i.e. at the point where lexer vars are being restored in a LEAVE, rather than at the end of yyparse() p4raw-id: //depot/perl@30822
* disable parser stack cleanup on reduce croak (too fragile)Dave Mitchell2007-01-181-1/+17
| | | p4raw-id: //depot/perl@29866
* silence a warning in perly.cDave Mitchell2007-01-071-1/+1
| | | p4raw-id: //depot/perl@29706
* Silence various VC6 warningsSteve Hay2007-01-051-1/+1
| | | p4raw-id: //depot/perl@29692
* make parser_free actually free the parser!Dave Mitchell2007-01-041-0/+3
| | | | | also remove two SAVEs left over from #29655 p4raw-id: //depot/perl@29680
* handle cloning of parsers on the save stackDave Mitchell2007-01-031-1/+1
| | | p4raw-id: //depot/perl@29678
* Update copyright years to include 2007. (Plus a couple of 2006s andNicholas Clark2007-01-021-1/+1
| | | | | earlier we missed in av.h and hv.h) p4raw-id: //depot/perl@29670
* fix -Mad build breakageDave Mitchell2007-01-021-1/+2
| | | p4raw-id: //depot/perl@29667
* move easy lexer state variables into PL_parserDave Mitchell2007-01-021-1/+1
| | | | | (where "easy" == "only appear in toke.c") p4raw-id: //depot/perl@29655
* split parser initialisation from parser executionDave Mitchell2007-01-011-21/+6
| | | p4raw-id: //depot/perl@29652
* split parser stack from parser objectDave Mitchell2007-01-011-30/+29
| | | p4raw-id: //depot/perl@29649
* smoke signs suppressionJarkko Hietaniemi2006-12-311-1/+1
| | | | | Message-ID: <4597C078.4000503@iki.fi> p4raw-id: //depot/perl@29645
* further fix for #29543: fix parser leaks caused by croakingDave Mitchell2006-12-291-16/+39
| | | p4raw-id: //depot/perl@29636
* make -Dpv print 8 parser stack items, not 9Dave Mitchell2006-12-191-1/+1
| | | p4raw-id: //depot/perl@29589
* move parser state into new parser object, PL_parserDave Mitchell2006-12-181-70/+36
| | | p4raw-id: //depot/perl@29570
* merge the four parser stacks into oneDave Mitchell2006-12-171-247/+145
| | | p4raw-id: //depot/perl@29569
* delete dead code and macros from perly.cDave Mitchell2006-12-171-129/+3
| | | p4raw-id: //depot/perl@29568
* unify stacks arithmetic in parserDave Mitchell2006-12-171-16/+12
| | | p4raw-id: //depot/perl@29567
* fix a cast warning in perly.cDave Mitchell2006-12-161-1/+1
| | | p4raw-id: //depot/perl@29560
* make -Dpv display the parser stack before reductionDave Mitchell2006-12-131-11/+1
| | | | | (rather than afterwards) p4raw-id: //depot/perl@29549
* fix parser leaks caused by croaking while shifting or reducingDave Mitchell2006-12-131-16/+102
| | | | | | | e.g. these no longer leak: eval q[my $x; local $x] while 1; eval q[$s = sub <> {}] while 1; p4raw-id: //depot/perl@29543
* remove extraneous debugging code introduced by #29504Dave Mitchell2006-12-111-34/+0
| | | p4raw-id: //depot/perl@29508
* fix eval qw(BEGIN{die}) style leaks (second attempt).Dave Mitchell2006-12-111-22/+129
| | | | | | | | | | | | Repeat of change #28319 (backed out by change #28720), this time freeing ops using the right pad. Also backs out the remempad parser addition from change #29501; instead a new auxiliary paser stack is added, which records the current value of PL_comppad for every state. p4raw-link: @29501 on //depot/perl: 2af555bf3f2b3ca8e114df3f5f680d40bd24d6bf p4raw-link: @28720 on //depot/perl: c86b7e916b443ee192c5638ad9d077ad4e244713 p4raw-link: @28319 on //depot/perl: eb7d7d25d2f780edcbedc124a5bdca0d53ad8687 p4raw-id: //depot/perl@29504
* #28315 could crash when freeing ops with different padsDave Mitchell2006-12-101-2/+17
| | | | | | Add hook to parser to record current PL_comppad, then use this when popping ops off the parser stack after parser error p4raw-id: //depot/perl@29501
* parser: expand yy_is_opval[] to include all value typesDave Mitchell2006-12-101-6/+19
| | | | | | and rename to yy_type_tab[]. Then use this table to improve stack dumping with -Dpv p4raw-id: //depot/perl@29500
* merge perly.y and madlu.yDave Mitchell2006-12-041-17/+28
| | | p4raw-id: //depot/perl@29455
* add support for bison 2.3Dave Mitchell2006-12-031-0/+5
| | | p4raw-id: //depot/perl@29443
* merge perly.c and madly.cDave Mitchell2006-12-031-5/+27
| | | | | madly.c is now just a wrapper that #includes perly.c p4raw-id: //depot/perl@29440
* synchronise perly.c and madly.cDave Mitchell2006-12-021-6/+6
| | | p4raw-id: //depot/perl@29438
* Revert change 28319, which may cause segfaults with threaded perlsRafael Garcia-Suarez2006-08-151-53/+1
| | | | | on eval("syntax error") statements p4raw-id: //depot/perl@28720
* fix eval qw(BEGIN{die}) style leaks.Dave Mitchell2006-05-271-3/+53
| | | | | | | death while exdcuting code while parsing meant that the current parse stack got quiety abandonded, thus leaking a bunch of OPs. Register a destructor to be called when this happens. p4raw-id: //depot/perl@28319
* make -Dpv display OP names ons the parser stackDave Mitchell2006-05-271-6/+15
| | | p4raw-id: //depot/perl@28316
* stop OPs leaking in eval "syntax error"Dave Mitchell2006-05-271-0/+8
| | | | | | | | When bison pops states during error recovery, any states holding an OP would leak the OP. Create an extra YY table that tells us which states are of type opval, and when popping one of those, free the op. p4raw-id: //depot/perl@28315
* Add the madly parser. I believe that this is all the C code. Now toNicholas Clark2006-03-091-3/+3
| | | | | find the bugs that stowed away. p4raw-id: //depot/perl@27447
* Make MAD at least compile and link once more. Although it's now failingNicholas Clark2006-03-081-3/+3
| | | | | 6 regression tests. p4raw-id: //depot/perl@27429
* Further MAD changes.Nicholas Clark2006-03-081-0/+9
| | | p4raw-id: //depot/perl@27428
* cleaning up perly.cAndy Lester2006-02-171-9/+2
| | | | | Message-ID: <20060213050455.GA27993@petdance.com> p4raw-id: //depot/perl@27208
* Change all NEWSV() to newSV() in the core and non-dual-lived modules.Steve Hay2006-01-181-3/+3
| | | | | | | | Keep NEWSV() itself for backwards-compatibility outside of the core, but don't advertise it any more. (cf. change #25101). p4raw-link: @25101 on //depot/perl: a02a5408b2f199007c4dcb74559cc79066307ada p4raw-id: //depot/perl@26901
* Update copyright years (including some years where we made changes butNicholas Clark2006-01-081-1/+1
| | | | | did not update) p4raw-id: //depot/perl@26732
* sprinkle dVARJarkko Hietaniemi2006-01-061-0/+1
| | | | | Message-ID: <43BE7C4D.1010302@gmail.com> p4raw-id: //depot/perl@26675
* Missed a New() -> Newx().Steve Hay2005-07-121-1/+1
| | | | | | | | This one only had 3 args to start with! Presumably nobody uses YYERROR_VERBOSE. (The yystpcpy() calls don't look right either, but someone else that is interested in YYERROR_VERBOSE will have to look into that.) p4raw-id: //depot/perl@25119
* regcomp.c and moreAndy Lester2005-06-091-0/+2
| | | | | Message-ID: <20050609150556.GA30554@petdance.com> p4raw-id: //depot/perl@24780
* Quotes fixed, see also perl #36079Andy Lester2005-06-021-4/+4
| | | | | Message-ID: <20050602050238.GA4001@petdance.com> p4raw-id: //depot/perl@24666
* VMS build update for bleadCraig A. Berry2005-05-291-2/+2
| | | | | | From: "Craig A. Berry" <craigberry@mac.com> Message-Id: <429942A6.10601@mac.com> p4raw-id: //depot/perl@24613
* SvPVX_const - patch #2Steve Peters2005-05-211-2/+2
| | | | | Message-Id: <20050521024210.GA29036@mccoy.peters.homeunix.org> p4raw-id: //depot/perl@24523
* Include vim/emacs modelines in generated files to open themRafael Garcia-Suarez2005-05-111-2/+2
| | | | | | in read-only mode. Make vi modelines compatible with non-vim vi versions. p4raw-id: //depot/perl@24445
* Add editor boilerplates to all C filesRafael Garcia-Suarez2005-05-101-0/+10
| | | | | (except the generated ones) p4raw-id: //depot/perl@24440