1999-05-03 15:29:11 +08:00
|
|
|
/* arsup.h - archive support header file
|
2024-01-04 19:52:08 +08:00
|
|
|
Copyright (C) 1992-2024 Free Software Foundation, Inc.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-07-06 00:54:46 +08:00
|
|
|
This file is part of GNU Binutils.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-07-06 00:54:46 +08:00
|
|
|
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 3 of the License, or
|
|
|
|
(at your option) any later version.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-07-06 00:54:46 +08:00
|
|
|
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.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2007-07-06 00:54:46 +08:00
|
|
|
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., 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA. */
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
struct list {
|
2002-05-20 00:17:54 +08:00
|
|
|
char *name;
|
1999-05-03 15:29:11 +08:00
|
|
|
struct list *next;
|
|
|
|
};
|
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void maybequit (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void prompt (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_clear (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_replace (struct list *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_delete (struct list *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_save (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_list (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_open (char *, int);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_directory (char *, struct list *, char *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_addmod (struct list *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_addlib (char *, struct list *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_end (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void ar_extract (struct list *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
bfd *open_inarch (const char *archive_filename, const char *);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
extern int yylex (void);
|
2001-12-04 22:29:11 +08:00
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
int yyparse (void);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
/* Functions from ar.c */
|
|
|
|
|
2003-09-14 20:20:17 +08:00
|
|
|
void extract_file (bfd * abfd);
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
extern int interactive;
|