Changeset 28859 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Dec 19, 2007, 1:10:16 AM (17 years ago)
Author:
[email protected]
Message:

Build fix for non-Mac platforms. Move NodeInfo into its own header so that the YYTYPE declaration in grammar.h is able to declare members of that type.

Location:
trunk/JavaScriptCore/kjs
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/grammar.y

    r28857 r28859  
    3333#include "internal.h"
    3434#include "CommonIdentifiers.h"
     35#include "NodeInfo.h"
    3536#include "Parser.h"
    3637#include <wtf/MathExtras.h>
     
    8586#endif
    8687
    87 template <typename T> struct NodeInfo {
    88     T m_node;
    89     ParserRefCountedData<DeclarationStacks::VarStack>* m_varDeclarations;
    90     ParserRefCountedData<DeclarationStacks::FunctionStack>* m_funcDeclarations;
    91 };
    92 
    9388template <typename T> NodeInfo<T> createNodeInfo(T node, ParserRefCountedData<DeclarationStacks::VarStack>* varDecls,
    9489                                                 ParserRefCountedData<DeclarationStacks::FunctionStack>* funcDecls)
     
    124119}
    125120
    126 typedef NodeInfo<StatementNode*> StatementNodeInfo;
    127 typedef NodeInfo<CaseBlockNode*> CaseBlockNodeInfo;
    128 typedef NodeInfo<CaseClauseNode*> CaseClauseNodeInfo;
    129 typedef NodeInfo<SourceElementsStub*> SourceElementsInfo;
    130 typedef NodeInfo<ClauseList> ClauseListInfo;
    131 typedef NodeInfo<VarDeclList> VarDeclListInfo;
    132121%}
    133122
  • trunk/JavaScriptCore/kjs/lexer.cpp

    r28771 r28859  
    2828#include "function.h"
    2929#include "nodes.h"
     30#include "NodeInfo.h"
    3031#include <ctype.h>
    3132#include <limits.h>
Note: See TracChangeset for help on using the changeset viewer.