Browse Source

collect extern timebegin in "misc_time.h"

pre-master-46
rlar 16 years ago
parent
commit
b897dfa857
  1. 6
      ChangeLog
  2. 1
      src/include/ngspice.h
  3. 7
      src/main.c
  4. 2
      src/misc/misc_time.h

6
ChangeLog

@ -1,3 +1,9 @@
2010-10-15 Robert Larice
* src/include/ngspice.h ,
* src/main.c ,
* src/misc/misc_time.h :
collect extern timebegin in "misc_time.h"
2010-10-15 Robert Larice
* src/ciderlib/support/globals.c ,
* src/ciderlib/support/mater.c ,

1
src/include/ngspice.h

@ -124,7 +124,6 @@
# else
# ifdef HAVE_FTIME
# include <sys/timeb.h>
extern struct timeb timebegin;
# endif
# endif
#endif

7
src/main.c

@ -49,6 +49,7 @@ extern int rl_catch_signals; /* missing from editline/readline.h */
#include "spicelib/devices/dev.h"
#include "spicelib/analysis/analysis.h"
#include "misc/ivars.h"
#include "misc/misc_time.h"
#if defined(HAVE_GETOPT_LONG) && defined(HAVE_GETOPT_H)
#include <getopt.h>
#else
@ -185,12 +186,6 @@ static void append_to_stream(FILE *dest, FILE *source);
#endif /* SIMULATOR */
#ifndef HAVE_GETRUSAGE
#ifdef HAVE_FTIME
extern struct timeb timebegin; /* for use w/ ftime */
#endif
#endif
extern IFsimulator SIMinfo;
#ifdef SIMULATOR

2
src/misc/misc_time.h

@ -13,6 +13,8 @@ double seconds(void);
#ifndef HAVE_TIMES
#ifdef HAVE_FTIME
extern struct timeb timebegin;
void timediff(struct timeb *, struct timeb *, int *, int *);
#endif

Loading…
Cancel
Save