39 Commits

Author SHA1 Message Date
jwalden%mit.edu
6a5a8fdefa Bug 277122 - XUL preprocessor #else-type conditions are evaluated relative to the result of the previous condition only. Fixed the bug with the original patch (unknowing use of a Perl 5.8.0 feature) and relanding... r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@216735 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 04:13:00 +00:00
jwalden%mit.edu
c1d1dab503 Giving up on bug 277122 for now; will try again later.
git-svn-id: svn://10.0.0.236/trunk@216718 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-08 00:09:08 +00:00
jwalden%mit.edu
563073030c Attempt to fix build bustage on balsa-trunk; fix stupid Perl mistake in previous commit, still trying to fix bug 277122.
git-svn-id: svn://10.0.0.236/trunk@216708 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-07 23:04:12 +00:00
jwalden%mit.edu
b42f900ae9 Attempt to fix build bustage on balsa-trunk; if this fails will probably back out the patch for bug 277122.
git-svn-id: svn://10.0.0.236/trunk@216706 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-07 22:59:19 +00:00
jwalden%mit.edu
fbc7395155 Bug 277122 - XUL preprocessor #else-type conditions are evaluated relative to the result of the previous condition only (with one visible result being that #ifdef/#elifdef/#else/#endif doesn't work correctly if both the ifdef and elifdef conditions are true). This patch fixes conditions such that at most one section of any #if/#el*/#el*[...]/#endif set is ever included, regardless of the conditions used or types of the tests performed. r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@216701 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-07 21:49:21 +00:00
gavin%gavinsharp.com
72531d2ff4 Bug 338305: fix other cases of the preprocesor not handling dots in define names, r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@200403 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 03:05:06 +00:00
gavin%gavinsharp.com
cf0e349e9f Bug 338305: Debug builds fail for people whose username contains a period, r=bsmedberg
git-svn-id: svn://10.0.0.236/trunk@198714 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-31 01:29:39 +00:00
timeless%mozdev.org
af51e73d0e Bug 106386 Correct misspellings in source code
r=bernd rs=brendan


git-svn-id: svn://10.0.0.236/trunk@191013 18797224-902f-48f8-a5cc-f745e15eee43
2006-02-23 09:36:43 +00:00
bsmedberg%covad.net
e907b43768 Bug 305767 - Allow a different marker character for preprocessing CSS files - r=hixie+mconnor
git-svn-id: svn://10.0.0.236/trunk@179041 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 12:49:37 +00:00
cls%seawood.org
c7372e7160 Add support for using msys perl
Thanks to Howard Chu <hyc@symas.com> for the patch.
Bug #294122 r=cls a=shaver


