From 549694bc88a7345c10551d13017fa8a0eccb8619 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 9 Dec 2012 20:02:07 +0200 Subject: Change BINMODE to use symbolic values. --- awk.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'awk.h') diff --git a/awk.h b/awk.h index 0a0ac136..7dcecd29 100644 --- a/awk.h +++ b/awk.h @@ -836,6 +836,15 @@ struct redirect { const char *mode; }; +/* values for BINMODE, used as bit flags */ + +enum binmode_values { + TEXT_TRANSLATE = 0, /* usual \r\n ---> \n translation */ + BINMODE_INPUT = 1, /* no translation for input files */ + BINMODE_OUTPUT = 2, /* no translation for output files */ + BINMODE_BOTH = 3 /* no translation for either */ +}; + /* * structure for our source, either a command line string or a source file. */ -- cgit v1.2.3