tools/ac_converter: couple of trivial fixes (#867)
W: 31, 4: Duplicate key 'HAVE_UNSETENV' in dictionary (duplicate-key) Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> * tools/ac_converter: fix undefined variable 'func' E:283,11: Undefined variable 'func' (undefined-variable) Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> * tools/ac_converter: use spaces properly in HAVE_SOCKET C: 97, 0: Exactly one space required after comma 'HAVE_SOCKET' : ('socket',' sys/socket.h'), ^ (bad-whitespace) This also might cause some issue after conversion. Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
3a12b7ef52
commit
1df8c5c62b
|
@ -94,7 +94,7 @@ function_data = \
|
|||
'HAVE_READLINK': ('readlink', 'unistd.h'),
|
||||
'HAVE_RES_INIT': ('res_init', 'resolv.h'),
|
||||
'HAVE_SENDMMSG': ('sendmmsg', 'sys/socket.h'),
|
||||
'HAVE_SOCKET' : ('socket',' sys/socket.h'),
|
||||
'HAVE_SOCKET' : ('socket', 'sys/socket.h'),
|
||||
'HAVE_GETENV': ('getenv', 'stdlib.h'),
|
||||
'HAVE_SETENV': ('setenv', 'stdlib.h'),
|
||||
'HAVE_PUTENV': ('putenv', 'stdlib.h'),
|
||||
|
@ -115,7 +115,6 @@ function_data = \
|
|||
'HAVE_SYMLINK': ('symlink', 'unistd.h'),
|
||||
'HAVE_SYSCTLBYNAME': ('sysctlbyname', 'sys/sysctl.h'),
|
||||
'HAVE_TIMEGM': ('timegm', 'time.h'),
|
||||
'HAVE_UNSETENV': ('unsetenv', 'stdlib.h'),
|
||||
'HAVE_USELOCALE': ('uselocale', 'xlocale.h'),
|
||||
'HAVE_UTIMES': ('utimes', 'sys/time.h'),
|
||||
'HAVE_VALLOC': ('valloc', 'stdlib.h'),
|
||||
|
@ -280,7 +279,7 @@ endforeach
|
|||
|
||||
print('check_functions = [')
|
||||
for token in functions:
|
||||
if len(func) == 3:
|
||||
if len(token) == 3:
|
||||
token, fdata0, fdata1 = token
|
||||
print(" ['%s', '%s', '#include<%s>']," % (token, fdata0, fdata1))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue