mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-09 07:00:23 +02:00
* guile-doc-snarf.in: Do not echo to stdout since the output now
gets stuck directly in the files instead of redirected from stdout. * guile-doc-snarf.awk: Escape a literal ) -- thanks Ryan Yeske. Use print instead of printf to prime the .x file since AIX's cpp has problems with #include-ing empty files (according to the old guile-snarf.in file).
This commit is contained in:
parent
3a596d3c6b
commit
393bbab5ef
2 changed files with 2 additions and 6 deletions
|
@ -8,7 +8,7 @@ BEGIN { FS="|";
|
|||
sub(/\..*$/,".x",dot_x_file);
|
||||
sub(/\..*$/,".doc",dot_doc_file);
|
||||
# be sure to put something in the files to help make out
|
||||
printf "" > dot_x_file;
|
||||
print "" > dot_x_file;
|
||||
printf "" > dot_doc_file;
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ BEGIN { FS="|";
|
|||
sub(/[ \t]*$/,"",location);
|
||||
sub(/: /,":",location);
|
||||
gsub(/[ \t]*\|.*$/,"",copy);
|
||||
sub(/ )/,")",copy);
|
||||
sub(/ \)/,")",copy);
|
||||
if (numargs != numactuals && !registering)
|
||||
{ print location ":*** `" copy "' is improperly registered as having " numactuals " arguments"; }
|
||||
print "\n" copy (registering?")":"") > dot_doc_file ; }
|
||||
|
|
|
@ -22,7 +22,3 @@ test -n "${CPP+set}" || CPP="@CPP@"
|
|||
## need to know if CPP exits with a non-zero status.
|
||||
${CPP} -DSCM_MAGIC_SNARFER "$@" > ${temp} || exit $?
|
||||
< ${temp} awk -f `dirname $0`/guile-doc-snarf.awk $filename
|
||||
|
||||
## Apparently, AIX's preprocessor is unhappy if you try to #include an
|
||||
## empty file.
|
||||
echo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue