Commit 5a4917e5 by Jeff Law

[multiple changes]

Thu Feb 12 16:29:01 1998  Ian Lance Taylor  <ian@cygnus.com>
        * getopt.h: Update to latest FSF version.
Fri Nov  7 10:34:09 1997  Rob Savoye  <rob@darkstar.cygnus.com>
        * libiberty.h: Add extern "C" { so it can be used with C++
        programs.
Thu Aug 28 19:41:42 1997  Andrew Cagney  <cagney@b1.cygnus.com>
        * libiberty.h (dupargv): Add prototype.
Bring over from devo.

From-SVN: r19687
parent 0aadd657
Tue Feb 24 13:05:02 1998 Doug Evans <devans@canuck.cygnus.com>
* dis-asm.h (disassemble_info): Member `symbol' renamed to `symbols'
and made an "asymbol **". New member num_symbols.
(INIT_DISASSEMBLE_INFO_NO_ARCH): Update.
Tue Feb 17 12:32:18 1998 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.h (sim_fetch_register, sim_store_register): Add
register length parameter. Functions return actual length of
register.
Thu Feb 12 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
* getopt.h: Update to latest FSF version.
Wed Feb 11 16:56:06 1998 Doug Evans <devans@canuck.cygnus.com>
* symcat.h: New file.
Mon Feb 2 17:13:31 1998 Steve Haworth <steve@pm.cse.rmit.EDU.AU>
* dis-asm.h (print_insn_tic30): Declare.
Thu Jan 22 16:23:59 1998 Fred Fish <fnf@cygnus.com>
* dis-asm.h: Add flag INSN_HAS_RELOC to tell disassembly
function there is a reloc on this line.
Mon Dec 8 11:22:23 1997 Nick Clifton <nickc@cygnus.com>
* dis-asm.h: Remove prototype of disasm_symaddr() as this function
no longer exists.
Tue Dec 2 10:20:53 1997 Nick Clifton <nickc@cygnus.com>
* dis-asm.h (disasm_symaddr): New prototype.
Mon Dec 1 20:24:18 1997 J"orn Rennecke <amylaar@cygnus.co.uk>
* coff/sh.h (R_SH_SWITCH8): New.
Mon Dec 1 11:29:35 1997 Doug Evans <devans@canuck.cygnus.com>
* callback.h (CB_SYSCALL): Comment out arg names in prototypes.
Wed Nov 26 16:47:58 1997 Michael Meissner <meissner@cygnus.com>
* callback.h (CB_SYSCALL): Consistantly use names for prototype
arguments.
Wed Nov 26 11:39:30 1997 Doug Evans <devans@canuck.cygnus.com>
* callback.h (CB_SYSCALL): Change byte count arguments to
{read,write}_mem to `int'. New member `magic'.
(CB_SYSCALL_MAGIC,CB_SYSCALL_INIT): New macros.
Tue Nov 25 01:35:52 1997 Doug Evans <devans@seba.cygnus.com>
* callback.h (struct stat): Move forward decl up.
(host_callback): Pass stat struct pointer to stat,fstat.
(CB_SYS_nnn): Reorganize.
(CB_SYSCALL): New members p1,p2.
(cb_host_to_target_stat): Delete fourth arg.
Sat Nov 22 23:34:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.h (sim_stop_reason): Clarify sim_signalled SIGRC
argument.
Mon Nov 17 14:00:51 1997 Doug Evans <devans@seba.cygnus.com>
* callback.h (CB_TARGET_DEFS_MAP): Renamed from target_defs_map.
(host_callback): Add stat, fstat, syscall_map, errno_map, open_map,
signal_map, stat_map.
(errn_map,open_map): Renamed to cb_init_foo_map.
(cb_host_to_target_errno,cb_target_to_host_open): Renamed from
host_to_target_errno,target_to_host_open.
(cb_read_target_syscall_maps): Add prototype.
(cb_target_to_host_syscall): Likewise.
(cb_host_to_target_stat): Likewise.
(cb_syscall): Likewise.
(CB_SYS_{exit,open,close,read,write,lseek,unlink,getpid,kill,fstat,
argvlen,argv,chdir,stat,chmod,utime,time}): Define.
(CB_SYSCALL): New type.
(CB_RC): New enum.
Fri Nov 7 10:34:09 1997 Rob Savoye <rob@darkstar.cygnus.com>
* libiberty.h: Add extern "C" { so it can be used with C++
programs.
* remote-sim.h: Add extern "C" { so it can be used with C++
programs.
Tue Oct 14 16:07:51 1997 Nick Clifton <nickc@cygnus.com>
* dis-asm.h (struct disassemble_info): New field
'symbol_at_address_func'.
(INIT_DISASSEMBLE_INFO_NO_ARCH): Initialise new field with
generic_symbol_at_address.
Mon Oct 13 10:17:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.h: Clarify sim_read, sim_write MEM argument.
Wed Sep 24 18:03:10 1997 Stu Grossman <grossman@babylon-5.cygnus.com>
* remote-sim.h (SIM_RC): Add a bunch of new return codes for
breakpoint stuff.
* Add functions to tell the simulator to set/clear/enable/disable
intrinsic breakpoints.
Thu Aug 28 19:41:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
* libiberty.h (dupargv): Add prototype.
Tue Aug 26 12:25:49 1997 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.h (sim_create_inferior): Add ABFD arg. Document.
Mon Aug 25 10:50:51 1997 Andrew Cagney <cagney@b1.cygnus.com>
* remote-sim.h (sim_open): Add ABFD arg. Document.
Fri Aug 8 16:43:56 1997 Doug Evans <dje@canuck.cygnus.com> Fri Aug 8 16:43:56 1997 Doug Evans <dje@canuck.cygnus.com>
* dis-asm.h (arc_get_disassembler): Declare. * dis-asm.h (arc_get_disassembler): Declare.
...@@ -206,6 +330,10 @@ Mon Sep 30 13:56:11 1996 Fred Fish <fnf@cygnus.com> ...@@ -206,6 +330,10 @@ Mon Sep 30 13:56:11 1996 Fred Fish <fnf@cygnus.com>
* libiberty.h: Remove #ifndef PRIVATE_XMALLOC. * libiberty.h: Remove #ifndef PRIVATE_XMALLOC.
Sat Aug 31 13:27:06 1996 Jeffrey A Law (law@cygnus.com)
* dis-asm.h (print_insn_v850): Declare.
Tue Aug 13 16:10:30 1996 Stu Grossman (grossman@critters.cygnus.com) Tue Aug 13 16:10:30 1996 Stu Grossman (grossman@critters.cygnus.com)
* obstack.h: Change bcopy to memcpy. Works better on Posix * obstack.h: Change bcopy to memcpy. Works better on Posix
......
/* Declarations for getopt. /* Declarations for getopt.
Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc. Copyright (C) 1989,90,91,92,93,94,96,97 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or NOTE: The canonical source of this file is maintained with the GNU C Library.
modify it under the terms of the GNU Library General Public License Bugs can be reported to bug-glibc@prep.ai.mit.edu.
as published by the Free Software Foundation; either version 2, or
(at your option) any later version. 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, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Library General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU Library General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
#ifndef _GETOPT_H #ifndef _GETOPT_H
#define _GETOPT_H 1 #define _GETOPT_H 1
...@@ -36,7 +40,7 @@ extern char *optarg; ...@@ -36,7 +40,7 @@ extern char *optarg;
On entry to `getopt', zero means this is the first call; initialize. On entry to `getopt', zero means this is the first call; initialize.
When `getopt' returns EOF, this is the index of the first of the When `getopt' returns -1, this is the index of the first of the
non-option elements that the caller should itself scan. non-option elements that the caller should itself scan.
Otherwise, `optind' communicates from one call to the next Otherwise, `optind' communicates from one call to the next
...@@ -76,7 +80,7 @@ extern int optopt; ...@@ -76,7 +80,7 @@ extern int optopt;
struct option struct option
{ {
#if __STDC__ #if defined (__STDC__) && __STDC__
const char *name; const char *name;
#else #else
char *name; char *name;
...@@ -94,15 +98,15 @@ struct option ...@@ -94,15 +98,15 @@ struct option
#define required_argument 1 #define required_argument 1
#define optional_argument 2 #define optional_argument 2
#if __STDC__ #if defined (__STDC__) && __STDC__
#if defined(__GNU_LIBRARY__) #ifdef __GNU_LIBRARY__
/* Many other libraries have conflicting prototypes for getopt, with /* Many other libraries have conflicting prototypes for getopt, with
differences in the consts, in stdlib.h. To avoid compilation differences in the consts, in stdlib.h. To avoid compilation
errors, only prototype getopt for the GNU C library. */ errors, only prototype getopt for the GNU C library. */
extern int getopt (int argc, char *const *argv, const char *shortopts); extern int getopt (int argc, char *const *argv, const char *shortopts);
#else /* not __GNU_LIBRARY__ */ #else /* not __GNU_LIBRARY__ */
extern int getopt (); extern int getopt ();
#endif /* not __GNU_LIBRARY__ */ #endif /* __GNU_LIBRARY__ */
extern int getopt_long (int argc, char *const *argv, const char *shortopts, extern int getopt_long (int argc, char *const *argv, const char *shortopts,
const struct option *longopts, int *longind); const struct option *longopts, int *longind);
extern int getopt_long_only (int argc, char *const *argv, extern int getopt_long_only (int argc, char *const *argv,
...@@ -120,10 +124,10 @@ extern int getopt_long (); ...@@ -120,10 +124,10 @@ extern int getopt_long ();
extern int getopt_long_only (); extern int getopt_long_only ();
extern int _getopt_internal (); extern int _getopt_internal ();
#endif /* not __STDC__ */ #endif /* __STDC__ */
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* _GETOPT_H */ #endif /* getopt.h */
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
#ifndef LIBIBERTY_H #ifndef LIBIBERTY_H
#define LIBIBERTY_H #define LIBIBERTY_H
#ifdef __cplusplus
extern "C" {
#endif
#include "ansidecl.h" #include "ansidecl.h"
/* Build an argument vector from a string. Allocates memory using /* Build an argument vector from a string. Allocates memory using
...@@ -21,6 +25,12 @@ extern char **buildargv PARAMS ((char *)); ...@@ -21,6 +25,12 @@ extern char **buildargv PARAMS ((char *));
extern void freeargv PARAMS ((char **)); extern void freeargv PARAMS ((char **));
/* Duplicate an argument vector. Allocates memory using malloc. Use
freeargv to free the vector. */
extern char **dupargv PARAMS ((char **));
/* Return the last component of a path name. Note that we can't use a /* Return the last component of a path name. Note that we can't use a
prototype here because the parameter is declared inconsistently prototype here because the parameter is declared inconsistently
across different systems, sometimes as "char *" and sometimes as across different systems, sometimes as "char *" and sometimes as
...@@ -158,4 +168,9 @@ extern int pexecute PARAMS ((const char *, char * const *, const char *, ...@@ -158,4 +168,9 @@ extern int pexecute PARAMS ((const char *, char * const *, const char *,
extern int pwait PARAMS ((int, int *, int)); extern int pwait PARAMS ((int, int *, int));
#ifdef __cplusplus
}
#endif
#endif /* ! defined (LIBIBERTY_H) */ #endif /* ! defined (LIBIBERTY_H) */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment