MS Visual Studio: build date, "quit" button

This commit is contained in:
h_vogt 2009-10-18 10:32:11 +00:00
parent ef245cee3d
commit 9fb0d31390
5 changed files with 954 additions and 899 deletions

View File

@ -1,3 +1,7 @@
2009-10-18 Holger Vogt
* main.c, winmain.c: graceful shutdown for MS Windows, "quit" button added
conf.c, vngspice.vcproj: build date actualization modified
2009-10-12 Holger Vogt
* main.c: bug no. 2874418, initialize global variable history_file

View File

@ -13,7 +13,11 @@
char Spice_Version[] = PACKAGE_VERSION;
char Spice_Notice[] = "Please submit bug-reports to: " BUG_ADDRESS;
#ifndef _MSC_VER
char Spice_Build_Date[] = NGSPICEBUILDDATE;
#else
char Spice_Build_Date[] = __DATE__" "__TIME__;
#endif
char *Spice_Exec_Dir = NGSPICEBINDIR;
char *Spice_Lib_Dir = NGSPICEDATADIR;

View File

@ -87,7 +87,7 @@ static char *application_name;
/* Main options */
static bool ft_servermode = FALSE;
static bool ft_batchmode = FALSE;
bool ft_batchmode = FALSE;
/* Frontend options */
bool ft_intrpt = FALSE; /* Set by the (void) signal handlers. TRUE = we've been interrupted. */
@ -95,9 +95,10 @@ bool ft_setflag = FALSE; /* TRUE = Don't abort simulation after an interrupt.
char *ft_rawfile = "rawspice.raw";
#ifdef HAS_WINDOWS
extern void winmessage(char* new_msg); /* display a message box */
extern void winmessage(char* new_msg); /* display a message box (defined in winmain.c)*/
extern void SetSource( char * Name); /* display the source file name in the source window */
bool oflag = FALSE; /* Output over redefined I/O functions */
FILE *flogp; /* log file ('-o logfile' command line option) */
FILE *flogp = NULL; /* log file ('-o logfile' command line option) */
#endif /* HAS_WINDOWS */
/* Frontend and circuit options */
@ -1058,7 +1059,11 @@ bot:
/* Copy the input file name which otherwise will be lost due to the
temporary file */
dname = copy(arg);
#endif
#endif
#if defined(HAS_WINDOWS)
/* write source file name into source window */
SetSource(dname);
#endif
append_to_stream(tempfile, tp);
fclose(tp);
}

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@
Version="9,00"
Name="vngspice"
ProjectGUID="{83E315C7-EDD3-4F6B-AF28-87A92A4FA49A}"
RootNamespace="vngspice"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
@ -23,9 +24,15 @@
>
<Tool
Name="VCPreBuildEventTool"
Description=""
CommandLine=""
ExcludedFromBuild="false"
/>
<Tool
Name="VCCustomBuildTool"
Description="Custom defined Build: Recompile conf.c with actual date"
CommandLine="del $(IntDir)\conf.obj"
Outputs="$(IntDir)\conf.obj"
/>
<Tool
Name="VCXMLDataGeneratorTool"
@ -111,6 +118,9 @@
/>
<Tool
Name="VCCustomBuildTool"
Description="Custom defined Build: Recompile conf.c with actual date"
CommandLine="del $(IntDir)\conf.obj"
Outputs="$(IntDir)\conf.obj"
/>
<Tool
Name="VCXMLDataGeneratorTool"