1 /* Generate a slashified version of the input
3 Free Software Foundation, Inc.
4 Contributed by Mike Stump <mikestump@comcast.net>
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
23 /* This is a small utility to slashify a source file so that one never
24 needs to stare at backslashes. */
28 extern int main (int, char **);
30 int main (int argc, char **argv) {
33 while ((c=getchar ()) != EOF) {
35 if (saw_start && c == '\n') {
46 if (!saw_start && c1 == '(') {
48 } else if (saw_start && c1 == ')') {