From d05d162cb81664f292834fa5d48d623d2b6147a7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Jul 2017 15:29:43 +0200 Subject: Misc code improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/common.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 6113edf..7d253c0 100644 --- a/src/common.h +++ b/src/common.h @@ -68,3 +68,11 @@ #if !defined(PIPE_BUF) # define PIPE_BUF BUFSIZ #endif + +#define SELECT_PROCESS_FUNCTION(stream)\ + do {\ + if ((stream)->encoding == DOUBLE)\ + process = process_lf;\ + else\ + process = process_f;\ + } while (0) -- cgit v1.2.3-70-g09d2