math/mptext.c: Reformat and refactor output functions.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 14 Oct 2015 09:55:56 +0000 (10:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 14 Oct 2015 11:55:50 +0000 (12:55 +0100)
commit626cd971624f0804d7b0ddada5168553c955aa64
tree63c4044e37b4d652edef4a350a5bd6da8c30782f
parentf93fc80952e3d9ca26144611d0d58a758167699e
math/mptext.c: Reformat and refactor output functions.

  * Some layout fiddling.

  * Move some block-local variable declarations to the function head.

  * Split `digit_char' out as a separate function, seeing as it's used
    three times.

  * Rename the individual functions with a `write_...' prefix.  A
    corresponding (more invasive) refactoring of the input function will
    have similar names, so avoid the obvious conflict.
math/mptext.c