[webkit-changes] cvs commit: JavaScriptCore/kjs grammar_types.h
Maciej
mjs at opensource.apple.com
Thu Aug 11 13:57:05 PDT 2005
mjs 05/08/11 13:57:04
Modified: . ChangeLog
Added: kjs grammar_types.h
Log:
- added missing file from earlier checkin
* kjs/grammar_types.h: Added.
(KJS::makeNodePair):
(KJS::makeNodeWithIdent):
Revision Changes Path
1.788 +8 -0 JavaScriptCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/JavaScriptCore/ChangeLog,v
retrieving revision 1.787
retrieving revision 1.788
diff -u -r1.787 -r1.788
--- ChangeLog 11 Aug 2005 10:57:19 -0000 1.787
+++ ChangeLog 11 Aug 2005 20:57:04 -0000 1.788
@@ -1,5 +1,13 @@
2005-08-11 Maciej Stachowiak <mjs at apple.com>
+ - added missing file from earlier checkin
+
+ * kjs/grammar_types.h: Added.
+ (KJS::makeNodePair):
+ (KJS::makeNodeWithIdent):
+
+2005-08-11 Maciej Stachowiak <mjs at apple.com>
+
Reviewed by Geoff.
* kjs/date_object.cpp:
1.1 JavaScriptCore/kjs/grammar_types.h
Index: grammar_types.h
===================================================================
// -*- c-basic-offset: 4 -*-
/*
* This file is part of the KDE libraries
* Copyright (C) 2005 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*
*/
#ifndef GRAMMAR_TYPES
#define GRAMMAR_TYPES
namespace KJS {
class Node;
class Identifier;
struct NodePair {
Node *first;
Node *second;
};
static inline NodePair makeNodePair(Node *f, Node *s)
{
NodePair np;
np.first = f;
np.second = s;
return np;
}
struct NodeWithIdent {
Node *node;
Identifier *ident;
};
static inline NodeWithIdent makeNodeWithIdent(Node *n, Identifier *i)
{
NodeWithIdent ni;
ni.node = n;
ni.ident = i;
return ni;
}
} // namespace
#endif // GRAMMAR_TYPES
More information about the webkit-changes
mailing list