"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tool/m4/ruby_check_printf_prefix.m4" between
ruby-2.7.3.tar.gz and ruby-2.7.4.tar.gz

About: Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). Stable release of 2.7 series.

ruby_check_printf_prefix.m4  (ruby-2.7.3):ruby_check_printf_prefix.m4  (ruby-2.7.4)
# -*- Autoconf -*- # -*- Autoconf -*-
AC_DEFUN([RUBY_CHECK_PRINTF_PREFIX], [ AC_DEFUN([RUBY_CHECK_PRINTF_PREFIX], [
AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[ AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[
[rb_cv_pri_prefix_]AS_TR_SH($1)=[NONE] [rb_cv_pri_prefix_]AS_TR_SH($1)=[NONE]
RUBY_WERROR_FLAG(RUBY_APPEND_OPTIONS(CFLAGS, $rb_cv_wsuppress_flags) RUBY_WERROR_FLAG(RUBY_APPEND_OPTIONS(CFLAGS, $rb_cv_wsuppress_flags)
for pri in $2; do for pri in $2; do
AC_TRY_COMPILE( AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <stdio.h>
[@%:@include <stdio.h>
@%:@include <stddef.h> @%:@include <stddef.h>
@%:@ifdef __GNUC__ @%:@ifdef __GNUC__
@%:@if defined __MINGW_PRINTF_FORMAT @%:@if defined __MINGW_PRINTF_FORMAT
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) \ @%:@define PRINTF_ARGS(decl, string_index, first_to_check) \
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, fi rst_to_check))) decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, fi rst_to_check)))
@%:@else @%:@else
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) \ @%:@define PRINTF_ARGS(decl, string_index, first_to_check) \
decl __attribute__((format(printf, string_index, first_to_check))) decl __attribute__((format(printf, string_index, first_to_check)))
@%:@endif @%:@endif
@%:@else @%:@else
@%:@define PRINTF_ARGS(decl, string_index, first_to_check) decl @%:@define PRINTF_ARGS(decl, string_index, first_to_check) decl
@%:@endif @%:@endif
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);], PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);]],
[printf("%]${pri}[d", (]$1[)42); [[printf("%]${pri}[d", (]$1[)42);
test_sprintf("%]${pri}[d", (]$1[)42);], test_sprintf("%]${pri}[d", (]$1[)42);]])],
[rb_cv_pri_prefix_]AS_TR_SH($1)[=[$pri]; break]) [rb_cv_pri_prefix_]AS_TR_SH($1)[=[$pri]; break])
done)]) done)])
AS_IF([test "[$rb_cv_pri_prefix_]AS_TR_SH($1)" != NONE], [ AS_IF([test "[$rb_cv_pri_prefix_]AS_TR_SH($1)" != NONE], [
AC_DEFINE_UNQUOTED([PRI_]m4_ifval($3,$3,AS_TR_CPP(m4_bpatsubst([$1],[_t$]))) [_PREFIX], AC_DEFINE_UNQUOTED([PRI_]m4_ifval($3,$3,AS_TR_CPP(m4_bpatsubst([$1],[_t$]))) [_PREFIX],
"[$rb_cv_pri_prefix_]AS_TR_SH($1)") "[$rb_cv_pri_prefix_]AS_TR_SH($1)")
]) ])
])dnl ])dnl
 End of changes. 2 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)