You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes on typos, cleanup to improve parsing by other tools than texinfo
* Remove section 3.15: Predefined compilation variables, that is a duplicate of another section.
* Syncronized -> synchronized
* Fix duplicate section names 7.8.12.4 and 7.8.12.5 DISPLAY data-item, so that refs correctly work
* Other small typos
git-svn-id: svn+ssh://svn.code.sf.net/p/gnucobol/code/external-doc@5176 ed166372-6744-4ac0-a67f-bb1ae9efa102
Copy file name to clipboardExpand all lines: guide/1.texi
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ The reality is, however, that good programmers have been practising code re-usab
142
142
GnuCOBOL is a free and open sourced COBOL compiler and runtime environment, written using the C programming language which itself is free to use and can be used in all forms including for commercial purposes - there is no restrictions. GnuCOBOL is typically distributed in source-code form, and must then be built for your computer's operating system using the system's C compiler and loader. While originally developed for the UNIX and Linux operating systems, GnuCOBOL has also been successfully built for computers running OSX (a OpenBSD implementation) and Windows utilizing the UNIX-emulation features of such tools as Cygwin and MinGW. Also see the @url{https://savannah.gnu.org/projects/gnucobol, GNUwebsite} for more information.
143
143
Pre built Implemeations for Windows can also be found at @url{https://www.arnoldtrembley.com/GnuCOBOL.htm}.
144
144
145
-
The MinGW approach is a personal favourite with the author of this manual because it creates a GnuCOBOL compiler and runtime library that require only a single MinGW DLL to be available for the GnuCOBOL compiler, runtime library and user programs. That DLL is freely distributable under the terms of the GNU General Public License. A MinGW build of GnuCOBOL fits easily on and runs from a 128MB flash drive with no need to install any software onto the Windows computer that will be using it. Some functionality of the language, dealing with the sharing of files between concurrently executing GnuCOBOL programs and record locking on certain types of files, is sacrificed however as the underlying operating system routines needed to implement them aren't available to Windows and aren't provided by MinGW. The current version for MinGW is available at the download link along with various other platforms at the GnuCOBOL @url{https://sourceforge.net/projects/gnucobol/files/gnu-cobol}, download website.
145
+
The MinGW approach is a personal favourite with the author of this manual because it creates a GnuCOBOL compiler and runtime library that require only a single MinGW DLL to be available for the GnuCOBOL compiler, runtime library and user programs. That DLL is freely distributable under the terms of the GNU General Public License. A MinGW build of GnuCOBOL fits easily on and runs from a 128MB flash drive with no need to install any software onto the Windows computer that will be using it. Some functionality of the language, dealing with the sharing of files between concurrently executing GnuCOBOL programs and record locking on certain types of files, is sacrificed however as the underlying operating system routines needed to implement them aren't available to Windows and aren't provided by MinGW. The current version for MinGW is available at the download link along with various other platforms at the GnuCOBOL @url{https://sourceforge.net/projects/gnucobol/files/gnu-cobol}, download website.
146
146
147
147
GnuCOBOL has also been built as a truly native Windows application utilizing Microsoft's freely-downloadable Visual Studio Community package to provide the C compiler and linker/loader. This approach does not lend itself well to a ``portable'' distribution.
Copy file name to clipboardExpand all lines: guide/2.texi
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -655,6 +655,7 @@ Without specifying the environment variable COB_LEGACY = 1, will give you, what
655
655
1. Using FOREGROUND-COLOR and a color code from 8 to 15: the character will be HIGHLIGHT (and that is the new color).
656
656
657
657
2. Using BACKGROUND-COLOR and a color code from 8 to 15: the character will be the corresponding color coded from 0 to 7 and BLINK. (the character flashes on the screen)
658
+
658
659
With specifying the parameter COB_LEGACY = 1 will give you what follows:
659
660
660
661
3 Using FOREGROUND-COLOR and a color code from 8 to 15: the foreground character will be the new color.
@@ -1053,7 +1054,8 @@ Literals are constant values that will not change during the execution of a prog
Copy file name to clipboardExpand all lines: guide/6.texi
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -249,7 +249,7 @@ Every sort file description (@code{SD} or @code{FD}) must be followed by at leas
249
249
The reserved words @code{BY}, @code{IS}, @code{KEY}, @code{ON} and @code{WHEN} are optional and may be included, or not, at the discretion of the programmer. The presence or absence of these words has no effect upon the program.
250
250
251
251
@item
252
-
The reserved words @code{SYNCRONIZED} and @code{SYNCRONISED} are interchangeable. Both may be abbreviated to @code{SYNC}.
252
+
The reserved words @code{SYNCHRONIZED} and @code{SYNCHRONISED} are interchangeable. Both may be abbreviated to @code{SYNC}.
253
253
254
254
@item
255
255
The reserved word @code{PICTURE} may be abbreviated to @code{PIC}.
@@ -304,7 +304,7 @@ The working-storage section is used to describe data items that are not part of
304
304
The reserved words @code{BY}, @code{CHARACTER}, @code{IS}, @code{KEY}, @code{ON}, @code{RIGHT} (JUSTIFIED), @code{TIMES} and @code{WHEN} are optional and may be included, or not, at the discretion of the programmer. The presence or absence of these words has no effect upon the program.
305
305
306
306
@item
307
-
The reserved words @code{SYNCRONIZED} and @code{SYNCHRONISED} are interchangeable. Both may be abbreviated as @code{SYNC}.
307
+
The reserved words @code{SYNCHRONIZED} and @code{SYNCHRONISED} are interchangeable. Both may be abbreviated as @code{SYNC}.
308
308
309
309
@item
310
310
The reserved word @code{PICTURE} may be abbreviated to @code{PIC}.
@@ -356,7 +356,7 @@ The local-storage section is similar to working-storage, but describes data with
356
356
The reserved words @code{BY}, @code{CHARACTER} @code{IS}, @code{KEY}, @code{ON}, @code{RIGHT} (JUSTIFIED), @code{TIMES} and @code{WHEN} are optional and may be included, or not, at the discretion of the programmer. The presence or absence of these words has no effect upon the program.
357
357
358
358
@item
359
-
The reserved words @code{SYNCRONIZED} and @code{SYNCHRONISED} are interchangeable. Both may be abbreviated as @code{SYNC}.
359
+
The reserved words @code{SYNCHRONIZED} and @code{SYNCHRONISED} are interchangeable. Both may be abbreviated as @code{SYNC}.
360
360
361
361
@item
362
362
The reserved word @code{PICTURE} may be abbreviated to @code{PIC}.
@@ -405,7 +405,7 @@ The linkage section describes data within a subprogram that serves as either inp
405
405
The reserved words @code{BY}, @code{CHARACTER}, @code{IS}, @code{KEY}, @code{ON} and @code{WHEN} are optional and may be included, or not, at the discretion of the programmer. The presence or absence of these words has no effect upon the program.
406
406
407
407
@item
408
-
The reserved words @code{SYNCRONIZED} and ``@code{SYNCHRONISED}'' are interchangeable. Both may be abbreviated as @code{SYNC}.
408
+
The reserved words @code{SYNCHRONIZED} and ``@code{SYNCHRONISED}'' are interchangeable. Both may be abbreviated as @code{SYNC}.
409
409
410
410
@item
411
411
The reserved word @code{PICTURE} may be abbreviated to @code{PIC}.
@@ -972,7 +972,7 @@ The intent of a 77-level item is to be able to create a stand-alone elementary d
972
972
The reserved words @code{CHARACTER}, @code{IS}, @code{RIGHT} (JUSTIFIED) and @code{WHEN} are optional and may be omitted. The presence or absence of these words has no effect upon the program.
973
973
974
974
@item
975
-
The reserved word @code{JUSTIFIED} may be abbreviated as @code{JUST}, the reserved word @code{PICTURE} may be abbreviated as @code{PIC} and the reserved words @code{SYNCRONIZED} and @code{SYNCHRONISED} may be abbreviated as @code{SYNC}.
975
+
The reserved word @code{JUSTIFIED} may be abbreviated as @code{JUST}, the reserved word @code{PICTURE} may be abbreviated as @code{PIC} and the reserved words @code{SYNCHRONIZED} and @code{SYNCHRONISED} may be abbreviated as @code{SYNC}.
976
976
977
977
@item
978
978
New programs requiring a stand-alone elementary item should be coded to use a level number of 01 rather than 77.
@@ -1107,7 +1107,7 @@ Executing the statement @code{SET @var{condition-name-1} TO FALSE} will cause @v
1107
1107
* 6.9.43B: SIZE.
1108
1108
* 6.9.44: SOURCE.
1109
1109
* 6.9.45: SUM.
1110
-
* 6.9.46: SYNCRONIZED.
1110
+
* 6.9.46: SYNCHRONIZED.
1111
1111
* 6.9.46B: TIME OUT
1112
1112
* 6.9.47: TO.
1113
1113
* 6.9.48: TYPE.
@@ -2745,21 +2745,21 @@ If, however, you want to reset the @code{SUM} counter only when the control foot
This optional clause optimizes the storage of binary numeric items to store them in such a manner as to make it as fast as possible for the CPU to fetch them.
2757
2757
@enumerate
2758
2758
@item
2759
-
The reserved words @code{SYNCRONIZED} and @code{SYNCHRONISED} are interchangeable, and may be abbreviated as @code{SYNC}.
2759
+
The reserved words @code{SYNCHRONIZED} and @code{SYNCHRONISED} are interchangeable, and may be abbreviated as @code{SYNC}.
2760
2760
2761
2761
@item
2762
-
If the @code{SYNCRONIZED} clause is coded on anything but a numeric data item with a @syntaxref{USAGE} that specifies storage of data in a binary form, the @code{SYNCRONIZED} clause will be ignored.
2762
+
If the @code{SYNCHRONIZED} clause is coded on anything but a numeric data item with a @syntaxref{USAGE} that specifies storage of data in a binary form, the @code{SYNCHRONIZED} clause will be ignored.
2763
2763
2764
2764
@item
2765
2765
Synchronization is performed (by the compiler) as follows:
@@ -2778,7 +2778,7 @@ If the binary item occupies eight bytes of storage, the binary item is allocated
2778
2778
@end enumerate
2779
2779
@end enumerate
2780
2780
@iftex
2781
-
The following illustrates the allocation of a group of data items both without and with the @code{SYNCRONIZED} option. The grey blocks represent the unused bytes that are allocated in the Group-Item-2 structure because of the @code{SYNC} clauses.
2781
+
The following illustrates the allocation of a group of data items both without and with the @code{SYNCHRONIZED} option. The grey blocks represent the unused bytes that are allocated in the Group-Item-2 structure because of the @code{SYNC} clauses.
2782
2782
@sp1
2783
2783
@image{synchronization,6in}
2784
2784
@end iftex
@@ -2968,7 +2968,7 @@ Figure 2. Example Showing How TYPEDEF and TYPE Clauses Can Be Used
2968
2968
@end example
2969
2969
@end enumerate
2970
2970
This syntax is valid in the following sections:
2971
-
@code{REPORT}
2971
+
@code{REPORT}
2972
2972
2973
2973
As Format 2
2974
2974
@enumerate
@@ -3104,12 +3104,16 @@ The following table summarizes the various USAGE specifications available in Gnu
3104
3104
@end multitable
3105
3105
3106
3106
@t{BINARY-C-LONG[SIGNED]}@*@t{~~~~~~~~~~~~~}
3107
+
@multitable@columnfractions0.050.40.55
3107
3108
3108
3109
@item Depending on the system hardware, the range is either 0 to 2^31 or 0 to 2^63.
@item Depending on the system hardware, the range is either 0 to 2^32 or 0 to 2^64. This USAGE should only be used for direct CALLs into C and otherwise should not be used (and it won't compile with any strict -std as it is a GnuCOBOL-only extension).
Copy file name to clipboardExpand all lines: guide/7.texi
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -696,7 +696,7 @@ As part of the @code{TIMES} clause of a @statementref{PERFORM}.
696
696
* 7.8.12.1: DISPLAY UPON device
697
697
* 7.8.12.2: DISPLAY UPON COMMAND-LINE
698
698
* 7.8.12.3: DISPLAY UPON ENVIRONMENT-NAME
699
-
* 7.8.12.4: DISPLAY Data-Item
699
+
* 7.8.12.4: DISPLAY data-item
700
700
* 7.8.12.5: DISPLAY data-item (Microsoft v1, 2)
701
701
@end detailmenu
702
702
* 7.8.13: DIVIDE
@@ -1475,11 +1475,11 @@ The @code{ALLOCATE} statement is used to dynamically allocate memory at run-time
1475
1475
The reserved words @code{INITIALIZED} and @code{INITIALISED} are interchangeable.
1476
1476
1477
1477
@item
1478
-
If data-name-1 is specified, the RETURNING phrase may be omitted; otherwise, the RETURNING phrase shall be
1478
+
If @var{identifier-1} is specified, the RETURNING phrase may be omitted; otherwise, the RETURNING phrase shall be
1479
1479
specified.
1480
1480
1481
1481
@item
1482
-
If used, @var{expression-1} must be an arithmetic expression with a non-zero positive integer value and the RETURNING phrase must be specified.
1482
+
If used, @var{arithmetic-expression-1} must be an arithmetic expression with a non-zero positive integer value and the RETURNING phrase must be specified.
1483
1483
1484
1484
@item
1485
1485
If used, @var{identifier-1} should be an 01-level item defined in working-storage or local-storage with the @syntaxref{BASED} attribute. It may be an 01 item defined in the linkage section without the @code{BASED} attribute, but using such a data item is not recommended.
@@ -1496,7 +1496,7 @@ When the @var{identifier-1} option is used in conjunction with
1496
1496
@syntaxidx{INITIALIZED} (or its internationalized alternative @code{INITIALISED}), the allocated memory block will be initialized as if an @syntaxrefalt{INITIALIZE@var{identifier-1} WITHFILLERALLTOVALUETHENTODEFAULT,INITIALIZE} were executed.
1497
1497
1498
1498
@item
1499
-
When the @code{@var{expression-1} CHARACTERS} option is used, @code{INITIALIZED} will initialize the allocated memory block to binary zeros. If @code{INITIALIZED} is not used, the initial contents of allocated memory will be left to whatever rules of memory allocation are in effect for the operating system the program is running under.
1499
+
When the @code{@var{arithmetic-expression-1} CHARACTERS} option is used, @code{INITIALIZED} will initialize the allocated memory block to binary zeros. If @code{INITIALIZED} is not used, the initial contents of allocated memory will be left to whatever rules of memory allocation are in effect for the operating system the program is running under.
1500
1500
1501
1501
@item
1502
1502
There are two basic ways in which this statement is used. The simplest is:
@@ -1887,11 +1887,11 @@ Consider using @syntaxref{SET ENVIRONMENT} in lieu of @code{DISPLAY} to set envi
1887
1887
The optional @code{ONEXCEPTION} and @code{NOTONEXCEPTION} clauses may be used to detect and react to the failure or success, respectively, of an attempt to display output to the specified item. @xref{ONEXCEPTION+NOTONEXCEPTION}, for additional information.
0 commit comments