aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-10-23 18:56:50 +0200
committerbptato <nincsnevem662@gmail.com>2024-10-23 19:08:47 +0200
commitee0ad00ecc2942af2420bb353b3fd426c9d4d037 (patch)
treed80108c89f112094e58d54a8ffb58247ff2fad42 /doc
parent151632bfa4a15dbd479066354c48efbac8ea461c (diff)
downloadchawan-ee0ad00ecc2942af2420bb353b3fd426c9d4d037.tar.gz
Update docs
Diffstat (limited to 'doc')
-rw-r--r--doc/architecture.md6
-rw-r--r--doc/image.md6
2 files changed, 6 insertions, 6 deletions
diff --git a/doc/architecture.md b/doc/architecture.md
index c30c991d..81f18413 100644
--- a/doc/architecture.md
+++ b/doc/architecture.md
@@ -24,8 +24,6 @@ This document describes some aspects of how Chawan works.
Explanation for the separate directories found in `src/`:
-* bindings: bindings for various C libraries. (Not wrappers, just the plain
- C API as Nim procedure prototypes.)
* config: configuration-related code. Mainly parsers for config files.
* css: styling-related code; CSS parsing and cascading.
* html: DOM building, DOM functions, the DOM itself, forms, etc. Note that it
@@ -46,8 +44,8 @@ Additionally, "adapters" of various protocols and file formats can be found in
* protocol: includes support for every protocol supported by Chawan.
* format: HTML converters for various text-based file formats.
* img: image decoders and encoders. In general, these just read and output
- RGBA data through standard I/O. (This is not very efficient, and therefore
- subject to change.)
+ RGBA data through standard I/O (which may actually be a cache file; see the
+ [image docs](image.md) for details).
## Process model
diff --git a/doc/image.md b/doc/image.md
index 6038f835..c707d160 100644
--- a/doc/image.md
+++ b/doc/image.md
@@ -181,8 +181,8 @@ stdin and/or stdout is (currently) a file in the tmp directory for:
* decode stdout, always
* encode stdin, always
-This makes it possible to mmap(2) stdin/stdout instead of streaming
-through them with read(2) and write(2). When doing this, mind the
+This makes it possible to mmap(3) stdin/stdout instead of streaming
+through them with read(3) and write(3). When doing this, mind the
following:
* When reading, you must check your initial position in the file with
@@ -192,6 +192,8 @@ following:
* This *is* an implementation detail, and might change at any time in
the future (e.g. if we add a "no cache files" mode). Always check
for S_ISREG to ensure that you are actually dealing with a file.
+ (Use io/dynstream.nim's recvDataLoopOrMmap and maybeMmapForSend
+ to deal with this automatically.)
<!-- MANON