Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 09 Jun 2012 16:35:48 Commit: 4150b357e2495c8ff3da319742a1c7b5d6d32579 https://github.com/geany/geany-plugins/commit/4150b357e2495c8ff3da319742a1c7...
Log Message: ----------- geanygdb: Don't use C99 single-line comments
Modified Paths: -------------- geanygdb/src/gdb-io-envir.c geanygdb/src/gdb-io-frame.c geanygdb/src/gdb-ui-break.c geanygdb/src/gdb-ui-envir.c geanygdb/src/gdb-ui-frame.c geanygdb/src/gdb-ui-main.c geanygdb/src/geanygdb.c
Modified: geanygdb/src/gdb-io-envir.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -134,7 +134,7 @@ else { gdbio_info_func(_("Failed to retrieve source search path setting from GDB.")); -// gdblx_dump_table(h); +/* gdblx_dump_table(h);*/ } if (h) g_hash_table_destroy(h); @@ -155,7 +155,7 @@ else { gdbio_info_func(_("Failed to retrieve executable search path setting from GDB.")); -// gdblx_dump_table(h); +/* gdblx_dump_table(h);*/ } if (h) g_hash_table_destroy(h); @@ -177,7 +177,7 @@ else { gdbio_info_func(_("Failed to retrieve working directory setting from GDB.")); -// gdblx_dump_table(h); +/* gdblx_dump_table(h);*/ } if (h) g_hash_table_destroy(h);
Modified: geanygdb/src/gdb-io-frame.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -403,7 +403,7 @@ static gint qlen(GQueue*q)
-//static GdbObjectFunc gdbio_object_list_func=NULL; +/*static GdbObjectFunc gdbio_object_list_func=NULL;*/
static GQueue *obj_func_queue = NULL; static void @@ -430,7 +430,7 @@ static gint qlen(GQueue*q) { pop_var(); pop_list(); -// pop_name(); +/* pop_name();*/ pop_func(); }
Modified: geanygdb/src/gdb-ui-break.c 22 files changed, 11 insertions(+), 11 deletions(-) =================================================================== @@ -388,17 +388,17 @@ enum const gchar *access_type; BkPtDlgData bpd = { NULL, NULL }; gint rowcount = 0; - store = gtk_list_store_new(bcNumCols, G_TYPE_STRING, //bcNumber - G_TYPE_STRING, //bcEnabled - G_TYPE_STRING, //bcWhat - G_TYPE_STRING, //bcFile - G_TYPE_STRING, //bcLine - G_TYPE_STRING, //bcFunc - G_TYPE_STRING, //bcTimes - G_TYPE_STRING, //bcIgnore - G_TYPE_STRING, //bcCond - G_TYPE_STRING, //bcAccess - G_TYPE_POINTER //bcData + store = gtk_list_store_new(bcNumCols, G_TYPE_STRING, /*bcNumber*/ + G_TYPE_STRING, /*bcEnabled*/ + G_TYPE_STRING, /*bcWhat*/ + G_TYPE_STRING, /*bcFile*/ + G_TYPE_STRING, /*bcLine*/ + G_TYPE_STRING, /*bcFunc*/ + G_TYPE_STRING, /*bcTimes*/ + G_TYPE_STRING, /*bcIgnore*/ + G_TYPE_STRING, /*bcCond*/ + G_TYPE_STRING, /*bcAccess*/ + G_TYPE_POINTER /*bcData*/ ); for (p = frame_list; p; p = p->next) {
Modified: geanygdb/src/gdb-ui-envir.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -191,8 +191,8 @@ GtkBox *vbox = GTK_BOX(GTK_DIALOG(dlg)->vbox); GtkWidget *hbox; GtkWidget *font_btn = gtk_button_new(); -// GtkWidget*font_btn=gtk_button_new_with_label("Choose..."); -// GtkWidget*font_btn=gtk_button_new_from_stock(GTK_STOCK_SELECT_FONT); +/* GtkWidget*font_btn=gtk_button_new_with_label("Choose..."); + GtkWidget*font_btn=gtk_button_new_from_stock(GTK_STOCK_SELECT_FONT);*/
GtkWidget *font_box = gtk_entry_new(); GtkWidget *term_box = gtk_entry_new();
Modified: geanygdb/src/gdb-ui-frame.c 8 files changed, 4 insertions(+), 4 deletions(-) =================================================================== @@ -130,7 +130,7 @@ } FrameColumn;
-//#define MORE_INFO GTK_STOCK_GO_FORWARD +/*#define MORE_INFO GTK_STOCK_GO_FORWARD*/
#define MORE_INFO GTK_STOCK_ZOOM_IN
@@ -142,7 +142,7 @@ gtk_button_set_image(GTK_BUTTON(rv), gtk_image_new_from_stock(MORE_INFO, GTK_ICON_SIZE_BUTTON)); #if GTK_CHECK_VERSION(2, 10, 0) - // gtk_button_set_image_position(GTK_BUTTON(rv), GTK_POS_RIGHT); + /*gtk_button_set_image_position(GTK_BUTTON(rv), GTK_POS_RIGHT);*/ #endif return rv; } @@ -301,7 +301,7 @@
-// btn=gtk_dialog_add_button(GTK_DIALOG(vw.dlg)," << _Back ",respGoBack); +/* btn=gtk_dialog_add_button(GTK_DIALOG(vw.dlg)," << _Back ",respGoBack);*/ btn = gtk_dialog_add_button(GTK_DIALOG(vw.dlg), GTK_STOCK_GO_BACK, respGoBack); gdbui_set_tip(btn, _("Return to previous dialog.")); gtk_dialog_set_default_response(GTK_DIALOG(vw.dlg), respGoBack); @@ -375,7 +375,7 @@ view = make_list(locals, _("Local variables"), &vw); gtk_box_pack_start(vbox, view, TRUE, TRUE, 0);
-// btn=gtk_dialog_add_button(GTK_DIALOG(vw.dlg)," << _Back ",respGoBack); +/* btn=gtk_dialog_add_button(GTK_DIALOG(vw.dlg)," << _Back ",respGoBack);*/ btn = gtk_dialog_add_button(GTK_DIALOG(vw.dlg), GTK_STOCK_GO_BACK, respGoBack); gdbui_set_tip(btn, _("Return to stack list dialog."));
Modified: geanygdb/src/gdb-ui-main.c 10 files changed, 5 insertions(+), 5 deletions(-) =================================================================== @@ -825,8 +825,8 @@ struct SdebugMenu #define split2 split(main_vbox)
-//#define splitw gtk_widget_new(GTK_TYPE_BIN,NULL) -//#define splitw gtk_hseparator_new() +/*#define splitw gtk_widget_new(GTK_TYPE_BIN,NULL)*/ +/*#define splitw gtk_hseparator_new()*/ #define splitw gtk_hbox_new(FALSE,0)
@@ -871,8 +871,8 @@ enum
static void kb_activate(guint key_id) { - //gtk_notebook_set_current_page(GTK_NOTEBOOK(geany->main_widgets->sidebar_notebook), page_number); - //gtk_widget_grab_focus(file_view); + /*gtk_notebook_set_current_page(GTK_NOTEBOOK(geany->main_widgets->sidebar_notebook), page_number); + gtk_widget_grab_focus(file_view);*/ switch (key_id) { #define DAENTRY(A,B,C,D) DBKEYACT(A,B,C) @@ -890,7 +890,7 @@ void gdbui_create_menu(GtkWidget * parent) #define DAENTRY(A,B,C,D) MENUENTRY(A,B,C,D); DEBUGACTIONS #undef DAENTRY -// gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (sdm._load), GTK_STOCK_OPEN); +/* gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (sdm._load), GTK_STOCK_OPEN);*/ }
void gdbui_create_dview(GtkWidget * parent)
Modified: geanygdb/src/geanygdb.c 18 files changed, 9 insertions(+), 9 deletions(-) =================================================================== @@ -76,17 +76,17 @@ static void show_compwin(void)
#define NOTEBOOK GTK_NOTEBOOK(geany->main_widgets->notebook) -//#define DOCS ((document*)(doc_array->data)) +/*#define DOCS ((document*)(doc_array->data))*/
-//static gint -//doc_idx_to_tab_idx(gint idx) -//{ +/*static gint +doc_idx_to_tab_idx(gint idx) +{ // FIXME -// return 0; -// return ( -// (idx>=0) && ((guint)idx<doc_array->len) && DOCS[idx].is_valid -// ) ? gtk_notebook_page_num(NOTEBOOK, GTK_WIDGET(DOCS[idx].sci)):-1; -//} + return 0; + return ( + (idx>=0) && ((guint)idx<doc_array->len) && DOCS[idx].is_valid + ) ? gtk_notebook_page_num(NOTEBOOK, GTK_WIDGET(DOCS[idx].sci)):-1; +}*/
static void
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org