From f088e7bdf62b706cb3a3970cf2f937a7e7408d66 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 22 Aug 2019 16:52:18 +0100 Subject: [PATCH] Move GEANY_GBO_COMPILE etc to build.c --- src/build.c | 16 ++++++++++++++++ src/build.h | 16 ---------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/build.c b/src/build.c index b78da503..6e52871b 100644 --- a/src/build.c +++ b/src/build.c @@ -81,6 +81,22 @@ static RunInfo *run_info; static const gchar RUN_SCRIPT_CMD[] = "geany_run_script_XXXXXX.sh"; #endif +/* Order is important (see GBO_TO_GBG, GBO_TO_CMD below) */ +/* * Geany Known Build Commands. + * These commands are named after their default use. + * Only these commands can currently have keybindings. + **/ +typedef enum +{ + GEANY_GBO_COMPILE, /* *< default compile file */ + GEANY_GBO_BUILD, /* *< default build file */ + GEANY_GBO_MAKE_ALL, /* *< default make */ + GEANY_GBO_CUSTOM, /* *< default make user specified target */ + GEANY_GBO_MAKE_OBJECT, /* *< default make object, make %e.o */ + GEANY_GBO_EXEC, /* *< default execute ./%e */ + GEANY_GBO_COUNT /* *< count of how many */ +} GeanyBuildType; + /* * Convert @c GeanyBuildType to @c GeanyBuildGroup. * * This macro converts @c GeanyBuildType enum values (the "known" commands) diff --git a/src/build.h b/src/build.h index 28631f1a..f9d720d0 100644 --- a/src/build.h +++ b/src/build.h @@ -75,22 +75,6 @@ guint build_get_group_count(const GeanyBuildGroup grp); #ifdef GEANY_PRIVATE -/* Order is important (see GBO_TO_GBG, GBO_TO_CMD below) */ -/* * Geany Known Build Commands. - * These commands are named after their default use. - * Only these commands can currently have keybindings. - **/ -typedef enum -{ - GEANY_GBO_COMPILE, /* *< default compile file */ - GEANY_GBO_BUILD, /* *< default build file */ - GEANY_GBO_MAKE_ALL, /* *< default make */ - GEANY_GBO_CUSTOM, /* *< default make user specified target */ - GEANY_GBO_MAKE_OBJECT, /* *< default make object, make %e.o */ - GEANY_GBO_EXEC, /* *< default execute ./%e */ - GEANY_GBO_COUNT /* *< count of how many */ -} GeanyBuildType; - /* include the fixed widgets in an array indexed by groups */ #define GBG_FIXED GEANY_GBG_COUNT