From 32b2102774be84ab5ea0df250e40299f60119c09 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 4 Mar 2018 21:41:33 +0900 Subject: [PATCH] Elm_code test: fix compilation Reviewers: cedric, raster Differential Revision: https://phab.enlightenment.org/D5831 --- src/lib/elementary/elm_code_parse.c | 2 ++ src/lib/elementary/elm_code_widget_selection.c | 7 +++++-- 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