comparison src/objects-x.c @ 2515:de9952d2ed18

[xemacs-hg @ 2005-01-26 10:22:19 by ben] Hash table cleanups, part 1 of 2 emacs-marshals.c, hash.c, hash.h, ui-gtk.c: Clean up and generalize creation of string hash tables. ui-gtk.c, elhash.h, gccache-gtk.c, glyphs-gtk.c, lrecord.h, marker.c, objects-gtk.c, objects-msw.c, objects-tty.c, objects-x.c, objects.c, opaque.c, rangetab.c, specifier.c, specifier.h, xgccache.c: Use Hashcode rather than unsigned long.
author ben
date Wed, 26 Jan 2005 10:22:29 +0000
parents ecf1ebac70d8
children 491f8cf78a9c
comparison
equal deleted inserted replaced
2514:b49d38bc659d 2515:de9952d2ed18
324 return ((color1.red == color2.red) && 324 return ((color1.red == color2.red) &&
325 (color1.green == color2.green) && 325 (color1.green == color2.green) &&
326 (color1.blue == color2.blue)); 326 (color1.blue == color2.blue));
327 } 327 }
328 328
329 static unsigned long 329 static Hashcode
330 x_color_instance_hash (Lisp_Color_Instance *c, int UNUSED (depth)) 330 x_color_instance_hash (Lisp_Color_Instance *c, int UNUSED (depth))
331 { 331 {
332 XColor color = COLOR_INSTANCE_X_COLOR (c); 332 XColor color = COLOR_INSTANCE_X_COLOR (c);
333 return HASH3 (color.red, color.green, color.blue); 333 return HASH3 (color.red, color.green, color.blue);
334 } 334 }