summaryrefslogtreecommitdiff
path: root/utils/h2xs.PL
Commit message (Collapse)AuthorAgeFilesLines
* Switch most open() calls to three-argument form.John Lightsey2016-12-231-11/+11
| | | | | | | | | | Switch from two-argument form. Filehandle cloning is still done with the two argument form for backward compatibility. Committer: Get all porting tests to pass. Increment some $VERSIONs. Run: ./perl -Ilib regen/mk_invlists.pl; ./perl -Ilib regen/regcharclass.pl For: RT #130122
* [perl #130001] h2xs: avoid infinite loop for enumsHugo van der Sanden2016-11-021-1/+1
| | | | | 'typedef enum x { ... } x' causes h2xs to enter a substitution loop while trying to write the typemap file.
* (perl #127834) remove . from the end of @INC if complex modules are loadedTony Cook2016-07-261-0/+2
| | | | | | | While currently Encode and Storable are know to attempt to load modules not included in the core, updates to other modules may lead to those also attempting to load new modules, so be safe and remove . for those as well.
* h2xs: place for license for META.* filesAlexandr Ciornii2013-06-241-0/+3
|
* h2xs: remove useless compatibility code (VERSION_FROM requires EU::MM from ↵Alexandr Ciornii2013-06-241-4/+3
| | | | perl 5.5)
* h2xs: dependency on XSLoader should be declared even when it is in coreAlexandr Ciornii2013-06-241-1/+1
|
* h2xs: remove indirect object notationAlexandr Ciornii2013-06-241-2/+2
|
* add PERL_NO_GET_CONTEXT to xs template in h2xs.PLDaniel Dragan2012-12-051-0/+1
| | | | | | | An XS module not using PERL_NO_GET_CONTEXT is extremely inefficient under threaded Perls. Prevent PERL_NO_GET_CONTEXT-less modules in the future by making it a default. Many XS modules are created with h2xs. Also see this anonymous complaint http://perlmonks.org/?node_id=990732 .
* [perl #20636] Make h2xs skip #define macros with empty rhsAaron Crane2012-09-281-0/+4
| | | | | Otherwise the generated C code uses such macros in expressions, which causes compilation errors because the macro is expanded to an empty token list.
* || instead of "or" (perl#78708)Alexandr Ciornii2011-12-051-1/+1
|
* [RT #36079] Convert ` to '.jkeenan2011-11-221-2/+2
|
* $Config{locincpath} might be emptyH.Merijn Brand2011-11-151-1/+1
| | | | This causes h2xs.t to fail on systems where that is the case
* Fix typos (spelling errors) in utils/*.Peter J. Acklam) (via RT2011-01-071-4/+4
| | | | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81914] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81914 > Signed-off-by: Abigail <abigail@abigail.be>
* 'use strict' and 'use warnings' in test generated by h2xsHarmen2009-11-081-0/+3
|
* Make h2xs add a dependency on Test.pm for < 5.6.2Steffen Mueller2009-06-081-8/+16
| | | | | Also replaces lots of 5.00702 (note missing 0) with 5.006002. This is to allow us to jettison Test.pm from core eventually.
* h2xs incorrectly treats enum values like macrosNiko Tyni2009-04-081-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch and description by Rainer Weikusat, forwarded from http://bugs.debian.org/502297 : The h2xs program scans C headers for 'constants' either defined as preprocessor macros or via enum and builds a sorted list of names containing the macros and enum values found in this way. This list is then passed to ExtUtils::Constant::WriteConstants, which generates the corresponding const-c.inc and const-xs.inc files when perl Makefile.PL is executed. By default, ie when just processing a constant name, this function assumes that the name refers to a preprocessor macro and the generated C-code in const-c.inc contains conditional compilation directives to either return the macro value or Perl_constant_NOTDEF, depending on the defined'ness of the macro. This causes constants defined as enumeration values to never be available to module users, because they are not visible to the preprocessor. Instead of passing just a name to the WriteConstants-routine, a hashref (members documented in ExtUtils::Constant::Base(3perl)) can be used to specify more details regarding what code should be generated for a particular constant. For an enumeration value, a hashref constructed as { name => <name of the constant>, macro => 1 } could be used to get rid of the inappropriate preprocessor directives. ( Another version of the same fix was also submitted by Daniel Burr in http://bugs.debian.org/320286 )
* Fix h2xs enum handling with C++ commentsNiko Tyni2009-01-191-0/+1
| | | | | | | | | | | | | | | | | | Contrary to the comment in the code, h2xs mishandles enums that contain C++ style comments. An example of a failing header: enum { A = -1, // negative one // with more comments B = -2, // negative two C = -3 // negative two }; which generates exported constants for 'A' and 'negative'. The patch is slightly modified from the one by Daniel Burr in http://bugs.debian.org/320286
* If perl's minimal required version number is >= 5.6.0,Rafael Garcia-Suarez2007-09-061-3/+1
| | | | | | we can write it 5.XXXXXX always. Fixes h2xs.t failiing tests with 5.10.0. p4raw-id: //depot/perl@31801
* Add examples for h2xs -X, by Andy ArmstrongRafael Garcia-Suarez2007-05-091-2/+8
| | | p4raw-id: //depot/perl@31175
* Fix for RT #25366: h2xs 1.23 from "Aaron Kaplan".Steve Peters2006-05-021-0/+1
| | | p4raw-id: //depot/perl@28044
* Fix handling of author's names that had apostrophes. Based on a patchSteve Peters2005-12-041-0/+1
| | | | | by Sean O'Rourke <sorourke@cs.ucsd.edu> in RT bug #22950. p4raw-id: //depot/perl@26252
* Added new flag (--use-xsloader) to use XSLoader when in backwardSteve Peters2005-09-291-2/+6
| | | | | compatibility mode. p4raw-id: //depot/perl@25663
* With XSLoader on CPAN now, add XSLoader as a prerequisite in Makefile.PLSteve Peters2005-09-291-4/+5
| | | | | | if the compatible version is less than 5.006 (the first version with XSLoader). p4raw-id: //depot/perl@25662
* [perl #37142] h2xs skips enums with negative values Aaron Kaplan2005-09-121-3/+2
| | | | | | From: Aaron Kaplan (via RT) <perlbug-followup@perl.org> Message-ID: <rt-3.0.11-37142-120585.5.90517066191047@perl.org> p4raw-id: //depot/perl@25388
* Typos in *.p[lm]Piotr Fusik2005-08-021-1/+1
| | | | | | From: "Piotr Fusik" <pfusik@op.pl> Message-ID: <001401c595bd$dccb5d80$0bd34dd5@piec> p4raw-id: //depot/perl@25261
* Bring bleadperl up to version.pmJohn Peacock2005-06-131-2/+2
| | | | | Message-ID: <42A414DD.8090504@rowman.com> p4raw-id: //depot/perl@24823
* Re: [perl #32498] h2xs generates incorrect code for Makefile.PL for enumsNoah2005-01-191-1/+1
| | | | | Message-ID: <20050119173352.GA15592@radu.onastick.net> p4raw-id: //depot/perl@23822
* Fix for [perl #32491] h2xs incorrectly parses enums with implicit valuesRafael Garcia-Suarez2004-12-141-2/+2
| | | p4raw-id: //depot/perl@23652
* Tweak 'h2xs -h' output.Marcus Holland-Moritz2004-08-191-11/+12
| | | p4raw-id: //depot/perl@23228
* h2xs doesn't recognize indented enumsTassilo von Parseval2004-05-211-1/+1
| | | | | | Message-id: <20040521085158.GA10660@ethan> (modified regexp) p4raw-id: //depot/perl@22836
* Problem with h2xsDavid Cannings2004-05-051-0/+2
| | | | | | Message-Id: <200405031344.33723.lists@edeca.net> (Second patch only) p4raw-id: //depot/perl@22782
* remove C<my $x if foo> construct from core modulesDave Mitchell2004-02-171-2/+4
| | | p4raw-id: //depot/perl@22322
* Remove whitespace from ends of lines (simply because it irritates me)Nicholas Clark2003-11-291-24/+24
| | | p4raw-id: //depot/perl@21813
* RE: script wantedRobin Barker2003-08-131-1/+1
| | | | | Message-ID: <533D273D4014D411AB1D00062938C4D904046637@hotel.npl.co.uk> p4raw-id: //depot/perl@20681
* produce Foo-Bar/lib/Foo/Bar.pmMichael G. Schwern2003-08-121-31/+18
| | | | | | | Message-ID: <20030809220301.GE24919@windhund.schwern.org> (plus one extra catfile() in h2xs.t) p4raw-id: //depot/perl@20633
* The Debian people have expressed a wish for the boilerplateJarkko Hietaniemi2003-08-121-9/+17
| | | | | being specific about the Perl version; patch from Nicholas Clark. p4raw-id: //depot/perl@20632
* Re: [PATCH] h2xs and extra_librariesTassilo von Parseval2003-07-211-2/+4
| | | | | Message-id: <20030715052852.GA494@ethan> p4raw-id: //depot/perl@20176
* OS2 patchesIlya Zakharevich2003-06-151-2/+3
| | | | | Message-ID: <20030615004956.GA28272@math.berkeley.edu> p4raw-id: //depot/perl@19789
* [perl #21887] h2xs becoming enum-awareTassilo von Parseval2003-05-211-39/+99
| | | | | Message-id: <20030513083631.GA21782@ethan> p4raw-id: //depot/perl@19589
* h2xs generates false comments about ABSTRACTSteve Hay2003-05-051-7/+0
| | | | | Message-ID: <3EAF8ECE.8060403@uk.radan.com> p4raw-id: //depot/perl@19420
* [patch] utils/h2xs.PL (get rid of \t and '')Stas Bekman2003-03-171-10/+10
| | | | | Message-ID: <3E4C3F89.6050005@stason.org> p4raw-id: //depot/perl@19004
* Bump the version numbers to five-eight-oh.Jarkko Hietaniemi2002-05-281-3/+8
| | | p4raw-id: //depot/perl@16843
* Re: Argument "1.23_45" isn't numeric in subroutine entryYitzchak Scott-Thoennes2002-05-211-22/+54
| | | | | Message-ID: <iFe68gzkgCIJ092yn@efn.org> p4raw-id: //depot/perl@16721
* (was Re: [PATCH @13746] h2xs)Nicholas Clark2002-03-041-36/+35
| | | | | Message-ID: <20020304224837.GA4284@Bagpuss.unfortu.net> p4raw-id: //depot/perl@15023
* use Config; use Config; require Config;Michael G. Schwern2002-03-031-2/+0
| | | | | Message-Id: <20020303183328.GA3296@blackrider> p4raw-id: //depot/perl@14966
* h2xs Ilya Zakharevich2002-02-031-26/+98
| | | | | Message-ID: <20020202005844.A12756@math.ohio-state.edu> p4raw-id: //depot/perl@14527
* h2xs brokenIlya Zakharevich2002-01-011-2/+3
| | | | | Message-Id: <20011231174855.A29128@math.ohio-state.edu> p4raw-id: //depot/perl@13995
* Add Devel::PPPort originally from Kenneth Albanowski,Jarkko Hietaniemi2001-11-211-133/+5
| | | | | | revigorated by Paul Marquess: gives h2xs a Perl version portability boost. p4raw-id: //depot/perl@13162
* RE: [PATCH h2xs] Use of static data in XS modulesPaul Marquess2001-10-301-0/+134
| | | | | | | Message-ID: <AIEAJICLCBDNAAOLLOKLMEJGDDAA.Paul_Marquess@Yahoo.co.uk> Add compat.h. p4raw-id: //depot/perl@12780
* Use of static data in XS modulesPaul Marquess2001-10-291-0/+35
| | | | | | | Message-ID: <AIEAJICLCBDNAAOLLOKLIEHNDDAA.Paul_Marquess@Yahoo.co.uk> with nits from Sarathy. p4raw-id: //depot/perl@12753