Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | #ifndef search_list_h |
2 | #define search_list_h | |
3 | ||
5af11cab AM |
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 | ||
252b5132 RH |
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 */ |