From 0b65ef4705cd4ca74c6a04ffc07c7fc2acbb298d Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 24 Jul 2012 16:36:34 +0200 Subject: [PATCH] [ng] cosmetics: move a variable definition * lib/am/header-vars.am (am.chars.empty): This, move earlier. This both fixes the associated comments (which referred to a variable defined above it as "defined below"), and ensures that this variable is not used before being defined (not a big deal in practice, since it expands to empty; but better be consistent). Reported by Akim Demaille. Signed-off-by: Stefano Lattarini --- lib/am/header-vars.am | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index 16a0e4081..251d15242 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -50,6 +50,11 @@ am.chars.dquote := " am.chars.squote := ' # "` # Fix font-lock. +# An empty string. It can be very useful to "fool" the make parser w.r.t. +# whitespace handling, and allow us to obtain tricky semantics. See the +# definition of $(am.chars.newline) just below for a significant example. +am.chars.empty := + # A literal newline character, that does not get stripped if used # at the end of the expansion of another macro. define am.chars.newline @@ -143,11 +148,6 @@ am.make.dry-run := \ $(findstring n,$v)))), \ true, false)) -# An empty string. It can be very useful to "fool" the make parser w.r.t. -# whitespace handling, and allow us to obtain tricky semantics. See the -# definition of $(am.chars.newline) below for a significant example. -am.chars.empty := - am.util.strip-first-word = $(wordlist 2,$(words $(1)),$(1)) am.util.strip-last-word = $(wordlist 2,$(words $(1)),dummy $(1)) -- 2.47.2