1*a9fa9459Szrj /* search-list.h 2*a9fa9459Szrj 3*a9fa9459Szrj Copyright (C) 2000-2016 Free Software Foundation, Inc. 4*a9fa9459Szrj 5*a9fa9459Szrj This file is part of GNU Binutils. 6*a9fa9459Szrj 7*a9fa9459Szrj This program is free software; you can redistribute it and/or modify 8*a9fa9459Szrj it under the terms of the GNU General Public License as published by 9*a9fa9459Szrj the Free Software Foundation; either version 3 of the License, or 10*a9fa9459Szrj (at your option) any later version. 11*a9fa9459Szrj 12*a9fa9459Szrj This program is distributed in the hope that it will be useful, 13*a9fa9459Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 14*a9fa9459Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15*a9fa9459Szrj GNU General Public License for more details. 16*a9fa9459Szrj 17*a9fa9459Szrj You should have received a copy of the GNU General Public License 18*a9fa9459Szrj along with this program; if not, write to the Free Software 19*a9fa9459Szrj Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 20*a9fa9459Szrj MA 02110-1301, USA. */ 21*a9fa9459Szrj 22*a9fa9459Szrj #ifndef search_list_h 23*a9fa9459Szrj #define search_list_h 24*a9fa9459Szrj 25*a9fa9459Szrj /* Non-Posix systems use semi-colon as directory separator in lists, 26*a9fa9459Szrj since colon is part of drive letter spec. */ 27*a9fa9459Szrj #if defined (__MSDOS__) || defined (_WIN32) 28*a9fa9459Szrj #define PATH_SEP_CHAR ';' 29*a9fa9459Szrj #else 30*a9fa9459Szrj #define PATH_SEP_CHAR ':' 31*a9fa9459Szrj #endif 32*a9fa9459Szrj 33*a9fa9459Szrj typedef struct search_list_elem 34*a9fa9459Szrj { 35*a9fa9459Szrj struct search_list_elem *next; 36*a9fa9459Szrj char path[1]; 37*a9fa9459Szrj } 38*a9fa9459Szrj Search_List_Elem; 39*a9fa9459Szrj 40*a9fa9459Szrj typedef struct 41*a9fa9459Szrj { 42*a9fa9459Szrj struct search_list_elem *head; 43*a9fa9459Szrj struct search_list_elem *tail; 44*a9fa9459Szrj } 45*a9fa9459Szrj Search_List; 46*a9fa9459Szrj 47*a9fa9459Szrj extern void search_list_append (Search_List *, const char *); 48*a9fa9459Szrj 49*a9fa9459Szrj #endif /* search_list_h */ 50