about summary refs log tree commit diff stats
path: root/subx/056write.subx
Commit message (Collapse)AuthorAgeFilesLines
* 4881Kartik Agaram2018-12-281-1/+1
|
* 4834Kartik Agaram2018-12-041-9/+0
| | | | Fix CI since 4827.
* 4827Kartik Agaram2018-12-031-4/+4
| | | | | | | | | I was 'returning' a phantom value from 'write' when the underlying '_write' returns nothing. In general, returning counts of bytes written is not so useful for error checking when my primitives abstract away from that. We'll come back to error signalling later.
* 4819Kartik Agaram2018-12-021-1/+1
|
* 4808 - clean up comments in all subx filesKartik Agaram2018-11-301-5/+5
|
* 4802Kartik Agaram2018-11-301-41/+41
| | | | | | | | | | | | | | | | Some automated commenting cleanup. Still needs more careful manual scanning. sed -i 's/^# 1-3/# . 1-3/' *.subx */*.subx sed -i 's/^# op/# . op/' *.subx */*.subx sed -i 's/# vim/# . . vim/' *.subx */*.subx sed -i 's/^ # push args/ # . . push args/' *.subx */*.subx sed -i 's/^ # discard args/ # . . discard args/' *.subx */*.subx sed -i 's/^ # call/ # . . call/' *.subx */*.subx sed -i 's/^ # prolog/ # . prolog/' *.subx */*.subx sed -i 's/^ # epilog/ # . epilog/' *.subx */*.subx sed -i 's/^ # save registers/ # . save registers/' *.subx */*.subx sed -i 's/^ # restore registers/ # . restore registers/' *.subx */*.subx sed -i 's/ operand / register /' *.subx */*.subx
* 4801Kartik Agaram2018-11-301-137/+137
| | | | Reindent all SubX code to make some room for the new comment style.
* 4780Kartik Agaram2018-11-261-1/+0
|
* 4767Kartik Agaram2018-11-241-15/+15
|
* 4760Kartik Agaram2018-11-211-0/+2
|
* 4759Kartik Agaram2018-11-201-1/+1
|
* 4756Kartik Agaram2018-11-191-1/+1
| | | | | Long-standing and long-copied typo has been messing with our exit status on test failures.
* 4747 - subx: 'read' primitiveKartik Agaram2018-11-181-15/+22
|
* 4746Kartik Agaram2018-11-171-17/+17
|
* 4745Kartik Agaram2018-11-171-1/+1
|
* 4743Kartik Agaram2018-11-121-4/+5
|
* 4738Kartik Agaram2018-10-301-2/+2
|
* 4736Kartik Agaram2018-10-291-43/+48
| | | | | | | | | 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.
* 4735Kartik Agaram2018-10-281-6/+6
|
* 4719 - testable interface wrapping around exit()Kartik Agaram2018-10-241-2/+2
|
* 4711Kartik Agaram2018-10-171-80/+27
| | | | | | | 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.
* 4710Kartik Agaram2018-10-171-1/+1
| | | | | Start using write() instead of _write().. and we promptly find a typo when dealing with real file descriptors.
* 4708Kartik Agaram2018-10-171-2/+2
|
* 4707 - subx: dependency-injected write() primitiveKartik Agaram2018-10-161-0/+251