Changeset 10182 in webkit for trunk/JavaScriptCore/kjs/internal.h
- Timestamp:
- Aug 14, 2005, 9:41:47 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.h
r10178 r10182 140 140 ~LabelStack(); 141 141 142 LabelStack(const LabelStack &other);143 LabelStack &operator=(const LabelStack &other);144 145 142 /** 146 143 * If id is not empty and is not in the stack already, puts it on top of … … 166 163 167 164 private: 165 LabelStack(const LabelStack &other); 166 LabelStack &operator=(const LabelStack &other); 167 168 168 struct StackElem { 169 169 Identifier id; … … 172 172 173 173 StackElem *tos; 174 void clear();175 174 int iterationDepth; 176 175 int switchDepth; … … 409 408 #endif 410 409 410 inline LabelStack::~LabelStack() 411 { 412 StackElem *prev; 413 for (StackElem *e = tos; e; e = prev) { 414 prev = e->prev; 415 delete e; 416 } 417 } 418 419 inline void LabelStack::pop() 420 { 421 if (StackElem *e = tos) { 422 tos = e->prev; 423 delete e; 424 } 425 } 426 411 427 } // namespace 412 428
Note:
See TracChangeset
for help on using the changeset viewer.