For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > November 2004 > cvs: Zend(PHP_4_3) / Zend.dsp ZendTS.dsp zend_strtod.c zend_strtod.h









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: Zend(PHP_4_3) / Zend.dsp ZendTS.dsp zend_strtod.c zend_strtod.h
Edin Kadribasic

2004-11-04, 3:55 am

edink Wed Nov 3 21:33:29 2004 EDT

Modified files: (Branch: PHP_4_3)
/Zend Zend.dsp ZendTS.dsp zend_strtod.c zend_strtod.h
Log:
MFH: zend_strtod compilation on windows

http://cvs.php.net/diff.php/Zend/Ze...2=1.20.4.1&ty=u
Index: Zend/Zend.dsp
diff -u Zend/Zend.dsp:1.20 Zend/Zend.dsp:1.20.4.1
--- Zend/Zend.dsp:1.20 Wed May 8 08:29:51 2002
+++ Zend/Zend.dsp Wed Nov 3 21:33:29 2004
@@ -211,6 +211,10 @@
# End Source File
# Begin Source File

+SOURCE=.\zend_strtod.c
+# End Source File
+# Begin Source File
+
SOURCE=.\zend_variables.c
# End Source File
# End Group
@@ -327,6 +331,10 @@
# End Source File
# Begin Source File

+SOURCE=.\zend_strtod.h
+# End Source File
+# Begin Source File
+
SOURCE=.\zend_variables.h
# End Source File
# End Group
http://cvs.php.net/diff.php/Zend/Ze...2=1.33.4.1&ty=u
Index: Zend/ZendTS.dsp
diff -u Zend/ZendTS.dsp:1.33 Zend/ZendTS.dsp:1.33.4.1
--- Zend/ZendTS.dsp:1.33 Wed May 8 08:29:51 2002
+++ Zend/ZendTS.dsp Wed Nov 3 21:33:29 2004
@@ -240,6 +240,10 @@
# End Source File
# Begin Source File

+SOURCE=.\zend_strtod.c
+# End Source File
+# Begin Source File
+
SOURCE=.\zend_variables.c
# End Source File
# End Group
@@ -380,6 +384,10 @@
# End Source File
# Begin Source File

+SOURCE=.\zend_strtod.h
+# End Source File
+# Begin Source File
+
SOURCE=.\zend_variables.h
# End Source File
# End Group
http://cvs.php.net/diff.php/Zend/ze...r2=1.1.2.2&ty=u
Index: Zend/zend_strtod.c
diff -u Zend/zend_strtod.c:1.1.2.1 Zend/zend_strtod.c:1.1.2.2
--- Zend/zend_strtod.c:1.1.2.1 Wed Nov 3 18:15:06 2004
+++ Zend/zend_strtod.c Wed Nov 3 21:33:29 2004
@@ -89,6 +89,8 @@
* directly -- and assumed always to succeed.
*/

+#include <zend_strtod.h>
+
#if defined(LIBC_SCCS) && !defined(lint)
static char *rcsid = "$OpenBSD: strtod.c,v 1.19 2004/02/03 16:52:11 drahn Exp $";
#endif /* LIBC_SCCS and not lint */
@@ -118,6 +120,12 @@
#define VAX
#endif

+#if defined(_MSC_VER)
+#define int32_t __int32
+#define u_int32_t unsigned __int32
+#define IEEE_LITTLE_ENDIAN
+#endif
+
#define Long int32_t
#define ULong u_int32_t

@@ -362,10 +370,6 @@

#define Kmax 15

-#ifdef __cplusplus
-extern "C" double zend_strtod(const char *s00, char **se);
-#endif
-
struct
Bigint {
struct Bigint *next;
@@ -1215,7 +1219,7 @@
#endif
#endif

- double
+ZEND_API double
zend_strtod
#ifdef KR_headers
(s00, se) CONST char *s00; char **se;
http://cvs.php.net/diff.php/Zend/ze...r2=1.1.2.2&ty=u
Index: Zend/zend_strtod.h
diff -u Zend/zend_strtod.h:1.1.2.1 Zend/zend_strtod.h:1.1.2.2
--- Zend/zend_strtod.h:1.1.2.1 Wed Nov 3 18:15:06 2004
+++ Zend/zend_strtod.h Wed Nov 3 21:33:29 2004
@@ -16,13 +16,16 @@
+----------------------------------------------------------------------+
*/

-/* $Id: zend_strtod.h,v 1.1.2.1 2004/11/03 23:15:06 derick Exp $ */
+/* $Id: zend_strtod.h,v 1.1.2.2 2004/11/04 02:33:29 edink Exp $ */

/* This is a header file for the strtod implementation by David M. Gay which
* can be found in zend_strtod.c */
#ifndef ZEND_STRTOD_H
#define ZEND_STRTOD_H
+#include <zend.h>

-double zend_strtod(const char *s00, char **se);
+BEGIN_EXTERN_C()
+ZEND_API double zend_strtod(const char *s00, char **se);
+END_EXTERN_C()

#endif
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com