From dbe3952d8335bcd8277554569187d1ea4a3d2530 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Wed, 17 Oct 2018 10:38:50 +0200 Subject: [PATCH] build: move ELM_INTERNAL_API_ARGESFSDFEFC into buildsystem the definition is now defined in the buildtools autools / meson. This reduces the amount of warnings in meson. Differential Revision: https://phab.enlightenment.org/D7170 --- src/Makefile_Elementary.am | 2 ++ src/bin/elementary/elm_prefs_cc.h | 1 - src/tests/elementary/elm_code_file_test_load.c | 2 -- src/tests/elementary/elm_code_file_test_memory.c | 2 -- src/tests/elementary/elm_code_test_basic.c | 2 -- src/tests/elementary/elm_code_test_indent.c | 2 -- src/tests/elementary/elm_code_test_line.c | 2 -- src/tests/elementary/elm_code_test_parse.c | 2 -- src/tests/elementary/elm_code_test_text.c | 2 -- src/tests/elementary/elm_code_test_widget.c | 2 -- src/tests/elementary/elm_code_test_widget_selection.c | 2 -- src/tests/elementary/elm_code_test_widget_text.c | 2 -- src/tests/elementary/elm_code_test_widget_undo.c | 2 -- src/tests/elementary/elm_test_atspi.c | 2 +- src/tests/elementary/elm_test_focus_common.h | 4 ++-- 15 files changed, 5 insertions(+), 26 deletions(-) diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am index 061a8db5..22f24a9 100644 --- a/src/Makefile_Elementary.am +++ b/src/Makefile_Elementary.am @@ -1155,6 +1155,7 @@ bin/elementary/elm_prefs_cc_handlers.c bin_elementary_elm_prefs_cc_LDADD = @USE_ELEMENTARY_LIBS@ bin_elementary_elm_prefs_cc_DEPENDENCIES = @USE_ELEMENTARY_INTERNAL_LIBS@ bin_elementary_elm_prefs_cc_CPPFLAGS = \ +-DELM_INTERNAL_API_ARGESFSDFEFC=1 \ -I$(top_srcdir) \ -I$(top_srcdir)/src/lib/elementary \ -I$(top_builddir)/src/lib/elementary \ @@ -1621,6 +1622,7 @@ tests_elementary_elm_suite_SOURCES = \ tests/elementary/elm_test_focus_sub.c tests_elementary_elm_suite_CPPFLAGS = \ +-DELM_INTERNAL_API_ARGESFSDFEFC=1 \ -DPACKAGE_BUILD_DIR=\"$(abs_top_builddir)\" \ -DTESTS_BUILD_DIR=\"${top_builddir}/src/tests/elementary\" \ -DTESTS_SRC_DIR=\"${top_srcdir}/src/tests/elementary\" \ diff --git a/src/bin/elementary/elm_prefs_cc.h b/src/bin/elementary/elm_prefs_cc.h index ef848ba..645076e 100644 --- a/src/bin/elementary/elm_prefs_cc.h +++ b/src/bin/elementary/elm_prefs_cc.h @@ -3,7 +3,6 @@ #include -#define ELM_INTERNAL_API_ARGESFSDFEFC #include "elm_priv.h" #include "elm_widget_prefs.h" diff --git a/src/tests/elementary/elm_code_file_test_load.c b/src/tests/elementary/elm_code_file_test_load.c index 4a2aced..80bc941 100644 --- a/src/tests/elementary/elm_code_file_test_load.c +++ b/src/tests/elementary/elm_code_file_test_load.c @@ -4,8 +4,6 @@ #include -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" diff --git a/src/tests/elementary/elm_code_file_test_memory.c b/src/tests/elementary/elm_code_file_test_memory.c index 4257e9c..142566d 100644 --- a/src/tests/elementary/elm_code_file_test_memory.c +++ b/src/tests/elementary/elm_code_file_test_memory.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" diff --git a/src/tests/elementary/elm_code_test_basic.c b/src/tests/elementary/elm_code_test_basic.c index 5ae4915..8f2a035 100644 --- a/src/tests/elementary/elm_code_test_basic.c +++ b/src/tests/elementary/elm_code_test_basic.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include #include "elm_suite.h" diff --git a/src/tests/elementary/elm_code_test_indent.c b/src/tests/elementary/elm_code_test_indent.c index b27f1a0..a3a4561 100644 --- a/src/tests/elementary/elm_code_test_indent.c +++ b/src/tests/elementary/elm_code_test_indent.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" #include "elm_code_indent.h" diff --git a/src/tests/elementary/elm_code_test_line.c b/src/tests/elementary/elm_code_test_line.c index 3f4dea7..c1eec9d 100644 --- a/src/tests/elementary/elm_code_test_line.c +++ b/src/tests/elementary/elm_code_test_line.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" diff --git a/src/tests/elementary/elm_code_test_parse.c b/src/tests/elementary/elm_code_test_parse.c index 9125228..af06449 100644 --- a/src/tests/elementary/elm_code_test_parse.c +++ b/src/tests/elementary/elm_code_test_parse.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" #include "elm_code_parse.h" diff --git a/src/tests/elementary/elm_code_test_text.c b/src/tests/elementary/elm_code_test_text.c index 51716ce..c6f6d22 100644 --- a/src/tests/elementary/elm_code_test_text.c +++ b/src/tests/elementary/elm_code_test_text.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" #include "elm_code_text.h" diff --git a/src/tests/elementary/elm_code_test_widget.c b/src/tests/elementary/elm_code_test_widget.c index e510368..7fbe231 100644 --- a/src/tests/elementary/elm_code_test_widget.c +++ b/src/tests/elementary/elm_code_test_widget.c @@ -1,5 +1,3 @@ -#define ELM_INTERNAL_API_ARGESFSDFEFC - #ifdef HAVE_CONFIG_H # include "elementary_config.h" #endif diff --git a/src/tests/elementary/elm_code_test_widget_selection.c b/src/tests/elementary/elm_code_test_widget_selection.c index 8ad7611..ed762f8 100644 --- a/src/tests/elementary/elm_code_test_widget_selection.c +++ b/src/tests/elementary/elm_code_test_widget_selection.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" #include "elm_code_widget_private.h" diff --git a/src/tests/elementary/elm_code_test_widget_text.c b/src/tests/elementary/elm_code_test_widget_text.c index e9eff3c..c2794b9 100644 --- a/src/tests/elementary/elm_code_test_widget_text.c +++ b/src/tests/elementary/elm_code_test_widget_text.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" diff --git a/src/tests/elementary/elm_code_test_widget_undo.c b/src/tests/elementary/elm_code_test_widget_undo.c index 9d3e59c..d65a196 100644 --- a/src/tests/elementary/elm_code_test_widget_undo.c +++ b/src/tests/elementary/elm_code_test_widget_undo.c @@ -2,8 +2,6 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC - #include "elm_suite.h" #include "Elementary.h" #include "elm_code_widget_private.h" diff --git a/src/tests/elementary/elm_test_atspi.c b/src/tests/elementary/elm_test_atspi.c index 0cb3b72..d5a30ae 100644 --- a/src/tests/elementary/elm_test_atspi.c +++ b/src/tests/elementary/elm_test_atspi.c @@ -2,7 +2,7 @@ # include "elementary_config.h" #endif -#define ELM_INTERNAL_API_ARGESFSDFEFC + #define EFL_ACCESS_OBJECT_BETA #define EFL_ACCESS_OBJECT_PROTECTED diff --git a/src/tests/elementary/elm_test_focus_common.h b/src/tests/elementary/elm_test_focus_common.h index bfce152..3e93bbf 100644 --- a/src/tests/elementary/elm_test_focus_common.h +++ b/src/tests/elementary/elm_test_focus_common.h @@ -6,7 +6,7 @@ #endif #define EFL_ACCESS_OBJECT_PROTECTED -#define ELM_INTERNAL_API_ARGESFSDFEFC + #include #include "elm_suite.h" #include "elm_widget.h" @@ -26,4 +26,4 @@ void elm_focus_test_setup_cross(Efl_Ui_Focus_Object **middle, Efl_Ui_Focus_Object **west); Efl_Ui_Focus_Manager *elm_focus_test_manager_new(Efl_Ui_Focus_Object **middle); -#endif \ No newline at end of file +#endif -- 2.7.4