Path: utzoo!attcan!uunet!husc6!think!ames!mailrus!uflorida!novavax!hcx1!devon
From: devon@hcx1.SSD.HARRIS.COM
Newsgroups: comp.windows.x
Subject: Re: X11 on a Convex C1
Message-ID: <111300003@hcx1>
Date: 5 Jul 88 16:18:00 GMT
References: <401@athen.sinix.UUCP>
Lines: 176
Nf-ID: #R:athen.sinix.UUCP:401:hcx1:111300003:000:9135
Nf-From: hcx1.SSD.HARRIS.COM!devon    Jul  5 12:18:00 1988


I had the same problem, and I was able to get it to compile by
cutting the string definition out and redeclaring it as a multi-dimensional
array with columns fixed to truncate the trailing zero of the first string, 
ie:

char big_string[][len_of_str1]={"first half of string","second half"};
char *p=&big_string[0][0];

where len_of_str1 is the exact length of the first half of the string
without the terminating zero.  This gives a pointer to the string which
I want.  Unfortunately, the type is wrong for the rest of Text.c, so I
used these declarations to write a Q&D program to generate a character
by character declaration which declares the string correctly and will
compile.  It's not pretty but it works.  Hideous as it is, here it is:

char defaultTextTranslations[]=
	{
	'C','t','r','l','<','K','e','y','>','F',':','\t','\t',
	'f','o','r','w','a','r','d','-','c','h','a','r','a',
	'c','t','e','r','(',')',' ','\n',' ',' ',' ',' ',' ',
	'<','K','e','y','>','0','x','f','f','5','3',':','\t',
	'\t','f','o','r','w','a','r','d','-','c','h','a','r',
	'a','c','t','e','r','(',')',' ','\n',' ',' ',' ',' ',
	' ','C','t','r','l','<','K','e','y','>','B',':','\t',
	'\t','b','a','c','k','w','a','r','d','-','c','h','a',
	'r','a','c','t','e','r','(',')',' ','\n',' ',' ',' ',
	' ',' ','<','K','e','y','>','0','x','f','f','5','1',
	':','\t','\t','b','a','c','k','w','a','r','d','-','c',
	'h','a','r','a','c','t','e','r','(',')',' ','\n',' ',
	' ',' ',' ',' ','M','e','t','a','<','K','e','y','>',
	'F',':','\t','\t','f','o','r','w','a','r','d','-','w',
	'o','r','d','(',')',' ','\n',' ',' ',' ',' ',' ','M',
	'e','t','a','<','K','e','y','>','B',':','\t','\t','b',
	'a','c','k','w','a','r','d','-','w','o','r','d','(',
	')',' ','\n',' ',' ',' ',' ',' ','M','e','t','a','<',
	'K','e','y','>',']',':','\t','\t','f','o','r','w','a',
	'r','d','-','p','a','r','a','g','r','a','p','h','(',
	')',' ','\n',' ',' ',' ',' ',' ','C','t','r','l','<',
	'K','e','y','>','[',':','\t','\t','b','a','c','k','w',
	'a','r','d','-','p','a','r','a','g','r','a','p','h',
	'(',')',' ','\n',' ',' ',' ',' ',' ','C','t','r','l',
	'<','K','e','y','>','A',':','\t','\t','b','e','g','i',
	'n','n','i','n','g','-','o','f','-','l','i','n','e',
	'(',')',' ','\n',' ',' ',' ',' ',' ','C','t','r','l',
	'<','K','e','y','>','E',':','\t','\t','e','n','d','-',
	'o','f','-','l','i','n','e','(',')',' ','\n',' ',' ',
	' ',' ',' ','C','t','r','l','<','K','e','y','>','N',
	':','\t','\t','n','e','x','t','-','l','i','n','e','(',
	')',' ','\n',' ',' ',' ',' ',' ','<','K','e','y','>',
	'0','x','f','f','5','4',':','\t','\t','n','e','x','t',
	'-','l','i','n','e','(',')',' ','\n',' ',' ',' ',' ',
	' ','C','t','r','l','<','K','e','y','>','P',':','\t',
	'\t','p','r','e','v','i','o','u','s','-','l','i','n',
	'e','(',')',' ','\n',' ',' ',' ',' ',' ','<','K','e',
	'y','>','0','x','f','f','5','2',':','\t','\t','p','r',
	'e','v','i','o','u','s','-','l','i','n','e','(',')',
	' ','\n',' ',' ',' ',' ',' ','C','t','r','l','<','K',
	'e','y','>','V',':','\t','\t','n','e','x','t','-','p',
	'a','g','e','(',')',' ','\n',' ',' ',' ',' ',' ','M',
	'e','t','a','<','K','e','y','>','V',':','\t','\t','p',
	'r','e','v','i','o','u','s','-','p','a','g','e','(',
	')',' ','\n',' ',' ',' ',' ',' ','M','e','t','a','<',
	'K','e','y','>','\\','<',':','\t','\t','b','e','g','i',
	'n','n','i','n','g','-','o','f','-','f','i','l','e',
	'(',')',' ','\n',' ',' ',' ',' ',' ','M','e','t','a',
	'<','K','e','y','>','\\','>',':','\t','\t','e','n','d',
	'-','o','f','-','f','i','l','e','(',')',' ','\n',' ',
	' ',' ',' ',' ','C','t','r','l','<','K','e','y','>',
	'Z',':','\t','\t','s','c','r','o','l','l','-','o','n',
	'e','-','l','i','n','e','-','u','p','(',')',' ','\n',
	' ',' ',' ',' ',' ','M','e','t','a','<','K','e','y',
	'>','Z',':','\t','\t','s','c','r','o','l','l','-','o',
	'n','e','-','l','i','n','e','-','d','o','w','n','(',
	')',' ','\n',' ',' ',' ',' ',' ','C','t','r','l','<',
	'K','e','y','>','D',':','\t','\t','d','e','l','e','t',
	'e','-','n','e','x','t','-','c','h','a','r','a','c',
	't','e','r','(',')',' ','\n',' ',' ',' ',' ',' ','C',
	't','r','l','<','K','e','y','>','H',':','\t','\t','d',
	'e','l','e','t','e','-','p','r','e','v','i','o','u',
	's','-','c','h','a','r','a','c','t','e','r','(',')',
	' ','\n',' ',' ',' ',' ',' ','<','K','e','y','>','0',
	'x','f','f','7','f',':','\t','\t','d','e','l','e','t',
	'e','-','p','r','e','v','i','o','u','s','-','c','h',
	'a','r','a','c','t','e','r','(',')',' ','\n',' ',' ',
	' ',' ',' ','<','K','e','y','>','0','x','f','f','f',
	'f',':','\t','\t','d','e','l','e','t','e','-','p','r',
	'e','v','i','o','u','s','-','c','h','a','r','a','c',
	't','e','r','(',')',' ','\n',' ',' ',' ',' ',' ','<',
	'K','e','y','>','0','x','f','f','0','8',':','\t','\t',
	'd','e','l','e','t','e','-','p','r','e','v','i','o',
	'u','s','-','c','h','a','r','a','c','t','e','r','(',
	')',' ','\n',' ',' ',' ',' ',' ','M','e','t','a','<',
	'K','e','y','>','D',':','\t','\t','d','e','l','e','t',
	'e','-','n','e','x','t','-','w','o','r','d','(',')',
	' ','\n',' ',' ',' ',' ',' ','M','e','t','a','<','K',
	'e','y','>','H',':','\t','\t','d','e','l','e','t','e',
	'-','p','r','e','v','i','o','u','s','-','w','o','r',
	'd','(',')',' ','\n',' ',' ',' ',' ',' ','S','h','i',
	'f','t',' ','M','e','t','a','<','K','e','y','>','D',
	':','\t','\t','k','i','l','l','-','w','o','r','d','(',
	')',' ','\n',' ',' ',' ',' ',' ','S','h','i','f','t',
	' ','M','e','t','a','<','K','e','y','>','H',':','\t',
	'\t','b','a','c','k','w','a','r','d','-','k','i','l',
	'l','-','w','o','r','d','(',')',' ','\n',' ',' ',' ',
	' ',' ','C','t','r','l','<','K','e','y','>','W',':',
	'\t','\t','k','i','l','l','-','s','e','l','e','c','t',
	'i','o','n','(',')',' ','\n',' ',' ',' ',' ',' ','C',
	't','r','l','<','K','e','y','>','K',':','\t','\t','k',
	'i','l','l','-','t','o','-','e','n','d','-','o','f',
	'-','l','i','n','e','(',')',' ','\n',' ',' ',' ',' ',
	' ','M','e','t','a','<','K','e','y','>','K',':','\t',
	'\t','k','i','l','l','-','t','o','-','e','n','d','-',
	'o','f','-','p','a','r','a','g','r','a','p','h','(',
	')',' ','\n',' ',' ',' ',' ',' ','C','t','r','l','<',
	'K','e','y','>','Y',':','\t','\t','u','n','k','i','l',
	'l','(',')',' ','\n',' ',' ',' ',' ',' ','M','e','t',
	'a','<','K','e','y','>','Y',':','\t','\t','s','t','u',
	'f','f','(',')',' ','\n',' ',' ',' ',' ',' ','C','t',
	'r','l','<','K','e','y','>','J',':','\t','\t','n','e',
	'w','l','i','n','e','-','a','n','d','-','i','n','d',
	'e','n','t','(',')',' ','\n',' ',' ',' ',' ',' ','<',
	'K','e','y','>','0','x','f','f','0','a',':','\t','\t',
	'n','e','w','l','i','n','e','-','a','n','d','-','i',
	'n','d','e','n','t','(',')',' ','\n',' ',' ',' ',' ',
	' ','C','t','r','l','<','K','e','y','>','O',':','\t',
	'\t','n','e','w','l','i','n','e','-','a','n','d','-',
	'b','a','c','k','u','p','(',')',' ','\n',' ',' ',' ',
	' ',' ','C','t','r','l','<','K','e','y','>','M',':',
	'\t','\t','n','e','w','l','i','n','e','(',')',' ','\n',
	' ',' ',' ',' ',' ','<','K','e','y','>','0','x','f',
	'f','0','d',':','\t','\t','n','e','w','l','i','n','e',
	'(',')',' ','\n',' ',' ',' ',' ',' ','C','t','r','l',
	'<','K','e','y','>','L',':','\t','\t','r','e','d','r',
	'a','w','-','d','i','s','p','l','a','y','(',')',' ',
	'\n',' ',' ',' ',' ',' ','M','e','t','a','<','K','e',
	'y','>','I',':','\t','\t','i','n','s','e','r','t','-',
	'f','i','l','e','(',')',' ','\n',' ',' ',' ',' ',' ',
	'<','F','o','c','u','s','I','n','>',':','\t','\t','\t',
	'f','o','c','u','s','-','i','n','(',')',' ','\n',' ',
	' ',' ',' ',' ','<','F','o','c','u','s','O','u','t',
	'>',':','\t','\t','f','o','c','u','s','-','o','u','t',
	'(',')',' ','\n',' ',' ',' ',' ',' ','<','B','t','n',
	'1','D','o','w','n','>',':','\t','\t','s','e','l','e',
	'c','t','-','s','t','a','r','t','(',')',' ','\n',' ',
	' ',' ',' ',' ','B','u','t','t','o','n','1','<','P',
	't','r','M','o','v','e','d','>',':','\t','\t','e','x',
	't','e','n','d','-','a','d','j','u','s','t','(',')',
	' ','\n',' ',' ',' ',' ',' ','<','B','t','n','1','U',
	'p','>',':','\t','\t','\t','e','x','t','e','n','d','-',
	'e','n','d','(',')',' ','\n',' ',' ',' ',' ',' ','<',
	'B','t','n','2','D','o','w','n','>',':','\t','\t','s',
	't','u','f','f','(',')',' ','\n',' ',' ',' ',' ',' ',
	'<','B','t','n','3','D','o','w','n','>',':','\t','\t',
	'e','x','t','e','n','d','-','s','t','a','r','t','(',
	')',' ','\n',' ',' ',' ',' ',' ','B','u','t','t','o',
	'n','3','<','P','t','r','M','o','v','e','d','>',':',
	'\t','\t','e','x','t','e','n','d','-','a','d','j','u',
	's','t','(',')',' ','\n',' ',' ',' ',' ',' ','<','B',
	't','n','3','U','p','>',':','\t','\t','\t','e','x','t',
	'e','n','d','-','e','n','d','(',')',' ','\n',' ',' ',
	' ',' ',' ','<','K','e','y','>',':','\t','\t','\t','i',
	'n','s','e','r','t','-','c','h','a','r','(',')',' ',
	'\n',' ',' ',' ',' ',' ','S','h','i','f','t','<','K',
	'e','y','>',':','\t','\t','i','n','s','e','r','t','-',
	'c','h','a','r','(',')',0
	};


Good luck.


--------------------------------------------------------------------
                             Devon Shows
                        devon@SSD.HARRIS.COM
             ...!{mit-eddie,uunet,novavax}!hcx1!devon