ericb@libdev (Eric Bivona) (06/24/88)
I'm trying to compile the client side of X (v11r2) on a Convex. Unfortunately I haven't been able to compile the Xaw library. This is because the compiler is choking on Text.c, in lib/Xaw. In Text.c there is a declaration of: char defaultTextTranslations[] = followed by a quoted string 2072 characters in length. The compiler dies near the end of this string, complaining "token too long". Has anyone run into this before? Is there a fix out there already? Any and all help greatly appreciated. -Eric Bivona eric.j.bivona@dartmouth.edu "Confusion grows, another mystery"
claus@sinix.UUCP (Claus Gittinger) (06/30/88)
From: ericb@libdev (Eric Bivona) Subject: X11 on a Convex C1 Summary: problems compiling libXaw.a Keywords: X11 libXaw.a Convex "token too long" Message-ID: <8990@dartvax.Dartmouth.EDU> Date: 24 Jun 88 01:56:26 GMT Sender: news@dartvax.Dartmouth.EDU Reply-To: eric.j.bivona@dartmouth.edu (Eric Bivona) Organization: Dartmouth College, Hanover, NH Lines: 16 References: eric (aricb@libdev) writes: > .. I haven't been able to compile the Xaw library .. > .. The compiler dies near the end of this string, > .. complaining "token too long" .. I had the same problem - the string was simply too long for our compiler. It compiled ok after replacing (within the string) multi-spaces by single blanks/tabs. - good luck - Claus
devon@hcx1.SSD.HARRIS.COM (07/05/88)
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