# HG changeset patch # User Carlo de Falco
# Date 1359450890 -3600 # Node ID 5c824586de6694c5dd0ffb8d2979cf432df89a49 # Parent f75ffcc82acbbd7e0c769b7f674b793da98eb8ff Add an option to warn each time a f77 subroutine is invoked. configure.ac: add a configure test for the option --enable-f77-warn name. f77-fcn: provide macros to invoke f77 functions verbosely. diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -175,6 +175,19 @@ AC_DEFINE_UNQUOTED([SHELL_PATH], ["$SHELL_PATH"], [Define this to be the path to the shell command interpreter.]) +### Print a warning message every time a F77 function is invoked and print the function name. +### Disabled by default. + +WARN_F77_FUNC_NAME=false +AC_ARG_ENABLE([warn-f77-name], + [AS_HELP_STRING([--enable-warn-f77-name], + [every time a fortran77 function is invoked, issue a warning with the function name. You probably do NOT want to enable this feature.])], + [if test "$enableval" = yes; then WARN_F77_FUNC_NAME=true; fi], []) +if $WARN_F77_FUNC_NAME; then + AC_DEFINE(WARN_F77_FUNC_NAME, 1, + [Define to 1 to use octave_allocator class.]) +fi + ### Enable bounds checking on element references within Octave's array and ### matrix classes. This slows down some operations a bit, so it is turned off ### by default. diff --git a/libinterp/interpfcn/debug.h b/libinterp/interpfcn/debug.h --- a/libinterp/interpfcn/debug.h +++ b/libinterp/interpfcn/debug.h @@ -27,6 +27,7 @@ #include