summaryrefslogtreecommitdiff
path: root/Porting/expand-macro.pl
Commit message (Collapse)AuthorAgeFilesLines
* Fix various pod errors.Karl Williamson2016-03-111-2/+4
| | | | Mostly these are too long verbatim lines.
* Porting/expand-macro.pl needs to avoid "macro redefined" errors.Nicholas Clark2011-12-071-1/+3
| | | | | | | | | | In the C code that Porting/expand-macro.pl generates, it #includes the header containing the macro, to ensure that the macro definition is seen. This was skipped for perl.h and EXTERN.h, which it always automatically includes. However, perl.h includes embed.h and embedvar.h and then undefines and redefines macros in them. Hence if either header is included (again) the compiler warns about macro redefinitions. Hence ensure that neither is included a second time.
* Windows compatibility fixes for running expand-macro.pl:Max Maischein2010-12-111-5/+14
| | | | | a) Close filehandle to try.i so we can erase it b) The build process wants to be run from bleadperl/Win32
* Make Porting/expand-macro.pl use $Config{make} instead of hardcoded `make`Max Maischein2010-12-111-2/+5
|
* Make everything exec-bit.txt lists executableFlorian Ragwitz2010-08-191-0/+0
| | | | | | | All these files used to be executable in the release tarballs. Apparently things also work without that in the repository, but I'd rather add this possibly unecessary change to blead instead of breaking the upcoming release. This should probably be looked into again afterwards.
* Add an -X option to expand-macro.pl to show how XSUBs see the macro.Nicholas Clark2010-08-171-6/+18
| | | | The default is to show macros as seen by the core.
* expand-macro.pl was printing the header include to STDOUT by mistake.Nicholas Clark2009-12-211-1/+1
| | | | | | | This stopped it expanding macros in header files not directly or indirectly included via perl.h or EXTERN.h The bug was introduced with change 4784c5e80ccedd3734ce162e02ed1c7e25e60c01.
* Allow expand-macro.pl to expand macros in perl.h without pre-processor warnings.Nicholas Clark2009-06-181-1/+6
|
* Make expand-macro.pl scan config.h, if it exists.Nicholas Clark2009-06-181-0/+1
|
* Make expand-macro.pl accept macro expressions, i.e. macros withMarcus Holland-Moritz2008-10-121-27/+39
| | | | | | | | | | arguments. This makes it much more convenient to get expanded expressions that can be directly copied to a debugger. This is optional, so the original behaviour is maintained. Allow to read the macro name or expression from stdin, which can be useful for feeding it multi-line macro expressions. Use Pod::Usage and move the usage to POD section. p4raw-id: //depot/perl@34474
* Make sure expand-macro.pl also works for macros in headersMarcus Holland-Moritz2008-10-111-4/+5
| | | | | that are not included by perl.h (like regcomp.h). p4raw-id: //depot/perl@34473
* Take advantage of the fact that we can use indent as a stdin/stdoutNicholas Clark2008-02-221-4/+20
| | | | | | | filter to reduce its workload (and ours) by only sending it the 3 or so lines that we are interested in printing, not the preceding bucket loads. p4raw-id: //depot/perl@33353
* [patch] Porting/expand-macros.pl gets 'indent'ingJim Cromie2008-02-221-3/+36
| | | | | | Message-ID: <47AB9C4A.3080107@gmail.com> Date: Thu, 07 Feb 2008 17:03:22 -0700 p4raw-id: //depot/perl@33352
* Make sure we only find the macro we were looking for,Marcus Holland-Moritz2008-02-131-1/+1
| | | | | not something that only starts with the same string. p4raw-id: //depot/perl@33295
* Add a small program that gets the C pre-processor to expand the macroNicholas Clark2008-01-041-0/+58
passed on the command line. p4raw-id: //depot/perl@32833