cleanup scope of `y' and `z'
This commit is contained in:
parent
ebc01fc265
commit
62d3847c8a
|
|
@ -1,3 +1,7 @@
|
|||
2011-12-30 Robert Larice
|
||||
* inpcom.c :
|
||||
cleanup scope of `y' and `z'
|
||||
|
||||
2011-12-30 Robert Larice
|
||||
* inpcom.c :
|
||||
cleanup scope of `keep_char' and `s_lower', drop `s_ptr'
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
|
|||
*/
|
||||
{
|
||||
struct line *end = NULL, *cc = NULL, *prev = NULL, *working, *newcard, *start_lib, *global_card, *tmp_ptr = NULL, *tmp_ptr2 = NULL;
|
||||
char *buffer = NULL, *s, *t, *y, *z, c;
|
||||
char *buffer = NULL, *s, *t, c;
|
||||
/* segfault fix */
|
||||
#ifdef XSPICE
|
||||
char big_buff[5000];
|
||||
|
|
@ -247,6 +247,9 @@ inp_readall(FILE *fp, struct line **data, int call_depth, char *dir_name, bool c
|
|||
|
||||
/* now handle .lib statements */
|
||||
if (ciprefix(".lib", buffer)) {
|
||||
|
||||
char *y, *z;
|
||||
|
||||
inp_stripcomments_line(buffer);
|
||||
for ( s = buffer; *s && !isspace(*s); s++ ) /* skip over .lib */
|
||||
;
|
||||
|
|
|
|||
Loading…
Reference in New Issue