Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HELP! "too many fields to scan" error

1 view
Skip to first unread message

Neil Walker

unread,
Jun 28, 1996, 3:00:00 AM6/28/96
to
I had a problem parsing a file with more than 20 fields in it.

Despite almost no C I edited $TCL_HOME/generic/tclCmdMZ.c

% diff tclCmdMZ.c tclCmdMZ.c.original
709,710c709
< /* HACKED - Neil, 27/06/1996 - was 20 */
< # define MAX_FIELDS 32
---
> # define MAX_FIELDS 20
907d905
< /* HACKED - Neil, 27/06/1996 - was up to 19 */
915,919c913
< fields[18].location, fields[19].location, fields[20].location,
< fields[21].location, fields[22].location, fields[23].location,
< fields[24].location, fields[25].location, fields[26].location,
< fields[27].location, fields[28].location, fields[29].location,
< fields[30].location, fields[31].location);
---
Is this the place to ask if this sort of thing can be incorporated into the
source - so I don't have to make these edits with every alpha and beta release
that comes along :-) or are there good reasons to limit scan?

Apologies to anyone who attempted to mail back on this subject - through
_extreme_ incompetence I hadn't got my email address set in Netscape ...

Cheers
Neil


Larry W. Virden

unread,
Jun 28, 1996, 3:00:00 AM6/28/96
to

BOOO!!! Hard coded limits are the bane of programming existence. I
can bear, with prejudice, limits based on lack of memory or disk, but
it just doesn't seem reasonable to put limits in elsewhere - because you
always find out in the middle of the worst times that the limit has been
breeched.
--
:s Larry W. Virden INET: lvi...@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

0 new messages