Back to index

cell-binutils  2.17cvs20070401
search_list.h
Go to the documentation of this file.
00001 /* search-list.h
00002 
00003    Copyright 2000, 2001, 2004 Free Software Foundation, Inc.
00004 
00005 This file is part of GNU Binutils.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as published by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #ifndef search_list_h
00022 #define search_list_h
00023 
00024 /* Non-Posix systems use semi-colon as directory separator in lists,
00025    since colon is part of drive letter spec.  */
00026 #if defined (__MSDOS__) || defined (_WIN32)
00027 #define PATH_SEP_CHAR ';'
00028 #else
00029 #define PATH_SEP_CHAR ':'
00030 #endif
00031 
00032 typedef struct search_list_elem
00033   {
00034     struct search_list_elem *next;
00035     char path[1];
00036   }
00037 Search_List_Elem;
00038 
00039 typedef struct
00040   {
00041     struct search_list_elem *head;
00042     struct search_list_elem *tail;
00043   }
00044 Search_List;
00045 
00046 extern void search_list_append (Search_List *, const char *);
00047 
00048 #endif /* search_list_h */