old-cross-binutils/gprof/search_list.h

29 lines
601 B
C
Raw Normal View History

1999-05-03 07:29:11 +00:00
#ifndef search_list_h
#define search_list_h
/* Non-Posix systems use semi-colon as directory separator in lists,
since colon is part of drive letter spec. */
#if defined (__MSDOS__) || defined (_WIN32)
#define PATH_SEP_CHAR ';'
#else
#define PATH_SEP_CHAR ':'
#endif
1999-05-03 07:29:11 +00:00
typedef struct search_list_elem
{
struct search_list_elem *next;
char path[1];
}
Search_List_Elem;
typedef struct
{
struct search_list_elem *head;
struct search_list_elem *tail;
}
Search_List;
extern void search_list_append PARAMS ((Search_List * list, const char *paths));
#endif /* search_list_h */