diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index 19e3016..cc8bb84 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -24,13 +24,13 @@ static Edi_Color EDI_COLOR_FOREGROUND = ""; static Edi_Color EDI_COLOR_COMMENT = ""; -static Edi_Color EDI_COLOR_STRING = ""; +//static Edi_Color EDI_COLOR_STRING = ""; static Edi_Color EDI_COLOR_NUMBER = "";// font_weight=Bold"; static Edi_Color EDI_COLOR_BRACE = ""; static Edi_Color EDI_COLOR_TYPE = ""; static Edi_Color EDI_COLOR_CLASS = "";// font_weight=Bold"; static Edi_Color EDI_COLOR_FUNCTION = "";// font_weight=Bold"; -static Edi_Color EDI_COLOR_PARAM = ""; +//static Edi_Color EDI_COLOR_PARAM = ""; static Edi_Color EDI_COLOR_KEYWORD = "";// font_weight=Bold"; static Edi_Color EDI_COLOR_PREPROCESSOR = ""; @@ -278,7 +278,7 @@ _edi_editor_statusbar_add(Evas_Object *panel, Edi_Editor *editor, Edi_Mainview_I #if HAVE_LIBCLANG static void -_edi_range_color_set(Edi_Editor *editor, Edi_Range range, Edi_Color color) +_edi_range_color_set(Edi_Editor *editor EINA_UNUSED, Edi_Range range, Edi_Color color) { evas_textblock_cursor_line_set(_format_cursor, range.start.line - 1); evas_textblock_cursor_pos_set(_format_cursor, evas_textblock_cursor_pos_get(_format_cursor) + range.start.col - 1); @@ -447,7 +447,7 @@ _clang_load_highlighting(const char *path, Edi_Editor *editor) } static void -_clang_load_errors(const char *path, Edi_Editor *editor) +_clang_load_errors(const char *path EINA_UNUSED, Edi_Editor *editor) { unsigned n = clang_getNumDiagnostics(editor->tx_unit); unsigned i = 0; @@ -517,12 +517,14 @@ _edi_clang_setup(const char *path, Edi_Editor *editor) evas_textblock_cursor_free(_format_cursor); } +/* static void _edi_clang_dispose(Edi_Editor *editor) { clang_disposeTranslationUnit(editor->tx_unit); clang_disposeIndex(editor->idx); } +*/ #endif EAPI Evas_Object *edi_editor_add(Evas_Object *parent, Edi_Mainview_Item *item) diff --git a/src/bin/mainview/edi_mainview.c b/src/bin/mainview/edi_mainview.c index ceb6c0a..f673bf7 100644 --- a/src/bin/mainview/edi_mainview.c +++ b/src/bin/mainview/edi_mainview.c @@ -188,7 +188,7 @@ _edi_mainview_item_tab_add(Edi_Path_Options *options, const char *mime) it = elm_naviframe_item_simple_push(nf, content); elm_naviframe_item_style_set(it, "overlap"); - tab = elm_toolbar_item_append(tb, NULL, basename(options->path), _promote, it); + tab = elm_toolbar_item_append(tb, NULL, basename((char*)options->path), _promote, it); item->view = it; item->tab = tab; elm_toolbar_item_selected_set(tab, EINA_TRUE); @@ -214,7 +214,7 @@ _edi_mainview_win_title_get(const char *path) { char *winname, *filename; - filename = basename(path); + filename = basename((char*)path); winname = malloc((8 + strlen(filename)) * sizeof(char)); snprintf(winname, 8 + strlen(filename), "Edi :: %s", filename); @@ -552,7 +552,7 @@ edi_mainview_goto(int line) Evas_Object *content; Elm_Object_Item *it; Edi_Editor *editor; - Evas_Object *tb; + Evas_Object *_tb; Evas_Textblock_Cursor *mcur; Evas_Coord x, y, w, h; @@ -562,8 +562,8 @@ edi_mainview_goto(int line) if (!content || line <= 0) return; - tb = elm_entry_textblock_get(editor->entry); - mcur = evas_object_textblock_cursor_get(tb); + _tb = elm_entry_textblock_get(editor->entry); + mcur = evas_object_textblock_cursor_get(_tb); evas_textblock_cursor_line_set(mcur, line-1); elm_entry_cursor_geometry_get(editor->entry, &x, &y, &w, &h); diff --git a/src/bin/welcome/edi_welcome.c b/src/bin/welcome/edi_welcome.c index 47ad865..f031c29 100644 --- a/src/bin/welcome/edi_welcome.c +++ b/src/bin/welcome/edi_welcome.c @@ -130,7 +130,7 @@ _edi_welcome_project_new_input_row_add(const char *text, const char *placeholder } static void -_edi_welcome_project_new_create_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +_edi_welcome_project_new_create_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { const char *path, *name, *user, *email, *url; char script[PATH_MAX], fullpath[PATH_MAX];