diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:42 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 23:52:48 +0900 |
commit | 76ef0cc47c8bbb03ae4f32680515aedf484ec5f8 (patch) | |
tree | 90d45576b52840fd52c9f22682574a44a1df6a01 /buildtools/lib/parsers/qmake/qmake_lex.cpp | |
parent | 97498570fe5cf2ec7abeb0e06920a6bb8a364cb2 (diff) | |
download | tdevelop-76ef0cc47c8bbb03ae4f32680515aedf484ec5f8.tar.gz tdevelop-76ef0cc47c8bbb03ae4f32680515aedf484ec5f8.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit da6bd0768e4304e6c2853d012c7d0686a205addb)
Diffstat (limited to 'buildtools/lib/parsers/qmake/qmake_lex.cpp')
-rw-r--r-- | buildtools/lib/parsers/qmake/qmake_lex.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/buildtools/lib/parsers/qmake/qmake_lex.cpp b/buildtools/lib/parsers/qmake/qmake_lex.cpp index 4997f217..711abfee 100644 --- a/buildtools/lib/parsers/qmake/qmake_lex.cpp +++ b/buildtools/lib/parsers/qmake/qmake_lex.cpp @@ -807,9 +807,9 @@ static int yy_flex_strlen (yyconst char * ); */ YY_DECL { - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; /* %% [7.0] user's declarations go here */ #line 76 "qmake.ll" @@ -868,7 +868,7 @@ YY_DECL yy_match: 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] ) { (yy_last_accepting_state) = yy_current_state; @@ -1371,9 +1371,9 @@ void yyFlexLexer::LexerOutput( const char* buf, int size ) int yyFlexLexer::yy_get_next_buffer() /* %endif */ { - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); - register int number_to_move, i; + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = (yytext_ptr); + int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) @@ -1503,8 +1503,8 @@ int yyFlexLexer::yy_get_next_buffer() yy_state_type yyFlexLexer::yy_get_previous_state() /* %endif */ { - register yy_state_type yy_current_state; - register char *yy_cp; + yy_state_type yy_current_state; + char *yy_cp; /* %% [15.0] code to get the start state into yy_current_state goes here */ yy_current_state = (yy_start); @@ -1512,7 +1512,7 @@ int yyFlexLexer::yy_get_next_buffer() for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { /* %% [16.0] code to find the next state goes here */ - 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] ) { (yy_last_accepting_state) = yy_current_state; @@ -1541,11 +1541,11 @@ int yyFlexLexer::yy_get_next_buffer() yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state ) /* %endif */ { - register int yy_is_jam; + int yy_is_jam; /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */ - register char *yy_cp = (yy_c_buf_p); + char *yy_cp = (yy_c_buf_p); - register YY_CHAR yy_c = 1; + YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1566,10 +1566,10 @@ int yyFlexLexer::yy_get_next_buffer() /* %if-c-only */ /* %endif */ /* %if-c++-only */ - void yyFlexLexer::yyunput( int c, register char* yy_bp) + void yyFlexLexer::yyunput( int c, char* yy_bp) /* %endif */ { - register char *yy_cp; + char *yy_cp; yy_cp = (yy_c_buf_p); @@ -1579,10 +1579,10 @@ int yyFlexLexer::yy_get_next_buffer() if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ - register int number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + int number_to_move = (yy_n_chars) + 2; + char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = + char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) @@ -2153,7 +2153,7 @@ yyFlexLexer::~yyFlexLexer() #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { - register int i; + int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } @@ -2162,7 +2162,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { - register int n; + int n; for ( n = 0; s[n]; ++n ) ; |