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
aab7bd19
Commit
aab7bd19
authored
Oct 22, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use fix-header.
From-SVN: r5870
parent
e7f9bcdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gcc/fixproto
+4
-4
No files found.
gcc/fixproto
View file @
aab7bd19
...
@@ -34,11 +34,11 @@
...
@@ -34,11 +34,11 @@
# STRATEGY
# STRATEGY
# Each include file is fed through cpp, and the scan-decls program
# Each include file is fed through cpp, and the scan-decls program
# parses it, and emits any found function declarations.
# parses it, and emits any found function declarations.
# The
patch
-header program analyzes the scan-decls output,
# The
fix
-header program analyzes the scan-decls output,
# together with the original include file, and writes a "fixed"
# together with the original include file, and writes a "fixed"
# include file, if needed.
# include file, if needed.
#
#
# The comment at the beginning of
patch
-header.c lists specifically
# The comment at the beginning of
fix
-header.c lists specifically
# what kind of changes are made.
# what kind of changes are made.
#
#
# NOTE
# NOTE
...
@@ -297,7 +297,7 @@ for code in ALL STD ; do
...
@@ -297,7 +297,7 @@ for code in ALL STD ; do
done
done
if
${
CPP
}
-D__STDC__
-D__cplusplus
-D_POSIX_SOURCE
$include_path
fixtmp.c
>
fixtmp.i 2>/dev/null
if
${
CPP
}
-D__STDC__
-D__cplusplus
-D_POSIX_SOURCE
$include_path
fixtmp.c
>
fixtmp.i 2>/dev/null
then
then
$original_dir
/
patch
-header
$rel_source_file
$abs_source_file
$abs_target_file
"
$required_list
"
<fixtmp.i
$original_dir
/
fix
-header
$rel_source_file
$abs_source_file
$abs_target_file
"
$required_list
"
<fixtmp.i
else
else
echo
"
${
progname
}
: cpp could not parse
${
abs_source_file
}
(ignored)"
echo
"
${
progname
}
: cpp could not parse
${
abs_source_file
}
(ignored)"
fi
fi
...
@@ -336,7 +336,7 @@ do
...
@@ -336,7 +336,7 @@ do
#define
${
rel_source_ident
}
#define
${
rel_source_ident
}
#endif
#endif
EOF
EOF
$original_dir
/
patch
-header
$rel_source_file
tmp.h
$abs_target_dir
/
$rel_source_file
"
$required_list
"
</dev/null
$original_dir
/
fix
-header
$rel_source_file
tmp.h
$abs_target_dir
/
$rel_source_file
"
$required_list
"
</dev/null
rm tmp.h
rm tmp.h
fi
fi
done
done
...
...
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