Skip to content

Commit 3b8e8b3

Browse files
Merge pull request #350 from opensourcecobol/develop
2 parents 830d9e0 + f606c75 commit 3b8e8b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+3392
-3957
lines changed

.github/workflows/build-gcc9.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/setup-java@v3
10+
- uses: actions/setup-java@v4
1111
with:
1212
distribution: 'temurin'
1313
java-version: '21'
@@ -18,7 +18,7 @@ jobs:
1818
sudo apt install -y gcc-9 build-essential gettext autoconf
1919
2020
- name: Checkout opensource COBOL 4J
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2222

2323
- name: Install opensource COBOL 4J
2424
run: |

.github/workflows/javadoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
- name: Run javadoc
1919
working-directory: libcobj
2020
run: |
21-
./gradlew javadoc || true
21+
./gradlew javadoc

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [1.0.20] - 2024-02-28
8+
### Added
9+
* Add command line options
10+
* `-conf`: specify the configuration file (#331)
11+
* `-std`: specify the dialect (#331)
12+
* `-Wconstant`: Warn inconsistent constant (#335)
13+
* `-Warchaic`: Warn if archaic features are used (#336)
14+
* `-Wobsolete`: Warn if obsolete features are used (#336)
15+
* Add intrinsic functions
16+
* `LOCALE-DATE` (#338)
17+
* `LOCALE-TIME` (#340)
18+
* `LOCALE-TIME-FROM-SECONDS` (#341)
19+
### Fixed
20+
* Fix runtime checkings (#326, #328)
21+
* Detect invalid indexed record keys (#346)
22+
* Accept field names which contain Japanese characters (#324)
23+
724
## [1.0.19] - 2024-01-31
825
### Added
926
* A new CLI tool for indexed files (#299)

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-02-28 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
2+
3+
* opensource COBOL 4J v1.0.20 released.
4+
15
2024-01-31 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>
26

37
* opensource COBOL 4J v1.0.19 released.

NEWS

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
NEWS - user visible changes -*- outline -*-
22

3-
* opensource COBOL 4J 1.0.19
3+
-----------------------------------------------------------------------
4+
5+
* opensource COBOL 4J 1.0.20
6+
7+
** New Features
8+
(1) Add command line options
9+
* -conf: specify the configuration file
10+
* -std: specify the dialect
11+
* -Wconstant: Warn inconsistent constant
12+
* -Warchaic: Warn if archaic features are used
13+
* -Wobsolete: Warn if obsolete features are used
14+
(2) Add intrinsic functions
15+
* LOCALE-DATE
16+
* LOCALE-TIME
17+
* LOCALE-TIME-FROM-SECONDS
18+
** Bug Fixes
19+
(1) Fix runtime checkings
20+
(2) Detect invalid indexed record keys
21+
(3) Accept field names which contain Japanese characters
422

523
-----------------------------------------------------------------------
624

25+
* opensource COBOL 4J 1.0.19
26+
727
** New Features
828
(1) A new CLI tool for indexed files
929
(2) Implement `COB_FILE_SEQ_WRITE_BUFFER_SIZE`

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
5353

5454
### Install opensource COBOL 4J
5555
```
56-
curl -L -o opensourcecobol4j-v1.0.19.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.19.tar.gz
57-
tar zxvf opensourcecobol4j-v1.0.19.tar.gz
58-
cd opensourcecobol4j-1.0.19
56+
curl -L -o opensourcecobol4j-v1.0.20.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.20.tar.gz
57+
tar zxvf opensourcecobol4j-v1.0.20.tar.gz
58+
cd opensourcecobol4j-1.0.20
5959
./configure --prefix=/usr/
6060
make
6161
sudo make install
@@ -72,7 +72,7 @@ In order to check installations of older versions,
7272
The docker container for opensource COBOL 4J is available.
7373

7474
```bash
75-
docker pull opensourcecobol/opensourcecobol4j:1.0.19
75+
docker pull opensourcecobol/opensourcecobol4j:1.0.20
7676
```
7777

7878
Execute the following commands in order to run the "Hello World" COBOL program.

README_JP.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ opensource COBOL 4J は下記の環境でテストされています.
2323

2424
## インストール
2525

26-
opensource COBOL 4J v1.0.19はUbuntuとAlmaLinuxで動作を確認しています.
26+
opensource COBOL 4J v1.0.20はUbuntuとAlmaLinuxで動作を確認しています.
2727

2828
## 手動インストール
2929

@@ -57,9 +57,9 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco
5757
下記のコマンドを実行する
5858

5959
```
60-
curl -L -o opensourcecobol4j-v1.0.19.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.19.tar.gz
61-
tar zxvf opensourcecobol4j-v1.0.19.tar.gz
62-
cd opensourcecobol4j-1.0.19
60+
curl -L -o opensourcecobol4j-v1.0.20.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.20.tar.gz
61+
tar zxvf opensourcecobol4j-v1.0.20.tar.gz
62+
cd opensourcecobol4j-1.0.20
6363
./configure --prefix=/usr/
6464
make
6565
sudo make install
@@ -73,10 +73,10 @@ sudo make install
7373

7474
## Dockerによるインストール
7575

76-
opensource COBOL 4J v1.0.19をインストールしたDockerイメージを利用できます.
76+
opensource COBOL 4J v1.0.20をインストールしたDockerイメージを利用できます.
7777

7878
```bash
79-
docker pull opensourcecobol/opensourcecobol4j:1.0.19
79+
docker pull opensourcecobol/opensourcecobol4j:1.0.20
8080
```
8181

8282
コンテナ内で下記のコマンドを実行すると、Hello Worldプログラムをコンパイル&実行できる。

bin/cobjrun.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ cobjrun_print_version (void)
8484
} else {
8585
snprintf (buff, buff_size, "%s %s", __DATE__, __TIME__);
8686
}
87-
printf ("cobjrun (%s) %s.%d\n",
88-
PACKAGE_NAME, PACKAGE_VERSION, PATCH_LEVEL);
87+
printf ("cobjrun (%s) %s\n",
88+
PACKAGE_NAME, PACKAGE_VERSION);
8989
puts ("Copyright (C) 2022-2022 TOKYO SYSTEM HOUSE CO.,LTD.");
9090
}
9191

cobj/check-format

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ codegen.c \
77
config.c \
88
error.c \
99
field.c \
10-
pplex.c \
11-
ppparse.c \
12-
ppparse.h \
1310
reserved.c \
1411
tree.c \
1512
tree.h \

cobj/cobj.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,13 @@ static void cobc_print_usage(void) {
783783
puts(_(" --version, -V Display compiler version"));
784784
puts(_(" -m Create jar files instead of "
785785
"class files (an experimental feature)"));
786+
puts(_(" -std=<dialect> Warnings/features for a specific "
787+
"dialect :"));
788+
puts(_(" cobol85 Cobol 85"));
789+
puts(_(
790+
" default When not specified"));
791+
puts(_(" See config/default.conf and "
792+
"config/*.conf"));
786793
puts(_(" -free Use free source format"));
787794
puts(_(" -free_1col_aster Use free(1col_aster) source "
788795
"format"));
@@ -801,6 +808,8 @@ static void cobc_print_usage(void) {
801808
"search path"));
802809
puts(_(" -B <options> Add <options> to the Java "
803810
"compiler"));
811+
puts(_(" -conf=<file> User defined dialect "
812+
"configuration - See -std="));
804813
puts(_(" --list-reserved Display reserved words"));
805814
puts(
806815
_(" -assign_external Set the file assign to external"));
@@ -1556,8 +1565,7 @@ static int preprocess(struct filename *fn) {
15561565
if (ppout) {
15571566
char line[COB_MEDIUM_BUFF];
15581567
memset(line, 0, sizeof(line));
1559-
fprintf(cb_listing_file, "# Generated by %s.%d\n", PACKAGE_STRING,
1560-
PATCH_LEVEL);
1568+
fprintf(cb_listing_file, "# Generated by %s\n", PACKAGE_STRING);
15611569
fprintf(cb_listing_file, "# Built %s\n", cb_oc_build_stamp);
15621570
fprintf(cb_listing_file, "# Packaged %s\n", octardate);
15631571
fprintf(cb_listing_file, "# Environment\n");

0 commit comments

Comments
 (0)