Browse Source

tiny fixes

pre-master-46
rlar 16 years ago
parent
commit
d19476685a
  1. 7
      ChangeLog
  2. 4
      src/frontend/parser/glob.c
  3. 2
      src/frontend/subckt.c
  4. 2
      src/include/ngspice.h
  5. 4
      src/xspice/cmpp/ifs_lex.l

7
ChangeLog

@ -1,3 +1,10 @@
2010-07-03 Robert Larice
* src/frontend/subckt.c : drop unsued variable.
* src/include/ngspice.h : add a missing extern
* src/xspice/cmpp/ifs_lex.l : atof() and atoi() live in <stdlib.h>
* src/frontend/parser/glob.c :
cast the return values of malloc() function calls
2010-07-03 Robert Larice
* src/include/cktdefs.h ,
* src/include/gendefs.h ,

4
src/frontend/parser/glob.c

@ -116,7 +116,7 @@ brac1(char *string)
int nb;
words = alloc(struct wordlist);
words->wl_word = tmalloc(BSIZE_SP);
words->wl_word = (char*) tmalloc(BSIZE_SP);
words->wl_word[0] = 0;
words->wl_next = NULL;
words->wl_prev = NULL;
@ -144,7 +144,7 @@ brac1(char *string)
nw = alloc(struct wordlist);
nw->wl_next = NULL;
nw->wl_prev = NULL;
nw->wl_word = tmalloc(BSIZE_SP);
nw->wl_word = (char*) tmalloc(BSIZE_SP);
(void) strcpy(nw->wl_word, wl->wl_word);
(void) strcat(nw->wl_word, w->wl_word);
newwl = wl_append(newwl, nw);

2
src/frontend/subckt.c

@ -156,7 +156,7 @@ inp_subcktexpand(struct line *deck)
{
struct line *ll, *c;
char *s;
int ok = 0, skip_control = 0;
int ok = 0;
char *t;
int i;
wordlist *wl;

2
src/include/ngspice.h

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

4
src/xspice/cmpp/ifs_lex.l

@ -42,13 +42,13 @@ NON-STANDARD FEATURES
============================================================================*/
#include <stdlib.h>
#include "ifs_yacc_y.h"
#include "ifs_yacc.h"
int yyival;
double yydval;
extern int atoi();
extern double atof();
extern void ifs_yyerror (char*);
/*

Loading…
Cancel
Save