"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tool/m4/ruby_stack_grow_direction.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_stack_grow_direction.m4  (ruby-2.7.3):ruby_stack_grow_direction.m4  (ruby-2.7.4)
# -*- Autoconf -*- # -*- Autoconf -*-
AC_DEFUN([RUBY_STACK_GROW_DIRECTION], [ AC_DEFUN([RUBY_STACK_GROW_DIRECTION], [
AS_VAR_PUSHDEF([stack_grow_dir], [rb_cv_stack_grow_dir_$1]) AS_VAR_PUSHDEF([stack_grow_dir], [rb_cv_stack_grow_dir_$1])
AC_CACHE_CHECK(stack growing direction on $1, stack_grow_dir, [ AC_CACHE_CHECK(stack growing direction on $1, stack_grow_dir, [
AS_CASE(["$1"], AS_CASE(["$1"],
[m68*|x86*|x64|i?86|ppc*|sparc*|alpha*], [ $2=-1], [m68*|x86*|x64|i?86|ppc*|sparc*|alpha*], [ $2=-1],
[hppa*], [ $2=+1], [hppa*], [ $2=+1],
[ [
AC_TRY_RUN([ AC_RUN_IFELSE([AC_LANG_SOURCE([[
/* recurse to get rid of inlining */ /* recurse to get rid of inlining */
static int static int
stack_growup_p(addr, n) stack_growup_p(addr, n)
volatile int *addr, n; volatile int *addr, n;
{ {
volatile int end; volatile int end;
if (n > 0) if (n > 0)
return *addr = stack_growup_p(addr, n - 1); return *addr = stack_growup_p(addr, n - 1);
else else
return (&end > addr); return (&end > addr);
} }
int main() int main()
{ {
int x; int x;
return stack_growup_p(&x, 10); return stack_growup_p(&x, 10);
} }
], $2=-1, $2=+1, $2=0) ]])],[$2=-1],[$2=+1],[$2=0])
]) ])
eval stack_grow_dir=\$$2]) eval stack_grow_dir=\$$2])
eval $2=\$stack_grow_dir eval $2=\$stack_grow_dir
AS_VAR_POPDEF([stack_grow_dir])])dnl AS_VAR_POPDEF([stack_grow_dir])])dnl
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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