Commit Graph

51 Commits

Author SHA1 Message Date
Holger Vogt 9f40c2b584 add an icon to MS Windows VC exe 2018-12-17 23:03:27 +01:00
h_vogt 67e06bb4ac winmain.c, bug fix, #315 ngspice under windows 10 shows exception on quit
https://sourceforge.net/p/ngspice/bugs/315/

longjmp() creates segfault under Windows 10 (VS and MINGW)
somewhere when MainWindowProc() is processing the WM_CLOSE message.

Instead of raising SIGINT, directly call cp_doquit().
return 0 if "askquit" is set and the user declines to "quit".
This continues the simulation, if still active.
2017-04-09 12:46:38 +02:00
h_vogt 78ea2e1523 winmain.c, remove of fcn 'read' in Windows 2017-02-22 19:36:34 +01:00
rlar 2bafe98f17 winmain.c, etc, cleanup 2017-02-22 18:50:40 +01:00
rlar 90a205d36d winmain.c, etc, whitespace cleanup 2017-02-22 18:50:03 +01:00
rlar 3a9ace82bb winmain.c, etc, cleanup, rewrite obfuscated symbols
substitute in the whole source code:

  "__stream"       -->    "stream"
  "__pos"          -->    "pos"
  "__s"            -->    "s"
  "__n"            -->    "n"
  "__c"            -->    "c"
  "__format"       -->    "format"
  "__ptr"          -->    "ptr"
  "__size"         -->    "size"
  "__path"         -->    "path"
  "__mode"         -->    "mode"
  "__offset"       -->    "offset"
  "__whence"       -->    "whence"
  "__arglist"      -->    "arglist"
  "__buf"          -->    "buf"
  "__fp"           -->    "fp"

  "f_c_l_o_s_e"    -->    "win_x_fclose"
  "f_e_o_f"        -->    "win_x_feof"
  "f_e_r_r_o_r"    -->    "win_x_ferror"
  "f_f_l_u_s_h"    -->    "win_x_fflush"
  "fg_e_t_c"       -->    "win_x_fgetc"
  "f_g_e_t_p_o_s"  -->    "win_x_fgetpos"
  "fg_e_t_s"       -->    "win_x_fgets"
  "fp_r_i_n_t_f"   -->    "win_x_fprintf"
  "fp_u_t_c"       -->    "win_x_fputc"
  "fp_u_t_char"    -->    "win_x_fputchar"
  "fp_u_t_s"       -->    "win_x_fputs"
  "f_r_e_a_d"      -->    "win_x_fread"
  "f_r_e_o_p_e_n"  -->    "win_x_freopen"
  "fs_c_a_n_f"     -->    "win_x_fscanf"
  "f_s_e_e_k"      -->    "win_x_fseek"
  "f_s_e_t_p_o_s"  -->    "win_x_fsetpos"
  "f_t_e_l_l"      -->    "win_x_ftell"
  "f_w_r_i_t_e"    -->    "win_x_fwrite"
  "g_e_t_c"        -->    "win_x_getc"
  "g_e_t_char"     -->    "win_x_getchar"
  "g_e_t_s"        -->    "win_x_gets"
  "p_e_r_r_o_r"    -->    "win_x_perror"
  "p_r_i_n_t_f"    -->    "win_x_printf"
  "p_u_t_c"        -->    "win_x_putc"
  "p_u_t_char"     -->    "win_x_putchar"
  "p_u_t_s"        -->    "win_x_puts"
  "r_e_a_d"        -->    "win_x_read"
  "s_c_a_n_f"      -->    "win_x_scanf"
  "ung_e_t_c"      -->    "win_x_ungetc"
  "vfp_r_i_n_t_f"  -->    "win_x_vfprintf"
  "vfs_c_a_n_f"    -->    "win_x_vfscanf"
  "vp_r_i_n_t_f"   -->    "win_x_vprintf"
  "vs_c_a_n_f"     -->    "win_x_vscanf"
