2000-07-26 04:22:40 +04:00
|
|
|
/* arsup.h - archive support header file
|
2001-08-14 06:47:42 +04:00
|
|
|
Copyright 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
|
2000-07-26 04:22:40 +04:00
|
|
|
|
|
|
|
This file is part of GNU Binutils.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|
|
|
|
|
|
|
struct list {
|
2003-03-01 13:06:40 +03:00
|
|
|
char *name;
|
2000-07-26 04:22:40 +04:00
|
|
|
struct list *next;
|
|
|
|
};
|
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void maybequit PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void prompt PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_clear PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_replace PARAMS ((struct list *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_delete PARAMS ((struct list *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_save PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_list PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_open PARAMS ((char *, int));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_directory PARAMS ((char *, struct list *, char *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_addmod PARAMS ((struct list *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_addlib PARAMS ((char *, struct list *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_end PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void ar_extract PARAMS ((struct list *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
bfd *open_inarch PARAMS ((const char *archive_filename, const char *));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
extern int yylex PARAMS ((void));
|
|
|
|
|
|
|
|
int yyparse PARAMS ((void));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
|
|
|
/* Functions from ar.c */
|
|
|
|
|
2003-03-01 13:06:40 +03:00
|
|
|
void extract_file PARAMS ((bfd * abfd));
|
2000-07-26 04:22:40 +04:00
|
|
|
|
|
|
|
extern int interactive;
|