[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FYI] {ylwrap-refactor} ylwrap: rename 'handle_renaming' to 'tempfile_de
From: |
Stefano Lattarini |
Subject: |
[FYI] {ylwrap-refactor} ylwrap: rename 'handle_renaming' to 'tempfile_deploy' |
Date: |
Fri, 6 May 2011 18:45:06 +0200 |
User-agent: |
KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; ) |
* lib/ylwrap (handle_renaming): This name has become out-of-sync
with the subroutine purpose; so rename it ...
(tempfile_deploy): ... to this.
---
ChangeLog | 7 +++++++
lib/ylwrap | 12 ++++++------
2 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 52656b7..72dd83b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2011-05-06 Stefano Lattarini <address@hidden>
+ ylwrap: rename 'handle_renaming' to 'tempfile_deploy'
+ * lib/ylwrap (handle_renaming): This name has become out-of-sync
+ with the subroutine purpose; so rename it ...
+ (tempfile_deploy): ... to this.
+
+2011-05-06 Stefano Lattarini <address@hidden>
+
ylwrap: fix indentation
* lib/ylwrap: Make indentation consistent (two spaces).
diff --git a/lib/ylwrap b/lib/ylwrap
index 90b087b..7edebb5 100755
--- a/lib/ylwrap
+++ b/lib/ylwrap
@@ -78,8 +78,8 @@ set_yacc_filenames ()
y_output=y.output
}
-# Usage: handle_renaming FROM TARGET
-handle_renaming ()
+# Usage: tempfile_deploy FROM TARGET
+tempfile_deploy ()
{
from=$1
target=$2
@@ -243,20 +243,20 @@ case $wrapped in
# changed. This avoid useless recompilations. However the
# parser itself should always be updated, because it is the
# destination of the .y.c rule in the Makefile.
- handle_renaming $y_tab_c $output_stem.$c_ext
+ tempfile_deploy $y_tab_c $output_stem.$c_ext
# If the `-d' option is not used, we don't want an error when the
# header file is "missing". Similarly, if `-v' is not used, we
# don't want an error when the `y.output' file is "missing".
if test -f $tempdir/$y_tab_h; then
- handle_renaming $y_tab_h $tempdir/header.tmp
+ tempfile_deploy $y_tab_h $tempdir/header.tmp
move_if_change $tempdir/header.tmp $output_stem.$h_ext
fi
if test -f $tempdir/$y_output; then
- handle_renaming $y_output $output_stem.output
+ tempfile_deploy $y_output $output_stem.output
fi
;;
lex)
- handle_renaming $lex_output_root.c $output
+ tempfile_deploy $lex_output_root.c $output
;;
*)
exit 255 # Not reached.
--
1.7.2.3
- [FYI] {ylwrap-refactor} ylwrap: new subroutine `handle_renaming', (continued)
- [FYI] {ylwrap-refactor} ylwrap: new subroutine `handle_renaming', Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: warn when expected output files are missing, Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: cleanup refactoring (no semantic change), Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: another cleanup refactoring (no semantic change), Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: get rid of the loop on "FROM TARGET" couples, Stefano Lattarini, 2011/05/05
- FYI] {ylwrap-refactor} ylwrap: go into tempdir only when running wrapped program, Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: pull `dos_fix_yacc_filenames' out of `handle_renaming', Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: move "update if changed" logic out of `handle_renaming', Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: some renaming of variables and subroutines, Stefano Lattarini, 2011/05/06
- [FYI] {ylwrap-refactor} ylwrap: fix indentation, Stefano Lattarini, 2011/05/06
- [FYI] {ylwrap-refactor} ylwrap: rename 'handle_renaming' to 'tempfile_deploy',
Stefano Lattarini <=
- [FYI] {ylwrap-refactor} merged branch 'yacc-work', Stefano Lattarini, 2011/05/06