groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff] too many symbols


From: Chris J. Herbst
Subject: [Groff] too many symbols
Date: Wed, 5 Jun 2002 08:30:31 -0400
User-agent: Mutt/1.2.5.1i

I am trying to process a 77256 file using groff-1.17.2 on FreeBSD:

groff file -Tps -t -mm  > file.ps

and it always fails with:

file:33726: fatal error: too many symbols

looking at src/roff/troff/symbol.cc:38, I see:

// the table will increase in size as necessary
// the size will be chosen from the following array
// add some more if you want
// I think it unlikely that we'll need more than a million symbols
static const unsigned int table_sizes[] = { 
101, 503, 1009, 2003, 3001, 4001, 5003, 10007, 20011, 40009, 80021,
160001, 500009, 1000003, 0
};

so it looks like I can add another value, I doubled the largest one:

static const unsigned int table_sizes[] = { 
101, 503, 1009, 2003, 3001, 4001, 5003, 10007, 20011, 40009, 80021,
160001, 500009, 1000003, 2000006, 0
};

and it seems to have worked, 4 minutes later I have an 1100 page
postscript file.  Is this the right way for me to solve this problem?  I
really just took a random guess at how to fix it, but as far as I can tell
it works.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]