Commit aab7bd19 by Richard Stallman

Use fix-header.

From-SVN: r5870
parent e7f9bcdc
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment