From 4f15fee811d2645bf810a475d4272f83c30608d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 8 Apr 2017 22:11:57 +0200 Subject: vis: remove handling of \r\n line endings Use something like dos2unix(1) and unix2dos(1), if you need to edit such files. --- text.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'text.h') diff --git a/text.h b/text.h index da97a5d..deb39c3 100644 --- a/text.h +++ b/text.h @@ -121,15 +121,6 @@ bool text_modified(Text*); * this text instance */ bool text_sigbus(Text*, const char *addr); -/* which type of new lines does the text use? */ -enum TextNewLine { - TEXT_NEWLINE_LF = 1, - TEXT_NEWLINE_CRLF, -}; - -enum TextNewLine text_newline_type(Text*); -const char *text_newline_char(Text*); - enum TextSaveMethod { TEXT_SAVE_AUTO, /* first try atomic, then fall back to inplace */ TEXT_SAVE_ATOMIC, /* create a new file, write content, atomically rename(2) over old file */ -- cgit v1.2.3