Changeset 47264 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Aug 13, 2009, 6:11:38 PM (16 years ago)
Author:
Darin Adler
Message:

Fix Tiger build.

Patch by Darin Adler <Darin Adler> on 2009-08-13

  • parser/Grammar.y: Use a template function so we can compile

setStatementLocation even if it comes before YYLTYPE is defined.

Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r47263 r47264  
     12009-08-13  Darin Adler  <[email protected]>
     2
     3        Fix Tiger build.
     4
     5        * parser/Grammar.y: Use a template function so we can compile
     6        setStatementLocation even if it comes before YYLTYPE is defined.
     7
    182009-08-13  Darin Adler  <[email protected]>
    29
  • trunk/JavaScriptCore/parser/Grammar.y

    r47263 r47264  
    179179%{
    180180
    181 static inline void setStatementLocation(StatementNode* statement, const YYLTYPE& start, const YYLTYPE& end)
     181template <typename T> inline void setStatementLocation(StatementNode* statement, const T& start, const T& end)
    182182{
    183183    statement->setLoc(start.first_line, end.last_line);
Note: See TracChangeset for help on using the changeset viewer.