1999-05-03 15:29:11 +08:00
|
|
|
/* arsup.h - archive support header file
|
2001-03-13 14:43:59 +08:00
|
|
|
Copyright 1992, 1993, 1994, 1996 Free Software Foundation, Inc.
|
1999-05-03 15:29:11 +08: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 {
|
2002-05-20 00:17:54 +08:00
|
|
|
char *name;
|
1999-05-03 15:29:11 +08:00
|
|
|
struct list *next;
|
|
|
|
};
|
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void maybequit PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void prompt PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_clear PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_replace PARAMS ((struct list *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_delete PARAMS ((struct list *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_save PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_list PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_open PARAMS ((char *, int));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_directory PARAMS ((char *, struct list *, char *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_addmod PARAMS ((struct list *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_addlib PARAMS ((char *, struct list *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_end PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void ar_extract PARAMS ((struct list *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
bfd *open_inarch PARAMS ((const char *archive_filename, const char *));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
extern int yylex PARAMS ((void));
|
|
|
|
|
|
|
|
int yyparse PARAMS ((void));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
/* Functions from ar.c */
|
|
|
|
|
2001-12-04 22:29:11 +08:00
|
|
|
void extract_file PARAMS ((bfd * abfd));
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
extern int interactive;
|