summaryrefslogtreecommitdiff
path: root/Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2013-01-01 12:33:28 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2013-01-01 12:33:28 +0000
commit7750bd6e5ca2361a0717b4246aec5b2bf68aef66 (patch)
treebd8fa514e0ec01fee11506cc63ea8ef55f62f8e3 /Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h
parent506da14a49b430b56f1b69cd3ee299b9312695b2 (diff)
poppler 0.22.0
git-svn-id: svn://tug.org/texlive/trunk@28683 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h')
-rw-r--r--Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h b/Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h
new file mode 100644
index 00000000000..e8abdadf53e
--- /dev/null
+++ b/Build/source/libs/poppler/poppler-0.22.0/goo/gstrtod.h
@@ -0,0 +1,43 @@
+/* This file is part of Libspectre.
+ *
+ * Copyright (C) 2007 Albert Astals Cid <aacid@kde.org>
+ * Copyright (C) 2007 Carlos Garcia Campos <carlosgc@gnome.org>
+ *
+ * Libspectre 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.
+ *
+ * Libspectre 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, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+/* This function comes from spectre-utils from libspectre */
+
+#ifndef GSTRTOD_H
+#define GSTRTOD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* This function behaves like the standard atof()/(strtod() function
+ * does in the C locale. It does this without actually changing
+ * the current locale, since that would not be thread-safe.
+ * A limitation of the implementation is that this function
+ * will still accept localized versions of infinities and NANs.
+ */
+double gatof(const char *nptr);
+double gstrtod(const char *nptr, char **endptr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif