summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>1993-04-10 08:05:07 +0000
committerJim Blandy <jimb@redhat.com>1993-04-10 08:05:07 +0000
commit51cf3e317c4a5e5664218b6fe7a1c09f1c81631b (patch)
tree36b81604db79c05fa628d67aabefa89eaa25f2ae /src/xselect.c
parent6904bdcd0874054d3992319455cf049e5f01c69d (diff)
downloademacs-51cf3e317c4a5e5664218b6fe7a1c09f1c81631b.tar.gz
long_to_cons and cons_to_long are generally useful things; they're
needed whether or not X is defined. * xselect.c (long_to_cons, cons_to_long): Moved from here... * data.c (long_to_cons, cons_to_long): ... to here. * lisp.h (long_to_cons, cons_to_long): Add extern declaration.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 51592fe7282..bb052ae1ccf 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -234,36 +234,6 @@ x_atom_to_symbol (display, atom)
return val;
}
-/* Convert between full word time values (last modification times, etc)
- and their Lisp representation as a cons cell (HIGH . LOW). */
-
-Lisp_Object
-long_to_cons (i)
- unsigned long i;
-{
- unsigned int top = i >> 16;
- unsigned int bot = i & 0xFFFF;
- if (top == 0)
- return make_number (bot);
- if (top == 0xFFFF)
- return Fcons (make_number (-1), make_number (bot));
- return Fcons (make_number (top), make_number (bot));
-}
-
-unsigned long
-cons_to_long (c)
- Lisp_Object c;
-{
- int top, bot;
- if (INTEGERP (c))
- return XINT (c);
- top = XCONS (c)->car;
- bot = XCONS (c)->cdr;
- if (CONSP (bot))
- bot = XCONS (bot)->car;
- return ((XINT (top) << 16) | XINT (bot));
-}
-
/* Do protocol to assert ourself as a selection owner.
Update the Vselection_alist so that we can reply to later requests for
our selection. */