diff options
| author | Karl Heuer | 1994-11-16 01:26:39 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-11-16 01:26:39 +0000 |
| commit | c4898489b1ab455617dca28494377a7501a153d1 (patch) | |
| tree | 585b858648b8f3960d94305a235d97fdd1bb08d0 /src | |
| parent | 0598f773848cf8b07f6b8ead258302fa3c2c4678 (diff) | |
| download | emacs-c4898489b1ab455617dca28494377a7501a153d1.tar.gz emacs-c4898489b1ab455617dca28494377a7501a153d1.zip | |
(wait_for_property_change): Encode location as a cons of two integers instead
of lying about the type.
(wait_for_property_change_unwind): Decode it likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xselect.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c index c02d70c35d8..90ccdbbfde4 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -887,7 +887,9 @@ static Lisp_Object | |||
| 887 | wait_for_property_change_unwind (identifierval) | 887 | wait_for_property_change_unwind (identifierval) |
| 888 | Lisp_Object identifierval; | 888 | Lisp_Object identifierval; |
| 889 | { | 889 | { |
| 890 | unexpect_property_change (XPNTR (identifierval)); | 890 | unexpect_property_change ((struct prop_location *) |
| 891 | (XFASTINT (XCONS (identifierval)->car) << 16 | ||
| 892 | | XFASTINT (XCONS (identifierval)->cdr))); | ||
| 891 | } | 893 | } |
| 892 | 894 | ||
| 893 | /* Actually wait for a property change. | 895 | /* Actually wait for a property change. |
| @@ -901,7 +903,9 @@ wait_for_property_change (location) | |||
| 901 | int count = specpdl_ptr - specpdl; | 903 | int count = specpdl_ptr - specpdl; |
| 902 | Lisp_Object tem; | 904 | Lisp_Object tem; |
| 903 | 905 | ||
| 904 | XSETCONS (tem, location); | 906 | tem = Fcons (Qnil, Qnil); |
| 907 | XSETFASTINT (XCONS (tem)->car, (EMACS_UINT)location >> 16); | ||
| 908 | XSETFASTINT (XCONS (tem)->cdr, (EMACS_UINT)location & 0xffff); | ||
| 905 | 909 | ||
| 906 | /* Make sure to do unexpect_property_change if we quit or err. */ | 910 | /* Make sure to do unexpect_property_change if we quit or err. */ |
| 907 | record_unwind_protect (wait_for_property_change_unwind, tem); | 911 | record_unwind_protect (wait_for_property_change_unwind, tem); |