]> sjero.net Git - wget/blobdiff - src/wget.h
[svn] Announce the beginning and the end of the SSL handshake when in debug mode.
[wget] / src / wget.h
index ec8e0534b76b3957a8922e7f58870f31af726559..38c8fbdeba8afde932f3ca2431cd178a9864c2a4 100644 (file)
@@ -224,6 +224,12 @@ typedef off_t wgint;
     basevar = (type *)xrealloc (basevar, DR_newsize * sizeof (type));  \
 } while (0)
 
+/* Used to print pointers (usually for debugging).  Print pointers
+   using printf ("%0*lx", PTR_FORMAT (p)).  (%p is too unpredictable;
+   some implementations prepend 0x, while some don't, and most don't
+   0-pad the address.)  */
+#define PTR_FORMAT(p) 2 * sizeof (void *), (unsigned long) (p)
+
 extern const char *exec_name;
 \f
 /* Document type ("dt") flags */