Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
acc2817
Accept field names which contain Japanese characters (#324)
yutaro-sakamoto Feb 3, 2024
c97a36c
Fix the runtime checking of national fieds (#326)
yutaro-sakamoto Feb 4, 2024
a408f78
Fix the runtime checking of OCCURS DEPENDING ON (#328)
yutaro-sakamoto Feb 4, 2024
c1b9564
Update the encoding of runtime error message of subscript tests (#329)
yutaro-sakamoto Feb 5, 2024
d671cf0
Improve the readability of generated Java code slightly (#330)
yutaro-sakamoto Feb 6, 2024
13bd22f
Add -std and -conf options (#331)
yutaro-sakamoto Feb 13, 2024
4074369
Add a new option `-Wconstant` (#335)
yutaro-sakamoto Feb 14, 2024
3702a7e
Add options `-Warchaic` and `-Wobsolete` (#336)
yutaro-sakamoto Feb 15, 2024
5882e33
Emit an error if program-id is MAIN (#337)
yutaro-sakamoto Feb 16, 2024
9c01dc2
Implement FUNCTION LOCALE-DATE (#338)
yutaro-sakamoto Feb 17, 2024
fddb2c8
ADD FUNCTION LOCALE-TIME (#340)
yutaro-sakamoto Feb 18, 2024
c8228a5
Add FUNCTION LOCALE-TIME-FROM-SECONDS (#341)
yutaro-sakamoto Feb 19, 2024
63cc9fa
Fix tests for COB_PRE_LOAD (#342)
yutaro-sakamoto Feb 20, 2024
4edc1d4
Improve workflows (#343)
yutaro-sakamoto Feb 21, 2024
9bdb51e
Fix errors emitted by javadoc (#344)
yutaro-sakamoto Feb 22, 2024
560a2ca
Detect invalid indexed record keys (#346)
yutaro-sakamoto Feb 23, 2024
493e6c9
Start implementing split-keys (#347)
yutaro-sakamoto Feb 24, 2024
13ca1bd
Simplify configure.ac (#348)
yutaro-sakamoto Feb 25, 2024
f606c75
Update the version to 1.0.20 (#349)
yutaro-sakamoto Feb 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build-gcc9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
Expand All @@ -18,7 +18,7 @@ jobs:
sudo apt install -y gcc-9 build-essential gettext autoconf

- name: Checkout opensource COBOL 4J
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install opensource COBOL 4J
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- name: Run javadoc
working-directory: libcobj
run: |
./gradlew javadoc || true
./gradlew javadoc
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

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

## [1.0.20] - 2024-02-28
### Added
* Add command line options
* `-conf`: specify the configuration file (#331)
* `-std`: specify the dialect (#331)
* `-Wconstant`: Warn inconsistent constant (#335)
* `-Warchaic`: Warn if archaic features are used (#336)
* `-Wobsolete`: Warn if obsolete features are used (#336)
* Add intrinsic functions
* `LOCALE-DATE` (#338)
* `LOCALE-TIME` (#340)
* `LOCALE-TIME-FROM-SECONDS` (#341)
### Fixed
* Fix runtime checkings (#326, #328)
* Detect invalid indexed record keys (#346)
* Accept field names which contain Japanese characters (#324)

## [1.0.19] - 2024-01-31
### Added
* A new CLI tool for indexed files (#299)
Expand Down
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2024-02-28 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>

* opensource COBOL 4J v1.0.20 released.

2024-01-31 OSS Consortium <ws-opensource-cobol-contact@osscons.jp>

* opensource COBOL 4J v1.0.19 released.
Expand Down
22 changes: 21 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
NEWS - user visible changes -*- outline -*-

* opensource COBOL 4J 1.0.19
-----------------------------------------------------------------------

* opensource COBOL 4J 1.0.20

** New Features
(1) Add command line options
* -conf: specify the configuration file
* -std: specify the dialect
* -Wconstant: Warn inconsistent constant
* -Warchaic: Warn if archaic features are used
* -Wobsolete: Warn if obsolete features are used
(2) Add intrinsic functions
* LOCALE-DATE
* LOCALE-TIME
* LOCALE-TIME-FROM-SECONDS
** Bug Fixes
(1) Fix runtime checkings
(2) Detect invalid indexed record keys
(3) Accept field names which contain Japanese characters

-----------------------------------------------------------------------

* opensource COBOL 4J 1.0.19

** New Features
(1) A new CLI tool for indexed files
(2) Implement `COB_FILE_SEQ_WRITE_BUFFER_SIZE`
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ dnf install -y java-21-amazon-corretto-devel gcc make bison flex automake autoco

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

```bash
docker pull opensourcecobol/opensourcecobol4j:1.0.19
docker pull opensourcecobol/opensourcecobol4j:1.0.20
```

Execute the following commands in order to run the "Hello World" COBOL program.
Expand Down
12 changes: 6 additions & 6 deletions README_JP.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ opensource COBOL 4J は下記の環境でテストされています.

## インストール

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

## 手動インストール

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

```
curl -L -o opensourcecobol4j-v1.0.19.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.19.tar.gz
tar zxvf opensourcecobol4j-v1.0.19.tar.gz
cd opensourcecobol4j-1.0.19
curl -L -o opensourcecobol4j-v1.0.20.tar.gz https://github.com/opensourcecobol/opensourcecobol4j/archive/refs/tags/v1.0.20.tar.gz
tar zxvf opensourcecobol4j-v1.0.20.tar.gz
cd opensourcecobol4j-1.0.20
./configure --prefix=/usr/
make
sudo make install
Expand All @@ -73,10 +73,10 @@ sudo make install

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

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

```bash
docker pull opensourcecobol/opensourcecobol4j:1.0.19
docker pull opensourcecobol/opensourcecobol4j:1.0.20
```

コンテナ内で下記のコマンドを実行すると、Hello Worldプログラムをコンパイル&実行できる。
Expand Down
4 changes: 2 additions & 2 deletions bin/cobjrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ cobjrun_print_version (void)
} else {
snprintf (buff, buff_size, "%s %s", __DATE__, __TIME__);
}
printf ("cobjrun (%s) %s.%d\n",
PACKAGE_NAME, PACKAGE_VERSION, PATCH_LEVEL);
printf ("cobjrun (%s) %s\n",
PACKAGE_NAME, PACKAGE_VERSION);
puts ("Copyright (C) 2022-2022 TOKYO SYSTEM HOUSE CO.,LTD.");
}

Expand Down
3 changes: 0 additions & 3 deletions cobj/check-format
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ codegen.c \
config.c \
error.c \
field.c \
pplex.c \
ppparse.c \
ppparse.h \
reserved.c \
tree.c \
tree.h \
Expand Down
12 changes: 10 additions & 2 deletions cobj/cobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,13 @@ static void cobc_print_usage(void) {
puts(_(" --version, -V Display compiler version"));
puts(_(" -m Create jar files instead of "
"class files (an experimental feature)"));
puts(_(" -std=<dialect> Warnings/features for a specific "
"dialect :"));
puts(_(" cobol85 Cobol 85"));
puts(_(
" default When not specified"));
puts(_(" See config/default.conf and "
"config/*.conf"));
puts(_(" -free Use free source format"));
puts(_(" -free_1col_aster Use free(1col_aster) source "
"format"));
Expand All @@ -801,6 +808,8 @@ static void cobc_print_usage(void) {
"search path"));
puts(_(" -B <options> Add <options> to the Java "
"compiler"));
puts(_(" -conf=<file> User defined dialect "
"configuration - See -std="));
puts(_(" --list-reserved Display reserved words"));
puts(
_(" -assign_external Set the file assign to external"));
Expand Down Expand Up @@ -1556,8 +1565,7 @@ static int preprocess(struct filename *fn) {
if (ppout) {
char line[COB_MEDIUM_BUFF];
memset(line, 0, sizeof(line));
fprintf(cb_listing_file, "# Generated by %s.%d\n", PACKAGE_STRING,
PATCH_LEVEL);
fprintf(cb_listing_file, "# Generated by %s\n", PACKAGE_STRING);
fprintf(cb_listing_file, "# Built %s\n", cb_oc_build_stamp);
fprintf(cb_listing_file, "# Packaged %s\n", octardate);
fprintf(cb_listing_file, "# Environment\n");
Expand Down
Loading