diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-06 00:16:14 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-07-06 00:16:14 -0700 |
commit | 487144639c9a643e6d01a1a4d03c009af34e1903 (patch) | |
tree | 64f6bf1e65d000b7de9f834ac8458946f1b26991 | |
parent | 2c16f3221c15b88a1122c35c0b091e8fcc2523fe (diff) |
Remove CRAY/WORD64 support (unifdef -UCRAY -UWORD64)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/Label.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/Label.c b/src/Label.c index e8743c5..dac1f3a 100644 --- a/src/Label.c +++ b/src/Label.c @@ -77,9 +77,6 @@ int abs(); #define MULTI_LINE_LABEL 32767 -#ifdef CRAY -#define WORD64 -#endif /**************************************************************** * @@ -197,55 +194,9 @@ ClassInitialize(void) (XtConvertArgList)NULL, 0 ); } -#ifndef WORD64 #define TXT16 XChar2b -#else - -#define TXT16 char - -static XChar2b *buf2b; -static int buf2blen = 0; - -static int -_XawLabelWidth16(XFontStruct *fs, char *str, int n) -{ - int i; - XChar2b *ptr; - - if (n > buf2blen) { - buf2b = (XChar2b *)XtRealloc((char *)buf2b, n * sizeof(XChar2b)); - buf2blen = n; - } - for (ptr = buf2b, i = n; --i >= 0; ptr++) { - ptr->byte1 = *str++; - ptr->byte2 = *str++; - } - return XTextWidth16(fs, buf2b, n); -} - -static int -_XawLabelDraw16(Display *dpy, Drawable d, GC gc, int x, int y, char *str, int n) -{ - int i; - XChar2b *ptr; - - if (n > buf2blen) { - buf2b = (XChar2b *)XtRealloc((char *)buf2b, n * sizeof(XChar2b)); - buf2blen = n; - } - for (ptr = buf2b, i = n; --i >= 0; ptr++) { - ptr->byte1 = *str++; - ptr->byte2 = *str++; - } - XDrawString16(dpy, d, gc, x, y, buf2b, n); -} - -#define XTextWidth16 _XawLabelWidth16 -#define XDrawString16 _XawLabelDraw16 - -#endif /* WORD64 */ /* * Calculate width and height of displayed text in pixels |