Commit Graph

11 Commits

Author SHA1 Message Date
Kartik Agaram 3d9108130f 4746 2018-11-17 23:36:32 -08:00
Kartik Agaram 267fd885b2 4745 2018-11-17 20:45:22 -08:00
Kartik Agaram 11a5fffade 4743 2018-11-12 22:00:51 -08:00
Kartik Agaram dd63f4dcb4 4738 2018-10-30 22:36:52 -07:00
Kartik Agaram f94442fe2d 4736
We'll use a common stream data structure for input and output streams.

Having separate types makes more sense in a more high-level language, where
we have type checking and where functions for handling the different types
are more concise. But in machine code the sweet spot is more toward fewer
types.
2018-10-29 16:34:47 -07:00
Kartik Agaram 3d94e2db0e 4735 2018-10-28 23:17:56 -07:00
Kartik Agaram 261b1b8056 4719 - testable interface wrapping around exit() 2018-10-24 22:21:59 -07:00
Kartik Agaram b847538071 4711
Extract a helper for appending strings to raw buffers.

I'd been resisting this idea, but it actually turns out to be a pretty
clean abstraction in the end.
2018-10-17 22:31:39 -07:00
Kartik Agaram 4cc517e0de 4710
Start using write() instead of _write().. and we promptly find a typo when
dealing with real file descriptors.
2018-10-17 08:19:03 -07:00
Kartik Agaram 800320a70c 4708 2018-10-17 06:47:28 -07:00
Kartik Agaram 3d6450f216 4707 - subx: dependency-injected write() primitive 2018-10-16 23:44:31 -07:00