tiny fixes
This commit is contained in:
parent
68c0ee9cd3
commit
d19476685a
|
|
@ -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 ,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@
|
|||
# else
|
||||
# ifdef HAVE_FTIME
|
||||
# include <sys/timeb.h>
|
||||
struct timeb timebegin;
|
||||
extern struct timeb timebegin;
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue