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

Unified Diff: gdb/gnulib/import/itold.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/isnanl-nolibm.h ('k') | gdb/gnulib/import/localcharset.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/gnulib/import/itold.c
diff --git a/gdb/gnulib/import/mbsrtowcs.c b/gdb/gnulib/import/itold.c
similarity index 67%
copy from gdb/gnulib/import/mbsrtowcs.c
copy to gdb/gnulib/import/itold.c
index e3ec8767c33a7280b4a641b15a22873f40b27548..95ff7e1785f9e0dae7333e62bf9acd076b9037d1 100644
--- a/gdb/gnulib/import/mbsrtowcs.c
+++ b/gdb/gnulib/import/itold.c
@@ -1,6 +1,6 @@
-/* Convert string to wide string.
- Copyright (C) 2008-2012 Free Software Foundation, Inc.
- Written by Bruno Haible <bruno@clisp.org>, 2008.
+/* Replacement for 'int' to 'long double' conversion routine.
+ Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ Written by Bruno Haible <bruno@clisp.org>, 2011.
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
@@ -18,15 +18,11 @@
#include <config.h>
/* Specification. */
-#include <wchar.h>
-
-#include <errno.h>
-#include <limits.h>
-#include <stdlib.h>
-
-#include "strnlen1.h"
-
-
-extern mbstate_t _gl_mbsrtowcs_state;
-
-#include "mbsrtowcs-impl.h"
+#include <float.h>
+
+void
+_Qp_itoq (long double *result, int a)
+{
+ /* Convert from 'int' to 'double', then from 'double' to 'long double'. */
+ *result = (double) a;
+}
« no previous file with comments | « gdb/gnulib/import/isnanl-nolibm.h ('k') | gdb/gnulib/import/localcharset.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698