1 /******************************************************************************
2 * Copyright (c) 2000-2016 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
12 ******************************************************************************/
17 // =================================
19 // =================================
23 static Node
*list_head
= 0, *list_tail
= 0;
29 prev_node
= list_tail
;
31 if (list_tail
) list_tail
->next_node
= this;
32 else list_head
= this;
38 Node::Node(const Node
& p
)
41 prev_node
= list_tail
;
43 if (list_tail
) list_tail
->next_node
= this;
44 else list_head
= this;
54 if (prev_node
) prev_node
->next_node
= next_node
;
55 else list_head
= next_node
;
56 if (next_node
) next_node
->prev_node
= prev_node
;
57 else list_tail
= prev_node
;
61 void Node::chk_counter()
63 DEBUG(1, "Node::counter is %d", counter
);
65 WARNING("%d nodes were not deleted."
66 " Please send a bug report including"
67 " the current input file(s).", counter
);
69 for(Node
*iter
= list_head
; iter
; iter
= iter
->next_node
) {
70 fprintf(stderr
, "Undeleted node address: %p.\n", iter
);
This page took 0.031782 seconds and 5 git commands to generate.