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]

Re: Null characters in files


>>>>> Neil Booth <NeilB@earthling.net> writes:

 > Since my patch of about a week ago which removed the special meaning
 > of null characters from read_and_prescan, null characters no longer
 > mangle, but get passed straight through to the lexer.

 > With this patch null characters are handled as follows:-

 > o  Embedded in a comment, they go unnoticed
 > o  Embedded in a string, a warning is issued and the null ignored

No.  Embedded in a string, they should be passed through.  It's perfectly
reasonable to have an embedded null in a string.

Jason

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