[PATCH] Move common code to a new function

Steve Kargl sgk@troutmask.apl.washington.edu
Mon Apr 16 01:14:00 GMT 2007


The attached patch has been compiled and regression tested
on i386-*-freebsd.  It moves common code in primary.c and
io.c into a new function in match.c.  The code should be
self-explanatory.  Ok for mainline?

2007-04-15  Steven G. Kargl  <kargl@gcc.gnu.org>

   * match.c (gfc_match_special_char): New function.  Match special char.
   * match.h: Add prototype.
   * io.c (next_char): Use it.
   * primary.c (next_string_char): Ditto.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: special.diff
Type: text/x-diff
Size: 3534 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070416/d7769578/attachment.bin>


More information about the Gcc-patches mailing list