From: Hugo Villeneuve Date: Sat, 29 Oct 2011 18:40:03 +0000 (+0000) Subject: Remove unnecessary autoconf checks X-Git-Tag: v1.1.1~4 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=97bcc837a41e7dd3b8381f284495924c2e4ba3b9;p=emu8051.git Remove unnecessary autoconf checks Disable debug message when not compiled in debug mode. --- 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); -}