Remove some uses of obsolete 'register' storage specifier
Remove the keyword from all Source/* files outside of KWSys.
This commit is contained in:
parent
daaf6283f5
commit
1399825cf9
|
@ -120,7 +120,7 @@ static size_t
|
||||||
cmCTestSubmitHandlerWriteMemoryCallback(void *ptr, size_t size, size_t nmemb,
|
cmCTestSubmitHandlerWriteMemoryCallback(void *ptr, size_t size, size_t nmemb,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
register int realsize = (int)(size * nmemb);
|
int realsize = (int)(size * nmemb);
|
||||||
|
|
||||||
cmCTestSubmitHandlerVectorOfChar *vec
|
cmCTestSubmitHandlerVectorOfChar *vec
|
||||||
= static_cast<cmCTestSubmitHandlerVectorOfChar*>(data);
|
= static_cast<cmCTestSubmitHandlerVectorOfChar*>(data);
|
||||||
|
|
|
@ -40,7 +40,7 @@ static char *RegEx_Error(int code)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define INIT register char *sp = RegEx_Init(instring);
|
#define INIT char *sp = RegEx_Init(instring);
|
||||||
#define GETC() (*sp++)
|
#define GETC() (*sp++)
|
||||||
#define PEEKC() (*sp)
|
#define PEEKC() (*sp)
|
||||||
#define UNGETC(c) (--sp)
|
#define UNGETC(c) (--sp)
|
||||||
|
|
|
@ -175,7 +175,7 @@ std::string cmCTest::GetCostDataFile()
|
||||||
static size_t
|
static size_t
|
||||||
HTTPResponseCallback(void *ptr, size_t size, size_t nmemb, void *data)
|
HTTPResponseCallback(void *ptr, size_t size, size_t nmemb, void *data)
|
||||||
{
|
{
|
||||||
register int realsize = (int)(size * nmemb);
|
int realsize = (int)(size * nmemb);
|
||||||
|
|
||||||
std::string *response
|
std::string *response
|
||||||
= static_cast<std::string*>(data);
|
= static_cast<std::string*>(data);
|
||||||
|
|
|
@ -730,9 +730,9 @@ extern int cmCommandArgument_yylex (yyscan_t yyscanner);
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
#line 64 "cmCommandArgumentLexer.in.l"
|
#line 64 "cmCommandArgumentLexer.in.l"
|
||||||
|
@ -782,7 +782,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1082,9 +1082,9 @@ return 0; /* this should not happend but it should silence a warning */
|
||||||
static int yy_get_next_buffer (yyscan_t yyscanner)
|
static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = yyg->yytext_ptr;
|
char *source = yyg->yytext_ptr;
|
||||||
register int number_to_move, i;
|
int number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
||||||
|
@ -1216,15 +1216,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
yy_current_state = yyg->yy_start;
|
yy_current_state = yyg->yy_start;
|
||||||
|
|
||||||
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1249,11 +1249,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
*/
|
*/
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
|
||||||
register char *yy_cp = yyg->yy_c_buf_p;
|
char *yy_cp = yyg->yy_c_buf_p;
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -2015,7 +2015,7 @@ int cmCommandArgument_yylex_destroy (yyscan_t yyscanner)
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
}
|
}
|
||||||
|
@ -2024,7 +2024,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
|
||||||
#ifdef YY_NEED_STRLEN
|
#ifdef YY_NEED_STRLEN
|
||||||
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
for ( n = 0; s[n]; ++n )
|
for ( n = 0; s[n]; ++n )
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -913,9 +913,9 @@ extern int cmDependsFortran_yylex (yyscan_t yyscanner);
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
#line 71 "cmDependsFortranLexer.in.l"
|
#line 71 "cmDependsFortranLexer.in.l"
|
||||||
|
@ -966,7 +966,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1386,9 +1386,9 @@ ECHO;
|
||||||
static int yy_get_next_buffer (yyscan_t yyscanner)
|
static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = yyg->yytext_ptr;
|
char *source = yyg->yytext_ptr;
|
||||||
register int number_to_move, i;
|
int number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
||||||
|
@ -1520,8 +1520,8 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
yy_current_state = yyg->yy_start;
|
yy_current_state = yyg->yy_start;
|
||||||
|
@ -1529,7 +1529,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1554,11 +1554,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
*/
|
*/
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
|
||||||
register char *yy_cp = yyg->yy_c_buf_p;
|
char *yy_cp = yyg->yy_c_buf_p;
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1576,9 +1576,9 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
return yy_is_jam ? 0 : yy_current_state;
|
return yy_is_jam ? 0 : yy_current_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
|
static void yyunput (int c, char * yy_bp , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
yy_cp = yyg->yy_c_buf_p;
|
yy_cp = yyg->yy_c_buf_p;
|
||||||
|
@ -1589,10 +1589,10 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
|
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
|
||||||
{ /* need to shift things up to make room */
|
{ /* need to shift things up to make room */
|
||||||
/* +2 for EOB chars. */
|
/* +2 for EOB chars. */
|
||||||
register int number_to_move = yyg->yy_n_chars + 2;
|
int number_to_move = yyg->yy_n_chars + 2;
|
||||||
register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
|
char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
|
||||||
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
|
||||||
register char *source =
|
char *source =
|
||||||
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
|
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
|
||||||
|
|
||||||
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
|
||||||
|
@ -2359,7 +2359,7 @@ int cmDependsFortran_yylex_destroy (yyscan_t yyscanner)
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
}
|
}
|
||||||
|
@ -2368,7 +2368,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
|
||||||
#ifdef YY_NEED_STRLEN
|
#ifdef YY_NEED_STRLEN
|
||||||
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
for ( n = 0; s[n]; ++n )
|
for ( n = 0; s[n]; ++n )
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
|
@ -904,9 +904,9 @@ extern int cmDependsJava_yylex (yyscan_t yyscanner);
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
#line 88 "cmDependsJavaLexer.in.l"
|
#line 88 "cmDependsJavaLexer.in.l"
|
||||||
|
@ -955,7 +955,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1604,9 +1604,9 @@ return 0; /* this should not happen but it silences a warning*/
|
||||||
static int yy_get_next_buffer (yyscan_t yyscanner)
|
static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = yyg->yytext_ptr;
|
char *source = yyg->yytext_ptr;
|
||||||
register int number_to_move, i;
|
int number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
||||||
|
@ -1730,15 +1730,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
yy_current_state = yyg->yy_start;
|
yy_current_state = yyg->yy_start;
|
||||||
|
|
||||||
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1763,11 +1763,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
*/
|
*/
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *yy_cp = yyg->yy_c_buf_p;
|
char *yy_cp = yyg->yy_c_buf_p;
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -2481,7 +2481,7 @@ int cmDependsJava_yylex_destroy (yyscan_t yyscanner)
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
|
@ -2491,7 +2491,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
|
||||||
#ifdef YY_NEED_STRLEN
|
#ifdef YY_NEED_STRLEN
|
||||||
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
for ( n = 0; s[n]; ++n )
|
for ( n = 0; s[n]; ++n )
|
||||||
;
|
;
|
||||||
|
|
|
@ -446,7 +446,7 @@ union yyalloc
|
||||||
# define YYCOPY(To, From, Count) \
|
# define YYCOPY(To, From, Count) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
register YYSIZE_T yyi; \
|
YYSIZE_T yyi; \
|
||||||
for (yyi = 0; yyi < (Count); yyi++) \
|
for (yyi = 0; yyi < (Count); yyi++) \
|
||||||
(To)[yyi] = (From)[yyi]; \
|
(To)[yyi] = (From)[yyi]; \
|
||||||
} \
|
} \
|
||||||
|
@ -1821,7 +1821,7 @@ yystrlen (yystr)
|
||||||
const char *yystr;
|
const char *yystr;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register const char *yys = yystr;
|
const char *yys = yystr;
|
||||||
|
|
||||||
while (*yys++ != '\0')
|
while (*yys++ != '\0')
|
||||||
continue;
|
continue;
|
||||||
|
@ -1846,8 +1846,8 @@ yystpcpy (yydest, yysrc)
|
||||||
const char *yysrc;
|
const char *yysrc;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register char *yyd = yydest;
|
char *yyd = yydest;
|
||||||
register const char *yys = yysrc;
|
const char *yys = yysrc;
|
||||||
|
|
||||||
while ((*yyd++ = *yys++) != '\0')
|
while ((*yyd++ = *yys++) != '\0')
|
||||||
continue;
|
continue;
|
||||||
|
@ -1977,8 +1977,8 @@ YYSTYPE yylval;
|
||||||
/* Number of syntax errors so far. */
|
/* Number of syntax errors so far. */
|
||||||
int yynerrs;
|
int yynerrs;
|
||||||
|
|
||||||
register int yystate;
|
int yystate;
|
||||||
register int yyn;
|
int yyn;
|
||||||
int yyresult;
|
int yyresult;
|
||||||
/* Number of tokens to shift before error messages enabled. */
|
/* Number of tokens to shift before error messages enabled. */
|
||||||
int yyerrstatus;
|
int yyerrstatus;
|
||||||
|
@ -1996,12 +1996,12 @@ int yynerrs;
|
||||||
/* The state stack. */
|
/* The state stack. */
|
||||||
short int yyssa[YYINITDEPTH];
|
short int yyssa[YYINITDEPTH];
|
||||||
short int *yyss = yyssa;
|
short int *yyss = yyssa;
|
||||||
register short int *yyssp;
|
short int *yyssp;
|
||||||
|
|
||||||
/* The semantic value stack. */
|
/* The semantic value stack. */
|
||||||
YYSTYPE yyvsa[YYINITDEPTH];
|
YYSTYPE yyvsa[YYINITDEPTH];
|
||||||
YYSTYPE *yyvs = yyvsa;
|
YYSTYPE *yyvs = yyvsa;
|
||||||
register YYSTYPE *yyvsp;
|
YYSTYPE *yyvsp;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -693,9 +693,9 @@ extern int cmExpr_yylex (yyscan_t yyscanner);
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
#line 86 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
|
#line 86 "/home/andy/vtk/CMake/Source/cmExprLexer.in.l"
|
||||||
|
@ -745,7 +745,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -989,9 +989,9 @@ return 0; /* this should not happen but it silences a warning*/
|
||||||
static int yy_get_next_buffer (yyscan_t yyscanner)
|
static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = yyg->yytext_ptr;
|
char *source = yyg->yytext_ptr;
|
||||||
register int number_to_move, i;
|
int number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
||||||
|
@ -1116,15 +1116,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
yy_current_state = yyg->yy_start;
|
yy_current_state = yyg->yy_start;
|
||||||
|
|
||||||
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1149,11 +1149,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
*/
|
*/
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *yy_cp = yyg->yy_c_buf_p;
|
char *yy_cp = yyg->yy_c_buf_p;
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1867,7 +1867,7 @@ int cmExpr_yylex_destroy (yyscan_t yyscanner)
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
|
@ -1877,7 +1877,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
|
||||||
#ifdef YY_NEED_STRLEN
|
#ifdef YY_NEED_STRLEN
|
||||||
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
for ( n = 0; s[n]; ++n )
|
for ( n = 0; s[n]; ++n )
|
||||||
;
|
;
|
||||||
|
|
|
@ -267,7 +267,7 @@ union yyalloc
|
||||||
# define YYCOPY(To, From, Count) \
|
# define YYCOPY(To, From, Count) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
register YYSIZE_T yyi; \
|
YYSIZE_T yyi; \
|
||||||
for (yyi = 0; yyi < (Count); yyi++) \
|
for (yyi = 0; yyi < (Count); yyi++) \
|
||||||
(To)[yyi] = (From)[yyi]; \
|
(To)[yyi] = (From)[yyi]; \
|
||||||
} \
|
} \
|
||||||
|
@ -696,7 +696,7 @@ yystrlen (yystr)
|
||||||
const char *yystr;
|
const char *yystr;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register const char *yys = yystr;
|
const char *yys = yystr;
|
||||||
|
|
||||||
while (*yys++ != '\0')
|
while (*yys++ != '\0')
|
||||||
continue;
|
continue;
|
||||||
|
@ -721,8 +721,8 @@ yystpcpy (yydest, yysrc)
|
||||||
const char *yysrc;
|
const char *yysrc;
|
||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
register char *yyd = yydest;
|
char *yyd = yydest;
|
||||||
register const char *yys = yysrc;
|
const char *yys = yysrc;
|
||||||
|
|
||||||
while ((*yyd++ = *yys++) != '\0')
|
while ((*yyd++ = *yys++) != '\0')
|
||||||
continue;
|
continue;
|
||||||
|
@ -852,8 +852,8 @@ YYSTYPE yylval;
|
||||||
/* Number of syntax errors so far. */
|
/* Number of syntax errors so far. */
|
||||||
int yynerrs;
|
int yynerrs;
|
||||||
|
|
||||||
register int yystate;
|
int yystate;
|
||||||
register int yyn;
|
int yyn;
|
||||||
int yyresult;
|
int yyresult;
|
||||||
/* Number of tokens to shift before error messages enabled. */
|
/* Number of tokens to shift before error messages enabled. */
|
||||||
int yyerrstatus;
|
int yyerrstatus;
|
||||||
|
@ -871,12 +871,12 @@ int yynerrs;
|
||||||
/* The state stack. */
|
/* The state stack. */
|
||||||
short int yyssa[YYINITDEPTH];
|
short int yyssa[YYINITDEPTH];
|
||||||
short int *yyss = yyssa;
|
short int *yyss = yyssa;
|
||||||
register short int *yyssp;
|
short int *yyssp;
|
||||||
|
|
||||||
/* The semantic value stack. */
|
/* The semantic value stack. */
|
||||||
YYSTYPE yyvsa[YYINITDEPTH];
|
YYSTYPE yyvsa[YYINITDEPTH];
|
||||||
YYSTYPE *yyvs = yyvsa;
|
YYSTYPE *yyvs = yyvsa;
|
||||||
register YYSTYPE *yyvsp;
|
YYSTYPE *yyvsp;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2489,7 +2489,7 @@ namespace {
|
||||||
cmWriteToFileCallback(void *ptr, size_t size, size_t nmemb,
|
cmWriteToFileCallback(void *ptr, size_t size, size_t nmemb,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
register int realsize = (int)(size * nmemb);
|
int realsize = (int)(size * nmemb);
|
||||||
std::ofstream* fout = static_cast<std::ofstream*>(data);
|
std::ofstream* fout = static_cast<std::ofstream*>(data);
|
||||||
const char* chPtr = static_cast<char*>(ptr);
|
const char* chPtr = static_cast<char*>(ptr);
|
||||||
fout->write(chPtr, realsize);
|
fout->write(chPtr, realsize);
|
||||||
|
@ -2501,7 +2501,7 @@ namespace {
|
||||||
cmWriteToMemoryCallback(void *ptr, size_t size, size_t nmemb,
|
cmWriteToMemoryCallback(void *ptr, size_t size, size_t nmemb,
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
register int realsize = (int)(size * nmemb);
|
int realsize = (int)(size * nmemb);
|
||||||
cmFileCommandVectorOfChar *vec
|
cmFileCommandVectorOfChar *vec
|
||||||
= static_cast<cmFileCommandVectorOfChar*>(data);
|
= static_cast<cmFileCommandVectorOfChar*>(data);
|
||||||
const char* chPtr = static_cast<char*>(ptr);
|
const char* chPtr = static_cast<char*>(ptr);
|
||||||
|
|
|
@ -749,9 +749,9 @@ extern int cmListFileLexer_yylex (yyscan_t yyscanner);
|
||||||
*/
|
*/
|
||||||
YY_DECL
|
YY_DECL
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp, *yy_bp;
|
char *yy_cp, *yy_bp;
|
||||||
register int yy_act;
|
int yy_act;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
#line 100 "cmListFileLexer.in.l"
|
#line 100 "cmListFileLexer.in.l"
|
||||||
|
@ -801,7 +801,7 @@ YY_DECL
|
||||||
yy_match:
|
yy_match:
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1127,9 +1127,9 @@ ECHO;
|
||||||
static int yy_get_next_buffer (yyscan_t yyscanner)
|
static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
||||||
register char *source = yyg->yytext_ptr;
|
char *source = yyg->yytext_ptr;
|
||||||
register int number_to_move, i;
|
int number_to_move, i;
|
||||||
int ret_val;
|
int ret_val;
|
||||||
|
|
||||||
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
|
||||||
|
@ -1253,15 +1253,15 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
|
|
||||||
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register yy_state_type yy_current_state;
|
yy_state_type yy_current_state;
|
||||||
register char *yy_cp;
|
char *yy_cp;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
|
|
||||||
yy_current_state = yyg->yy_start;
|
yy_current_state = yyg->yy_start;
|
||||||
|
|
||||||
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
|
||||||
{
|
{
|
||||||
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -1286,11 +1286,11 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
|
||||||
*/
|
*/
|
||||||
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int yy_is_jam;
|
int yy_is_jam;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
register char *yy_cp = yyg->yy_c_buf_p;
|
char *yy_cp = yyg->yy_c_buf_p;
|
||||||
|
|
||||||
register YY_CHAR yy_c = 1;
|
YY_CHAR yy_c = 1;
|
||||||
if ( yy_accept[yy_current_state] )
|
if ( yy_accept[yy_current_state] )
|
||||||
{
|
{
|
||||||
yyg->yy_last_accepting_state = yy_current_state;
|
yyg->yy_last_accepting_state = yy_current_state;
|
||||||
|
@ -2008,7 +2008,7 @@ int cmListFileLexer_yylex_destroy (yyscan_t yyscanner)
|
||||||
#ifndef yytext_ptr
|
#ifndef yytext_ptr
|
||||||
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int i;
|
int i;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
for ( i = 0; i < n; ++i )
|
for ( i = 0; i < n; ++i )
|
||||||
s1[i] = s2[i];
|
s1[i] = s2[i];
|
||||||
|
@ -2018,7 +2018,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yysca
|
||||||
#ifdef YY_NEED_STRLEN
|
#ifdef YY_NEED_STRLEN
|
||||||
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
|
||||||
{
|
{
|
||||||
register int n;
|
int n;
|
||||||
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
|
||||||
for ( n = 0; s[n]; ++n )
|
for ( n = 0; s[n]; ++n )
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in New Issue