From 7d5048dcb46585fd4328ad1c2a4942aee02a22a0 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 1 Oct 2019 13:11:03 +0200 Subject: Set compiler debug flags using MATE_DEBUG_CHECK and update configure summary test: $ ./autogen.sh --enable-debug=profile --prefix=/usr Configuration: Source code location: . Compiler: gcc Compiler flags: -g -pg Warning flags: -Wall -Wmissing-prototypes Linker flags: -pg Caja support: yes PackageKit support: yes Run in place no Use libmagic: no JSON support: yes Now type `make' to compile engrampa $ ./autogen.sh --enable-debug --prefix=/usr Configuration: Source code location: . Compiler: gcc Compiler flags: -g -O0 Warning flags: -Wall -Wmissing-prototypes Linker flags: Caja support: yes PackageKit support: yes Run in place no Use libmagic: no JSON support: yes Now type `make' to compile engrampa $ grep MATE_ENABLE_DEBUG config.h --- src/fr-command.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/fr-command.c') diff --git a/src/fr-command.c b/src/fr-command.c index 9077d18..dc372b0 100644 --- a/src/fr-command.c +++ b/src/fr-command.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include #include #include #include @@ -79,6 +80,13 @@ const char *action_names[] = { "NONE", "CREATING_ARCHIVE", "SAVING_REMOTE_ARCHIVE" }; +#if MATE_ENABLE_DEBUG +const char * get_action_name (FrAction action) +{ + return action_names[action]; +} +#endif + GType fr_command_get_type () { -- cgit v1.2.1