1*1424dfb3Schristos /* arsup.h - archive support header file 2*1424dfb3Schristos Copyright (C) 1992-2020 Free Software Foundation, Inc. 3*1424dfb3Schristos 4*1424dfb3Schristos This file is part of GNU Binutils. 5*1424dfb3Schristos 6*1424dfb3Schristos This program is free software; you can redistribute it and/or modify 7*1424dfb3Schristos it under the terms of the GNU General Public License as published by 8*1424dfb3Schristos the Free Software Foundation; either version 3 of the License, or 9*1424dfb3Schristos (at your option) any later version. 10*1424dfb3Schristos 11*1424dfb3Schristos This program is distributed in the hope that it will be useful, 12*1424dfb3Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 13*1424dfb3Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*1424dfb3Schristos GNU General Public License for more details. 15*1424dfb3Schristos 16*1424dfb3Schristos You should have received a copy of the GNU General Public License 17*1424dfb3Schristos along with this program; if not, write to the Free Software 18*1424dfb3Schristos Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 19*1424dfb3Schristos MA 02110-1301, USA. */ 20*1424dfb3Schristos 21*1424dfb3Schristos struct list { 22*1424dfb3Schristos char *name; 23*1424dfb3Schristos struct list *next; 24*1424dfb3Schristos }; 25*1424dfb3Schristos 26*1424dfb3Schristos void maybequit (void); 27*1424dfb3Schristos 28*1424dfb3Schristos void prompt (void); 29*1424dfb3Schristos 30*1424dfb3Schristos void ar_clear (void); 31*1424dfb3Schristos 32*1424dfb3Schristos void ar_replace (struct list *); 33*1424dfb3Schristos 34*1424dfb3Schristos void ar_delete (struct list *); 35*1424dfb3Schristos 36*1424dfb3Schristos void ar_save (void); 37*1424dfb3Schristos 38*1424dfb3Schristos void ar_list (void); 39*1424dfb3Schristos 40*1424dfb3Schristos void ar_open (char *, int); 41*1424dfb3Schristos 42*1424dfb3Schristos void ar_directory (char *, struct list *, char *); 43*1424dfb3Schristos 44*1424dfb3Schristos void ar_addmod (struct list *); 45*1424dfb3Schristos 46*1424dfb3Schristos void ar_addlib (char *, struct list *); 47*1424dfb3Schristos 48*1424dfb3Schristos void ar_end (void); 49*1424dfb3Schristos 50*1424dfb3Schristos void ar_extract (struct list *); 51*1424dfb3Schristos 52*1424dfb3Schristos bfd *open_inarch (const char *archive_filename, const char *); 53*1424dfb3Schristos 54*1424dfb3Schristos extern int yylex (void); 55*1424dfb3Schristos 56*1424dfb3Schristos int yyparse (void); 57*1424dfb3Schristos 58*1424dfb3Schristos /* Functions from ar.c */ 59*1424dfb3Schristos 60*1424dfb3Schristos void extract_file (bfd * abfd); 61*1424dfb3Schristos 62*1424dfb3Schristos extern int interactive; 63