diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-05-02 04:28:42 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-05-02 04:28:42 +0000 |
commit | e1ce8aa5ed46310d716472d19d2e87da2833d599 (patch) | |
tree | cacaf1a83d8e388b049c2b3bc454f311dd34b6e2 /gdb/defs.h | |
parent | 04a0511c0af3d07f7b4587fbf4715d2b956f1fad (diff) | |
download | gdb-e1ce8aa5ed46310d716472d19d2e87da2833d599.zip gdb-e1ce8aa5ed46310d716472d19d2e87da2833d599.tar.gz gdb-e1ce8aa5ed46310d716472d19d2e87da2833d599.tar.bz2 |
The list of changes is too long to fit in the cvs log (since it truncates!).
Look at the ChangeLog for Apr 30 and May 1.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -118,6 +118,11 @@ extern void free_current_contents (); extern int myread (); extern int query (); extern int lines_to_list (); +extern void wrap_here ( +#ifdef __STDC__ + char * +#endif + ); extern void reinitialize_more_filter (); extern void fputs_filtered (); extern void puts_filtered (); @@ -136,6 +141,13 @@ extern void print_sys_errmsg (); extern void print_address_symbolic (); extern void print_address (); +/* From source.c */ +void mod_path ( +#ifdef __STDC__ + char *, char ** +#endif + ); + /* From readline (but not in any readline .h files). */ extern char *tilde_expand (); @@ -170,6 +182,15 @@ char *baud_rate; #define LONG_MAX 0x7fffffff #endif +#if !defined (INT_MAX) +#define INT_MAX 0x7fffffff +#endif + +#if !defined (INT_MIN) +/* Two's complement, 32 bit. */ +#define INT_MIN -0x80000000 +#endif + /* Just like CHAR_BIT in <limits.h> but describes the target machine. */ #if !defined (TARGET_CHAR_BIT) #define TARGET_CHAR_BIT 8 @@ -181,4 +202,18 @@ char *baud_rate; #define TARGET_LONG_LONG_BIT 64 #endif +/* Convert a LONGEST to an int. This is used in contexts (e.g. number + of arguments to a function, number in a value history, register + number, etc.) where the value must not be larger than can fit + in an int. */ +#if !defined (longest_to_int) +#if defined (LONG_LONG) +#define longest_to_int(x) (((x) > INT_MAX || (x) < INT_MIN) \ + ? error ("Value out of range.") : (int) (x)) +#else /* No LONG_LONG. */ +/* Assume sizeof (int) == sizeof (long). */ +#define longest_to_int(x) ((int) (x)) +#endif /* No LONG_LONG. */ +#endif /* No longest_to_int. */ + #endif /* no DEFS_H */ |