summaryrefslogtreecommitdiff
path: root/op.c
Commit message (Collapse)AuthorAgeFilesLines
* allow $foo{$x} and $bar[$i] for (\$) prototypeGurusamy Sarathy1999-07-171-0/+2
| | | p4raw-id: //depot/perl@3681
* fixups for sundry warnings about function pointersGurusamy Sarathy1999-07-121-1/+1
| | | p4raw-id: //depot/perl@3669
* change#3612 was buggy and failed to build Tk; applied Ilya'sGurusamy Sarathy1999-07-111-4/+8
| | | | | | | remedy and related tests via private mail p4raw-link: @3612 on //depot/perl: b162f9ead0a98db35cdcfc8c889e344c040c8d8e p4raw-id: //depot/perl@3664
* fixes for logical bugs in the lexwarn patch; other tweaks to avoidGurusamy Sarathy1999-07-081-5/+4
| | | | | type mismatch problems p4raw-id: //depot/perl@3658
* lexical warnings update (warning.t fails one testPaul Marquess1999-07-071-13/+22
| | | | | | | due to leaked scalar, investigation pending) Message-ID: <5104D4DBC598D211B5FE0000F8FE7EB29C6C8E@mbtlipnt02.btlabs.bt.co.uk> Subject: [PATCH 5.005_57] Lexical Warnings - mandatory warning are now default warnings p4raw-id: //depot/perl@3640
* Eliminate CONDOPsStephen McCamant1999-07-071-38/+37
| | | | | Message-ID: <14193.25034.113373.245377@alias-2.pr.mcs.net> p4raw-id: //depot/perl@3637
* memleak in optimizerHugo van der Sanden1999-07-071-5/+11
| | | | | Message-Id: <199906231516.QAA23851@crypt.compulink.co.uk> p4raw-id: //depot/perl@3634
* make diagnostic on C<my $^I> etc., more readableGurusamy Sarathy1999-07-071-1/+1
| | | p4raw-id: //depot/perl@3627
* Optimize away OP_SASSIGNIlya Zakharevich1999-07-061-3/+67
| | | | | Message-Id: <199906120849.EAA26986@monk.mps.ohio-state.edu> p4raw-id: //depot/perl@3612
* slightly tweaked version of suggested patchDan Sugalski1999-07-061-4/+4
| | | | | | Message-Id: <3.0.6.32.19990608140938.030f12e0@ous.edu> Subject: [PATCH 5.005_57]Use NV instead of double in the core p4raw-id: //depot/perl@3602
* allow C<-foo> under C<use integer> (behavior of C<-$string>Gurusamy Sarathy1999-07-051-1/+7
| | | | | is unchanged still) p4raw-id: //depot/perl@3588
* remove misleading info on defined(&func), unclutter deprecationGurusamy Sarathy1999-07-041-2/+2
| | | | | about defined(@array) p4raw-id: //depot/perl@3567
* fix indentsGurusamy Sarathy1999-06-271-16/+20
| | | p4raw-id: //depot/perl@3551
* fix coredumper in change#3498Gurusamy Sarathy1999-06-131-1/+1
| | | | | p4raw-link: @3498 on //depot/cfgperl: 697943021785eb8447e25eb51a6f27fd78921863 p4raw-id: //depot/perl@3539
* truncate() has a peculiar exemption from strict barewords, evenGurusamy Sarathy1999-06-111-2/+5
| | | | | though it has a non-filehandle prototype p4raw-id: //depot/perl@3533
* more complete support for implicit thread/interpreter pointer,Gurusamy Sarathy1999-06-091-137/+137
| | | | | | | | | | | | | | | | | | | | | enabled via -DPERL_IMPLICIT_CONTEXT (all changes are noops without that enabled): - USE_THREADS now enables PERL_IMPLICIT_CONTEXT, so dTHR is a noop; tests pass on Solaris; should be faster now! - MULTIPLICITY has been tested with and without PERL_IMPLICIT_CONTEXT on Solaris - improved function database now merged with embed.pl - everything except the varargs functions have foo(a,b,c) macros to provide compatibility - varargs functions default to compatibility variants that get the context pointer using dTHX - there should be almost no source compatibility issues as a result of all this - dl_foo.xs changes other than dl_dlopen.xs untested - still needs documentation, fixups for win32 etc Next step: migrate most non-mutex variables from perlvars.h to intrpvar.h p4raw-id: //depot/perl@3524
* initial stub implementation of implicit thread/thisGurusamy Sarathy1999-06-071-128/+110
| | | | | | | | | | | | pointer argument; builds/tests on Solaris, win32 hasn't been fixed up yet; proto.h, global.sym and static function decls are now generated from a common database in proto.pl; some inconsistently named perl_foo() things are now Perl_foo(), compatibility #defines provided; perl_foo() (lowercase 'p') reserved for functions that take an explicit context argument; next step: generate #define foo(a,b) Perl_foo(aTHX_ a,b) p4raw-id: //depot/perl@3522
* remove _() non-ansismGurusamy Sarathy1999-06-021-16/+17
| | | p4raw-id: //depot/perl@3518
* integrate cfgperl contents into mainlineGurusamy Sarathy1999-06-021-0/+24
|\ | | | | p4raw-id: //depot/perl@3516
| * PATCH (5.005_57): defined(@a) now deprecatedMark-Jason Dominus1999-05-281-0/+24
| | | | | | | | | | | | To: perl5-porters@perl.com Message-ID: <19990527200544.13330.qmail@plover.com> p4raw-id: //depot/cfgperl@3498
* | remove stray K&R-ismsGurusamy Sarathy1999-06-021-2/+1
| | | | | | p4raw-id: //depot/perl@3515
* | change#3447 didn't do enough to exempt Foo->bar(qw/.../) fromGurusamy Sarathy1999-06-011-0/+5
| | | | | | | | | | | | | | strict 'subs' p4raw-link: @3447 on //depot/perl: 7a52d87a7fbc7848e6b3e9e96db52d4070212cca p4raw-id: //depot/perl@3514
* | change#3449 wasn't doing enoughGurusamy Sarathy1999-05-281-3/+5
|/ | | | | p4raw-link: @3449 on //depot/perl: 18228614d1dac2db099ef3d8846e53f44accce72 p4raw-id: //depot/perl@3493
* fix bogus line numbers for void context warningsGurusamy Sarathy1999-05-241-9/+13
| | | | | | | (change#2548 was overeager) p4raw-link: @2548 on //depot/cfgperl: 68c734842396ee490e3f1243c6050bbadc602253 p4raw-id: //depot/perl@3464
* name PL_in_eval bitsHugo van der Sanden1999-05-241-3/+5
| | | | | Message-Id: <199905231535.QAA00032@crypt.compulink.co.uk> p4raw-id: //depot/perl@3457
* oops, some files missing in change#3449Gurusamy Sarathy1999-05-241-0/+25
| | | | | p4raw-link: @3449 on //depot/perl: 18228614d1dac2db099ef3d8846e53f44accce72 p4raw-id: //depot/perl@3450
* redo change#2061 and parts of change#1169 with code in theGurusamy Sarathy1999-05-241-6/+31
| | | | | | | | | | | parser; PL_last_proto hackery gone, strict 'subs' in now implemented in the optimizer where specifying the exceptional cases is much more robust; '*' (bareword) prototype now works reliably when used in second and subsequent arguments p4raw-link: @2061 on //depot/perl: bf8481137c02593eb36f8d0e234a2ec41a1c92e4 p4raw-link: @1169 on //depot/perl: 2a841d1398ee9bbf30a942905192cc2591b3e92a p4raw-id: //depot/perl@3447
* Experimental "slab" allocator for ops.Nick Ing-Simmons1999-05-141-20/+59
| | | | | | | | | | | | To try it -DPL_OP_SLAB_ALLOC for op.c This is for proof of concept only, it leaks memory (ops are not free'd) so don't use in embedded apps. If this minimalist version does not show performance gain then whole idea is worthless. Nick see's approx 12% speed up vs perlmalloc running perl -Ilib -MCPAN -e '' Solaris2.6, gcc-2.8.1 but numbers are not repeatable. p4raw-id: //depot/perl@3424
* various fixes for clean build and test on win32; configpm broken,Gurusamy Sarathy1999-05-111-4/+4
| | | | | | | | | | needed to open myconfig.SH rather than myconfig; sundry adjustments to bytecode stuff; tweaks to DYNAMIC_ENV_FETCH code to make it work under win32; getenv_sv() changed to getenv_len() since SVs aren't visible in the lower echelons; remove bogus exports from config.sym; PERL_OBJECT-ness for C++ exception support; null out IoDIRP in filter_del() or sv_free() will attempt to close it p4raw-id: //depot/perl@3387
* applied suggested patch, with win32 and PERL_OBJECT additionsTom Hughes1999-05-101-0/+2
| | | | | | Message-ID: <609bdff748.tom@compton.compton.nu> Subject: ByteLoader patch p4raw-id: //depot/perl@3356
* allow AV/HV dereferences on pseudohashes ($ph->{foo}[1], etc.)Gurusamy Sarathy1999-05-081-1/+1
| | | p4raw-id: //depot/perl@3335
* Tweaks to open(my $fh,...) stuffNick Ing-Simmons1999-05-081-3/+10
| | | p4raw-id: //depot/perl@3329
* Implement open( my $fh, ...) and similar.Nick Ing-Simmons1999-05-071-2/+11
| | | | | | | | | | | | Set flag in op.c for "constructor ops" In pp_rv2gv, if flag is set and arg is PADSV and uninit vivify as reference to a detached GV. (Name of GV is the pad name.) This scheme should "just work" for pipe/socket etc. too. #if 0 out the open(FH,undef) for now. Change t/io/open.t to test open(my $fh,...) p4raw-id: //depot/perl@3326
* fix bogus OPf_REF context in C<sort BLOCK @foo> (extension ofGurusamy Sarathy1999-05-061-4/+3
| | | | | | | change#3180) p4raw-link: @3180 on //depot/perl: fd3835b3e90ede5576a7ad392beef86bf933ce15 p4raw-id: //depot/perl@3307
* correct places that said newSVpv() when they meant newSVpvn()Gurusamy Sarathy1999-04-041-7/+7
| | | p4raw-id: //depot/perl@3217
* fix bogus OPf_REF context for the BLOCK in C<grep BLOCK @foo>Gurusamy Sarathy1999-03-281-1/+1
| | | | | (sometimes caused bizarreness in the BLOCK) p4raw-id: //depot/perl@3180
* update copyright yearsGurusamy Sarathy1999-03-221-1/+1
| | | p4raw-id: //depot/perl@3124
* change#3067 failed package.t due to needless creation of $a and $b;Gurusamy Sarathy1999-03-121-6/+3
| | | | | | | fixed to do that only for C<sort BLOCK|CODE @foo>, not C<sort(@foo)> p4raw-link: @3067 on //depot/perl: 39ab52836386b91d2e2c323dd305cf42e6be3133 p4raw-id: //depot/perl@3106
* fix parsing of here documents in C<eval 's/.../<<FOO/e'>Gurusamy Sarathy1999-03-091-1/+4
| | | p4raw-id: //depot/perl@3098
* use yyerror() instead of croak() so that compile-time failures inGurusamy Sarathy1999-03-091-2/+3
| | | | | my(LIST) don't confuse globals with lexicals p4raw-id: //depot/perl@3097
* exempt $foo::a,$foo::b from warnings only if sort() was seen in package fooGraham Barr1999-03-041-0/+5
| | | | | | Message-ID: <19990303172356.F7442@dal.asp.ti.com> Subject: Re: 'use strict' doesn't work for one-letter variables p4raw-id: //depot/perl@3067
* todo item: permit extended control variables a la ${^Foo} (patchGurusamy Sarathy1999-02-281-1/+15
| | | | | courtesy Mark-Jason Dominus <mjd@plover.com>) p4raw-id: //depot/perl@3039
* fix longstanding bug: searches for lexicals originating within eval''Gurusamy Sarathy1999-02-281-6/+12
| | | | | weren't stopping at the subroutine boundary correctly p4raw-id: //depot/perl@3037
* bring '*' prototype closer to how it behaves internallyGurusamy Sarathy1999-02-191-10/+4
| | | p4raw-id: //depot/perl@2978
* distinguish eval'' from BEGIN|INIT|END CVs (fixes buggy propagationGurusamy Sarathy1999-02-181-2/+2
| | | | | of lexical searches in BEGIN|INIT|END) p4raw-id: //depot/perl@2975
* add const qualifier to most char* prototypes, handle ripple effectGurusamy Sarathy1999-02-151-1/+1
| | | p4raw-id: //depot/perl@2924
* allow C<select('foo')> to autovivify *foo (SelectSaver expects that)Gurusamy Sarathy1999-02-141-0/+1
| | | p4raw-id: //depot/perl@2914
* allow boolean assign ops to be lvaluesGurusamy Sarathy1999-02-121-2/+4
| | | | | | | | | | | | From: Stephen McCamant <smccam@uclink4.berkeley.edu> Date: Mon, 11 Jan 1999 16:52:18 -0600 (CST) Message-ID: <13978.32609.495338.544643@alias-2.pr.mcs.net> -- From: Hugo van der Sanden <hv@crypt.compulink.co.uk> Date: Mon, 18 Jan 1999 10:04:00 +0000 Message-Id: <199901181004.KAA17471@crypt.compulink.co.uk> Subject: Re: [inconsistency 5.005_54] ||= not an lvalue p4raw-id: //depot/perl@2901
* fix ops that are not filehandle constructors to not create GV if itGurusamy Sarathy1999-02-121-3/+34
| | | | | | doesn't already exist (avoids leaks); extend semantics of defined() so that defined(*{$foo}) works (experimental) p4raw-id: //depot/perl@2879
* properly prototype check parenthesized unary ops (e.g. defined(&a,&b))Gurusamy Sarathy1999-02-071-3/+12
| | | p4raw-id: //depot/perl@2817