From 287e3058087929647df7eb001a99ed281d5d719d Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Tue, 11 Apr 2000 19:41:11 +0000 Subject: [PATCH] 2000-04-11 Fernando Nasser * wrapper.h: Remove definitions of internal functions. * wrapper.c: Remove definitions of exported functions (which are already in wrapper.h) and make static all internal wrap_* functions. --- gdb/ChangeLog | 6 ++++++ gdb/wrapper.c | 36 ++++++++++++++---------------------- gdb/wrapper.h | 6 ------ 3 files changed, 20 insertions(+), 28 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b813d766093..fe7f09ab8c1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-04-11 Fernando Nasser + + * wrapper.h: Remove definitions of internal functions. + * wrapper.c: Remove definitions of exported functions (which are + already in wrapper.h) and make static all internal wrap_* functions. + Mon Apr 10 21:58:36 2000 Andrew Cagney * acconfig.h (USE_INCLUDED_REGEX): Add. diff --git a/gdb/wrapper.c b/gdb/wrapper.c index 7ee26a7d460..f7b14fca005 100644 --- a/gdb/wrapper.c +++ b/gdb/wrapper.c @@ -42,27 +42,19 @@ struct gdb_wrapper_arguments } args[10]; }; -int gdb_parse_exp_1 PARAMS ((char **, struct block *, - int, struct expression **)); -int wrap_parse_exp_1 PARAMS ((char *)); +static int wrap_parse_exp_1 PARAMS ((char *)); -int gdb_evaluate_expression PARAMS ((struct expression *, value_ptr *)); -int wrap_evaluate_expression PARAMS ((char *)); +static int wrap_evaluate_expression PARAMS ((char *)); -int gdb_value_fetch_lazy PARAMS ((value_ptr)); -int wrap_value_fetch_lazy PARAMS ((char *)); +static int wrap_value_fetch_lazy PARAMS ((char *)); -int gdb_value_equal PARAMS ((value_ptr, value_ptr, int *)); -int wrap_value_equal PARAMS ((char *)); +static int wrap_value_equal PARAMS ((char *)); -int gdb_value_subscript PARAMS ((value_ptr, value_ptr, value_ptr * rval)); -int wrap_value_subscript PARAMS ((char *)); +static int wrap_value_subscript PARAMS ((char *)); -int gdb_value_ind PARAMS ((value_ptr val, value_ptr * rval)); -int wrap_value_ind PARAMS ((char *opaque_arg)); +static int wrap_value_ind PARAMS ((char *opaque_arg)); -int gdb_parse_and_eval_type (char *, int, struct type **); -int wrap_parse_and_eval_type (char *); +static int wrap_parse_and_eval_type (char *); int gdb_parse_exp_1 (stringptr, block, comma, expression) @@ -88,7 +80,7 @@ gdb_parse_exp_1 (stringptr, block, comma, expression) } -int +static int wrap_parse_exp_1 (argptr) char *argptr; { @@ -119,7 +111,7 @@ gdb_evaluate_expression (exp, value) return 1; } -int +static int wrap_evaluate_expression (a) char *a; { @@ -141,7 +133,7 @@ gdb_value_fetch_lazy (value) "", RETURN_MASK_ERROR); } -int +static int wrap_value_fetch_lazy (a) char *a; { @@ -173,7 +165,7 @@ gdb_value_equal (val1, val2, result) return 1; } -int +static int wrap_value_equal (a) char *a; { @@ -209,7 +201,7 @@ gdb_value_subscript (val1, val2, rval) return 1; } -int +static int wrap_value_subscript (a) char *a; { @@ -243,7 +235,7 @@ gdb_value_ind (val, rval) return 1; } -int +static int wrap_value_ind (opaque_arg) char *opaque_arg; { @@ -273,7 +265,7 @@ gdb_parse_and_eval_type (char *p, int length, struct type **type) return 1; } -int +static int wrap_parse_and_eval_type (char *a) { struct gdb_wrapper_arguments *args = (struct gdb_wrapper_arguments *) a; diff --git a/gdb/wrapper.h b/gdb/wrapper.h index 0345b89623e..e1d71c21027 100644 --- a/gdb/wrapper.h +++ b/gdb/wrapper.h @@ -24,21 +24,15 @@ struct gdb_wrapper_arguments; extern int gdb_parse_exp_1 PARAMS ((char **, struct block *, int, struct expression **)); -extern int wrap_parse_exp_1 PARAMS ((char *)); extern int gdb_evaluate_expression PARAMS ((struct expression *, value_ptr *)); -extern int wrap_evaluate_expression PARAMS ((char *)); extern int gdb_value_fetch_lazy PARAMS ((value_ptr)); -extern int wrap_value_fetch_lazy PARAMS ((char *)); extern int gdb_value_equal PARAMS ((value_ptr, value_ptr, int *)); -extern int wrap_value_equal PARAMS ((char *)); extern int gdb_value_ind PARAMS ((value_ptr val, value_ptr * rval)); -extern int wrap_value_ind PARAMS ((char *opaque_arg)); extern int gdb_parse_and_eval_type (char *, int, struct type **); -extern int wrap_parse_and_eval_type (char *); #endif /* WRAPPER_H */ -- 2.30.2