merge psql ef/ev sf/sv handling functions

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2017-03-31T18:04:04Z
Lists: pgsql-hackers

Attachments

Hello,

While reviewing Corey's \if patch, I complained that there was some amount 
of copy-paste in "psql/command.c".

Here is an attempt at merging some functions which removes 160 lines of 
code.

-- 
Fabien.

Commits

  1. Merge duplicative code for \sf/\sv, \ef/\ev in psql/command.c.