add the "if(!selected) print all tl" bit to the bottom half of process

now the stuff inside while(!feof(input)) and the stuff after is identical

git-svn-id: https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools@47987 72bbbca6-d526-0410-a7d9-f06f51895060
puts the duplicated bit from process() into a new function processFlush()

no difference on tests in testing/, nor on a 2503798 corp run through /home/kiwibird/src/apertium/trunk/apertium-en-es/dev/apertium-en-es.en-es.lrx

git-svn-id: https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools@47988 72bbbca6-d526-0410-a7d9-f06f51895060
wip: output instead of stdout

git-svn-id: https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools@47989 72bbbca6-d526-0410-a7d9-f06f51895060
call processFlush _and print the last blank_ and then clear out stuff on seeing \0

git-svn-id: https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools@47990 72bbbca6-d526-0410-a7d9-f06f51895060
test with stuff after NUL too

git-svn-id: https://svn.code.sf.net/p/apertium/svn/trunk/apertium-lex-tools@47991 72bbbca6-d526-0410-a7d9-f06f51895060