Commit 70b384b0 by Kaveh R. Ghazi Committed by Kaveh Ghazi

com.c (ffecom_convert_narrow_, [...]): Convert to ISO C style function definitions.

	* com.c (ffecom_convert_narrow_, ffecom_convert_widen_,
	pushdecl_top_level, storedecls, convert, delete_block,
	insert_block, ffe_init, ffe_mark_addressable, poplevel,
	ffe_print_identifier, pushdecl, pushlevel, set_block,
	ffe_signed_or_unsigned_type, ffe_signed_type,
	ffe_truthvalue_conversion, ffe_type_for_mode, ffe_type_for_size,
	ffe_unsigned_type, append_include_chain, open_include_file,
	read_filename_string, read_name_map): Convert to ISO C style function
	definitions.
	* parse.c (ffe_parse_file): Likewise.
	* top.c (ffe_is_digit_string_): Likewise.

From-SVN: r61219
parent 0a2f0c54
Sat Jan 11 21:31:10 2003 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* com.c (ffecom_convert_narrow_, ffecom_convert_widen_,
pushdecl_top_level, storedecls, convert, delete_block,
insert_block, ffe_init, ffe_mark_addressable, poplevel,
ffe_print_identifier, pushdecl, pushlevel, set_block,
ffe_signed_or_unsigned_type, ffe_signed_type,
ffe_truthvalue_conversion, ffe_type_for_mode, ffe_type_for_size,
ffe_unsigned_type, append_include_chain, open_include_file,
read_filename_string, read_name_map): Convert to ISO C style function
definitions.
* parse.c (ffe_parse_file): Likewise.
* top.c (ffe_is_digit_string_): Likewise.
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Make-lang.in (f77.install-common, f77.install-info, * Make-lang.in (f77.install-common, f77.install-info,
......
...@@ -1109,8 +1109,7 @@ ffecom_convert_to_complex_ (tree type, tree expr) ...@@ -1109,8 +1109,7 @@ ffecom_convert_to_complex_ (tree type, tree expr)
/* Like gcc's convert(), but crashes if widening might happen. */ /* Like gcc's convert(), but crashes if widening might happen. */
static tree static tree
ffecom_convert_narrow_ (type, expr) ffecom_convert_narrow_ (tree type, tree expr)
tree type, expr;
{ {
register tree e = expr; register tree e = expr;
register enum tree_code code = TREE_CODE (type); register enum tree_code code = TREE_CODE (type);
...@@ -1180,8 +1179,7 @@ ffecom_convert_narrow_ (type, expr) ...@@ -1180,8 +1179,7 @@ ffecom_convert_narrow_ (type, expr)
/* Like gcc's convert(), but crashes if narrowing might happen. */ /* Like gcc's convert(), but crashes if narrowing might happen. */
static tree static tree
ffecom_convert_widen_ (type, expr) ffecom_convert_widen_ (tree type, tree expr)
tree type, expr;
{ {
register tree e = expr; register tree e = expr;
register enum tree_code code = TREE_CODE (type); register enum tree_code code = TREE_CODE (type);
...@@ -13751,8 +13749,7 @@ push_parm_decl (tree parm) ...@@ -13751,8 +13749,7 @@ push_parm_decl (tree parm)
/* Like pushdecl, only it places X in GLOBAL_BINDING_LEVEL, if appropriate. */ /* Like pushdecl, only it places X in GLOBAL_BINDING_LEVEL, if appropriate. */
static tree static tree
pushdecl_top_level (x) pushdecl_top_level (tree x)
tree x;
{ {
register tree t; register tree t;
register struct f_binding_level *b = current_binding_level; register struct f_binding_level *b = current_binding_level;
...@@ -13771,8 +13768,7 @@ pushdecl_top_level (x) ...@@ -13771,8 +13768,7 @@ pushdecl_top_level (x)
after they are modified in the light of any missing parameters. */ after they are modified in the light of any missing parameters. */
static tree static tree
storedecls (decls) storedecls (tree decls)
tree decls;
{ {
return current_binding_level->names = decls; return current_binding_level->names = decls;
} }
...@@ -13936,8 +13932,7 @@ start_function (tree name, tree type, int nested, int public) ...@@ -13936,8 +13932,7 @@ start_function (tree name, tree type, int nested, int public)
/* Here are the public functions the GNU back end needs. */ /* Here are the public functions the GNU back end needs. */
tree tree
convert (type, expr) convert (tree type, tree expr)
tree type, expr;
{ {
register tree e = expr; register tree e = expr;
register enum tree_code code = TREE_CODE (type); register enum tree_code code = TREE_CODE (type);
...@@ -14008,8 +14003,7 @@ ffecom_init_decl_processing () ...@@ -14008,8 +14003,7 @@ ffecom_init_decl_processing ()
so that the block can be reinserted where appropriate. */ so that the block can be reinserted where appropriate. */
static void static void
delete_block (block) delete_block (tree block)
tree block;
{ {
tree t; tree t;
if (current_binding_level->blocks == block) if (current_binding_level->blocks == block)
...@@ -14028,8 +14022,7 @@ delete_block (block) ...@@ -14028,8 +14022,7 @@ delete_block (block)
} }
void void
insert_block (block) insert_block (tree block)
tree block;
{ {
TREE_USED (block) = 1; TREE_USED (block) = 1;
current_binding_level->blocks current_binding_level->blocks
...@@ -14123,8 +14116,7 @@ const char *const tree_code_name[] = { ...@@ -14123,8 +14116,7 @@ const char *const tree_code_name[] = {
#undef DEFTREECODE #undef DEFTREECODE
static const char * static const char *
ffe_init (filename) ffe_init (const char *filename)
const char *filename;
{ {
/* Open input file. */ /* Open input file. */
if (filename == 0 || !strcmp (filename, "-")) if (filename == 0 || !strcmp (filename, "-"))
...@@ -14183,8 +14175,7 @@ ffe_init_options () ...@@ -14183,8 +14175,7 @@ ffe_init_options ()
} }
static bool static bool
ffe_mark_addressable (exp) ffe_mark_addressable (tree exp)
tree exp;
{ {
register tree x = exp; register tree x = exp;
while (1) while (1)
...@@ -14254,10 +14245,7 @@ ffe_mark_addressable (exp) ...@@ -14254,10 +14245,7 @@ ffe_mark_addressable (exp)
them into the BLOCK. */ them into the BLOCK. */
tree tree
poplevel (keep, reverse, functionbody) poplevel (int keep, int reverse, int functionbody)
int keep;
int reverse;
int functionbody;
{ {
register tree link; register tree link;
/* The chain of decls was accumulated in reverse order. /* The chain of decls was accumulated in reverse order.
...@@ -14393,10 +14381,7 @@ poplevel (keep, reverse, functionbody) ...@@ -14393,10 +14381,7 @@ poplevel (keep, reverse, functionbody)
} }
static void static void
ffe_print_identifier (file, node, indent) ffe_print_identifier (FILE *file, tree node, int indent)
FILE *file;
tree node;
int indent;
{ {
print_node (file, "global", IDENTIFIER_GLOBAL_VALUE (node), indent + 4); print_node (file, "global", IDENTIFIER_GLOBAL_VALUE (node), indent + 4);
print_node (file, "local", IDENTIFIER_LOCAL_VALUE (node), indent + 4); print_node (file, "local", IDENTIFIER_LOCAL_VALUE (node), indent + 4);
...@@ -14411,8 +14396,7 @@ ffe_print_identifier (file, node, indent) ...@@ -14411,8 +14396,7 @@ ffe_print_identifier (file, node, indent)
to agree with what X says. */ to agree with what X says. */
tree tree
pushdecl (x) pushdecl (tree x)
tree x;
{ {
register tree t; register tree t;
register tree name = DECL_NAME (x); register tree name = DECL_NAME (x);
...@@ -14545,8 +14529,7 @@ kept_level_p () ...@@ -14545,8 +14529,7 @@ kept_level_p ()
not for that of tags. */ not for that of tags. */
void void
pushlevel (tag_transparent) pushlevel (int tag_transparent)
int tag_transparent;
{ {
register struct f_binding_level *newlevel = NULL_BINDING_LEVEL; register struct f_binding_level *newlevel = NULL_BINDING_LEVEL;
...@@ -14581,8 +14564,7 @@ pushlevel (tag_transparent) ...@@ -14581,8 +14564,7 @@ pushlevel (tag_transparent)
(the one we are currently in). */ (the one we are currently in). */
void void
set_block (block) set_block (tree block)
register tree block;
{ {
current_binding_level->this_block = block; current_binding_level->this_block = block;
current_binding_level->names = chainon (current_binding_level->names, current_binding_level->names = chainon (current_binding_level->names,
...@@ -14592,9 +14574,7 @@ set_block (block) ...@@ -14592,9 +14574,7 @@ set_block (block)
} }
static tree static tree
ffe_signed_or_unsigned_type (unsignedp, type) ffe_signed_or_unsigned_type (int unsignedp, tree type)
int unsignedp;
tree type;
{ {
tree type2; tree type2;
...@@ -14620,8 +14600,7 @@ ffe_signed_or_unsigned_type (unsignedp, type) ...@@ -14620,8 +14600,7 @@ ffe_signed_or_unsigned_type (unsignedp, type)
} }
static tree static tree
ffe_signed_type (type) ffe_signed_type (tree type)
tree type;
{ {
tree type1 = TYPE_MAIN_VARIANT (type); tree type1 = TYPE_MAIN_VARIANT (type);
ffeinfoKindtype kt; ffeinfoKindtype kt;
...@@ -14675,8 +14654,7 @@ ffe_signed_type (type) ...@@ -14675,8 +14654,7 @@ ffe_signed_type (type)
The resulting type should always be `integer_type_node'. */ The resulting type should always be `integer_type_node'. */
static tree static tree
ffe_truthvalue_conversion (expr) ffe_truthvalue_conversion (tree expr)
tree expr;
{ {
if (TREE_CODE (expr) == ERROR_MARK) if (TREE_CODE (expr) == ERROR_MARK)
return expr; return expr;
...@@ -14854,9 +14832,7 @@ ffe_truthvalue_conversion (expr) ...@@ -14854,9 +14832,7 @@ ffe_truthvalue_conversion (expr)
} }
static tree static tree
ffe_type_for_mode (mode, unsignedp) ffe_type_for_mode (enum machine_mode mode, int unsignedp)
enum machine_mode mode;
int unsignedp;
{ {
int i; int i;
int j; int j;
...@@ -14914,9 +14890,7 @@ ffe_type_for_mode (mode, unsignedp) ...@@ -14914,9 +14890,7 @@ ffe_type_for_mode (mode, unsignedp)
} }
static tree static tree
ffe_type_for_size (bits, unsignedp) ffe_type_for_size (unsigned bits, int unsignedp)
unsigned bits;
int unsignedp;
{ {
ffeinfoKindtype kt; ffeinfoKindtype kt;
tree type_node; tree type_node;
...@@ -14950,8 +14924,7 @@ ffe_type_for_size (bits, unsignedp) ...@@ -14950,8 +14924,7 @@ ffe_type_for_size (bits, unsignedp)
} }
static tree static tree
ffe_unsigned_type (type) ffe_unsigned_type (tree type)
tree type;
{ {
tree type1 = TYPE_MAIN_VARIANT (type); tree type1 = TYPE_MAIN_VARIANT (type);
ffeinfoKindtype kt; ffeinfoKindtype kt;
...@@ -15091,8 +15064,7 @@ static struct file_name_map *read_name_map (const char *dirname); ...@@ -15091,8 +15064,7 @@ static struct file_name_map *read_name_map (const char *dirname);
FIRST is the beginning of the chain to append, and LAST is the end. */ FIRST is the beginning of the chain to append, and LAST is the end. */
static void static void
append_include_chain (first, last) append_include_chain (struct file_name_list *first, struct file_name_list *last)
struct file_name_list *first, *last;
{ {
struct file_name_list *dir; struct file_name_list *dir;
...@@ -15122,9 +15094,7 @@ append_include_chain (first, last) ...@@ -15122,9 +15094,7 @@ append_include_chain (first, last)
read_name_map. */ read_name_map. */
static FILE * static FILE *
open_include_file (filename, searchptr) open_include_file (char *filename, struct file_name_list *searchptr)
char *filename;
struct file_name_list *searchptr;
{ {
register struct file_name_map *map; register struct file_name_map *map;
register char *from; register char *from;
...@@ -15261,9 +15231,7 @@ print_containing_files (ffebadSeverity sev) ...@@ -15261,9 +15231,7 @@ print_containing_files (ffebadSeverity sev)
file. */ file. */
static char * static char *
read_filename_string (ch, f) read_filename_string (int ch, FILE *f)
int ch;
FILE *f;
{ {
char *alloc, *set; char *alloc, *set;
int len; int len;
...@@ -15292,8 +15260,7 @@ read_filename_string (ch, f) ...@@ -15292,8 +15260,7 @@ read_filename_string (ch, f)
/* Read the file name map file for DIRNAME. */ /* Read the file name map file for DIRNAME. */
static struct file_name_map * static struct file_name_map *
read_name_map (dirname) read_name_map (const char *dirname)
const char *dirname;
{ {
/* This structure holds a linked list of file name maps, one per /* This structure holds a linked list of file name maps, one per
directory. */ directory. */
......
...@@ -29,8 +29,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -29,8 +29,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
extern FILE *finput; extern FILE *finput;
void void
ffe_parse_file (set_yydebug) ffe_parse_file (int set_yydebug ATTRIBUTE_UNUSED)
int set_yydebug ATTRIBUTE_UNUSED;
{ {
ffewhereFile wf; ffewhereFile wf;
......
...@@ -157,9 +157,7 @@ ffe_is_digit_string_ (char *s) ...@@ -157,9 +157,7 @@ ffe_is_digit_string_ (char *s)
recognized and handled. */ recognized and handled. */
int int
ffe_decode_option (argc, argv) ffe_decode_option (int argc ATTRIBUTE_UNUSED, char **argv)
int argc ATTRIBUTE_UNUSED;
char **argv;
{ {
char *opt = argv[0]; char *opt = argv[0];
if (opt[0] != '-') if (opt[0] != '-')
......
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