Commit Graph

14 Commits

Author SHA1 Message Date
funkenzuzzler
cbea89aa6b Misc fixes (#1103)
* DiskImage: match new[] with delete[]

Signed-off-by: Sven Schnelle <fz@stackframe.org>

* st_tos: match new[] with delete[]

Signed-off-by: Sven Schnelle <fz@stackframe.org>

* scaler: fix calloc arguments

The first argument is the number of members, the second
argument the size of each member. Swap the arguments to
the correct order to prevent warings with newer compilers.

Signed-off-by: Sven Schnelle <fz@stackframe.org>

---------

Signed-off-by: Sven Schnelle <fz@stackframe.org>
2026-02-24 18:57:25 +08:00
sorgelig
9cd404ea65 Common shared memory module. Using O_CLOEXEC for opened files. 2021-04-16 23:12:46 +08:00
Sven Killig
dfc87dedfd Comments: converted mixed codepage mess to UTF-8 2020-05-04 02:16:09 +08:00
sorgelig
6e27efef8d C64: rework T64 support to use memory file. 2020-01-20 23:46:21 +08:00
sorgelig
4726048389 Apple-II: add disk format converter, some cleanup. 2019-10-04 16:40:02 +08:00
sorgelig
f056480a07 Normalize line endings, remove trailing spaces. 2019-06-29 00:57:18 +08:00
sorgelig
00a75bd80b Fix EOL in sources. 2019-03-22 20:38:14 +08:00
David Holm
0a0341bf81 file_io, DiskImage, sharpmz: Replace fd with FILE*
Replace file descriptor with a file stream in preparation for supporting
zipped files.

The API to miniz requires the use of file streams and since a file
descriptor can easily be extracted from a stream using `fileno` it's
much more convenient to use file streams everywhere.
2019-01-09 20:58:29 +01:00
sorgelig
ddd5b75d2b Fix the warnings and some errors. 2018-12-29 21:15:25 +08:00
David Holm
e0781ccfc1 diskimage: Fix memory leak
Use array delete operator for pointer that was allocated with new[] so
that all entries are deleted.
2018-12-29 12:19:06 +01:00
sorgelig
d235e806b2 Move to C++. Use C++14 as it adds binary literals -> HDL friendly. 2018-02-28 01:58:21 +08:00
sorgelig
ac05f648e6 Change \ to / in header path for make it linux compiler friendly. 2017-11-15 23:19:44 +08:00
sorgelig
321f015476 Inject boot into SCL, remove unused code. 2017-09-02 03:34:30 +08:00
sorgelig
1fa8fc4f14 Support for SCL/FDI/UDI disk formats(read-only) in TRDOS. 2017-09-01 20:50:45 +08:00