summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/common.h b/common.h
index c43a9a2..df59e66 100644
--- a/common.h
+++ b/common.h
@@ -181,8 +181,16 @@
#define FROMTO_DOS2UNIX 0
#define FROMTO_MAC2UNIX 1
-#define FROMTO_UNIX2DOS 0
-#define FROMTO_UNIX2MAC 1
+#define FROMTO_UNIX2DOS 2
+#define FROMTO_UNIX2MAC 3
+
+#define INFO_DOS 0x1
+#define INFO_UNIX 0x2
+#define INFO_MAC 0x4
+#define INFO_BOM 0x8
+#define INFO_TEXT 0x10
+#define INFO_DEFAULT 0x1F
+#define INFO_CONVERT 0x20
#define SYMLINK_SKIP 0
#define SYMLINK_FOLLOW 1
@@ -210,6 +218,7 @@ typedef struct
int add_bom; /* 1: write BOM */
int keep_bom; /* 1: write BOM if input file has BOM. 0: Do not write BOM */
int keep_utf16; /* 1: write UTF-16 format when input file is UTF-16 format */
+ int file_info; /* 1: print file information */
} CFlag;