diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-09 20:02:07 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-12-09 20:02:07 +0200 |
commit | 549694bc88a7345c10551d13017fa8a0eccb8619 (patch) | |
tree | 1da27840ad10ac0f1b048f74a240647dee7148da /awk.h | |
parent | d20af67ae8a6a573a0db906f9c9960a092f21b41 (diff) | |
download | egawk-549694bc88a7345c10551d13017fa8a0eccb8619.tar.gz egawk-549694bc88a7345c10551d13017fa8a0eccb8619.tar.bz2 egawk-549694bc88a7345c10551d13017fa8a0eccb8619.zip |
Change BINMODE to use symbolic values.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. */ |