Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
c78896f0
Commit
c78896f0
authored
Aug 17, 1999
by
Loren J. Rittle
Committed by
Bruce Korb
Aug 17, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not trash single-line C-style comments
From-SVN: r28735
parent
6baa5e29
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
4 deletions
+13
-4
gcc/ChangeLog
+5
-0
gcc/fixinc/fixincl.sh
+1
-1
gcc/fixinc/fixincl.x
+2
-1
gcc/fixinc/inclhack.def
+3
-1
gcc/fixinc/inclhack.sh
+2
-1
No files found.
gcc/ChangeLog
View file @
c78896f0
Tue
Aug
17
01
:
40
:
54
1999
Loren
Rittle
<
ljrittle
@acm
.
org
>
*
fixinc
/
inclhack
.
def
(
no_double_slash
)
:
Do
not
trash
single
-
line
C
-
style
comments
.
Do
not
lose
the
character
before
double
slash
.
Mon
Aug
16
18
:
08
:
22
EDT
1999
Andrew
MacLeod
<
amacleod
@cygnus
.
com
>
*
basic
-
block
.
h
(
struct
edge_list
)
:
Stucture
to
maintain
a
vector
...
...
gcc/fixinc/fixincl.sh
View file @
c78896f0
...
...
@@ -6,7 +6,7 @@
# files which are fixed to work correctly with ANSI C and placed in a
# directory that GNU C will search.
#
# This script contains 10
5
fixup scripts.
# This script contains 10
6
fixup scripts.
#
# See README-fixinc for more information.
#
...
...
gcc/fixinc/fixincl.x
View file @
c78896f0
...
...
@@ -709,7 +709,8 @@ tTestDesc aNo_Double_SlashTests[] = {
*/
const char* apzNo_Double_SlashPatch[] = { "sed",
"-e", "s,^//.*$,,",
"-e", "s,[^:]//[^\"].*$,,",
"-e", "s,\\(/\\*.*\\)//\\(.*\\*/\\),\\1/ /\\2,g",
"-e", "s,\\([^:]\\)//[^\"].*$,\\1,",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
...
...
gcc/fixinc/inclhack.def
View file @
c78896f0
...
...
@@ -432,12 +432,14 @@ fix = {
/*
* Test that the file-to-fix does not from a C++ directory
* Also, only accept double slashes that are not part of URL's
* and do not appear to be within a single-line C-style comment
* and are not the end of a quoted string.
*/
test = ' -z "`echo ${file} | egrep \'(CC|cxx|\+\+)/\'`"';
select = '(^|[^:])//[^"*]';
sed = 's,^//.*$,,';
sed = 's,[^:]//[^"].*$,,';
sed = 's,\(/\*.*\)//\(.*\*/\),\1/ /\2,g';
sed = 's,\([^:]\)//[^"].*$,\1,';
};
...
...
gcc/fixinc/inclhack.sh
View file @
c78896f0
...
...
@@ -844,7 +844,8 @@ _EOF_
else
infile
=
${
DESTFILE
}
;
fi
sed
-e
's,^//.*$,,'
\
-e
's,[^:]//[^"].*$,,'
\
-e
's,\(/\*.*\)//\(.*\*/\),\1/ /\2,g'
\
-e
's,\([^:]\)//[^"].*$,\1,'
\
<
$infile
>
${
DESTDIR
}
/fixinc.tmp
rm
-f
${
DESTFILE
}
mv
-f
${
DESTDIR
}
/fixinc.tmp
${
DESTFILE
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment