From cd8cd1ce3e4c5677b3b02c08d5a3d29a1ba4c45e Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 16 Oct 2007 13:35:26 +0300 Subject: [PATCH] Misc --- src/gpx.c | 15 -------- src/hildon-wrappers.c | 4 +-- src/map-download.c | 7 +--- src/map-repo.c | 83 ++++++++++++------------------------------- src/osm-db.c | 19 ++++++++++ src/osm-db.h | 20 +++++++++++ src/osm.c | 19 ++++++++++ src/osm.h | 20 +++++++++++ src/route.c | 15 -------- 9 files changed, 103 insertions(+), 99 deletions(-) diff --git a/src/gpx.c b/src/gpx.c index 3f7643e..61c0dd2 100644 --- a/src/gpx.c +++ b/src/gpx.c @@ -76,7 +76,6 @@ write_gpx(Path * path, GnomeVFSHandle * handle) Point *curr = NULL; WayPoint *wcurr = NULL; gboolean trkseg_break = FALSE; - printf("%s()\n", __PRETTY_FUNCTION__); /* Find first non-zero point. */ for (curr = path->head - 1, wcurr = path->whead; curr++ != path->tail;) { @@ -164,7 +163,6 @@ write_gpx(Path * path, GnomeVFSHandle * handle) /* Write the footer. */ WRITE_STRING(" \n" " \n" "\n"); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -180,7 +178,6 @@ write_gpx(Path * path, GnomeVFSHandle * handle) static void gpx_start_element(SaxData * data, const xmlChar * name, const xmlChar ** attrs) { - vprintf("%s(%s)\n", __PRETTY_FUNCTION__, name); switch (data->state) { case ERROR: @@ -254,7 +251,6 @@ gpx_start_element(SaxData * data, const xmlChar * name, const xmlChar ** attrs) ; } - vprintf("%s(): return\n", __PRETTY_FUNCTION__); } /** @@ -263,7 +259,6 @@ gpx_start_element(SaxData * data, const xmlChar * name, const xmlChar ** attrs) static void gpx_end_element(SaxData * data, const xmlChar * name) { - vprintf("%s(%s)\n", __PRETTY_FUNCTION__, name); switch (data->state) { case ERROR: @@ -397,7 +392,6 @@ gpx_end_element(SaxData * data, const xmlChar * name) ; } - vprintf("%s(): return\n", __PRETTY_FUNCTION__); } /** @@ -407,7 +401,6 @@ static void gpx_chars(SaxData * data, const xmlChar * ch, int len) { guint i; - vprintf("%s()\n", __PRETTY_FUNCTION__); switch (data->state) { case ERROR: @@ -424,7 +417,6 @@ gpx_chars(SaxData * data, const xmlChar * ch, int len) break; } - vprintf("%s(): return\n", __PRETTY_FUNCTION__); } /** @@ -434,8 +426,6 @@ gpx_chars(SaxData * data, const xmlChar * ch, int len) static xmlEntityPtr gpx_get_entity(SaxData * data, const xmlChar * name) { - vprintf("%s()\n", __PRETTY_FUNCTION__); - vprintf("%s(): return\n", __PRETTY_FUNCTION__); return xmlGetPredefinedEntity(name); } @@ -445,8 +435,6 @@ gpx_get_entity(SaxData * data, const xmlChar * name) static void gpx_error(SaxData * data, const gchar * msg, ...) { - vprintf("%s()\n", __PRETTY_FUNCTION__); - vprintf("%s(): return\n", __PRETTY_FUNCTION__); data->state = ERROR; } @@ -455,7 +443,6 @@ parse_gpx(Path * to_replace, gchar * buffer, gint size, gint policy_old) { SaxData data; xmlSAXHandler sax_handler; - printf("%s()\n", __PRETTY_FUNCTION__); MACRO_PATH_INIT(data.path); data.state = START; @@ -474,7 +461,6 @@ parse_gpx(Path * to_replace, gchar * buffer, gint size, gint policy_old) g_string_free(data.chars, TRUE); if (data.state != FINISH) { - vprintf("%s(): return FALSE\n", __PRETTY_FUNCTION__); return FALSE; } @@ -544,6 +530,5 @@ parse_gpx(Path * to_replace, gchar * buffer, gint size, gint policy_old) to_replace->wtail - to_replace->whead + 1); } - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } diff --git a/src/hildon-wrappers.c b/src/hildon-wrappers.c index 4e9c895..198fed2 100644 --- a/src/hildon-wrappers.c +++ b/src/hildon-wrappers.c @@ -75,8 +75,8 @@ void hildon_banner_set_fraction(GtkWidget * widget, gdouble fraction) { gtk_progress_bar_set_fraction(_progress_item, fraction); if (fraction==1.0) { - gtk_widget_hide(_progress_item); gtk_progress_bar_set_text(_progress_item, ""); + gtk_widget_hide(_progress_item); } else gtk_widget_show(_progress_item); } @@ -84,9 +84,9 @@ if (fraction==1.0) { GtkWidget *hildon_banner_show_animation(GtkWidget *widget, const gchar *animation_name, const gchar *text) { hildon_banner_show_information(_status_bar, NULL, text); +gtk_progress_bar_set_text(_progress_item, text); gtk_widget_show(_progress_item); gtk_progress_bar_pulse(_progress_item); -gtk_progress_bar_set_text(_progress_item, text); return NULL; } diff --git a/src/map-download.c b/src/map-download.c index 4bfb998..9703861 100644 --- a/src/map-download.c +++ b/src/map-download.c @@ -59,7 +59,6 @@ g_free(pui->dest_str); g_slice_free(ProgressUpdateInfo, pui); } - gboolean map_download_timeout() { @@ -67,7 +66,6 @@ static guint destroy_counter = 50; gint num_transfers = 0, num_msgs = 0; gint deletes_left = 50; /* only do 50 deletes at a time. */ CURLMsg *msg; -vprintf("%s()\n", __PRETTY_FUNCTION__); if (_curl_multi && CURLM_CALL_MULTI_PERFORM == curl_multi_perform(_curl_multi, &num_transfers)) return TRUE; /* Give UI a chance first. */ @@ -202,14 +200,11 @@ if (!(num_transfers || g_tree_nnodes(_pui_tree))) { _curl_multi = NULL; _curl_sid = 0; - vprintf("%s(): return FALSE\n", __PRETTY_FUNCTION__); return FALSE; } } else destroy_counter = 50; -vprintf("%s(): return TRUE (%d, %d)\n", __PRETTY_FUNCTION__, - num_transfers, g_tree_nnodes(_pui_tree)); return TRUE; } @@ -464,7 +459,7 @@ if (!_curl_sid) if (!_num_downloads++ && !_download_banner) { gchar buffer[100]; - g_snprintf(buffer, 100, _("Downloading maps (%d/%d)"), _curr_download, _num_downloads); + g_snprintf(buffer, 100, _("Downloading maps (%d)"), g_tree_nnodes(_pui_tree)); _download_banner = hildon_banner_show_progress(_window, NULL, buffer); } } diff --git a/src/map-repo.c b/src/map-repo.c index 9b5e455..74fb4f1 100644 --- a/src/map-repo.c +++ b/src/map-repo.c @@ -257,7 +257,6 @@ gint active = gtk_combo_box_get_active(GTK_COMBO_BOX(rmi->cmb_repos)); popup_error(rmi->dialog, _("Cannot delete the last repository - there must be at" " lease one repository.")); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -279,7 +278,6 @@ gint active = gtk_combo_box_get_active(GTK_COMBO_BOX(rmi->cmb_repos)); gtk_widget_destroy(confirm); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -408,7 +406,6 @@ gtk_notebook_append_page(GTK_NOTEBOOK(rmi->notebook), cmb_repos))), NULL) - 1); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return rei; } @@ -419,7 +416,6 @@ repoman_dialog_new(GtkWidget * widget, RepoManInfo * rmi) GtkWidget *label; GtkWidget *txt_name; GtkWidget *dialog; - printf("%s()\n", __PRETTY_FUNCTION__); dialog = gtk_dialog_new_with_buttons(_("New Repository"), GTK_WINDOW(rmi->dialog), @@ -447,7 +443,6 @@ repoman_dialog_new(GtkWidget * widget, RepoManInfo * rmi) gtk_widget_destroy(dialog); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -481,7 +476,6 @@ GtkWidget *confirm; } gtk_widget_destroy(confirm); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -501,7 +495,6 @@ GtkWidget *confirm; gchar *tail; gint size; GnomeVFSResult vfs_result; - printf("%s()\n", __PRETTY_FUNCTION__); /* Get repo config file from www.gnuite.com. */ if (GNOME_VFS_OK != (vfs_result = gnome_vfs_read_entire_file @@ -553,7 +546,6 @@ GtkWidget *confirm; } gtk_widget_destroy(confirm); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -729,7 +721,6 @@ repoman_dialog() map_set_zoom(_zoom); /* make sure we're at an appropriate zoom level. */ - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -743,7 +734,6 @@ mapman_by_area(gfloat start_lat, gfloat start_lon, guint i; gchar buffer[80]; GtkWidget *confirm; - printf("%s()\n", __PRETTY_FUNCTION__); latlon2unit(start_lat, start_lon, start_unitx, start_unity); latlon2unit(end_lat, end_lon, end_unitx, end_unity); @@ -790,7 +780,6 @@ mapman_by_area(gfloat start_lat, gfloat start_lon, if (GTK_RESPONSE_OK != gtk_dialog_run(GTK_DIALOG(confirm))) { gtk_widget_destroy(confirm); - vprintf("%s(): return FALSE\n", __PRETTY_FUNCTION__); return FALSE; } for (i = 0; i < MAX_ZOOM; i++) { @@ -815,7 +804,6 @@ mapman_by_area(gfloat start_lat, gfloat start_lon, } } gtk_widget_destroy(confirm); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -830,7 +818,6 @@ mapman_by_route(MapmanInfo * mapman_info, guint radius = hildon_number_editor_get_value(HILDON_NUMBER_EDITOR (mapman_info->num_route_radius)); - printf("%s()\n", __PRETTY_FUNCTION__); /* First, get the number of maps to download. */ for (i = 0; i < MAX_ZOOM; i++) { @@ -883,7 +870,6 @@ mapman_by_route(MapmanInfo * mapman_info, if (GTK_RESPONSE_OK != gtk_dialog_run(GTK_DIALOG(confirm))) { gtk_widget_destroy(confirm); - vprintf("%s(): return FALSE\n", __PRETTY_FUNCTION__); return FALSE; } @@ -936,42 +922,32 @@ mapman_by_route(MapmanInfo * mapman_info, } _route_dl_radius = radius; gtk_widget_destroy(confirm); - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } static void mapman_clear(GtkWidget * widget, MapmanInfo * mapman_info) { - guint i; - printf("%s()\n", __PRETTY_FUNCTION__); - if (gtk_notebook_get_current_page(GTK_NOTEBOOK(mapman_info->notebook))) - /* This is the second page (the "Zoom" page) - clear the checks. */ - for (i = 0; i < MAX_ZOOM; i++) - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON - (mapman_info-> - chk_zoom_levels[i]), - FALSE); - else { - /* This is the first page (the "Area" page) - clear the text fields. */ - gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_topleft_lat), ""); - gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_topleft_lon), ""); - gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_botright_lat), - ""); - gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_botright_lon), - ""); - } - vprintf("%s(): return\n", __PRETTY_FUNCTION__); +guint i; + +if (gtk_notebook_get_current_page(GTK_NOTEBOOK(mapman_info->notebook))) { + /* This is the second page (the "Zoom" page) - clear the checks. */ + for (i = 0; i < MAX_ZOOM; i++) + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(mapman_info->chk_zoom_levels[i]), FALSE); +} else { + /* This is the first page (the "Area" page) - clear the text fields. */ + gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_topleft_lat), ""); + gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_topleft_lon), ""); + gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_botright_lat), ""); + gtk_entry_set_text(GTK_ENTRY(mapman_info->txt_botright_lon), ""); +} } static void mapman_update_state(GtkWidget * widget, MapmanInfo * mapman_info) { - printf("%s()\n", __PRETTY_FUNCTION__); - gtk_widget_set_sensitive(mapman_info->chk_overwrite, - gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON - (mapman_info-> - rad_download))); +gtk_widget_set_sensitive(mapman_info->chk_overwrite, + gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(mapman_info->rad_download))); if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(mapman_info->rad_by_area))) @@ -982,9 +958,7 @@ mapman_update_state(GtkWidget * widget, MapmanInfo * mapman_info) gtk_widget_set_sensitive(mapman_info->num_route_radius, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON - (mapman_info-> - rad_by_route))); - vprintf("%s(): return\n", __PRETTY_FUNCTION__); + (mapman_info->rad_by_route))); } gboolean menu_cb_mapman(GtkAction * action) @@ -1003,17 +977,14 @@ gboolean menu_cb_mapman(GtkAction * action) gchar buffer[80]; gfloat lat, lon; guint i; - printf("%s()\n", __PRETTY_FUNCTION__); - mapman_info.dialog = dialog = - gtk_dialog_new_with_buttons(_("Manage Maps"), GTK_WINDOW(_window), + mapman_info.dialog = dialog = gtk_dialog_new_with_buttons(_("Manage Maps"), GTK_WINDOW(_window), GTK_DIALOG_MODAL, GTK_STOCK_OK, GTK_RESPONSE_ACCEPT, NULL); /* Enable the help button. */ #ifdef WITH_OSSO - ossohelp_dialog_help_enable(GTK_DIALOG(mapman_info.dialog), - HELP_ID_MAPMAN, _osso); + ossohelp_dialog_help_enable(GTK_DIALOG(mapman_info.dialog), HELP_ID_MAPMAN, _osso); #endif /* Clear button. */ @@ -1023,12 +994,10 @@ gboolean menu_cb_mapman(GtkAction * action) G_CALLBACK(mapman_clear), &mapman_info); /* Cancel button. */ - gtk_dialog_add_button(GTK_DIALOG(dialog), - GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT); + gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_REJECT); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), - mapman_info.notebook = - gtk_notebook_new(), TRUE, TRUE, 0); + mapman_info.notebook = gtk_notebook_new(), TRUE, TRUE, 0); /* Setup page. */ gtk_notebook_append_page(GTK_NOTEBOOK(mapman_info.notebook), @@ -1040,11 +1009,7 @@ gboolean menu_cb_mapman(GtkAction * action) gtk_box_pack_start(GTK_BOX(vbox), hbox = gtk_hbox_new(FALSE, 4), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), - mapman_info.rad_download - = - gtk_radio_button_new_with_label(NULL, - _("Download Maps")), - FALSE, FALSE, 0); + mapman_info.rad_download = gtk_radio_button_new_with_label(NULL, _("Download Maps")), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), label = gtk_alignment_new(0.f, 0.5f, 0.f, 0.f), FALSE, FALSE, 0); @@ -1060,10 +1025,7 @@ gboolean menu_cb_mapman(GtkAction * action) gtk_box_pack_start(GTK_BOX(vbox), mapman_info.rad_by_area - = gtk_radio_button_new_with_label(NULL, - _ - ("By Area (see tab)")), - FALSE, FALSE, 0); + = gtk_radio_button_new_with_label(NULL, _("By Area (see tab)")), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox = gtk_hbox_new(FALSE, 4), FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), mapman_info.rad_by_route = @@ -1314,6 +1276,5 @@ gboolean menu_cb_mapman(GtkAction * action) gtk_widget_hide(dialog); /* Destroying causes a crash (!?!?!??!) */ - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } diff --git a/src/osm-db.c b/src/osm-db.c index 9930205..df068eb 100644 --- a/src/osm-db.c +++ b/src/osm-db.c @@ -1,3 +1,22 @@ +/* + * This file is part of mapper + * + * Copyright (C) 2007 Kaj-Michael Lang + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #define _GNU_SOURCE #include diff --git a/src/osm-db.h b/src/osm-db.h index dbee043..f2bec4d 100644 --- a/src/osm-db.h +++ b/src/osm-db.h @@ -1,3 +1,23 @@ +/* + * This file is part of mapper + * + * Copyright (C) 2007 Kaj-Michael Lang + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #ifndef _OSM_DB_H #define _OSM_DB_H diff --git a/src/osm.c b/src/osm.c index 4a5627b..067e185 100644 --- a/src/osm.c +++ b/src/osm.c @@ -1,3 +1,22 @@ +/* + * This file is part of mapper + * + * Copyright (C) 2007 Kaj-Michael Lang + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ #define _GNU_SOURCE #include diff --git a/src/osm.h b/src/osm.h index d0f37f3..a62d7c7 100644 --- a/src/osm.h +++ b/src/osm.h @@ -1,3 +1,23 @@ +/* + * This file is part of mapper + * + * Copyright (C) 2007 Kaj-Michael Lang + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + #ifndef _OSM_H #define _OSM_H diff --git a/src/route.c b/src/route.c index cc99f5f..dfb61af 100644 --- a/src/route.c +++ b/src/route.c @@ -119,7 +119,6 @@ return FALSE; gboolean origin_type_selected(GtkWidget * toggle, OriginToggleInfo * oti) { - printf("%s()\n", __PRETTY_FUNCTION__); if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toggle))) { if (toggle == oti->rad_use_gps) { @@ -155,7 +154,6 @@ origin_type_selected(GtkWidget * toggle, OriginToggleInfo * oti) gtk_widget_set_sensitive(oti->chk_auto, toggle == oti->rad_use_gps); } - vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; } @@ -495,7 +493,6 @@ find_nearest_waypoint(guint unitx, guint unity) WayPoint *wnear; guint64 nearest_squared; Point pos = { unitx, unity, 0, NAN }; - printf("%s()\n", __PRETTY_FUNCTION__); wcurr = wnear = _route.whead; if (wcurr && wcurr != _route.wtail) { @@ -522,7 +519,6 @@ find_nearest_waypoint(guint unitx, guint unity) MACRO_BANNER_SHOW_INFO(_window, _("There are no waypoints.")); - vprintf("%s(): return\n", __PRETTY_FUNCTION__); return NULL; } @@ -539,7 +535,6 @@ route_update_nears(gboolean quick) Point *curr, *near; WayPoint *wcurr, *wnext; guint64 near_dist_squared; - printf("%s(%d)\n", __PRETTY_FUNCTION__, quick); /* If we have waypoints (_next_way != NULL), then determine the "next * waypoint", which is defined as the waypoint after the nearest point, @@ -624,7 +619,6 @@ route_update_nears(gboolean quick) } } - vprintf("%s(): return %d\n", __PRETTY_FUNCTION__, ret); return ret; } @@ -635,7 +629,6 @@ route_update_nears(gboolean quick) void route_find_nearest_point() { - printf("%s()\n", __PRETTY_FUNCTION__); /* Initialize _near_point to first non-zero point. */ _near_point = _route.head; @@ -658,7 +651,6 @@ route_find_nearest_point() route_update_nears(FALSE); - vprintf("%s(): return\n", __PRETTY_FUNCTION__); } /** @@ -672,7 +664,6 @@ route_show_distance_to(Point * point) gchar buffer[80]; gfloat lat1, lon1, lat2, lon2; gdouble sum = 0.0; - printf("%s()\n", __PRETTY_FUNCTION__); /* If point is NULL, use the next waypoint. */ if (point == NULL && _next_way) @@ -680,7 +671,6 @@ route_show_distance_to(Point * point) /* If point is still NULL, return an error. */ if (point == NULL) { - printf("%s(): return FALSE\n", __PRETTY_FUNCTION__); return FALSE; } @@ -720,25 +710,21 @@ route_show_distance_to(Point * point) MACRO_BANNER_SHOW_INFO(_window, buffer); return TRUE; - printf("%s(): return TRUE\n", __PRETTY_FUNCTION__); } void route_show_distance_to_next() { - printf("%s()\n", __PRETTY_FUNCTION__); if (!route_show_distance_to(NULL)) { MACRO_BANNER_SHOW_INFO(_window, _("There is no next waypoint.")); } - printf("%s(): return\n", __PRETTY_FUNCTION__); } void route_show_distance_to_last() { - printf("%s()\n", __PRETTY_FUNCTION__); if (_route.head != _route.tail) { /* Find last non-zero point. */ @@ -750,5 +736,4 @@ route_show_distance_to_last() MACRO_BANNER_SHOW_INFO(_window, _("The current route is empty.")); } - printf("%s(): return\n", __PRETTY_FUNCTION__); } -- 2.39.5