# HG changeset patch # User John W. Eaton # Date 1480397555 18000 # Node ID 60405b73e439b3c8332bb04512130a33c7edad28 # Parent 5605a786086d1b133f25522d131826f5ced87df3 provide separate typedefs for octave_idx_type and octave_f77_int_type * configure.ac: Also substitute and define OCTAVE_F77_INT_TYPE. * octave-conf-post.in.h: New typedef for octave_f77_int_type. * f77-fcn.h: Define F77_INT and F77_LOGICAL using octave_f77_int_type instead of octave_idx_type. diff -r 5605a786086d -r 60405b73e439 configure.ac --- a/configure.ac Tue Nov 29 00:20:23 2016 -0500 +++ b/configure.ac Tue Nov 29 00:32:35 2016 -0500 @@ -355,6 +355,10 @@ AC_SUBST(OCTAVE_IDX_TYPE) AC_DEFINE_UNQUOTED(OCTAVE_IDX_TYPE, [$OCTAVE_IDX_TYPE], [Define to the type of octave_idx_type (64 or 32 bit signed integer).]) +OCTAVE_F77_INT_TYPE=$OCTAVE_IDX_TYPE +AC_SUBST(OCTAVE_F77_INT_TYPE) +AC_DEFINE_UNQUOTED(OCTAVE_F77_INT_TYPE, [$OCTAVE_F77_INT_TYPE], + [Define to the type of octave_f77_int_type (64 or 32 bit signed integer).]) if test $ENABLE_64 = yes; then AC_DEFINE(OCTAVE_ENABLE_64, 1, [Define to 1 if using 64-bit integers for array dimensions and indexing.]) diff -r 5605a786086d -r 60405b73e439 liboctave/cruft/misc/f77-fcn.h --- a/liboctave/cruft/misc/f77-fcn.h Tue Nov 29 00:20:23 2016 -0500 +++ b/liboctave/cruft/misc/f77-fcn.h Tue Nov 29 00:32:35 2016 -0500 @@ -332,9 +332,9 @@ typedef float F77_REAL; typedef double _Complex F77_DBLE_CMPLX; typedef float _Complex F77_CMPLX; -typedef octave_idx_type F77_INT; +typedef octave_f77_int_type F77_INT; typedef int32_t F77_INT4; -typedef octave_idx_type F77_LOGICAL; +typedef octave_f77_int_type F77_LOGICAL; #define F77_CMPLX_ARG(x) \ reinterpret_cast (x) diff -r 5605a786086d -r 60405b73e439 oct-conf-post.in.h --- a/oct-conf-post.in.h Tue Nov 29 00:20:23 2016 -0500 +++ b/oct-conf-post.in.h Tue Nov 29 00:32:35 2016 -0500 @@ -189,6 +189,7 @@ #endif typedef OCTAVE_IDX_TYPE octave_idx_type; +typedef OCTAVE_F77_INT_TYPE octave_f77_int_type; /* Tag indicating Octave's autoconf-generated config.h has been included. This symbol is provided because autoconf-generated