Sigrid Solveig Haflínudóttir
dbcb8ed050
retry_realpath: check before possibly writing out of bounds
2023-07-10 17:21:36 +00:00
Sevan Janiyan
305b8469b0
Use the correct definition to obtain snprintf(3)
...
At some point snprintf(3) prototype became guarded off in stdio.h.
Defining _C99_SOURCE makes it visible.
On legacy Darwin, such a guard was not present so the definition
has no impact on the build, but on "modern" macos it has the desired
effect.
Build tested on OS X 10.4 and macos 10.15.
2023-05-15 08:32:48 -07:00
Matus Laslofi
d2e054346f
Declare snprintf to fix builds on macOS
...
For some reason on macOS, the functions `snprintf` and `vsnprintf` are
not in the X/Open 5 (ANSI C89) standard but rather in the X/Open
6 (ISO C99). A simplest solution seems to be to declaring the missing
functions before using them, which is what I did here. Another option
is to use the C99 standard with `#define _XOPEN_SOURCE 600`, which
seems to be an overkill for such a niche issue.
Quoting from the STANDARDS section in `man 3 snprintf` on macOS:
> ...the snprintf() and vsnprintf() functions conform to ISO/IEC
> 9899:1999 (“ISO C99”)...
2023-05-01 09:27:49 -07:00
Sigrid Solveig Haflínudóttir
37afbc25fb
file: sprintf → snprintf
2023-03-20 16:58:45 +01:00
Devine Lu Linvega
e386c3aeaa
Fixed issue with Windows builds
2023-03-19 14:12:14 -07:00
Deadly Headshot
05fd9771ca
A more elegant solution to the Windows bugs in filepaths and MinGW compilation
2023-03-19 14:11:42 -07:00
Devine Lu Linvega
4e77d3d5ae
Renamed PEEK16/POKE16 to PEEK2/POKE2
2023-03-12 15:25:52 -07:00
Devine Lu Linvega
aeceaf75bf
Removed file dei event
2023-03-03 21:04:26 -08:00
Devine Lu Linvega
abd7ab403e
Removed POKDEV
2023-03-01 10:53:44 -08:00
Devine Lu Linvega
486a60b1bd
Removed PEKDEV macro
2023-03-01 10:49:25 -08:00
Andrew Alderwick
f07775a9a2
(file device) Fix buffer overflow.
2023-02-17 21:39:14 +00:00
Devine Lu Linvega
60080d8fe8
(file device)Add / suffix to folder names
2023-02-17 10:08:00 -08:00
Devine Lu Linvega
e20b572c20
Moved all system memory functions into system.c
2023-01-31 09:38:06 -08:00
Andrew Alderwick
5538e539d2
Minor optimisation.
2023-01-31 17:11:54 +00:00
Andrew Alderwick
9d9d094e6a
Bare minimum changes to get Windows builds running again.
2023-01-31 17:05:01 +00:00
Devine Lu Linvega
0aa4aeff41
Load rom in chunks of 64kb
2023-01-28 18:38:37 -08:00
Devine Lu Linvega
390ae8138a
Extend loaded rom size
2023-01-28 15:05:24 -08:00
Andrew Alderwick
5cacb3f241
Fix macOS build.
2023-01-02 15:23:28 +00:00
Andrew Alderwick
c2b0667496
Update Copyright years.
2023-01-02 14:40:23 +00:00
Devine Lu Linvega
7afe1f39c7
Screen device is half ported to new device handlers
2023-01-01 13:19:40 -08:00
Devine Lu Linvega
68d706be25
Will connect devices to devold while I migrate to new router
2023-01-01 12:12:59 -08:00
Andrew Alderwick
a35ef6b242
Fix build warning on Windows.
2022-04-09 11:37:06 +01:00
Andrew Alderwick
47f65c7b82
(uxncli) Load ROM using the File device functions.
2022-03-28 18:51:29 +01:00
Andrew Alderwick
42dea5b914
Replace file_i_deo and file_i_dei.
2022-03-28 18:16:44 +01:00
neauoire
c4f7483027
Arranged include order
2022-03-27 09:18:02 -07:00
Andrew Alderwick
7ce8cc1d24
Add file reading with .File/read DEI(2).
2022-03-17 19:09:34 +00:00
Andrew Alderwick
205cc89bcb
Keep a local copy of File/name; don't try to read it beyond end of RAM.
2022-03-17 18:41:55 +00:00
Andrew Alderwick
27089a77e4
Prepare for more than one File device.
2022-03-17 18:35:49 +00:00
Andrew Alderwick
a3b87e021f
Rename file_deo variables.
2022-03-17 17:08:03 +00:00
Andrew Alderwick
055fa9bcd0
Close some security holes.
2022-01-23 23:17:54 +00:00
neauoire
6a6a2ec383
Removed external memory bank
2022-01-12 18:56:59 -08:00
neauoire
459855d825
Removed supervisor
2022-01-12 18:40:51 -08:00
neauoire
cd30b48665
Rename memory banks
2022-01-11 14:16:27 -08:00
Andrew Alderwick
9fcb0c335b
Remove use of snprintf.
2022-01-10 11:35:45 +00:00
Andrew Alderwick
0d242d704e
Correct cast for snprintf
2022-01-10 09:59:00 +00:00
neauoire
5004ee1339
The file device cannot write on the supervisor
2022-01-08 10:03:21 -08:00
neauoire
8fdb039926
Merge branch 'main' of git.sr.ht:~rabbits/uxn
2022-01-07 16:47:01 -08:00
neauoire
f5278f3a13
Removed device vector variable
2022-01-07 16:46:50 -08:00
Sigrid Solveig Haflínudóttir
eeb0dc9e45
put back newlines to avoid compilation warnings
2022-01-07 23:46:39 +01:00
neauoire
19a8e56cd6
Started device port masking
2022-01-07 10:02:28 -08:00
Andrew Alderwick
2a825de2fd
Switch void context increments from pre to post
2022-01-04 02:05:32 +00:00
neauoire
4789d8ccef
Removed peek16
2022-01-03 13:29:47 -08:00
neauoire
0ee477615b
Removed poke16
2022-01-03 13:23:57 -08:00
neauoire
a747e4b20a
Fixed issue with screen resize
2021-12-28 17:22:40 -08:00
neauoire
69f72485c7
Invert y scroll
2021-12-28 10:56:53 -08:00
neauoire
13fd0d9724
Moved file APIs in device/file
2021-12-26 20:26:27 -08:00
Andrew Alderwick
d2c6d5e12d
Remove unused limits.h
2021-11-07 19:34:41 +00:00
Sigrid Solveig Haflínudóttir
fd7cf5e221
file: write: return error if fflush failed
2021-11-07 20:21:15 +01:00
Sigrid Solveig Haflínudóttir
3606081184
file: reduce casts
2021-11-07 20:06:15 +01:00
Sigrid Solveig Haflínudóttir
677b02f0a3
file: replace strncpy+strncat with a single snprintf call
2021-11-07 20:00:56 +01:00