Holger Vogt
d2f6ad239f
If the input file path contains ANSI-encoded special characters,
utf-8 conversion and thus file opening will fail.
This patch then in addition tries opening the file with standard fopen.
5 years ago
Holger Vogt
1398ee7aa0
set the proper preprocessor flag __MINGW32__
6 years ago
Holger Vogt
4ddcff55e7
add const declaration to newfopen
6 years ago
Holger Vogt
ac1c8c4a96
return NULL upon NULL input
6 years ago
h_vogt
9f272ea8f6
function newfopen to replace fopen
by reading wide char strings
9 years ago
Jim Monte
7084274344
Fixed incorrect type of variable ch_cur. It was from const char * but should have been const char.
6 years ago
Jim Monte
a53cd3a3e9
fixed path created by ngdirname in Windows. Also added const to parameters whose arguments do not change and fixed some potential buffer overruns.
6 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
13 years ago
rlar
adc9ee09ce
api change for ngdirname() to fix a memory leak
ngdirname did `own' the returned string.
now the invoker is responsible for the returned string.
note, this is contrary to the POSIX dirname() implementation,
which *might* return pointers to statical allocated memory.
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
9fd458f0ed
rewrite ngdirname()
15 years ago
rlar
2d50db4b91
use size_t
15 years ago
h_vogt
cc36fb8071
dirname() -> ngdirname()
15 years ago
h_vogt
53ba204cbb
char* identifiers
16 years ago
rlar
d0dba768f8
change the type of a bunch of variables from `int' to `size_t'
16 years ago
rlar
411c6fc8c3
minor rewrites
16 years ago
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
16 years ago
rlar
5e8e44cc0a
cast the tmalloc, MALLOC, return value
16 years ago
rlar
241783d0b5
use for(;;) instead of while(1) to muffle some visual-C warnings
16 years ago
rlar
4cdd842cd8
muffle compiler warnings
16 years ago
rlar
3369d860b4
cast the return values of malloc() function calls
16 years ago
dwarning
27461a41eb
controlled_exit removed
16 years ago
dwarning
9f97f8701c
provide a controlled_exit function
16 years ago
dwarning
a755164f06
relay on ngspice.h
17 years ago
saintel
6fe0cebe58
*** empty log message ***
18 years ago
dwarning
530cb059fe
polish to prevent warning
18 years ago
h_vogt
3dc3d42553
Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008
18 years ago
h_vogt
cdcf63aa46
add *.cir file path as search path (MS Windows)
18 years ago
dwarning
e099459179
no message
19 years ago
dwarning
7476998764
better macro request to HAVE_DIRNAME
19 years ago
dwarning
41325622fd
some clean-up's to come through MSC
19 years ago
pnenzi
b03a70760b
Applied Stuart's 12-03-2003 patch. Support for readline (disabled) and for node names in the form (x,y).
23 years ago