aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/sysdep.c
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2014-07-18 11:58:14 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2014-07-18 11:58:14 +0200
commitadc1de25276100ea46ca23002c889f8b45fa22a0 (patch)
treedc2bfa97a56b2e0b9e4729202cd749a21c087149 /gcc/ada/sysdep.c
parent6128aad4587fea11e2e351490fe97a8d7051556b (diff)
downloadgcc-adc1de25276100ea46ca23002c889f8b45fa22a0.zip
gcc-adc1de25276100ea46ca23002c889f8b45fa22a0.tar.gz
gcc-adc1de25276100ea46ca23002c889f8b45fa22a0.tar.bz2
[multiple changes]
2014-07-18 Robert Dewar <dewar@adacore.com> * g-memdum.adb, g-memdum.ads, exp_strm.adb: Minor reformatting. 2014-07-18 Pascal Obry <obry@adacore.com> * s-crtl.ads, i-cstrea.ads (fputwc): New routine. * a-witeio.adb (Put): On platforms where there is translation done by the OS output the raw text. (New_Line): Use Put above to properly handle the LM wide characters. From-SVN: r212800
Diffstat (limited to 'gcc/ada/sysdep.c')
-rw-r--r--gcc/ada/sysdep.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c
index 43550cd..9e12946 100644
--- a/gcc/ada/sysdep.c
+++ b/gcc/ada/sysdep.c
@@ -104,11 +104,12 @@ extern struct tm *localtime_r(const time_t *, struct tm *);
file positioning function, unless the input operation encounters
end-of-file.
- The other target dependent declarations here are for the two functions
- __gnat_set_binary_mode and __gnat_set_text_mode:
+ The other target dependent declarations here are for the three functions
+ __gnat_set_binary_mode, __gnat_set_text_mode and __gnat_set_wide_text_mode:
void __gnat_set_binary_mode (int handle);
void __gnat_set_text_mode (int handle);
+ void __gnat_set_wide_text_mode (int handle);
These functions have no effect in Unix (or similar systems where there is
no distinction between binary and text files), but in DOS (and similar
@@ -150,6 +151,12 @@ __gnat_set_text_mode (int handle)
WIN_SETMODE (handle, O_TEXT);
}
+void
+__gnat_set_wide_text_mode (int handle)
+{
+ WIN_SETMODE (handle, _O_U16TEXT);
+}
+
#ifdef __CYGWIN__
char *
@@ -245,6 +252,12 @@ void
__gnat_set_text_mode (int handle ATTRIBUTE_UNUSED)
{
}
+
+void
+__gnat_set_wide_text_mode (int handle ATTRIBUTE_UNUSED)
+{
+}
+
char *
__gnat_ttyname (int filedes)
{