From 97bcc837a41e7dd3b8381f284495924c2e4ba3b9 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 29 Oct 2011 18:40:03 +0000 Subject: [PATCH] Remove unnecessary autoconf checks Disable debug message when not compiled in debug mode. --- configure.ac | 5 ----- src/emugtk.c | 20 +++++++++++--------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/configure.ac b/configure.ac index f2b2da9..9ed326d 100644 --- a/configure.ac +++ b/configure.ac @@ -13,11 +13,6 @@ dnl Testing the C compiler. AM_PROG_CC_C_O AC_LANG_C -dnl Checking for header files. -AC_HEADER_STDC -AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS(strings.h unistd.h) - dnl Checking for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T diff --git a/src/emugtk.c b/src/emugtk.c index 3b5677f..3d6ff1f 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -324,6 +324,15 @@ emugtk_UpdateDisplay(void) memwin_DumpD("00"); } +void +AddMenuSeparator(GtkWidget *menu) +{ + GtkWidget *item; + + item = gtk_menu_item_new(); + gtk_menu_append(GTK_MENU(menu), item); +} + void emugtk_new_file(char *file) { @@ -357,16 +366,9 @@ main(int argc, char **argv) gtk_main(); +#ifdef EMU8051_DEBUG printf("End of program.\n"); +#endif return EXIT_SUCCESS; } - -void -AddMenuSeparator(GtkWidget *menu) -{ - GtkWidget *item; - - item = gtk_menu_item_new(); - gtk_menu_append(GTK_MENU(menu), item); -} -- 2.20.1