Commit e4d8ad23 by Brendan Kehoe Committed by Brendan Kehoe

cpplib.c (special_symbol): Move IP to be declared in function scope, rather than…

cpplib.c (special_symbol): Move IP to be declared in function scope, rather than individual case statements.

	* cpplib.c (special_symbol): Move IP to be declared in function
	scope, rather than individual case statements.
fixes building under solaris

From-SVN: r25112
parent 6458033d
1999-02-09 Brendan Kehoe <brendan@cygnus.com>
* cpplib.c (special_symbol): Move IP to be declared in function
scope, rather than individual case statements.
1999-02-09 16:42 -0500 Zack Weinberg <zack@rabi.columbia.edu> 1999-02-09 16:42 -0500 Zack Weinberg <zack@rabi.columbia.edu>
* cppfiles.c (finclude): Handle pipes properly under old BSD * cppfiles.c (finclude): Handle pipes properly under old BSD
......
...@@ -1884,13 +1884,14 @@ special_symbol (hp, pfile) ...@@ -1884,13 +1884,14 @@ special_symbol (hp, pfile)
{ {
const char *buf; const char *buf;
int len; int len;
cpp_buffer *ip;
switch (hp->type) switch (hp->type)
{ {
case T_FILE: case T_FILE:
case T_BASE_FILE: case T_BASE_FILE:
{ {
cpp_buffer *ip = CPP_BUFFER (pfile); ip = CPP_BUFFER (pfile);
if (hp->type == T_BASE_FILE) if (hp->type == T_BASE_FILE)
{ {
while (CPP_PREV_BUFFER (ip) != CPP_NULL_BUFFER (pfile)) while (CPP_PREV_BUFFER (ip) != CPP_NULL_BUFFER (pfile))
...@@ -1915,7 +1916,7 @@ special_symbol (hp, pfile) ...@@ -1915,7 +1916,7 @@ special_symbol (hp, pfile)
case T_INCLUDE_LEVEL: case T_INCLUDE_LEVEL:
{ {
int true_indepth = 0; int true_indepth = 0;
cpp_buffer *ip = CPP_BUFFER (pfile); ip = CPP_BUFFER (pfile);
for (; ip != CPP_NULL_BUFFER (pfile); ip = CPP_PREV_BUFFER (ip)) for (; ip != CPP_NULL_BUFFER (pfile); ip = CPP_PREV_BUFFER (ip))
if (ip->fname != NULL) if (ip->fname != NULL)
true_indepth++; true_indepth++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment