core: Support switching of input stream.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 2 Nov 2016 17:25:18 +0000 (18:25 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 12 Dec 2016 19:33:49 +0000 (20:33 +0100)
commit1e2e2f2a4ae153c56391d741ab0df1202c4ff040
tree32617c75f4cdef26b347192c34428b72a6c43cb1
parent0e13b7e8ddb62408ac280e31ffd64ada7141cc8f
core: Support switching of input stream.

* mes.c (g_stdin): New global.
  (getchar): New function, use g_stdin.
  (ungetchar): Use g_stdin.
  (main): Initialize g_stdin to stdin.
mes.c