[patch,fortran] PR32223 Backslash handling inconsistent
Jerry DeLisle
jvdelisle@verizon.net
Wed Jun 6 05:07:00 GMT 2007
Hi,
Actually the backslash handling is quite consistent, however we did not include
the '\0' case.
The following patch does this and I will commit to trunk as obvious with a
ChangeLog after I finish regression testing.
Regards,
Jerry
Index: io.c
===================================================================
*** io.c (revision 125347)
--- io.c (working copy)
*************** next_char (int in_string)
*** 168,173 ****
--- 168,176 ----
break;
case '\\':
c = '\\';
+ break;
+ case '0':
+ c = '\0';
break;
default:
Index: primary.c
===================================================================
*** primary.c (revision 125347)
--- primary.c (working copy)
*************** next_string_char (char delimiter)
*** 758,763 ****
--- 758,766 ----
case '\\':
c = '\\';
break;
+ case '0':
+ c = '\0';
+ break;
default:
/* Unknown backslash codes are simply not expanded */
More information about the Fortran
mailing list