mescc: Have ungetc remember 2 positions.
authorJan Nieuwenhuizen <janneke@gnu.org>
Thu, 23 Mar 2017 17:57:06 +0000 (18:57 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Thu, 23 Mar 2017 17:57:06 +0000 (18:57 +0100)
commitdbd987ab19685876bbc1df4c1d0deac7771221c4
tree87134ec61c029e34a69098689d575bf0a64a5a0b
parent0685c9e7e8c514395fe4c502e5b2a8405bcf33f6
mescc: Have ungetc remember 2 positions.

* doc/examples/t.c (read_test): Test it.
* doc/examples/mini-mes.c:
* mlibc.c (getchar, ungetc): Support 2 ungetc positions.
* module/mes/libc.mes (getchar, ungetc): Likewise.
mlibc.c
module/mes/libc.mes
scaffold/mini-mes.c
scaffold/t.c