From f9cfe1378d6a98ea08f5dc412223b646deeabdaf Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sun, 15 Oct 2017 12:34:24 +0000 Subject: Rename fl_open_ext() parameter 'translation' to 'binary'. The default (0) is 'text' mode, non-zero is 'binary' mode on platforms that distinguish text and binary mode. Currently Windows is the only supported platform that needs this. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12500 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_utf8.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fl_utf8.cxx') diff --git a/src/fl_utf8.cxx b/src/fl_utf8.cxx index de6a7ee54..60d7614d6 100644 --- a/src/fl_utf8.cxx +++ b/src/fl_utf8.cxx @@ -339,20 +339,20 @@ int fl_open(const char* f, int oflags, ...) useful on the Windows platform where files are by default opened in text (translated) mode. \param fname the UTF-8 encoded filename - \param translation if zero, the file is to be accessed in untranslated (a.k.a. binary) - mode. + \param binary if non-zero, the file is to be accessed in binary (a.k.a. + untranslated) mode. \param oflags,... these arguments are as in the standard open() function. Setting \p oflags to zero opens the file for reading. \return a file descriptor upon successful completion, or -1 in case of error. */ -int fl_open_ext(const char* fname, int translation, int oflags, ...) +int fl_open_ext(const char* fname, int binary, int oflags, ...) { int pmode; va_list ap; va_start(ap, oflags); pmode = va_arg (ap, int); va_end(ap); - return Fl::system_driver()->open_ext(fname, translation, oflags, pmode); + return Fl::system_driver()->open_ext(fname, binary, oflags, pmode); } -- cgit v1.2.3