Discussion:
[patch, doc, fortran] Document FINDLOC
Thomas König
2018-10-28 14:13:49 UTC
Permalink
Hi,

here is the promised documentation for FINDLOC. Tested
with "make dvi" and "make pdf".

OK for trunk?

Regards

Thomas

2018-10-28 Thomas Koenig <***@gcc.gnu.org>

PR fortran/54613
* gfortran.texi (File format of unformatted sequential files):
Replace random comma with period.
* intrinsic.texi (Intrinsic Procedures): Add FINDLOC to menu.
(FINDLOC): Document.
(MAXLOC): Add refrence to FINDLOC.
(MINLOC): Likewise.
Bernhard Reutner-Fischer
2018-10-29 11:31:24 UTC
Permalink
Hi!

On Sun, 28 Oct 2018 15:13:49 +0100
Thomas König <***@tkoenig.net> wrote:

One question and some nits below.
===================================================================
--- intrinsic.texi (Revision 265569)
+++ intrinsic.texi (Arbeitskopie)
@@ -6021,8 +6022,68 @@ END PROGRAM
@ref{FGET}, @ref{FPUT}, @ref{FPUTC}
@end table
I think one should not put spaces around triple-dashes.
+Determines the location of the element in the array with the value
+supplied, determines the locations of the maximum element along each
dot-space-space at end of sentence: direction. If
+considered. If more than one element in the array has the value
+false; otherwise, the location returned is that of the first such
+element. If the array has zero size, or all of the elements of
I think this should mention BACK=.TRUE. for clarity; and it should
refer to the _last_ such element, not the first, doesn't it?

Like:

If @var{BACK} is @code{.TRUE.} the location returned is that of the
last such element.
+is zero.
+Fortran 2008 and later.
+
+Transformational function
+
+
+inclusive. It may not be an optional dummy argument.
+expression indicating the kind parameter of the result.
+
Excess third space at the start of the sentence: dot-space-space

thanks,
+is of default kind.
Thomas König
2018-10-29 21:29:24 UTC
Permalink
Post by Bernhard Reutner-Fischer
Hi!
On Sun, 28 Oct 2018 15:13:49 +0100
One question and some nits below.
===================================================================
--- intrinsic.texi (Revision 265569)
+++ intrinsic.texi (Arbeitskopie)
@@ -6021,8 +6022,68 @@ END PROGRAM
@ref{FGET}, @ref{FPUT}, @ref{FPUTC}
@end table
I think one should not put spaces around triple-dashes.
We have it everywhere else. Should we change this in general?
If so, that would probably make sense as a followup patch.
Post by Bernhard Reutner-Fischer
dot-space-space at end of sentence: direction. If
Done.
Post by Bernhard Reutner-Fischer
+considered. If more than one element in the array has the value
+false; otherwise, the location returned is that of the first such
+element. If the array has zero size, or all of the elements of
I think this should mention BACK=.TRUE. for clarity; and it should
refer to the _last_ such element, not the first, doesn't it?
Reordered, to make it more sensible.
Removed.
Post by Bernhard Reutner-Fischer
Excess third space at the start of the sentence: dot-space-space
Removed.

Unless there are other comments, I'll commit in a couple of days.

Regards

Thomas

Loading...