~kicad/+git/ngspice-mirror-sourceforge:mhx-filesource

Last commit made on 2017-02-27
Get this branch:
git clone -b mhx-filesource https://git.launchpad.net/~kicad/+git/ngspice-mirror-sourceforge
Members of KiCad can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
mhx-filesource
Repository:
lp:~kicad/+git/ngspice-mirror-sourceforge

Recent commits

52ed929... by Marcel Hendrix

Fixed file_source. See the example.cir,
it exercises most parameters and supports ALTER.
The data file is opened, but never closed!

4eb32ab... by h_vogt <h_vogt>

com_sysinfo.c, add recent Windows versions to info printout

7c06cb2... by h_vogt <h_vogt>

don't mess with WINVER

not necessairy for current Windows versions

78ea2e1... by h_vogt <h_vogt>

winmain.c, remove of fcn 'read' in Windows

31dca54... by h_vogt <h_vogt>

input.c, don't use read() in __MINGW32__

d9e7ab2... by rlar <rlar>

input.c, simplify #ifdef for the broken visual studio _read()

If we have _MSC_VER so we have either CONSOLE HAS_WINGUI or SHARED_MODULE
If we have SHARED_MODULE, then we most certainly don't need
  the unbuffered read(), which isn't unbuffered on _MSC_VER anyway.
Thus _MSC_VER is sufficient.

1475df2... by rlar <rlar>

input.c, try to work around microsofts broken _read()

concerning the visual sudio variant of the "console" build.

Their _read() returns 0 when a linfeed is read.
Ironically the linefeed seems to be stored into the buffer nontheless.

Because the filehandle is in linebuffered mode anyway,
  (the read won't return up until the terminating newline is entered)
we can just as well use getc(), which doesn't seem to suffer
  from the same problem in their implementation.

2bafe98... by rlar <rlar>

winmain.c, etc, cleanup

90a205d... by rlar <rlar>

winmain.c, etc, whitespace cleanup

3a9ace8... by rlar <rlar>

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"