diff options
author | dgp <dgp@users.sourceforge.net> | 2006-12-18 16:42:46 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2006-12-18 16:42:46 (GMT) |
commit | 16cde6f4aaf0d168843b71218b3b76cad1f1da4c (patch) | |
tree | dad6558b33f0bb4223c054651bc0c6788bf7999e /unix | |
parent | e1ee70568abf0dfa338723ee2eaf33386ef34744 (diff) | |
download | tk-16cde6f4aaf0d168843b71218b3b76cad1f1da4c.zip tk-16cde6f4aaf0d168843b71218b3b76cad1f1da4c.tar.gz tk-16cde6f4aaf0d168843b71218b3b76cad1f1da4c.tar.bz2 |
Use more portable string literals
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixCursor.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/unix/tkUnixCursor.c b/unix/tkUnixCursor.c index e3873a7..d67b284 100644 --- a/unix/tkUnixCursor.c +++ b/unix/tkUnixCursor.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkUnixCursor.c,v 1.8 2006/12/17 00:43:06 mdejong Exp $ + * RCS: @(#) $Id: tkUnixCursor.c,v 1.9 2006/12/18 16:42:47 dgp Exp $ */ #include "tkPort.h" @@ -122,12 +122,12 @@ static struct CursorName { */ #define CURSOR_NONE_DATA \ -"#define none_width 1 - #define none_height 1 - #define none_x_hot 0 - #define none_y_hot 0 - static unsigned char none_bits[] = { - 0x00};" +"#define none_width 1\n" \ +"#define none_height 1\n" \ +"#define none_x_hot 0\n" \ +"#define none_y_hot 0\n" \ +"static unsigned char none_bits[] = {\n" \ +" 0x00};" /* Define test cursor to check that mask @@ -146,24 +146,24 @@ static struct CursorName { #ifdef DEFINE_MYARROW_CURSOR #define CURSOR_MYARROW_DATA \ -"#define myarrow_width 16 -#define myarrow_height 16 -#define myarrow_x_hot 7 -#define myarrow_y_hot 0 -static unsigned char myarrow_bits[] = { - 0x7f, 0xff, 0xbf, 0xfe, 0xdf, 0xfd, 0xef, 0xfb, 0xf7, 0xf7, 0xfb, 0xef, - 0xfd, 0xdf, 0xfe, 0xbf, 0x80, 0x00, 0xbf, 0xfe, 0xbf, 0xfe, 0xbf, 0xfe, - 0xbf, 0xfe, 0xbf, 0xfe, 0xbf, 0xfe, 0x3f, 0xfe};" +"#define myarrow_width 16\n" \ +"#define myarrow_height 16\n" \ +"#define myarrow_x_hot 7\n" \ +"#define myarrow_y_hot 0\n" \ +"static unsigned char myarrow_bits[] = {\n" \ +" 0x7f, 0xff, 0xbf, 0xfe, 0xdf, 0xfd, 0xef, 0xfb, 0xf7, 0xf7, 0xfb, 0xef,\n" \ +" 0xfd, 0xdf, 0xfe, 0xbf, 0x80, 0x00, 0xbf, 0xfe, 0xbf, 0xfe, 0xbf, 0xfe,\n" \ +" 0xbf, 0xfe, 0xbf, 0xfe, 0xbf, 0xfe, 0x3f, 0xfe};" #define CURSOR_MYARROW_MASK \ -"#define myarrow-mask_width 16 -#define myarrow-mask_height 16 -#define myarrow-mask_x_hot 7 -#define myarrow-mask_y_hot 0 -static unsigned char myarrow-mask_bits[] = { - 0x80, 0x00, 0xc0, 0x01, 0xe0, 0x03, 0xf0, 0x07, 0xf8, 0x0f, 0xfc, 0x1f, - 0xfe, 0x3f, 0xff, 0x7f, 0xff, 0xff, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, - 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01};" +"#define myarrow-mask_width 16\n" \ +"#define myarrow-mask_height 16\n" \ +"#define myarrow-mask_x_hot 7\n" \ +"#define myarrow-mask_y_hot 0\n" \ +"static unsigned char myarrow-mask_bits[] = {\n" \ +" 0x80, 0x00, 0xc0, 0x01, 0xe0, 0x03, 0xf0, 0x07, 0xf8, 0x0f, 0xfc, 0x1f,\n" \ +" 0xfe, 0x3f, 0xff, 0x7f, 0xff, 0xff, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01,\n" \ +" 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01};" #endif /* DEFINE_MYARROW_CURSOR */ |