File tree Expand file tree Collapse file tree 2 files changed +0
-17
lines changed
Expand file tree Collapse file tree 2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ struct Linked_List_ {
7373extern SC_EXPRESS_EXPORT Error ERROR_empty_list ;
7474extern SC_EXPRESS_EXPORT struct freelist_head LINK_fl ;
7575extern SC_EXPRESS_EXPORT struct freelist_head LIST_fl ;
76- extern SC_EXPRESS_EXPORT Linked_List LINK__l ; /* for LISTcreate_with macro - ugh */
7776
7877/******************************/
7978/* macro function definitions */
@@ -84,11 +83,6 @@ extern SC_EXPRESS_EXPORT Linked_List LINK__l; /* for LISTcreate_with macro - ug
8483#define LIST_new () (struct Linked_List_ *)MEM_new(&LIST_fl)
8584#define LIST_destroy (x ) MEM_destroy(&LIST_fl,(Freelist *)(Generic)x)
8685
87- /** following could be optimized */
88- #define LISTcreate_with (x ) (LINK__l = LISTcreate()),\
89- LISTadd(LINK__l,x),\
90- LINK_l)
91-
9286/** accessing links */
9387#define LINKdata (link ) (link)->data
9488#define LINKnext (link ) (link)->next
Original file line number Diff line number Diff line change 2727Error ERROR_empty_list = ERROR_none ;
2828struct freelist_head LINK_fl ;
2929struct freelist_head LIST_fl ;
30- Linked_List LINK__l ; /* for LISTcreate_with macro - ugh */
3130
3231void
3332LISTinitialize ( void ) {
@@ -51,16 +50,6 @@ LISTcreate() {
5150 return ( list );
5251}
5352
54- #if 0
55- /* could optimize this function! */
56- Linked_List
57- LISTcreate_with ( Generic g ) {
58- Linked_List dst = LISTcreate ();
59- LISTadd ( dst , g );
60- return ( dst );
61- }
62- #endif
63-
6453Linked_List
6554LISTcopy ( Linked_List src ) {
6655 Linked_List dst = LISTcreate ();
You can’t perform that action at this time.
0 commit comments