diff src/elhash.c @ 5193:41ac827cb71b

fix cygwin compile, fix warning and style in elhash.c -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2010-04-06 Ben Wing <ben@xemacs.org> * elhash.c (Feq_hash): Cast to EMACS_INT to fix warning. * elhash.c (internal_hash): * elhash.c (Feql_hash): Fix spacing before parens. * general-slots.h: * xemacs.def.in.in: Export Qfixnump to fix eldap.c link error.
author Ben Wing <ben@xemacs.org>
date Tue, 06 Apr 2010 23:29:35 -0500
parents 71ee43b8a74d
children 18c0b5909d16
line wrap: on
line diff
--- a/src/elhash.c	Tue Apr 06 15:08:22 2010 +0100
+++ b/src/elhash.c	Tue Apr 06 23:29:35 2010 -0500
@@ -1927,29 +1927,29 @@
   if (depth > 5)
     return 0;
 
-  if (CONSP(obj)) 
+  if (CONSP (obj)) 
     {
       Hashcode hash, h;
       int s;
 
       depth += 1;
 
-      if (!CONSP(XCDR(obj)))
+      if (!CONSP (XCDR (obj)))
 	{
 	  /* special case for '(a . b) conses */
-	  return HASH2(internal_hash(XCAR(obj), depth, equalp),
-		       internal_hash(XCDR(obj), depth, equalp));
+	  return HASH2 (internal_hash (XCAR(obj), depth, equalp),
+			internal_hash (XCDR (obj), depth, equalp));
 	}
 
       /* Don't simply tail recurse; we want to hash lists with the
 	 same contents in distinct orders differently. */
-      hash = internal_hash(XCAR(obj), depth, equalp);
+      hash = internal_hash (XCAR (obj), depth, equalp);
 
-      obj = XCDR(obj);
-      for (s = 1; s < 6 && CONSP(obj); obj = XCDR(obj), s++)
+      obj = XCDR (obj);
+      for (s = 1; s < 6 && CONSP (obj); obj = XCDR (obj), s++)
 	{
-	  h = internal_hash(XCAR(obj), depth, equalp);
-	  hash = HASH3(hash, h, s);
+	  h = internal_hash (XCAR (obj), depth, equalp);
+	  hash = HASH3 (hash, h, s);
 	}
 
       return hash;
@@ -1994,7 +1994,7 @@
 */
        (object))
 {
-  return make_integer (XPNTRVAL (object));
+  return make_integer ((EMACS_INT) XPNTRVAL (object));
 }
 
 DEFUN ("eql-hash", Feql_hash, 1, 1, 0, /*