X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libgfortran%2Fruntime%2Fpause.c;fp=libgfortran%2Fruntime%2Fpause.c;h=28edf6c50299faf75875f95163f4ece53c7bb5b6;hb=070cc7908ad9a33d66643c48beba23f9cb8e6b63;hp=7db536b665b38af9b1e775b57fbdda73f529551e;hpb=dedd562f4fba462129efa36422191222627849ed;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libgfortran/runtime/pause.c b/libgfortran/runtime/pause.c index 7db536b665b..28edf6c5029 100644 --- a/libgfortran/runtime/pause.c +++ b/libgfortran/runtime/pause.c @@ -26,7 +26,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "libgfortran.h" #include - static void do_pause (void) { @@ -36,26 +35,24 @@ do_pause (void) fgets(buff, 4, stdin); if (strncmp(buff, "go\n", 3) != 0) - stop_numeric (-1); + stop_string ('\0', 0); st_printf ("RESUMED\n"); } -/* A numeric or blank STOP statement. */ +/* A numeric PAUSE statement. */ -extern void pause_numeric (GFC_INTEGER_4 code); +extern void pause_numeric (GFC_INTEGER_4); export_proto(pause_numeric); void pause_numeric (GFC_INTEGER_4 code) { - if (code == -1) - st_printf ("PAUSE\n"); - else - st_printf ("PAUSE %d\n", (int)code); - + st_printf ("PAUSE %d\n", (int) code); do_pause (); } +/* A character string or blank PAUSE statement. */ + extern void pause_string (char *string, GFC_INTEGER_4 len); export_proto(pause_string);