imrpoved shutdown message
This commit is contained in:
parent
cd19d8c31d
commit
d4667d17c5
|
|
@ -1,3 +1,6 @@
|
|||
2011-06-25 Holger Vogt
|
||||
* main.c, defines.h: improved shutdown message for Windows GUI
|
||||
|
||||
2011-06-24 Robert Larice
|
||||
* src/main.c ,
|
||||
* src/frontend/com_ahelp.c ,
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@
|
|||
|
||||
#define EXIT_NORMAL 0
|
||||
#define EXIT_BAD 1
|
||||
#define EXIT_INFO 2
|
||||
|
||||
#define TRUE 1
|
||||
#define FALSE 0
|
||||
|
|
|
|||
13
src/main.c
13
src/main.c
|
|
@ -486,9 +486,10 @@ sp_shutdown(int exitval)
|
|||
#ifdef HAS_WINDOWS
|
||||
if (exitval == EXIT_BAD)
|
||||
winmessage("Fatal error in SPICE");
|
||||
else
|
||||
winmessage("Information during setup, see text window!");
|
||||
else if (exitval == EXIT_INFO)
|
||||
winmessage("Information during setup, see main window!");
|
||||
#endif
|
||||
if (exitval == EXIT_INFO) exitval = EXIT_NORMAL;
|
||||
exit (exitval);
|
||||
}
|
||||
|
||||
|
|
@ -655,7 +656,7 @@ show_help(void)
|
|||
" -i, --interactive run in interactive mode\n"
|
||||
" -n, --no-spiceinit don't load the local or user's config file\n"
|
||||
" -o, --output=FILE set the outputfile\n"
|
||||
" -p, --pipe run in I/O pipe mode\n"
|
||||
" -p, --pipe run in I/O pipe mode\n"
|
||||
" -q, --completion activate command completion\n"
|
||||
" -r, --rawfile=FILE set the rawfile output\n"
|
||||
" -s, --server run spice as a server process\n"
|
||||
|
|
@ -675,7 +676,7 @@ show_version(void)
|
|||
"Currently maintained by the NGSpice Project\n\n"
|
||||
"Copyright (C) 1985-1996,"
|
||||
" The Regents of the University of California\n"
|
||||
"Copyright (C) 1999-2008,"
|
||||
"Copyright (C) 1999-2011,"
|
||||
" The NGSpice Project\n", cp_program, PACKAGE, VERSION);
|
||||
}
|
||||
|
||||
|
|
@ -878,12 +879,12 @@ main(int argc, char **argv)
|
|||
switch (c) {
|
||||
case 'h': /* Help */
|
||||
show_help();
|
||||
sp_shutdown (EXIT_NORMAL);
|
||||
sp_shutdown (EXIT_INFO);
|
||||
break;
|
||||
|
||||
case 'v': /* Version info */
|
||||
show_version();
|
||||
sp_shutdown (EXIT_NORMAL);
|
||||
sp_shutdown (EXIT_INFO);
|
||||
break;
|
||||
|
||||
case 'b': /* Batch mode */
|
||||
|
|
|
|||
Loading…
Reference in New Issue