1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2000-2014 Ericsson Telecom AB
3 // All rights reserved. This program and the accompanying materials
4 // are made available under the terms of the Eclipse Public License v1.0
5 // which accompanies this distribution, and is available at
6 // http://www.eclipse.org/legal/epl-v10.html
7 ///////////////////////////////////////////////////////////////////////////////
12 // =================================
14 // =================================
18 static Node
*list_head
= 0, *list_tail
= 0;
24 prev_node
= list_tail
;
26 if (list_tail
) list_tail
->next_node
= this;
27 else list_head
= this;
33 Node::Node(const Node
& p
)
36 prev_node
= list_tail
;
38 if (list_tail
) list_tail
->next_node
= this;
39 else list_head
= this;
49 if (prev_node
) prev_node
->next_node
= next_node
;
50 else list_head
= next_node
;
51 if (next_node
) next_node
->prev_node
= prev_node
;
52 else list_tail
= prev_node
;
56 void Node::chk_counter()
58 DEBUG(1, "Node::counter is %d", counter
);
60 WARNING("%d nodes were not deleted."
61 " Please send a bug report including"
62 " the current input file(s).", counter
);
64 for(Node
*iter
= list_head
; iter
; iter
= iter
->next_node
) {
65 fprintf(stderr
, "Undeleted node address: %p.\n", iter
);
This page took 0.03319 seconds and 5 git commands to generate.