summaryrefslogtreecommitdiff
path: root/handy.h
Commit message (Collapse)AuthorAgeFilesLines
* Add mingw64 supportSisyphus2009-11-091-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, Using the attached patch to the blead source (as of a few hours ago), I can build perl with the following OS/compiler/make combos. On 32-bit XP: MSVC++ 7.0 / dmake (uses win32/makefile.mk) MSVC++ 7.0 / nmake (uses win32/Makefile) Borland C++ 5.5.1 / dmake mingw.org's gcc-4.3.0 / dmake mingw.org's gcc-3.4.5 / dmake mingw-w64.sf's 32-bit gcc-4.4.3 / dmake (There's a bug with that last compiler on XP. The perl it builds on XP hangs on XP, but runs ok if copied across to Vista. I think this is unrelated to the patches - probably even unrelated to perl. Without these patches perl will not even build using that last compiler.) On 64-bit Vista: 32-bit MSVC++ 7.0 / nmake (uses win32/Makefile) 32-bit MSVC++ 7.0 / dmake (uses win32/makfile.mk) 32-bit Borland C++ 5.5.1 / dmake mingw.org's 32-bit gcc-4.4.0 / dmake mingw.org's 32-bit gcc-3.4.5 / dmake mingw-w64.sf's 32-bit gcc-4.4.3 / dmake mingw-w64.sf's 64-bit gcc-4.4.3 / dmake mingw-w64.sf's 64-bit x86_64-w64-mingw32-gcc-4.4.3 / dmake 64-bit MicrosoftPlatform SDK for Windows Server 2003 R2 / dmake (uses win32/makefile.mk) 64-bit MicrosoftPlatform SDK for Windows Server 2003 R2 / nmake (uses win32/Makefile) Not all of those builds pass all tests - but where the removal of the patches still permits perl to build, the same tests still fail. That is, *nothing* is lost by including these patches - but there are significant gains. Each of the above builds was done according to the normal win32 configuration parameters - ie multi-threaded, non debug. No unusual config settings were applied. (I did build one debug perl on Vista using mingw-w64.sf's 32-bit gcc-4.4.3 and it built fine.) Please feel free to apply these patches (with or without modification) - and, yes, you're more than welcome to blame me if they cause any breakages ;-) Of course, some of those compilers (Borland, Microsoft, and the compilers from mingw.org) already build perl *without* having to apply any patches. It's just the other compilers that need the patches. The purpose of testing with Borland, Microsoft, and the mingw.org compilers is just to check that these patches don't break them. As a final check, I've done a build on my aging linux (mandrake-9.1) box, gcc-3.2.2. I built with '-des -Duselongdouble -Duse64bitint -Dusedevel'. No problem with that, either. If there's additional testing requirements please let me know, and I'll try to oblige. I believe the patch applied successfully for me - see below my sig for the output. Cheers, Rob Rob@desktop2 ~/GIT/blead $ patch -p0 <blead_diff.diff patching file dist/threads/threads.xs patching file handy.h patching file cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Win32.pm patching file op.c Hunk #1 succeeded at 5774 (offset 47 lines). patching file pp_pack.c patching file util.c Hunk #1 succeeded at 5366 (offset -28 lines). patching file win32/makefile.mk patching file win32/perlhost.h patching file win32/win32.c patching file win32/win32.h patching file README.win32 patching file XSUB.h
* Enable deprecation warnings by default.Nicholas Clark2009-10-161-1/+1
|
* Replace Perl_deprecate() with a macro that calls Perl_ck_warner()Nicholas Clark2009-10-131-0/+7
| | | | | | Perl_deprecate was not part of the public API, and did not have a deprecate() shortcut macro defined without -DPERL_CORE. Neither codesearch.google.com nor CPAN::Unpack show any users outside the core.
* Remove obsolete functions is_uni_alnumc, is_uni_alnumc_lc, is_utf8_alnumcRafael Garcia-Suarez2009-09-131-3/+0
|
* drop remaining mentions of PERL_MEM_LOG_FOO envarsJim Cromie2009-06-211-1/+1
| | | | | | perl.c has the last mentions of PERL_MEM_LOG_ENV*. drop them too. (rgs: plus some in handy.h's comments too)
* invert and rename PERL_MEM_LOG_STDERR to PERL_MEM_LOG_NOIMPLJim Cromie2009-06-211-2/+4
| | | | | | | Most users who want PERL_MEM_LOG want the default implementation, give it to them. Users providing their own implementation can obtain current behavior by adding -DPERL_MEM_LOG_NOIMPL. Frankly, the average user probably wants _ENV by default too.
* provide minimal documentation for the MUTABLE_*() macrosDavid Mitchell2009-03-291-0/+9
|
* Detection of IPv6 clueful functions by Configure (part 1)H.Merijn Brand2009-03-251-12/+9
| | | | | | | | Other OS parts will follow From: Steve Peters <steve@fisharerojo.org> Date: Wed, 25 Mar 2009 10:54:51 -0500 Message-ID: <fd7a59d30903250854q53311f48o6744df7cbfa1d03d@mail.gmail.com>
* Add get_cvs() as a shortcut for STR_WITH_LEN() and Perl_get_cvn_flags(), andNicholas Clark2009-01-211-0/+2
| | | | use it where possible.
* Subject: PATCH 5.10 documentationSteve Peters2008-12-191-12/+15
| | | | | | From: karl williamson <public@khwilliamson.com> Date: Tue, 16 Dec 2008 16:00:34 -0700 Message-ID: <49483312.80804@khwilliamson.com>
* The breakage caused by #34653 (sh|c)ould have been detectedMarcus Holland-Moritz2008-11-031-1/+1
| | | | | by the compiler. So further improve the STR_WITH_LEN() macro. p4raw-id: //depot/perl@34712
* Explicitly specify some printf formats for constant strings.Rafael Garcia-Suarez2008-11-021-2/+2
| | | | | | This is mostly to silence gcc's warning, "format not a string literal and no format arguments". p4raw-id: //depot/perl@34694
* Add MUTABLE_GV(), and eliminate (V *) casts in *.c.Nicholas Clark2008-10-311-0/+1
| | | | | | Can't easily do gv.h, as GvGP() (at least) needs to split into two macros - one const for reading, one non-const for writing. p4raw-id: //depot/perl@34679
* Add MUTABLE_IO(), and eliminate (IO *) casts in *.c.Nicholas Clark2008-10-291-0/+1
| | | p4raw-id: //depot/perl@34654
* Add MUTABLE_CV(), and eliminate (CV *) casts in *.c.Nicholas Clark2008-10-291-0/+1
| | | p4raw-id: //depot/perl@34647
* Add MUTABLE_HV(), and remove (HV *) casts from headers.Nicholas Clark2008-10-281-0/+1
| | | p4raw-id: //depot/perl@34619
* MHX notes that I have a superfluous void cast.Nicholas Clark2008-10-271-1/+1
| | | p4raw-id: //depot/perl@34612
* Add MUTABLE_AV(), and remove (AV *) casts from headers.Nicholas Clark2008-10-271-0/+1
| | | p4raw-id: //depot/perl@34608
* Add a macro MUTABLE_PTR(p), which on (non-pedantic) gcc will not castNicholas Clark2008-10-271-0/+7
| | | | | | | | | | away const, returning a void *. Add MUTABLE_SV(sv) which uses this, and replace all (SV *) casts either with MUTABLE_SV(sv), or (const SV *). This probably still needs some work - assigning to SvPVX() and SvRV() is now likely to generate a casting error. The core doesn't do this. But as-is it's finding bugs that can be fixed. p4raw-id: //depot/perl@34605
* Make sure Perl_mem_log_(?:alloc|realloc|free) have C linkage,Marcus Holland-Moritz2008-10-261-4/+5
| | | | | | | | | | so modules like Digest::MD5, that are including perl.h from within an 'extern "C"' block, will actually see them when building with a C++ compiler. Also make sure that Perl_mem_log_(?:new|del)_sv are only seen by sv.c. p4raw-id: //depot/perl@34598
* Update copyright years.Nicholas Clark2008-10-251-2/+2
| | | p4raw-id: //depot/perl@34585
* Make C++ compilers happy #4: move cast so Newc() andMarcus Holland-Moritz2008-10-241-7/+7
| | | | | Renewc() will return the correct type under PERL_MEM_LOG. p4raw-id: //depot/perl@34577
* Make C++ compilers happy #1: "typename" is a C++ keyword.Marcus Holland-Moritz2008-10-241-2/+2
| | | p4raw-id: //depot/perl@34574
* Add SV allocation tracing to -Dm and PERL_MEM_LOGMarcus Holland-Moritz2008-10-241-1/+6
| | | | | Message-ID: <20081022013731.23b5a2e5@r2d2> p4raw-id: //depot/perl@34568
* Refactor Perl_mem_log_ functionsMarcus Holland-Moritz2008-10-241-2/+12
| | | | | Message-ID: <20081022013721.374a490c@r2d2> p4raw-id: //depot/perl@34567
* Add probes for *time64 () functionsH.Merijn Brand2008-10-031-1/+9
| | | | | Add missing config vars p4raw-id: //depot/perl@34456
* Add probes for LOCALTIME_max and LOCALTIME_min (y2038 project)H.Merijn Brand2008-09-151-1/+1
| | | p4raw-id: //depot/perl@34363
* Probe for timegmH.Merijn Brand2008-07-071-1/+1
| | | p4raw-id: //depot/perl@34107
* Part one of y2038 changes for SchwernH.Merijn Brand2008-07-071-1/+1
| | | p4raw-id: //depot/perl@34105
* If the C library provides malloc_size(), we can use that in the sameNicholas Clark2008-02-261-1/+1
| | | | | | | places as Perl's malloced_size(), except that we need to be careful of any PERL_TRACK_MEMPOOL manipulations in force. Wrap both as Perl_safesysmalloc_size(), to give a consistent name and interface. p4raw-id: //depot/perl@33379
* The return of USE_DTRACEH.Merijn Brand2008-01-231-1/+1
| | | p4raw-id: //depot/perl@33045
* Add newSVpvs_flags() as a wrapper to newSVpvn_flags(), and reworkNicholas Clark2008-01-031-0/+6
| | | | | sv_2mortal(newSVpvs(...)) constructions to use it. p4raw-id: //depot/perl@32819
* Add editor blocks to some header files.Marcus Holland-Moritz2008-01-011-0/+9
| | | p4raw-id: //depot/perl@32793
* Remove the definitions of Null(), Nullch, Nullfp, Nullsv and PL_naNicholas Clark2007-12-221-6/+8
| | | | | | | when PERL_CORE is defined. (Which, "obviously", is only in code within the perl source tree, which we control). Nullop remains, and would be moderately invasive to remove. p4raw-id: //depot/perl@32707
* Fix up copyright years for files modified in 2007.Nicholas Clark2007-11-071-1/+1
| | | p4raw-id: //depot/perl@32237
* Optimise the logic in isPRINT(), possible following Jarkko's bugfixNicholas Clark2007-10-061-1/+1
| | | | | | of change 10855. (to the implementation added in change 18) Nothing that a decent compiler optimiser would have missed. p4raw-id: //depot/perl@32041
* Add a new function Perl_hv_common_key_len(), which contains theNicholas Clark2007-09-201-2/+8
| | | | | | | | manipulations to convert negative lengths to positive length + UTF-8 flag. hv_delete(), hv_exists(), hv_fetch(), hv_store() and hv_store_flags() all become mathoms. The macros hv_fetchs() and hv_stores() call hv_common() directly. p4raw-id: //depot/perl@31931
* Add Perl_my_dirfd() to util.cSteve Peters2007-05-011-1/+1
| | | p4raw-id: //depot/perl@31112
* stop the cargo cult of (MEM_SIZE)~0Jarkko Hietaniemi2007-03-271-2/+4
| | | | | Message-Id: <200703271207.l2RC7qOC443040@kosh.hut.fi> p4raw-id: //depot/perl@30774
* Move CHECK_WORD in regcomp.c to a more generic memEQs() in handy.hNicholas Clark2007-03-231-0/+4
| | | | | and provide memNEs() too. p4raw-id: //depot/perl@30726
* Introduction of d_pseudoforkH.Merijn Brand2006-12-051-1/+1
| | | p4raw-id: //depot/perl@29467
* Configure patch to add detection for DIR.dd_fd member variableSteve Peters2006-11-081-1/+1
| | | | | | From: "Steve Peters" <steve.peters@gmail.com> Message-ID: <fd7a59d30611042340p5543442ctad306aeb748b6bfe@mail.gmail.com> p4raw-id: //depot/perl@29238
* The non-unix parts for localtime_r_needs_tzsetH.Merijn Brand2006-11-061-1/+1
| | | | | Plus forced Glossary entry. That is a TODO for automation p4raw-id: //depot/perl@29213
* solution(?) to the "warning: comparison is always false dueto limited range ↵Jarkko Hietaniemi2006-08-011-1/+4
| | | | | | | of data type" with New*() Message-ID: <44C9A7FC.1060801@iki.fi> p4raw-id: //depot/perl@28634
* The sv_catpvs() and sv_setpvs() macros also return void.Marcus Holland-Moritz2006-05-241-2/+2
| | | p4raw-id: //depot/perl@28301
* HAS_HAS WAS NOW HASH.Merijn Brand2006-05-231-1/+1
| | | p4raw-id: //depot/perl@28286
* If I needed this now, I'll probably need it next time too :)H.Merijn Brand2006-05-221-1/+1
| | | p4raw-id: //depot/perl@28284
* literal string macrosMarcus Holland-Moritz2006-05-221-0/+40
| | | | | Message-ID: <20060522133933.65ea93ce@r2d2> p4raw-id: //depot/perl@28273
* Document PoisonFree() instead of documenting Poison() twice.Marcus Holland-Moritz2006-05-211-1/+1
| | | p4raw-id: //depot/perl@28265
* Re: [PATCH] cleanup 212 warnings emitted by gcc-4.2Marcus Holland-Moritz2006-04-261-1/+1
| | | | | Message-ID: <20060424232038.7550f9b6@r2d2> p4raw-id: //depot/perl@27962