aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2018-03-04 21:41:33 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-04 21:41:34 +0900
commit32b2102774be84ab5ea0df250e40299f60119c09 (patch)
treed0ad3234fd0bf91a9f22882ceafb54121c9cda5a
parentefreet_xml: make sure we unmap the right pointer. (diff)
downloadefl-32b2102774be84ab5ea0df250e40299f60119c09.tar.gz
Elm_code test: fix compilation
Reviewers: cedric, raster Differential Revision: https://phab.enlightenment.org/D5831
-rw-r--r--src/lib/elementary/elm_code_parse.c2
-rw-r--r--src/lib/elementary/elm_code_widget_selection.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_code_parse.c b/src/lib/elementary/elm_code_parse.c
index 11f046f1ef..c5668a2761 100644
--- a/src/lib/elementary/elm_code_parse.c
+++ b/src/lib/elementary/elm_code_parse.c
@@ -6,9 +6,11 @@
#include "elm_code_private.h"
+#ifndef ELM_CODE_TEST
EAPI Elm_Code_Parser *ELM_CODE_PARSER_STANDARD_SYNTAX = NULL;
EAPI Elm_Code_Parser *ELM_CODE_PARSER_STANDARD_DIFF = NULL;
EAPI Elm_Code_Parser *ELM_CODE_PARSER_STANDARD_TODO = NULL;
+#endif
struct _Elm_Code_Parser
{
diff --git a/src/lib/elementary/elm_code_widget_selection.c b/src/lib/elementary/elm_code_widget_selection.c
index fd2c161785..e89c9d45da 100644
--- a/src/lib/elementary/elm_code_widget_selection.c
+++ b/src/lib/elementary/elm_code_widget_selection.c
@@ -112,6 +112,7 @@ elm_code_widget_selection_select_all(Evas_Object *widget)
efl_event_callback_legacy_call(widget, ELM_OBJ_CODE_WIDGET_EVENT_SELECTION_CHANGED, widget);
}
+#ifndef ELM_CODE_TEST
EAPI Elm_Code_Widget_Selection_Data *
elm_code_widget_selection_normalized_get(Evas_Object *widget)
@@ -154,8 +155,6 @@ elm_code_widget_selection_normalized_get(Evas_Object *widget)
return selection;
}
-#ifndef ELM_CODE_TEST
-
EAPI void
elm_code_widget_selection_clear(Evas_Object *widget)
{
@@ -404,6 +403,8 @@ _selection_loss_cb(void *data EINA_UNUSED, Elm_Sel_Type selection EINA_UNUSED)
// elm_code_widget_selection_clear(widget);
}
+#ifndef ELM_CODE_TEST
+
EAPI void
elm_code_widget_selection_cut(Evas_Object *widget)
{
@@ -483,3 +484,5 @@ elm_code_widget_selection_is_empty(Evas_Object *widget)
return ret;
}
+
+#endif // ELM_CODE_TEST