This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[fortran, documentation] Fix HOSTNM, add SLEEP intrinsic



This patch fixes a typographical error in the documentation of the HOSTNM 
intrinsic and adds the implemented, but not yet documented SLEEP subroutine.


2007-02-11  Daniel Franke  <franke.daniel@gmail.com>

        * intrinsic.texi (HOSTNM): Fix typographical error in syntax.
        (SLEEP): Added section and documentation.


Tested info and dvi targets on i686-pc-linux-gnu.

Ok for mainline?

	Daniel
Index: intrinsic.texi
===================================================================
--- intrinsic.texi	(revision 121769)
+++ intrinsic.texi	(working copy)
@@ -225,6 +225,7 @@
 * @code{SIN}:           SIN,       Sine function
 * @code{SINH}:          SINH,      Hyperbolic sine function
 * @code{SIZE}:          SIZE,      Function to determine the size of an array
+* @code{SLEEP}:         SLEEP,     Sleep for the specified number of seconds
 * @code{SNGL}:          SNGL,      Convert double precision real to default real
 * @code{SPACING}:       SPACING,   Smallest distance between two numbers of a given type
 * @code{SPREAD}:        SPREAD,    Add a dimension to an array 
@@ -4477,7 +4478,7 @@
 
 @item @emph{Syntax}:
 @multitable @columnfractions .80
-@item @code{CALL HOSTNM(NAME, STATUS)}
+@item @code{CALL HOSTNM(NAME[, STATUS])}
 @item @code{STATUS = HOSTNM(NAME)}
 @end multitable
 
@@ -8105,6 +8106,38 @@
 
 
 
+@node SLEEP
+@section @code{SLEEP} --- Sleep for the specified number of seconds
+@cindex @code{SLEEP} intrinsic
+
+@table @asis
+@item @emph{Description}:
+Calling this subroutine causes the process to pause for @var{SECONDS} seconds.
+
+@item @emph{Standard}:
+GNU extension
+
+@item @emph{Class}:
+Subroutine
+
+@item @emph{Syntax}:
+@code{CALL SLEEP(SECONDS)}
+
+@item @emph{Arguments}:
+@multitable @columnfractions .15 .80
+@item @var{SECONDS} @tab The type shall be of default @code{INTEGER}.
+@end multitable
+
+@item @emph{Example}:
+@smallexample
+program test_sleep
+  call sleep(5)
+end
+@end smallexample
+@end table
+
+
+
 @node SNGL
 @section @code{SNGL} --- Convert double precision real to default real
 @cindex @code{SNGL} intrinsic

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]