git-svn-id: svn://10.0.0.236/trunk@173905 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 14:20:35 +00:00
brendan%mozilla.org
827fb0bf03 Use JS's //@line feature to restore source line number and filename (246286, r=Hixie, sr=bryner).
git-svn-id: svn://10.0.0.236/trunk@169639 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 07:38:17 +00:00
dbaron%dbaron.org
34c5f16325 Check in change for ActiveState perl, the equivalent of which has been on the creature tinderbox for ages. (See bug 276758.)
git-svn-id: svn://10.0.0.236/trunk@167185 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-02 19:06:22 +00:00
bsmedberg%covad.net
ea4cc1c123 Bug 260955 - add an #includesubst instruction r=Hixie
git-svn-id: svn://10.0.0.236/trunk@162949 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-29 13:10:50 +00:00
bryner%brianryner.com
ff0b73829c Fix problems with slash direction for activestate perl. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@162101 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 21:16:29 +00:00
bsmedberg%covad.net
5b210142ac Add an "emptyLines" filter to the preprocessor that strips empty lines from the output. r=Hixie (not part of the build)
git-svn-id: svn://10.0.0.236/trunk@160994 18797224-902f-48f8-a5cc-f745e15eee43
2004-08-19 13:48:49 +00:00
ian%hixie.ch
1570c45e76 Support a new --line-endings argument so that you can force a particular type of line endings.
git-svn-id: svn://10.0.0.236/trunk@151639 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-21 15:34:10 +00:00
ian%hixie.ch
b8d7e8844c 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.
git-svn-id: svn://10.0.0.236/trunk@151057 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-09 00:12:16 +00:00
ian%hixie.ch
5124c50966 Skip variables in -E that have weird names (environment shouldn't be able to cause fatal errors)
git-svn-id: svn://10.0.0.236/trunk@148364 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-24 22:17:32 +00:00
ian%hixie.ch
d6cda784f5 Add the -d option to the preprocessor (lists the dependencies given the current environment instead of actually preprocessing the file)
git-svn-id: svn://10.0.0.236/trunk@147899 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-12 22:15:23 +00:00
ian%hixie.ch
ad8ff46ac1 Make substitutions of unknown variables be fatal errors.
git-svn-id: svn://10.0.0.236/trunk@147466 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-30 22:31:15 +00:00
ian%hixie.ch
2e15917fdf Add support for the 'substitution' filter.
git-svn-id: svn://10.0.0.236/trunk@146515 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-02 15:53:55 +00:00
ian%hixie.ch
4b24071c2b Oops: the scoping of the relative directory path was not working on #include. (Not part of seamonkey build. r=bryner for firebird build.)
git-svn-id: svn://10.0.0.236/trunk@145950 18797224-902f-48f8-a5cc-f745e15eee43
2003-08-13 09:46:33 +00:00
ian%hixie.ch
b660a6ab48 Make this work on Mac as well, just in case.
git-svn-id: svn://10.0.0.236/trunk@131949 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 04:12:34 +00:00
ian%hixie.ch
285ed3f1b5 Preprocessor now requires version 0.8 of File::Spec
git-svn-id: svn://10.0.0.236/trunk@131948 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 04:09:03 +00:00
ian%hixie.ch
d9a7cf6783 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.
git-svn-id: svn://10.0.0.236/trunk@131941 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 01:22:06 +00:00
ian%hixie.ch
81b30d140c #include now expects unix-like paths on all platforms
git-svn-id: svn://10.0.0.236/trunk@131940 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-14 00:54:49 +00:00
ian%hixie.ch
2ebce3411b Make #error also expand variables, like #expand (makes things easier to debug)
git-svn-id: svn://10.0.0.236/trunk@131933 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-13 22:45:34 +00:00
ian%hixie.ch
e67eedebd9 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).
git-svn-id: svn://10.0.0.236/trunk@131929 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-13 22:37:17 +00:00
ian%hixie.ch
d1f2d0bed4 Trim spaces at start and end of lines. Also, turn the foreach loop around so it works on old perls.
git-svn-id: svn://10.0.0.236/trunk@131919 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-13 18:04:58 +00:00
ian%hixie.ch
27912c9e86 -F argument support to control filters from outside the file
git-svn-id: svn://10.0.0.236/trunk@131743 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 23:18:39 +00:00
ian%hixie.ch
a0ccced7e4 Filter support: spaces for collapsing sequences of spaces and slashslash for striping //-style comments.
git-svn-id: svn://10.0.0.236/trunk@131742 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 23:14:01 +00:00
ian%hixie.ch
8fbdfcf024 Support for #literal in case users need to output lines starting with a #
git-svn-id: svn://10.0.0.236/trunk@131724 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 21:56:47 +00:00
ian%hixie.ch
720c1ae7c6 Typo fix: CR is 0x0D not 0xDA... Ahem.
git-svn-id: svn://10.0.0.236/trunk@131721 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 21:44:08 +00:00
ian%hixie.ch
ad4167b122 Be slightly more verbose in error messages.
git-svn-id: svn://10.0.0.236/trunk@131720 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 21:42:44 +00:00
ian%hixie.ch
e534e68b6f Different approach to fixing newlines on cygwin.
git-svn-id: svn://10.0.0.236/trunk@131705 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 20:28:44 +00:00
ian%hixie.ch
4e043cca47 A hack for cygwin perl systems: newlines are DOS newlines, not unix newlines.
git-svn-id: svn://10.0.0.236/trunk@131704 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 20:12:13 +00:00
ian%hixie.ch
b892fab0b5 Make the preprocessor moderately cleverer about line endings.
git-svn-id: svn://10.0.0.236/trunk@131697 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 19:39:33 +00:00
ian%hixie.ch
059b4d3c37 Implement #elifdef, #elifndef, #elif. Only part of Phoenix build system.
git-svn-id: svn://10.0.0.236/trunk@131668 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 04:12:59 +00:00
bryner%netscape.com
c365cdbe32 Adding a preprocessor to be used for XUL files (bug 170737). This only affects phoenix builds. r=cls, a=asa
git-svn-id: svn://10.0.0.236/trunk@131662 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-10 03:11:27 +00:00