]> git.eshelyaron.com Git - emacs.git/commitdiff
(wait_for_property_change): Encode location as a cons of two integers instead
authorKarl Heuer <kwzh@gnu.org>
Wed, 16 Nov 1994 01:26:39 +0000 (01:26 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 16 Nov 1994 01:26:39 +0000 (01:26 +0000)
of lying about the type.
(wait_for_property_change_unwind): Decode it likewise.

src/xselect.c

index c02d70c35d8382b8baec44f9e588866ff3470475..90ccdbbfde43eed77ef55701c2b6b0ec6e79b3f4 100644 (file)
@@ -887,7 +887,9 @@ static Lisp_Object
 wait_for_property_change_unwind (identifierval)
      Lisp_Object identifierval;
 {
-  unexpect_property_change (XPNTR (identifierval));
+  unexpect_property_change ((struct prop_location *)
+                           (XFASTINT (XCONS (identifierval)->car) << 16
+                            | XFASTINT (XCONS (identifierval)->cdr)));
 }
 
 /* Actually wait for a property change.
@@ -901,7 +903,9 @@ wait_for_property_change (location)
   int count = specpdl_ptr - specpdl;
   Lisp_Object tem;
 
-  XSETCONS (tem, location);
+  tem = Fcons (Qnil, Qnil);
+  XSETFASTINT (XCONS (tem)->car, (EMACS_UINT)location >> 16);
+  XSETFASTINT (XCONS (tem)->cdr, (EMACS_UINT)location & 0xffff);
 
   /* Make sure to do unexpect_property_change if we quit or err.  */
   record_unwind_protect (wait_for_property_change_unwind, tem);