[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Add an autoconf test to make sure that memset(&ptr, 0, size...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] Add an autoconf test to make sure that memset(&ptr, 0, size...
- From: nickm@seul.org (Nick Mathewson)
- Date: Sat, 16 Oct 2004 16:26:15 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 16 Oct 2004 16:27:03 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/win32
In directory moria.mit.edu:/tmp/cvs-serv15448/src/win32
Modified Files:
orconfig.h
Log Message:
Add an autoconf test to make sure that memset(&ptr, 0, sizeof(ptr)) and ptr=NULL are equivalent
Index: orconfig.h
===================================================================
RCS file: /home/or/cvsroot/src/win32/orconfig.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- orconfig.h 14 Oct 2004 15:42:13 -0000 1.21
+++ orconfig.h 16 Oct 2004 20:26:12 -0000 1.22
@@ -1,10 +1,10 @@
-/* $Id */
-/* orconfig.h for Windows -- This file is *not* generated by autoconf.
- * Instead, it has to be hand-edited to keep Win32 happy.
- */
-
-/* Windows-only defines. */
-#define MS_WINDOWS
+/* $Id */
+/* orconfig.h for Windows -- This file is *not* generated by autoconf.
+ * Instead, it has to be hand-edited to keep Win32 happy.
+ */
+
+/* Windows-only defines. */
+#define MS_WINDOWS
#define MS_WIN32
#define CONFDIR ""
@@ -37,11 +37,11 @@
/* Define to 1 if you have the <inttypes.h> header file. */
/* #define HAVE_INTTYPES_H */
-
-/* Define to 1 if you have the <limits.h> header file. */
-#define HAVE_LIMITS_H
-/* Define to 1 if you have the <machine/limits.h> header file. */
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H
+
+/* Define to 1 if you have the <machine/limits.h> header file. */
#undef HAVE_MACHINE_LIMITS_H
/* Define to 1 if you have the <memory.h> header file. */
@@ -124,11 +124,13 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Define to 1 iff unaligned int access is allowed */
+#define NULL_REP_IS_ZERO_BYTES 1
+
/* Name of package */
#define PACKAGE "tor"
-/* Def
-ine to the address where bug reports for this package should be sent. */
+/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
@@ -179,11 +181,11 @@
/* The size of a `uint64_t', as computed by sizeof. */
#undef SIZEOF_UINT64_T
-/* The size of a `uint8_t', as computed by sizeof. */
+/* The size of a `uint8_t', as computed by sizeof. */
#undef SIZEOF_UINT8_T
-
-/* The size of a `void *', as computed by sizeof. */
-#define SIZEOF_VOID_P 4
+
+/* The size of a `void *', as computed by sizeof. */
+#define SIZEOF_VOID_P 4
/* The size of a `__int64', as computed by sizeof. */
#define SIZEOF___INT64 8