Commit fa10ccb2 by Francois-Xavier Coudert Committed by François-Xavier Coudert

fmain.c (main): Don't PREFIX set_args.

        * fmain.c (main): Don't PREFIX set_args.
        * libgfortran.h (set_args): Use iexport_proto.
        * runtime/main.c (set_args): Use iexport.

From-SVN: r148472
parent 03bd2f1a
2009-06-14 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* fmain.c (main): Don't PREFIX set_args.
* libgfortran.h (set_args): Use iexport_proto.
* runtime/main.c (set_args): Use iexport.
2009-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org> 2009-06-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/40008 PR libfortran/40008
......
...@@ -10,7 +10,7 @@ int ...@@ -10,7 +10,7 @@ int
main (int argc, char *argv[]) main (int argc, char *argv[])
{ {
/* Set up the runtime environment. */ /* Set up the runtime environment. */
PREFIX(set_args) (argc, argv); set_args (argc, argv);
/* Call the Fortran main program. Internally this is a function /* Call the Fortran main program. Internally this is a function
called MAIN__ */ called MAIN__ */
......
...@@ -606,7 +606,7 @@ extern void stupid_function_name_for_static_linking (void); ...@@ -606,7 +606,7 @@ extern void stupid_function_name_for_static_linking (void);
internal_proto(stupid_function_name_for_static_linking); internal_proto(stupid_function_name_for_static_linking);
extern void set_args (int, char **); extern void set_args (int, char **);
export_proto(set_args); iexport_proto(set_args);
extern void get_args (int *, char ***); extern void get_args (int *, char ***);
internal_proto(get_args); internal_proto(get_args);
......
...@@ -131,6 +131,7 @@ set_args (int argc, char **argv) ...@@ -131,6 +131,7 @@ set_args (int argc, char **argv)
argv_save = argv; argv_save = argv;
store_exe_path (argv[0]); store_exe_path (argv[0]);
} }
iexport(set_args);
/* Retrieve the saved values of the command line arguments. */ /* Retrieve the saved values of the command line arguments. */
......
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