Skip to content

Commit c073fbe

Browse files
author
Nicholas Reed
committed
combine multiple definitions of LISTempty
1 parent ebc7f58 commit c073fbe

File tree

4 files changed

+12
-22
lines changed

4 files changed

+12
-22
lines changed

include/express/linklist.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,6 @@ extern SCL_EXPRESS_EXPORT Generic LISTget_second PROTO( ( Linked_List ) );
145145
extern SCL_EXPRESS_EXPORT Generic LISTget_nth PROTO( ( Linked_List, int ) );
146146
extern SCL_EXPRESS_EXPORT void LISTfree PROTO( ( Linked_List ) );
147147
extern SCL_EXPRESS_EXPORT int LISTget_length PROTO( ( Linked_List ) );
148+
extern SCL_EXPRESS_EXPORT bool LISTempty( Linked_List list );
148149

149150
#endif /*LINKED_LIST_H*/

src/express/linklist.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,14 @@ LISTget_length( Linked_List list ) {
229229
}
230230
return count;
231231
}
232+
233+
234+
bool LISTempty( Linked_List list ) {
235+
if( !list ) {
236+
return true;
237+
}
238+
if( list->mark->next == list->mark ) {
239+
return true;
240+
}
241+
return false;
242+
}

src/fedex_plus/classes.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ int isAggregateType( const Type t );
3434
int isAggregate( Variable a );
3535
Variable VARis_type_shifter( Variable a );
3636

37-
static_inline bool LISTempty( Linked_List list ) {
38-
if( !list ) {
39-
return true;
40-
}
41-
if( list->mark->next == list->mark ) {
42-
return true;
43-
}
44-
return false;
45-
}
46-
4737
int multiple_inheritance = 1;
4838
int print_logging = 0;
4939
int old_accessors = 0;

src/fedex_plus/classes_misc.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,6 @@ extern char * scl_version();
2424
extern int multiple_inheritance;
2525
/*extern int corba_binding; */
2626

27-
static_inline
28-
bool
29-
LISTempty( Linked_List list ) {
30-
if( !list ) {
31-
return true;
32-
}
33-
if( list->mark->next == list->mark ) {
34-
return true;
35-
}
36-
return false;
37-
}
38-
3927
/******************************************************************
4028
** The following functions will be used ***
4129
*** through out the the program fedex_plus ***/

0 commit comments

Comments
 (0)