def check_ref (manual, file, m):
global fixes_count, bad_refs_count
bad_ref = False
def check_ref (manual, file, m):
global fixes_count, bad_refs_count
bad_ref = False
type = m.group (1)
original_name = m.group (2)
name = whitespace_re.sub (' ', original_name). strip ()
type = m.group (1)
original_name = m.group (2)
name = whitespace_re.sub (' ', original_name). strip ()
bad_refs_count += int (bad_ref)
if bad_ref and not useful_fix:
stdout.write ("*** Warning: this file is automatically generated, \
bad_refs_count += int (bad_ref)
if bad_ref and not useful_fix:
stdout.write ("*** Warning: this file is automatically generated, \