Rename single-letter variable

This commit is contained in:
Jack Nagel 2013-06-13 18:39:52 -05:00
parent a458555ccb
commit 020a505970

View File

@ -311,10 +311,8 @@ module HomebrewEnvExtension
end end
# Convenience method to set all C compiler flags in one shot. # Convenience method to set all C compiler flags in one shot.
def set_cflags f def set_cflags val
CC_FLAG_VARS.each do |key| CC_FLAG_VARS.each { |key| self[key] = val }
self[key] = f
end
end end
# Sets architecture-specific flags for every environment variable # Sets architecture-specific flags for every environment variable
@ -397,8 +395,8 @@ class << ENV
def append_to_cflags newflags def append_to_cflags newflags
append(CC_FLAG_VARS, newflags) append(CC_FLAG_VARS, newflags)
end end
def remove_from_cflags f def remove_from_cflags val
remove CC_FLAG_VARS, f remove CC_FLAG_VARS, val
end end
def append keys, value, separator = ' ' def append keys, value, separator = ' '
value = value.to_s value = value.to_s