[CWB] MAX_LINE_LENGTH
Alberto Simões
ambs at di.uminho.pt
Tue Mar 1 18:28:03 CET 2011
Hello
Under cl/globals.h, MAX_LINE_LENGTH is defined (to 4096).
utils/cwb-align-encode.c has:
171: char line[4096]; /* one line of input from <infile> */
219: fgets(line, 4096, af);
327: if (NULL == fgets(line, 4096, af))
and, utils/cwb-align-show.c
178: char line[4096];
180: fgets(line, 4096, af);
214: char line[4096];
218: fgets(line, 4096, f);
231: char line[4096];
245: if (NULL == fgets(line, 4096, f))
329: char line[4096]; /* input buffer for .align file */
330: char cmd[4096]; /* interactive command input */
364: fgets(line, 4096, af);
407: fgets(cmd, 4096, stdin);
I think most of these refer to MAX_LINE_LENGTH.
Am I correct? Should I prepare a patch to change it?
Thank you
ambs
PS: why do I want this? because I will need, probably to expand this
value in a custom build, and it gets easier to change only the definition :)
--
Alberto Simoes
CCTC-UM / CEHUM
More information about the CWB
mailing list