2017-02-10 19:50:42 +01:00
rlar 93d040703d winmain.c, drop artefact "fgetchar", cleanup/emphasise disabled "freopen" 2017-02-10 18:44:44 +01:00
rlar 69537a7899 winmain.c, fs_c_a_n_f(), bug fix, and cleanup "minimise" 2017-02-09 22:06:07 +01:00
rlar 0932120a7f special cases of the char variants of the <ctype.h> family 2016-03-09 20:24:36 +01:00
h_vogt 8b8f275645 defines.h, winmain.c, .h: fix --with-wingui for CYGWIN 2013-12-31 16:08:24 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
h_vogt 92a529f15c winmain.c: print buffer enlarged 2013-12-31 12:54:43 +01:00
rlar 0beb95757f cancer of the semicolon 2012-08-07 21:20:36 +02:00
h_vogt fe86d3d5c7 Enable ctrl-c to interrupt a simulation also for Windows GUI 2012-06-12 21:26:27 +02:00
h_vogt fc7692a896 outheap removed 2012-02-11 12:50:44 +00:00
rlar 4ca58067a2 #2/6 config.h --> ngspice/config.h, #include's 2011-12-27 11:33:01 +00:00
rlar 0d7f64657c move stringutil.h --> src/include/ngspice 2011-12-17 17:16:29 +00:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
h_vogt e7ce26c118 convert float to double 2011-08-08 19:39:15 +00:00
rlar b4dc54b3e3 another type fix for Visual Studio, QUIT_BUTTON_ID 2011-08-06 09:07:21 +00:00
h_vogt e5a255a030 Windows progress message 2011-08-04 22:12:39 +00:00
rlar 12eba3888e cleanup integer type conversions 2011-07-10 09:23:35 +00:00
rlar 7ecafe2aa3 cleanup integer type conversions 2011-07-09 16:27:36 +00:00
rlar acac8cefe5 winmain.c, remove redundant global variable `oflag' 2011-07-01 19:19:59 +00:00
h_vogt 51614f0915 prototypes 2011-05-29 11:13:04 +00:00
h_vogt 561e339365 reduce compiler warnings 2011-05-21 12:44:27 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
h_vogt 80af4f24a6 SystemParametersInfo() 2010-01-17 19:29:32 +00:00
h_vogt 7dc6417e6d add xfont, wfont, wfont_size variables 2010-01-02 18:05:07 +00:00
h_vogt f34a09b540 gnuplot update 2010-01-02 15:24:03 +00:00
dwarning ddd6ceaebb rm unused variable 2009-11-09 09:16:06 +00:00
h_vogt c579717d00 replace strdup by copy 2009-11-07 11:14:54 +00:00
h_vogt 8d7356970b updating windows 2009-10-31 11:11:13 +00:00
h_vogt 9fb0d31390 MS Visual Studio: build date, "quit" button 2009-10-18 10:32:11 +00:00
h_vogt 5f9f71b5a4 variable ngdebug for additional debug info 2009-09-19 12:38:03 +00:00
h_vogt c84522b842 prints time required for setup 2009-09-14 22:34:17 +00:00
h_vogt c25d028cbf SetAnalyse output extended 2009-09-13 19:42:19 +00:00
dwarning 1ce76b68f1 small cosmetics 2009-07-25 10:21:38 +00:00
h_vogt 05c0d50e55 SetAnalys, maxord 2009-04-28 21:53:29 +00:00
h_vogt c9b58436f6 winmessage() modified 2009-04-12 18:19:24 +00:00
h_vogt 19b999e0d2 larger width of ngspice window to allow displaying 80 characters per line 2009-02-21 16:15:03 +00:00
h_vogt 1fa4faf88c tclspice for Windows 2008-12-31 14:42:49 +00:00
h_vogt c03b298876 larger text buffer, MakeArgcArgv() improved, winmessage() added 2008-04-13 14:30:28 +00:00
dwarning da6d5ea3d7 better TRACEing 2008-03-23 11:40:10 +00:00
sjborley 488483183a Fixed main window name. Now picks uses package name 2005-05-24 09:44:22 +00:00
sjborley c9eb061bd3 Changes to correct warning when compiled with gcc 2005-05-20 13:00:17 +00:00
sjborley 7271c3ce01 Fixed declaration of oflag 2005-05-19 15:18:43 +00:00
sjborley c80365cbf3 Conversion to ASCII of German comments by Dietmar Warning 2005-05-18 20:59:11 +00:00