aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1995-02-02 00:10:50 +0000
committerStan Shebs <shebs@codesourcery.com>1995-02-02 00:10:50 +0000
commite3be225eb4b1f6317662be790f67ca8e291ef64f (patch)
tree68e78618758253b8e20ba9746bb4e5c4c94f4f6e /gdb/defs.h
parentadad95c056f31cd63195cb554ce084546771c9b9 (diff)
downloadgdb-e3be225eb4b1f6317662be790f67ca8e291ef64f.zip
gdb-e3be225eb4b1f6317662be790f67ca8e291ef64f.tar.gz
gdb-e3be225eb4b1f6317662be790f67ca8e291ef64f.tar.bz2
gcc -Wall lint.
* alpha-tdep.c (alpha_in_lenient_prologue): Comment out. (after_prologue): Remove unused local b. * procfs.c (thread.h): Include. (pr_flag_table, pr_why_table, faults_table, siginfo_table): Use nested braces in initializer. * top.c (initialize_targets, initialize_utils): Declare. (locate_arg, insert_args): Add parens around tested assignments. * remote-utils.c (sr_scan_args): Remove decl of strtol. * remote.c (thread.h): Include. (remote_wait): Remove unused local p2. * sparc-tdep.c (fill_gregset, fill_fpregset): Remove decls of registers array. defs.h (stdlib.h): Include. (exit, perror, atoi, qsort, memcpy, memcmp): Don't declare. (fclose, atof, malloc, realloc, free, strchr, strrchr, strstr, strtok, strerror): Don't specify parameter types in declaration.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h58
1 files changed, 14 insertions, 44 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 6f6e267..41eac44 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -553,8 +553,6 @@ extern void error_begin PARAMS ((void));
extern NORETURN void fatal () ATTR_NORETURN;
-extern NORETURN void exit PARAMS ((int)) ATTR_NORETURN; /* 4.10.4.3 */
-
extern NORETURN void nomem PARAMS ((long)) ATTR_NORETURN;
/* Reasons for calling return_to_top_level. */
@@ -593,62 +591,34 @@ extern char *getenv PARAMS ((const char *));
extern void psignal PARAMS ((unsigned, const char *));
#endif
-/* For now, we can't include <stdlib.h> because it conflicts with
- "../include/getopt.h". (FIXME)
-
- However, if a function is defined in the ANSI C standard and a prototype
- for that function is defined and visible in any header file in an ANSI
- conforming environment, then that prototype must match the definition in
- the ANSI standard. So we can just duplicate them here without conflict,
- since they must be the same in all conforming ANSI environments. If
- these cause problems, then the environment is not ANSI conformant. */
-
#ifdef __STDC__
#include <stddef.h>
+#include <stdlib.h>
#endif
-extern int fclose PARAMS ((GDB_FILE *stream)); /* 4.9.5.1 */
-
-extern void perror PARAMS ((const char *)); /* 4.9.10.4 */
+extern int fclose ();
-extern double atof PARAMS ((const char *nptr)); /* 4.10.1.1 */
-
-extern int atoi PARAMS ((const char *)); /* 4.10.1.2 */
+extern double atof ();
#ifndef MALLOC_INCOMPATIBLE
-extern PTR malloc PARAMS ((size_t size)); /* 4.10.3.3 */
-
-extern PTR realloc PARAMS ((void *ptr, size_t size)); /* 4.10.3.4 */
+extern PTR malloc ();
-extern void free PARAMS ((void *)); /* 4.10.3.2 */
+extern PTR realloc ();
-#endif /* MALLOC_INCOMPATIBLE */
+extern void free ();
-extern void
-qsort PARAMS ((void *base, size_t nmemb, /* 4.10.5.2 */
- size_t size,
- int (*compar)(const void *, const void *)));
+#endif /* MALLOC_INCOMPATIBLE */
-#ifndef MEM_FNS_DECLARED /* Some non-ANSI use void *, not char *. */
-extern PTR memcpy PARAMS ((void *, const void *, size_t)); /* 4.11.2.1 */
+extern char *strchr ();
-extern int memcmp PARAMS ((const void *, const void *, size_t)); /* 4.11.4.1 */
-#endif
-
-extern char *strchr PARAMS ((const char *, int)); /* 4.11.5.2 */
-
-extern char *strrchr PARAMS ((const char *, int)); /* 4.11.5.5 */
+extern char *strrchr ();
-extern char *strstr PARAMS ((const char *, const char *)); /* 4.11.5.7 */
+extern char *strstr ();
-extern char *strtok PARAMS ((char *, const char *)); /* 4.11.5.8 */
-
-#ifndef MEM_FNS_DECLARED /* Some non-ANSI use void *, not char *. */
-extern PTR memset PARAMS ((void *, int, size_t)); /* 4.11.6.1 */
-#endif
+extern char *strtok ();
-extern char *strerror PARAMS ((int)); /* 4.11.6.2 */
+extern char *strerror ();
/* Various possibilities for alloca. */
#ifndef alloca
@@ -861,7 +831,7 @@ extern void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer,
extern void (*print_frame_info_listing_hook) PARAMS ((struct symtab *s,
int line, int stopline,
int noerror));
-extern int (*query_hook) PARAMS ((void));
+extern int (*query_hook) PARAMS (());
extern void (*flush_hook) PARAMS ((FILE *stream));
extern void (*create_breakpoint_hook) PARAMS ((struct breakpoint *b));
extern void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt));
@@ -879,7 +849,7 @@ extern int (*target_wait_hook) PARAMS ((int pid,
extern void (*call_command_hook) PARAMS ((struct cmd_list_element *c,
char *cmd, int from_tty));
-extern NORETURN void (*error_hook) PARAMS ((void));
+extern NORETURN void (*error_hook) PARAMS (());
/* Inhibit window interface if non-zero. */