]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/search_list.h
This commit was generated by cvs2svn to track changes on a CVS vendor
[thirdparty/binutils-gdb.git] / gprof / search_list.h
1 #ifndef search_list_h
2 #define search_list_h
3
4 /* Non-Posix systems use semi-colon as directory separator in lists,
5 since colon is part of drive letter spec. */
6 #if defined (__MSDOS__) || defined (_WIN32)
7 #define PATH_SEP_CHAR ';'
8 #else
9 #define PATH_SEP_CHAR ':'
10 #endif
11
12 typedef struct search_list_elem
13 {
14 struct search_list_elem *next;
15 char path[1];
16 }
17 Search_List_Elem;
18
19 typedef struct
20 {
21 struct search_list_elem *head;
22 struct search_list_elem *tail;
23 }
24 Search_List;
25
26 extern void search_list_append PARAMS ((Search_List * list, const char *paths));
27
28 #endif /* search_list_h */