Commit 75ddf8b0 by Richard Kenner

Add prototypes for static functions; delete forward declarations of non-static functions.

Add prototypes for static functions; delete forward declarations of
non-static functions.
(initializer_constant_valid_p): Add missing parameter to recursive call.

From-SVN: r6467
parent 9c10d25f
...@@ -40,29 +40,35 @@ static int missing_braces_mentioned; ...@@ -40,29 +40,35 @@ static int missing_braces_mentioned;
extern char *index (); extern char *index ();
extern char *rindex (); extern char *rindex ();
int mark_addressable (); static tree quality_type PROTO((tree, tree));
static tree convert_for_assignment (); static int comp_target_types PROTO((tree, tree));
static void warn_for_assignment (); static int function_types_compatible_p PROTO((tree, tree));
static int function_types_compatible_p (); static int type_lists_compatible_p PROTO((tree, tree));
static int type_lists_compatible_p (); static int self_promoting_type_p PROTO((tree));
int self_promoting_args_p (); static tree decl_constant_value PROTO((tree));
static int self_promoting_type_p (); static tree lookup_field PROTO((tree, tree, tree *));
static int comp_target_types (); static tree convert_arguments PROTO((tree, tree, tree, tree));
static tree pointer_int_sum (); static tree pointer_int_sum PROTO((enum tree_code, tree, tree));
static tree pointer_diff (); static tree pointer_diff PROTO((tree, tree));
static tree convert_sequence (); static tree unary_complex_lvalue PROTO((enum tree_code, tree));
static tree unary_complex_lvalue (); static void pedantic_lvalue_warning PROTO((enum tree_code));
static tree process_init_constructor (); static tree internal_build_compound_expr PROTO((tree, int));
static tree convert_arguments (); static tree convert_for_assignment PROTO((tree, tree, char *, tree,
static char *get_spelling (); tree, int));
static tree digest_init (); static void warn_for_assignment PROTO((char *, char *, tree, int));
static void pedantic_lvalue_warning (); static tree valid_compound_expr_initializer PROTO((tree, tree));
tree truthvalue_conversion (); static void push_string PROTO((char *));
void incomplete_type_error (); static void push_member_name PROTO((tree));
void readonly_warning (); static void push_array_bounds PROTO((int));
static tree internal_build_compound_expr (); static int spelling_length PROTO((void));
static char *print_spelling PROTO((char *));
void process_init_element (); static char *get_spelling PROTO((char *));
static void warning_init PROTO((char *, char *,
char *));
static tree digest_init PROTO((tree, tree, int, int));
static void check_init_type_bitfields PROTO((tree));
static void output_init_element PROTO((tree, tree, tree, int));
static void output_pending_init_elements PROTO((int));
/* Do `exp = require_complete_type (exp);' to make sure exp /* Do `exp = require_complete_type (exp);' to make sure exp
does not have an incomplete type. (That includes void types.) */ does not have an incomplete type. (That includes void types.) */
...@@ -4042,7 +4048,9 @@ initializer_constant_valid_p (value, endtype) ...@@ -4042,7 +4048,9 @@ initializer_constant_valid_p (value, endtype)
case CONSTRUCTOR: case CONSTRUCTOR:
if (TREE_CODE (TREE_TYPE (value)) == UNION_TYPE if (TREE_CODE (TREE_TYPE (value)) == UNION_TYPE
&& TREE_CONSTANT (value)) && TREE_CONSTANT (value))
return initializer_constant_valid_p (TREE_VALUE (CONSTRUCTOR_ELTS (value))); return
initializer_constant_valid_p (TREE_VALUE (CONSTRUCTOR_ELTS (value)),
endtype);
return TREE_STATIC (value) ? null_pointer_node : 0; return TREE_STATIC (value) ? null_pointer_node : 0;
...@@ -4693,10 +4701,6 @@ digest_init (type, init, require_constant, constructor_constant) ...@@ -4693,10 +4701,6 @@ digest_init (type, init, require_constant, constructor_constant)
/* Handle initializers that use braces. */ /* Handle initializers that use braces. */
static void output_init_element ();
static void output_pending_init_elements ();
static void check_init_type_bitfields ();
/* Type of object we are accumulating a constructor for. /* Type of object we are accumulating a constructor for.
This type is always a RECORD_TYPE, UNION_TYPE or ARRAY_TYPE. */ This type is always a RECORD_TYPE, UNION_TYPE or ARRAY_TYPE. */
static tree constructor_type; static tree constructor_type;
......
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