Commit Graph

27 Commits

Author SHA1 Message Date
bsmedberg%covad.net
5d869e9768 Bug 260955 - add an #includesubst instruction r=Hixie 2004-09-29 13:10:50 +00:00
bryner%brianryner.com
70f87d9f57 Fix problems with slash direction for activestate perl. r=dbaron. 2004-09-10 21:16:29 +00:00
bsmedberg%covad.net
d606adb297 Add an "emptyLines" filter to the preprocessor that strips empty lines from the output. r=Hixie (not part of the build) 2004-08-19 13:48:49 +00:00
ian%hixie.ch
5147d5c69f Support a new --line-endings argument so that you can force a particular type of line endings. 2004-01-21 15:34:10 +00:00
ian%hixie.ch
551ea5ea7e Stop requiring File::Spec 0.8 for now, by copying the relevant functions into this file. Patch originally by Jon Rekai, edited by me, r+sr=bryner. Bug 227078. 2004-01-09 00:12:16 +00:00
ian%hixie.ch
472fb14554 Skip variables in -E that have weird names (environment shouldn't be able to cause fatal errors) 2003-10-24 22:17:32 +00:00
ian%hixie.ch
9606e7f3ca Add the -d option to the preprocessor (lists the dependencies given the current environment instead of actually preprocessing the file) 2003-10-12 22:15:23 +00:00
ian%hixie.ch
aa614cd09b Make substitutions of unknown variables be fatal errors. 2003-09-30 22:31:15 +00:00
ian%hixie.ch
33203eae13 Add support for the 'substitution' filter. 2003-09-02 15:53:55 +00:00
ian%hixie.ch
d699884f7e Oops: the scoping of the relative directory path was not working on #include. (Not part of seamonkey build. r=bryner for firebird build.) 2003-08-13 09:46:33 +00:00
ian%hixie.ch
0cf75e8941 Make this work on Mac as well, just in case. 2002-10-14 04:12:34 +00:00
ian%hixie.ch
2f4d25555c Preprocessor now requires version 0.8 of File::Spec 2002-10-14 04:09:03 +00:00
ian%hixie.ch
9b156f0f7b Change the path handling code to use File::Spec instead of rolling my own. Thanks to bbaetz for the suggestion. This should mean it works on more platforms. 2002-10-14 01:22:06 +00:00
ian%hixie.ch
05be4136df #include now expects unix-like paths on all platforms 2002-10-14 00:54:49 +00:00
ian%hixie.ch
1f7bf03b3e Make #error also expand variables, like #expand (makes things easier to debug) 2002-10-13 22:45:34 +00:00
ian%hixie.ch
42abcaaba1 Make #includes be relative to the path of the current file. This requires platform-specific knowledge, and so will most likely break builds that are on platforms other than linux, cygwin, MacOS, and MSWin32. Contact me on IRC and I'll add the relevant code to make it work on your platform too. Also includes a fix for the spaces filter (it was eating end of lines). 2002-10-13 22:37:17 +00:00
ian%hixie.ch
9caf7d8b40 Trim spaces at start and end of lines. Also, turn the foreach loop around so it works on old perls. 2002-10-13 18:04:58 +00:00
ian%hixie.ch
806bb70506 -F argument support to control filters from outside the file 2002-10-10 23:18:39 +00:00
ian%hixie.ch
6bc835d192 Filter support: spaces for collapsing sequences of spaces and slashslash for striping //-style comments. 2002-10-10 23:14:01 +00:00
ian%hixie.ch
8f16d57d81 Support for #literal in case users need to output lines starting with a # 2002-10-10 21:56:47 +00:00
ian%hixie.ch
243a713ab7 Typo fix: CR is 0x0D not 0xDA... Ahem. 2002-10-10 21:44:08 +00:00
ian%hixie.ch
7aecaf01d1 Be slightly more verbose in error messages. 2002-10-10 21:42:44 +00:00
ian%hixie.ch
3afabb1148 Different approach to fixing newlines on cygwin. 2002-10-10 20:28:44 +00:00
ian%hixie.ch
5cc6e2d88d A hack for cygwin perl systems: newlines are DOS newlines, not unix newlines. 2002-10-10 20:12:13 +00:00
ian%hixie.ch
8b4d16af47 Make the preprocessor moderately cleverer about line endings. 2002-10-10 19:39:33 +00:00
ian%hixie.ch
89ea3e3dc2 Implement #elifdef, #elifndef, #elif. Only part of Phoenix build system. 2002-10-10 04:12:59 +00:00
bryner%netscape.com
18ab40895c Adding a preprocessor to be used for XUL files (bug 170737). This only affects phoenix builds. r=cls, a=asa 2002-10-10 03:11:27 +00:00