diff options
| author | Dmitry Antipov | 2013-10-29 20:08:08 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-10-29 20:08:08 +0400 |
| commit | 2d9783e0b938d0e3550fee7efbb3c6b8b5f18462 (patch) | |
| tree | 09159c8a6b0b4d12bc00a9c21f80f641f69bdb47 /src/xterm.c | |
| parent | 23af34b00ca14782ba5d1bbada43cd26962739b4 (diff) | |
| download | emacs-2d9783e0b938d0e3550fee7efbb3c6b8b5f18462.tar.gz emacs-2d9783e0b938d0e3550fee7efbb3c6b8b5f18462.zip | |
Prefer 'unsigned long' to 'long unsigned int' and 'unsigned long int'.
* ftxfont.c (ftxfont_get_gcs):
* gtkutil.c (xg_set_widget_bg, xg_set_background_color):
* xfaces.c (x_free_colors, x_free_dpy_colors)
(x_create_gc, unload_color):
* xselect.c (x_property_data_to_lisp):
* xsettings.c (parse_settings):
* xterm.c (x_copy_color, x_alloc_lighter_color, x_setup_relief_color)
(get_bits_and_offset): Adjust definition.
* frame.c (XParseGeometry): Adjust locals.
* lisp.h (toplevel): Adjust EMACS_UINT type definition.
* regex.h (toplevel): Likewise for reg_syntax_t.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c index c7fe9ec6ac8..906954618fe 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -1643,7 +1643,7 @@ x_alloc_nearest_color (struct frame *f, Colormap cmap, XColor *color) | |||
| 1643 | get color reference counts right. */ | 1643 | get color reference counts right. */ |
| 1644 | 1644 | ||
| 1645 | unsigned long | 1645 | unsigned long |
| 1646 | x_copy_color (struct frame *f, long unsigned int pixel) | 1646 | x_copy_color (struct frame *f, unsigned long pixel) |
| 1647 | { | 1647 | { |
| 1648 | XColor color; | 1648 | XColor color; |
| 1649 | 1649 | ||
| @@ -1681,7 +1681,8 @@ x_copy_color (struct frame *f, long unsigned int pixel) | |||
| 1681 | Value is non-zero if successful. */ | 1681 | Value is non-zero if successful. */ |
| 1682 | 1682 | ||
| 1683 | static bool | 1683 | static bool |
| 1684 | x_alloc_lighter_color (struct frame *f, Display *display, Colormap cmap, long unsigned int *pixel, double factor, int delta) | 1684 | x_alloc_lighter_color (struct frame *f, Display *display, Colormap cmap, |
| 1685 | unsigned long *pixel, double factor, int delta) | ||
| 1685 | { | 1686 | { |
| 1686 | XColor color, new; | 1687 | XColor color, new; |
| 1687 | long bright; | 1688 | long bright; |
| @@ -1757,7 +1758,8 @@ x_alloc_lighter_color (struct frame *f, Display *display, Colormap cmap, long un | |||
| 1757 | be allocated, use DEFAULT_PIXEL, instead. */ | 1758 | be allocated, use DEFAULT_PIXEL, instead. */ |
| 1758 | 1759 | ||
| 1759 | static void | 1760 | static void |
| 1760 | x_setup_relief_color (struct frame *f, struct relief *relief, double factor, int delta, long unsigned int default_pixel) | 1761 | x_setup_relief_color (struct frame *f, struct relief *relief, double factor, |
| 1762 | int delta, unsigned long default_pixel) | ||
| 1761 | { | 1763 | { |
| 1762 | XGCValues xgcv; | 1764 | XGCValues xgcv; |
| 1763 | struct x_output *di = f->output_data.x; | 1765 | struct x_output *di = f->output_data.x; |
| @@ -9686,7 +9688,7 @@ same_x_server (const char *name1, const char *name2) | |||
| 9686 | get to the first bit. With MASK 0x7e0, *BITS is set to 6, and *OFFSET | 9688 | get to the first bit. With MASK 0x7e0, *BITS is set to 6, and *OFFSET |
| 9687 | to 5. */ | 9689 | to 5. */ |
| 9688 | static void | 9690 | static void |
| 9689 | get_bits_and_offset (long unsigned int mask, int *bits, int *offset) | 9691 | get_bits_and_offset (unsigned long mask, int *bits, int *offset) |
| 9690 | { | 9692 | { |
| 9691 | int nr = 0; | 9693 | int nr = 0; |
| 9692 | int off = 0; | 9694 | int off = 0; |