* edit.h: Remove all references to O_TEXT, USE_O_TEXT and
MY_O_TEXT.
Этот коммит содержится в:
родитель
e49a220a30
Коммит
3d8a56ee9c
@ -1,5 +1,8 @@
|
||||
2002-09-23 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit.h: Remove all references to O_TEXT, USE_O_TEXT and
|
||||
MY_O_TEXT.
|
||||
|
||||
* edit.c: Use O_BINARY when opening files.
|
||||
* editcmd.c: Likewise.
|
||||
From Alexander Varakin <avarakin00@hotmail.com>
|
||||
|
@ -136,12 +136,6 @@ char *edit_get_buffer_as_text (WEdit * e)
|
||||
}
|
||||
|
||||
|
||||
/* Note on CRLF->LF translation: */
|
||||
|
||||
#if MY_O_TEXT
|
||||
#error "MY_O_TEXT is depreciated. CR_LF_TRANSLATION must be defined which does CR-LF translation internally. See note in source."
|
||||
#endif
|
||||
|
||||
/*
|
||||
The edit_open_file (previously edit_load_file) function uses
|
||||
init_dynamic_edit_buffers to load a file. This is unnecessary
|
||||
|
@ -323,15 +323,6 @@ int edit_execute_cmd (WEdit * edit, int command, int char_for_insertion);
|
||||
#define CPushFont(x,y)
|
||||
#define CPopFont()
|
||||
#define FIXED_FONT 1
|
||||
|
||||
/* put OS2/NT/WIN95 defines here */
|
||||
|
||||
#ifdef USE_O_TEXT
|
||||
# define MY_O_TEXT O_TEXT
|
||||
#else
|
||||
# define MY_O_TEXT 0
|
||||
#endif
|
||||
|
||||
#define FONT_PIX_PER_LINE 1
|
||||
#define FONT_MEAN_WIDTH 1
|
||||
|
||||
|
@ -228,7 +228,7 @@ int edit_save_file (WEdit * edit, const char *filename)
|
||||
/* FIXME:
|
||||
* Close for now because mc_mkstemps use pure open system call
|
||||
* to create temporary file and it needs to be reopened by
|
||||
* VFS-aware mc_open() and MY_O_TEXT should be used.
|
||||
* VFS-aware mc_open().
|
||||
*/
|
||||
close (fd);
|
||||
} else
|
||||
|
@ -38,7 +38,6 @@
|
||||
#define NEEDS_DRIVE_H
|
||||
#define NEEDS_FCNTL_H
|
||||
|
||||
#define USE_O_TEXT
|
||||
#define HAS_ACS_AS_PCCHARS
|
||||
#define NEEDS_CR_LF_TRANSLATION
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
# define O_BINARY _O_BINARY
|
||||
#endif
|
||||
#ifdef __BEOS__
|
||||
/* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
|
||||
/* BeOS 5 has O_BINARY, but is has no effect. */
|
||||
# undef O_BINARY
|
||||
#endif
|
||||
/* On reasonable systems, binary I/O is the default. */
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user