diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-15 12:34:24 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-10-15 12:34:24 +0000 |
| commit | f9cfe1378d6a98ea08f5dc412223b646deeabdaf (patch) | |
| tree | 9edde610e6b371de72c73216a72ddba7c1b84334 /src/fl_utf8.cxx | |
| parent | 1ff9144801ff6983eed4ce6849aa263533fe195e (diff) | |
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
Diffstat (limited to 'src/fl_utf8.cxx')
| -rw-r--r-- | src/fl_utf8.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |
