Ignore:
Timestamp:
May 21, 2008, 6:20:45 PM (17 years ago)
Author:
[email protected]
Message:

Merge squirrelfish branch into trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/scope_chain.cpp

    r29068 r33979  
    11/*
    22 *  This file is part of the KDE libraries
    3  *  Copyright (C) 2003, 2006 Apple Inc.
     3 *  Copyright (C) 2003, 2006, 2008 Apple Inc.
    44 *
    55 *  This library is free software; you can redistribute it and/or
     
    2222#include "config.h"
    2323#include "scope_chain.h"
     24
    2425#include "PropertyNameArray.h"
     26#include "object.h"
    2527#include <stdio.h>
    26 #include "object.h"
    2728
    2829namespace KJS {
    2930
    30 void ScopeChain::push(const ScopeChain &c)
    31 {
    32     ScopeChainNode **tail = &_node;
    33     for (ScopeChainNode *n = c._node; n; n = n->next) {
    34         ScopeChainNode *newNode = new ScopeChainNode(*tail, n->object);
    35         *tail = newNode;
    36         tail = &newNode->next;
    37     }
    38 }
    39 
    4031#ifndef NDEBUG
    4132
    42 void ScopeChain::print()
     33void ScopeChainNode::print() const
    4334{
    4435    ScopeChainIterator scopeEnd = end();
Note: See TracChangeset for help on using the changeset viewer.