aboutsummaryrefslogtreecommitdiff
path: root/libcilsupport/gcc4net-support.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcilsupport/gcc4net-support.c')
-rw-r--r--libcilsupport/gcc4net-support.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/libcilsupport/gcc4net-support.c b/libcilsupport/gcc4net-support.c
new file mode 100644
index 00000000000..52ab8550874
--- /dev/null
+++ b/libcilsupport/gcc4net-support.c
@@ -0,0 +1,51 @@
+/*
+ Copyright (C) 2006-2007 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+
+ In other words, you are welcome to use, share and improve this program.
+ You are forbidden to forbid anyone else to use, share and improve
+ what you give them. Help stamp out software-hoarding!
+
+ Authors:
+ Ricardo Fernandez Pascual <ricardof@um.es>
+ Andrea C. Ornstein <andrea.ornstein@st.com>
+*/
+
+int *
+gcc4net_StartupHelper_GetArgv_System_Int32__System_IntPtr (int *out_argc)
+{
+ extern int __gcc4net_argc;
+ extern int *__gcc4net_argv;
+ *out_argc = __gcc4net_argc;
+ return __gcc4net_argv;
+}
+
+void
+gcc4net_StartupHelper_Startup_System_Void (void)
+{
+ /* TODO */
+}
+
+int
+gcc4net_Crt___isLittleEndian_System_Boolean (void)
+{
+ // big endian: 3f f0 00 00 00 00 00 00
+ // little endian: 00 00 00 00 00 00 f0 3f
+ double d = 1.0;
+ char *b = (char *) &d;
+ return b[0] == 0;
+}