Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: gdb/gnulib/import/frexpl.c

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/gnulib/import/frexp.c ('k') | gdb/gnulib/import/isnan.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/gnulib/import/frexpl.c
diff --git a/gdb/gnulib/import/mbsrtowcs.c b/gdb/gnulib/import/frexpl.c
similarity index 69%
copy from gdb/gnulib/import/mbsrtowcs.c
copy to gdb/gnulib/import/frexpl.c
index e3ec8767c33a7280b4a641b15a22873f40b27548..b74ceeb56f815890e3515790dce9f33bd614a4c9 100644
--- a/gdb/gnulib/import/mbsrtowcs.c
+++ b/gdb/gnulib/import/frexpl.c
@@ -1,6 +1,5 @@
-/* Convert string to wide string.
- Copyright (C) 2008-2012 Free Software Foundation, Inc.
- Written by Bruno Haible <bruno@clisp.org>, 2008.
+/* Split a 'long double' into fraction and mantissa.
+ Copyright (C) 2007, 2009-2012 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
@@ -17,16 +16,20 @@
#include <config.h>
-/* Specification. */
-#include <wchar.h>
+#if HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
-#include <errno.h>
-#include <limits.h>
-#include <stdlib.h>
+/* Specification. */
+# include <math.h>
-#include "strnlen1.h"
+long double
+frexpl (long double x, int *expptr)
+{
+ return frexp (x, expptr);
+}
+#else
-extern mbstate_t _gl_mbsrtowcs_state;
+# define USE_LONG_DOUBLE
+# include "frexp.c"
-#include "mbsrtowcs-impl.h"
+#endif
« no previous file with comments | « gdb/gnulib/import/frexp.c ('k') | gdb/gnulib/import/isnan.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698