diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-01-12 02:14:56 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-01-12 02:14:56 +0000 |
commit | 0a2f0c5497342d01717c93db97aeb5318c3ec42c (patch) | |
tree | ae14f5fe1cbe481163ab4bcb25d7f4cec4d064a8 /gcc/java/builtins.c | |
parent | 8e37cba890b62aa56f48cfbbca16e16b748355d6 (diff) | |
download | gcc-0a2f0c5497342d01717c93db97aeb5318c3ec42c.zip gcc-0a2f0c5497342d01717c93db97aeb5318c3ec42c.tar.gz gcc-0a2f0c5497342d01717c93db97aeb5318c3ec42c.tar.bz2 |
* All Files: Convert to ISO C style function definitions.
From-SVN: r61218
Diffstat (limited to 'gcc/java/builtins.c')
-rw-r--r-- | gcc/java/builtins.c | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c index d2de912..ce8fe6d 100644 --- a/gcc/java/builtins.c +++ b/gcc/java/builtins.c @@ -116,8 +116,7 @@ static tree builtin_types[(int) BT_LAST]; /* Internal functions which implement various builtin conversions. */ static tree -max_builtin (method_return_type, method_arguments) - tree method_return_type, method_arguments; +max_builtin (tree method_return_type, tree method_arguments) { return build (MAX_EXPR, method_return_type, TREE_VALUE (method_arguments), @@ -125,8 +124,7 @@ max_builtin (method_return_type, method_arguments) } static tree -min_builtin (method_return_type, method_arguments) - tree method_return_type, method_arguments; +min_builtin (tree method_return_type, tree method_arguments) { return build (MIN_EXPR, method_return_type, TREE_VALUE (method_arguments), @@ -134,8 +132,7 @@ min_builtin (method_return_type, method_arguments) } static tree -abs_builtin (method_return_type, method_arguments) - tree method_return_type, method_arguments; +abs_builtin (tree method_return_type, tree method_arguments) { return build1 (ABS_EXPR, method_return_type, TREE_VALUE (method_arguments)); @@ -155,8 +152,7 @@ build_function_call_expr (tree fn, tree arglist) } static tree -cos_builtin (method_return_type, method_arguments) - tree method_return_type ATTRIBUTE_UNUSED, method_arguments; +cos_builtin (tree method_return_type ATTRIBUTE_UNUSED, tree method_arguments) { /* FIXME: this assumes that jdouble and double are the same. */ tree fn = built_in_decls[BUILT_IN_COS]; @@ -166,8 +162,7 @@ cos_builtin (method_return_type, method_arguments) } static tree -sin_builtin (method_return_type, method_arguments) - tree method_return_type ATTRIBUTE_UNUSED, method_arguments; +sin_builtin (tree method_return_type ATTRIBUTE_UNUSED, tree method_arguments) { /* FIXME: this assumes that jdouble and double are the same. */ tree fn = built_in_decls[BUILT_IN_SIN]; @@ -177,8 +172,7 @@ sin_builtin (method_return_type, method_arguments) } static tree -sqrt_builtin (method_return_type, method_arguments) - tree method_return_type ATTRIBUTE_UNUSED, method_arguments; +sqrt_builtin (tree method_return_type ATTRIBUTE_UNUSED, tree method_arguments) { /* FIXME: this assumes that jdouble and double are the same. */ tree fn = built_in_decls[BUILT_IN_SQRT]; @@ -191,12 +185,11 @@ sqrt_builtin (method_return_type, method_arguments) /* Define a single builtin. */ static void -define_builtin (val, name, class, type, fallback_p) - enum built_in_function val; - const char *name; - enum built_in_class class; - tree type; - int fallback_p; +define_builtin (enum built_in_function val, + const char *name, + enum built_in_class class, + tree type, + int fallback_p) { tree decl; @@ -220,8 +213,7 @@ define_builtin (val, name, class, type, fallback_p) /* Compute the type for a builtin. */ static tree -define_builtin_type (ret, arg1, arg2, arg3, arg4) - int ret, arg1, arg2, arg3, arg4; +define_builtin_type (int ret, int arg1, int arg2, int arg3, int arg4) { tree args; @@ -262,7 +254,7 @@ define_builtin_type (ret, arg1, arg2, arg3, arg4) /* Initialize the builtins. */ void -initialize_builtins () +initialize_builtins (void) { int i; @@ -322,9 +314,7 @@ initialize_builtins () /* If the call matches a builtin, return the appropriate builtin expression instead. */ tree -check_for_builtin (method, call) - tree method; - tree call; +check_for_builtin (tree method, tree call) { if (! flag_emit_class_files && optimize && TREE_CODE (call) == CALL_EXPR) { |