Closed Bug 820724 Opened 13 years ago Closed 13 years ago

Add support for more elaborate expressions for Preprocessor.py

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla20

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

I seem to remember there are some places where we're going through hoops around the lack of &&, || and defined() in Preprocessor.py. I happen to be hitting one more in bug 755724 so enough is enough.
This allows #if defined(FOO) || defined(BAR) && defined(BAZ)
Attachment #691246 - Flags: review?(ted)
Comment on attachment 691246 [details] [diff] [review] Add support for more elaborate expressions for Preprocessor.py Review of attachment 691246 [details] [diff] [review]: ----------------------------------------------------------------- I predict that we're going to want parentheses next. Thanks for fixing this. ::: config/Expression.py @@ +58,5 @@ > + return rv > + > + def __get_logical_and(self): > + """ > + Production: test ( '||' and_cond ) ? &&
Attachment #691246 - Flags: review?(ted) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: