Holger Vogt
65ee87e0a2
grid.c, windisp.c, vertical text for postscript and WINGUI
...
Arial as standard font for WINGUI
2018-11-18 15:51:09 +01:00
Holger Vogt
56701e3d10
add rotation angle to text output, currently used only by postscript,
...
ignored by all others
2018-11-18 15:50:56 +01:00
Holger Vogt
417dbfef72
undo the previous commits dealing with snprintf,
...
use the C99 compliant function also with MS Visual Studio
2018-05-31 11:37:51 +02:00
Holger Vogt
3b4640dee4
_snprintf in Windows 7 does not automatically put a '\0'
...
to the end of the buffer, only if there is space available.
That will change in the future if Snprintf is used.
2018-05-31 10:24:09 +02:00
Holger Vogt
560cb6e970
plotting/grid.c, bug fix, avoid string buffer overflow
...
Prevent a crash of example/FFT_test.cir.
Buffer 'buf' in function drawlingrid() has been too small.
Increase 'buf' size, and add some protection.
The example file examples/plot/test-small-plot.cir
shows the limits of plotting:
difference in two numbers at digit 14 is plotted well.
at digit 15 is plotted with bugs.
at digit 16 is reduced to integer.
consider compiling with
-O1 -D_FORTIFY_SOURCE=2
for gcc, and
/GS
for visual studio.
2018-01-27 21:58:15 +01:00
rlar
aca1b3a374
use 'abs()'
2016-10-15 15:06:17 +02:00
rlar
bd0bc3038b
use `SWAP' macro
2016-03-22 13:04:13 +01:00
rlar
2b3220086d
graph.h, grid.c, enforce consistent string buffer size (plot "units", LABEL_CHARS)
2015-03-08 19:36:46 +01:00
rlar
c5e0bcde04
cleanup using `hypot()'
2014-12-06 20:41:11 +01:00
Giorgio Vazzana
0348dcd251
bug fix, #286 buffer overflow in src/frontend/plotting/grid.c
2014-06-26 19:50:18 +02:00
rlar
83e3100917
remove unused variables
2012-12-01 16:05:20 +01:00
h_vogt
986f9b7535
grid.c: prevent overflow of div_list
2012-09-26 21:12:26 +02:00
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
2012-09-22 19:33:55 +02:00
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar
e91e3c4ec7
lingrid(), avoid buffer overflow
...
Bug ID: `Buffer overflow detected - ID: 3510521'
reported by Zsolt Makaró
The variable `mag3' sometimes seems to take
unexpected values
(for example log10 can be -Inf, which will be casted to 0x80000000)
and seems then to have overflown a buffer buf[LABEL_CHARS]
2012-03-27 21:07:12 +02: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
h_vogt
ccd115c6e2
Error message on exceeding resolution limit
2011-09-11 12:55:30 +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
rlar
f8e41f9fb5
remove second incarnation of `grid.h'
2011-08-12 09:31:52 +00:00
rlar
9e86e5ca66
rewrite (double)literal --> floating-point-literal
2011-08-09 08:07:56 +00:00
h_vogt
3547fdc5f3
explicit casts double -> int
2011-06-11 18:38:38 +00:00
rlar
eb06eeb4d9
swallow type conversion warnings
2010-11-23 19:26:00 +00:00
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
2010-11-19 18:52:44 +00:00
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
2010-11-16 20:38:24 +00:00
rlar
80286e0032
pour `IGNORE()' all over the source
2010-11-16 19:11:32 +00:00
rlar
75b6eeb94a
add `int' casts to some strlen() expressions, and center labels on a xlog scale
2010-11-06 20:17:19 +00:00
rlar
1779d62558
add some `int' and `size_t' casts
2010-11-06 20:14:21 +00:00
rlar
5f4b0aa798
(int) cast the return value of some strlen() invocations
2010-11-06 16:54:11 +00:00
rlar
6b5debfc1e
use `NUMELEMS' and add some `(int)' casts
2010-11-02 17:23:46 +00:00
rlar
8f8071aceb
fix some ancient \n\r and \r\n typos
2010-09-19 16:30:39 +00:00
rlar
76d22c3691
function rename, Update() -> DevUpdate()
2010-09-08 18:06:51 +00:00
rlar
38abf408d5
function rename, DrawLine() -> DevDrawLine()
2010-09-08 18:03:40 +00:00
rlar
1693270d35
function rename, Text() -> DevDrawText()
2010-09-08 18:01:42 +00:00
rlar
984754de75
function rename, Arc() -> DevDrawArc()
2010-09-08 17:59:00 +00:00
rlar
2fcbcc5f48
bug fix, implementation of the X11 draw arc implementation.
2010-08-01 13:47:33 +00:00
sjborley
67ff1b3a83
Tidy up of the header files in src/frontend and sub-directories. Motivation is to remove extern declarations within .c files and place them in .h files. Added new header files where necessary (and adjusted makefile.am files where required)
2005-05-30 20:28:29 +00:00
pnenzi
1b7c9386fe
Bug fixes from previous commit.
2001-04-22 10:08:46 +00:00
pnenzi
d735c9a871
Some code cleanup
2001-02-09 08:18:35 +00:00
arno
3d4cf4d86c
* src/include/Makefile.am src/include/cpstd.h
...
src/include/dvec.h src/include/fteinput.h
src/include/ifsim.h src/include/wordlist.h
src/frontend/arg.c src/frontend/display.c
src/frontend/doplot.c src/frontend/graphdb.c
src/frontend/plotcurv.c src/frontend/points.c
src/frontend/postcoms.c src/frontend/postsc.c
src/frontend/plotting/graf.c src/frontend/plotting/grid.c
src/frontend/plotting/plot5.c src/frontend/plotting/x11.c
src/include/graph.h: Reduced dependency on header files
(avoid unneccessary recompilation on changes)
* src/include/fteconst.h src/include/ftedata.h
src/include/ftegraph.h: Removed unneeded header files.
2000-05-13 17:28:16 +00:00
arno
4d26c7626b
* src/frontend/agraf.c src/frontend/agraf.h
...
src/frontend/grid.c src/frontend/grid.h src/frontend/clip.c
src/frontend/clip.h: Moved these files...
* src/frontend/plotting/agraf.c src/frontend/plotting/agraf.h
src/frontend/plotting/clip.c src/frontend/plotting/clip.h
src/frontend/plotting/grid.c src/frontend/plotting/grid.h:
... here
* src/frontend/Makefile.am src/frontend/plotting/Makefile.am:
Updates for new locations.
2000-05-13 10:29:25 +00:00