Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-sys: fix wrong usage of AC_CHECK_FUNCS used in checking mblen #1515

Conversation

masatake
Copy link
Member

The original code defines HAVE_MBLEN=1 when mblen is not found.
It should be defined only when the function is found.

AC_CHECK_FUNCS defines the macro automatically when it is defiend
explicitly in the parameter list. So just specifying the name of
function is enough.

Signed-off-by: Masatake YAMATO yamato@redhat.com

The original code defines `HAVE_MBLEN=1` when mblen is not found.
It should be defined only when the function is found.

AC_CHECK_FUNCS defines the macro automatically when it is defiend
explicitly in the parameter list. So just specifying the name of
function is enough.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake
Copy link
Member Author

This implies the C code surrounded by #ifdef HAVE_MBLEN - #endif is not tested

@masatake
Copy link
Member Author

Does anyone have interest to write a test case for mblen?

@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.373% when pulling de9a8eb on masatake:fix-the-way-to-report-the-existence-of-mblen into 5567535 on universal-ctags:master.

@masatake masatake merged commit 7594f20 into universal-ctags:master Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants