[gimp] ScriptFu: delete unneeded #define G_LOG_DOMAIN
- From: Lloyd Konneker <lkonneker src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] ScriptFu: delete unneeded #define G_LOG_DOMAIN
- Date: Thu, 30 Jun 2022 18:22:13 +0000 (UTC)
commit ea81ae747dd044a07488bf9b7c0e2104a797cc1c
Author: lloyd konneker <konnekerl gmail com>
Date: Thu Jun 30 13:44:07 2022 -0400
ScriptFu: delete unneeded #define G_LOG_DOMAIN
It clutters the compile log.
Compile flag -DG_LOG_DOMAIN="scriptfu" now does this.
plug-ins/script-fu/libscriptfu/script-fu-errors.c | 6 +-----
plug-ins/script-fu/libscriptfu/script-fu-errors.h | 11 -----------
2 files changed, 1 insertion(+), 16 deletions(-)
---
diff --git a/plug-ins/script-fu/libscriptfu/script-fu-errors.c
b/plug-ins/script-fu/libscriptfu/script-fu-errors.c
index 2e2610bf6a..8e02264e52 100644
--- a/plug-ins/script-fu/libscriptfu/script-fu-errors.c
+++ b/plug-ins/script-fu/libscriptfu/script-fu-errors.c
@@ -24,11 +24,7 @@
#include "script-fu-errors.h"
-/* Enable logging by "export G_MESSAGES_DEBUG=scriptfu" in the env
- * See G_LOG_DOMAIN in script-fu-errors.h
- */
-
-
+/* Enable logging by "export G_MESSAGES_DEBUG=scriptfu" in the env */
/* Used by debug_in_arg().
* FUTURE: conditional compile out when debug not enabled.
diff --git a/plug-ins/script-fu/libscriptfu/script-fu-errors.h
b/plug-ins/script-fu/libscriptfu/script-fu-errors.h
index a4cad90944..c9f16f8a9a 100644
--- a/plug-ins/script-fu/libscriptfu/script-fu-errors.h
+++ b/plug-ins/script-fu/libscriptfu/script-fu-errors.h
@@ -18,17 +18,6 @@
#ifndef __SCRIPT_FU_ERRORS_H__
#define __SCRIPT_FU_ERRORS_H__
-
-/* G_LOG_DOMAIN affects calls to g_debug convenience func/macro in this compilation unit. */
-#ifdef G_LOG_DOMAIN
-#define STR_HELPER(x) #x
-#define STR(x) STR_HELPER(x)
-#pragma message "G_LOG_DOMAIN previously defined as: " STR(G_LOG_DOMAIN)
-#undef G_LOG_DOMAIN
-#define G_LOG_DOMAIN ((gchar*)"scriptfu")
-#endif
-
-
pointer script_error (scheme *sc,
const gchar *error_message,
const pointer a);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]