mirror of
https://git.sr.ht/~crc_/retroforth
synced 2024-11-16 19:48:56 +01:00
nga-c: filesystem device no longer included if ENABLE_FILES not defined
FossilOrigin-Name: c1ad7c9c9b2e5dd367792f752bdf70eaca622c6bfb96bacb184388f86e7f7206
This commit is contained in:
parent
1632155687
commit
20092a037e
2 changed files with 6 additions and 0 deletions
|
@ -27,6 +27,8 @@
|
||||||
- nga-c
|
- nga-c
|
||||||
|
|
||||||
- use UTF32 internally (translating to/from UTF8 externally)
|
- use UTF32 internally (translating to/from UTF8 externally)
|
||||||
|
- filesystem device no longer included if ENABLE_FILES not
|
||||||
|
defined
|
||||||
|
|
||||||
Future Notes
|
Future Notes
|
||||||
|
|
||||||
|
|
|
@ -296,7 +296,9 @@ V guard(NgaState *vm, int n, int m, int diff) {
|
||||||
#include "dev-blocks.c"
|
#include "dev-blocks.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_FILES
|
||||||
#include "dev-files.c"
|
#include "dev-files.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_MULTICORE
|
#ifdef ENABLE_MULTICORE
|
||||||
#include "dev-multicore.c"
|
#include "dev-multicore.c"
|
||||||
|
@ -969,7 +971,9 @@ enum flags {
|
||||||
V register_devices(NgaState *vm) {
|
V register_devices(NgaState *vm) {
|
||||||
register_device(vm, io_output, query_output);
|
register_device(vm, io_output, query_output);
|
||||||
register_device(vm, io_keyboard, query_keyboard);
|
register_device(vm, io_keyboard, query_keyboard);
|
||||||
|
#ifdef ENABLE_FILES
|
||||||
register_device(vm, io_filesystem, query_filesystem);
|
register_device(vm, io_filesystem, query_filesystem);
|
||||||
|
#endif
|
||||||
register_device(vm, io_image, query_image);
|
register_device(vm, io_image, query_image);
|
||||||
#ifdef ENABLE_FLOATS
|
#ifdef ENABLE_FLOATS
|
||||||
register_device(vm, io_floatingpoint, query_floatingpoint);
|
register_device(vm, io_floatingpoint, query_floatingpoint);
|
||||||
|
|
Loading…
Reference in a new issue