aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 8 insertions, 0 deletions
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)