This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix handling of long preprocessor lines


On Thursday 07 July 2005 17:21, Jakub Jelinek wrote:
> 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
>
> 	* scanner.c (load_line): Add pbuflen argument, don't make
> 	buflen static.  If maxlen == 0 or preprocessor_flag,
> 	don't truncate at buflen, but at maxlen.  In xrealloc add
> 	1 byte at the end for the terminating '\0'.  Don't fill
> 	with spaces up to buflen, but gfc_option.fixed_line_length.
> 	(load_file): Adjust load_line caller.  Add line_len variable.
>
> 	* gfortran.dg/longline.f: New test.

Also makes sense.  Thanks!

Gr.
Steven


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]