]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
docs: fix: WARNING: Parsing of expression failed. Using fallback parser.
authorMartin Liska <mliska@suse.cz>
Wed, 9 Nov 2022 12:36:33 +0000 (13:36 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 9 Nov 2022 12:56:33 +0000 (13:56 +0100)
For the future, we can use https://sphinx-fortran.readthedocs.io/ for
Fortran functions which can have optional arguments. However, it's an
additional dependency.

Simplify the function declration.

gcc/fortran/ChangeLog:

* doc/gfortran/intrinsic-procedures/aint.rst: Simplify function
  declaration.
* doc/gfortran/intrinsic-procedures/int.rst: Likewise.
* doc/gfortran/intrinsic-procedures/anint.rst: Likewise.
* doc/gfortran/intrinsic-procedures/char.rst: Likewise.
* doc/gfortran/intrinsic-procedures/real.rst: Likewise.

gcc/fortran/doc/gfortran/intrinsic-procedures/aint.rst
gcc/fortran/doc/gfortran/intrinsic-procedures/anint.rst
gcc/fortran/doc/gfortran/intrinsic-procedures/char.rst
gcc/fortran/doc/gfortran/intrinsic-procedures/int.rst
gcc/fortran/doc/gfortran/intrinsic-procedures/real.rst

index 2550442c2461c5388674fd9bdb6e45cd8a420db3..f95a60121aa4117f979aa05951e30017e15e314f 100644 (file)
@@ -16,7 +16,7 @@
 AINT --- Truncate to a whole number
 ***********************************
 
-.. function:: AINT(A [, KIND])
+.. function:: AINT(A, KIND)
 
   ``AINT(A [, KIND])`` truncates its argument to a whole number.
 
@@ -75,4 +75,4 @@ AINT --- Truncate to a whole number
        * - ``DINT(A)``
          - ``REAL(8) A``
          - ``REAL(8)``
-         - Fortran 77 and later
\ No newline at end of file
+         - Fortran 77 and later
index 889585c412f35a36d2c69a4bf2d4bd6e0ed4e572..7c1d324cfc7835625dafe33909ff8aa5a59ce770 100644 (file)
@@ -16,7 +16,7 @@
 ANINT --- Nearest whole number
 ******************************
 
-.. function:: ANINT(A [, KIND])
+.. function:: ANINT(A, KIND)
 
   ``ANINT(A [, KIND])`` rounds its argument to the nearest whole number.
 
@@ -73,4 +73,4 @@ ANINT --- Nearest whole number
        * - ``DNINT(A)``
          - ``REAL(8) A``
          - ``REAL(8)``
-         - Fortran 77 and later
\ No newline at end of file
+         - Fortran 77 and later
index 221deca4882515455a412602245d7174f97c88dc..a51b927d0b3473bf77d5a7b2b4cb8c08a2256fb5 100644 (file)
@@ -12,7 +12,7 @@
 CHAR --- Character conversion function
 **************************************
 
-.. function:: CHAR(I [, KIND])
+.. function:: CHAR(I, KIND)
 
   ``CHAR(I [, KIND])`` returns the character represented by the integer :samp:`{I}`.
 
@@ -68,4 +68,4 @@ CHAR --- Character conversion function
   See also:
     :ref:`ACHAR`,
     :ref:`IACHAR`,
-    :ref:`ICHAR`
\ No newline at end of file
+    :ref:`ICHAR`
index 43d2a56be3859fb4202565b1e19032cffebfb56d..83a35aef52985bde2ab708c1c4206ecb5a4eb3c7 100644 (file)
@@ -16,7 +16,7 @@
 INT --- Convert to integer type
 *******************************
 
-.. function:: INT(A , KIND))
+.. function:: INT(A, KIND)
 
   Convert to integer type
 
@@ -73,4 +73,4 @@ INT --- Convert to integer type
        * - ``IDINT(A)``
          - ``REAL(8) A``
          - ``INTEGER``
-         - Fortran 77 and later
\ No newline at end of file
+         - Fortran 77 and later
index 0f15f5cb8ccd71f4c1b8aea47531a5b554eeac32..be19a01723dc75e2396d46c71d7d0305a1251148 100644 (file)
@@ -28,7 +28,7 @@
 REAL --- Convert to real type
 ******************************
 
-.. function:: REAL(A [, KIND])
+.. function:: REAL(A, KIND)
 
   ``REAL(A [, KIND])`` converts its argument :samp:`{A}` to a real type.  The
   ``REALPART`` function is provided for compatibility with :command:`g77`,
@@ -101,4 +101,4 @@ REAL --- Convert to real type
          - Fortran 77 and later
 
   See also:
-    :ref:`DBLE`
\ No newline at end of file
+    :ref:`DBLE`