[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2948 - gnunet-gtk/src/core
From: |
durner |
Subject: |
[GNUnet-SVN] r2948 - gnunet-gtk/src/core |
Date: |
Thu, 1 Jun 2006 22:49:21 -0700 (PDT) |
Author: durner
Date: 2006-06-01 22:49:15 -0700 (Thu, 01 Jun 2006)
New Revision: 2948
Modified:
gnunet-gtk/src/core/main.c
Log:
debug switch for Windows
Modified: gnunet-gtk/src/core/main.c
===================================================================
--- gnunet-gtk/src/core/main.c 2006-05-31 21:57:04 UTC (rev 2947)
+++ gnunet-gtk/src/core/main.c 2006-06-02 05:49:15 UTC (rev 2948)
@@ -30,6 +30,10 @@
+#ifdef WINDOWS
+static int debug_mode = NO;
+#endif
+
/**
* Prints the usage information for this command if the user errs.
*/
@@ -65,7 +69,7 @@
};
c = GNgetopt_long(argc,
argv,
- "c:dhH:L:v",
+ "c:dhH:L:vd",
long_options,
&option_index);
if (c == -1)
@@ -76,6 +80,9 @@
case 'h':
printhelp();
return SYSERR;
+ case 'd':
+ debug_mode = YES;
+ break;
case 'v':
printf("gnunet-gtk v%s\n",
VERSION);
@@ -125,7 +132,8 @@
return 0;
#ifdef WINDOWS
- FreeConsole();
+ if (!debug_mode)
+ FreeConsole();
#endif
#if ENABLE_NLS
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2948 - gnunet-gtk/src/core,
durner <=