From 8209c0aef3980752879629c077bf6edaf40deb94 Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 15 Oct 2010 18:11:11 +0000 Subject: [PATCH] collect smktemp() in "mktemp.h" --- ChangeLog | 13 ++++++++++++- src/frontend/aspice.c | 2 ++ src/frontend/com_gnuplot.c | 1 + src/frontend/com_hardcopy.c | 1 + src/frontend/com_xgraph.c | 1 + src/frontend/inp.c | 1 + src/frontend/nutinp.c | 1 + src/include/ngspice.h | 2 -- src/ngsconvert.c | 1 + 9 files changed, 20 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 50d8b2e4f..2fefda5c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ +2010-10-15 Robert Larice + * src/frontend/aspice.c , + * src/frontend/com_gnuplot.c , + * src/frontend/com_hardcopy.c , + * src/frontend/com_xgraph.c , + * src/frontend/inp.c , + * src/frontend/nutinp.c , + * src/include/ngspice.h , + * src/ngsconvert.c : + collect smktemp() in "mktemp.h" + 2010-10-13 Dietmar Warning - * src/frontend/com_option.c: better formatting the output and + * src/frontend/com_option.c: better formatting the output and add some useful parameters if command 'option' is given * src/include/cktdefs.h, * src/spicelib/analysis/cktdojob.c, cktntask.c, diff --git a/src/frontend/aspice.c b/src/frontend/aspice.c index 68438b3f1..fedbb83f0 100644 --- a/src/frontend/aspice.c +++ b/src/frontend/aspice.c @@ -36,6 +36,8 @@ $Id$ #include "fteinp.h" #include "dvec.h" +#include "../misc/mktemp.h" + /* This is required for the GCC pre-processor and might be needed for others Added to resolve ngspice bug 1293746 diff --git a/src/frontend/com_gnuplot.c b/src/frontend/com_gnuplot.c index 58d7c5f62..8fffd56b6 100644 --- a/src/frontend/com_gnuplot.c +++ b/src/frontend/com_gnuplot.c @@ -5,6 +5,7 @@ #include #include "plotting/plotit.h" +#include "../misc/mktemp.h" #include "com_gnuplot.h" diff --git a/src/frontend/com_hardcopy.c b/src/frontend/com_hardcopy.c index e94ef8719..34664d82a 100644 --- a/src/frontend/com_hardcopy.c +++ b/src/frontend/com_hardcopy.c @@ -13,6 +13,7 @@ #include "plotting/plotit.h" #include "plotting/graphdb.h" #include "plotting/graf.h" +#include "../misc/mktemp.h" #include "arg.h" #include "display.h" diff --git a/src/frontend/com_xgraph.c b/src/frontend/com_xgraph.c index e80d3ccb0..d84e6c336 100644 --- a/src/frontend/com_xgraph.c +++ b/src/frontend/com_xgraph.c @@ -5,6 +5,7 @@ #include #include "plotting/plotit.h" +#include "../misc/mktemp.h" #include "com_xgraph.h" diff --git a/src/frontend/inp.c b/src/frontend/inp.c index aa4cd7b8e..a417db23d 100644 --- a/src/frontend/inp.c +++ b/src/frontend/inp.c @@ -29,6 +29,7 @@ $Id$ #include "variable.h" #include "breakp2.h" #include "../misc/util.h" /* dirname() */ +#include "../misc/mktemp.h" #include "error.h" /* controlled_exit() */ #ifdef XSPICE diff --git a/src/frontend/nutinp.c b/src/frontend/nutinp.c index 3882a40b9..dadc8362a 100644 --- a/src/frontend/nutinp.c +++ b/src/frontend/nutinp.c @@ -15,6 +15,7 @@ $Id$ #include "fteinp.h" #include "nutinp.h" #include "variable.h" +#include "../misc/mktemp.h" /* The routine to source a spice input deck. We read the deck in, take out * the front-end commands, and create a CKT structure. Also we filter out diff --git a/src/include/ngspice.h b/src/include/ngspice.h index b9c3cad8d..1367ed28d 100644 --- a/src/include/ngspice.h +++ b/src/include/ngspice.h @@ -217,8 +217,6 @@ extern char *tildexpand(char *str); extern char *canonicalize_pathname(char *path); extern char *absolute_pathname(char *str, char *dot_path); -extern char *smktemp(char *id); - extern char *copy(const char *str); extern int prefix(char *p, char *str); extern int substring(char *sub, char *str); diff --git a/src/ngsconvert.c b/src/ngsconvert.c index ed3902c91..d250167a9 100644 --- a/src/ngsconvert.c +++ b/src/ngsconvert.c @@ -16,6 +16,7 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group #include #include "suffix.h" #include "frontend/display.h" +#include "../misc/mktemp.h" FILE *cp_in = NULL; FILE *cp_out = NULL;