]> git.ipfire.org Git - thirdparty/gcc.git/commit
a68: introduce a68_file_size and a68_file_read
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 15 Dec 2025 13:03:01 +0000 (14:03 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 16 Dec 2025 12:20:46 +0000 (13:20 +0100)
commitf5ffb084e1c2f9d679306c9999f8d3cb53a79d23
treed26b7354d4401a5f591432db63a09f85263cca4c
parent0959845c0df84adfee3214894a75dce4920ba0d2
a68: introduce a68_file_size and a68_file_read

This commit introduces two new utility functions that replace some
ad-hoc infrastructure in the scanner.

Signed-off-by: Jose E. Marchesi <jemarch@gnu.org>
gcc/algol68/ChangeLog

* a68.h: Prototypes for a68_get_file_size and a68_file_read.
* a68-parser-scanner.cc (a68_file_size): New function.
(a68_file_read): Renamed from io_read.
(get_source_size): Deleted function.
(include_files): Use a68_file_size and a68_file_read.
gcc/algol68/a68-parser-scanner.cc
gcc/algol68/a68.h