010-no-register.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --- a/elftosb2/elftosb_lexer.cpp
  2. +++ b/elftosb2/elftosb_lexer.cpp
  3. @@ -722,9 +722,9 @@ static int yy_flex_strlen (yyconst char
  4. */
  5. YY_DECL
  6. {
  7. - register yy_state_type yy_current_state;
  8. - register char *yy_cp, *yy_bp;
  9. - register int yy_act;
  10. + yy_state_type yy_current_state;
  11. + char *yy_cp, *yy_bp;
  12. + int yy_act;
  13. #line 38 "/Users/creed/projects/fsl/fromsvr/elftosb/elftosb2/elftosb_lexer.l"
  14. @@ -773,7 +773,7 @@ YY_DECL
  15. yy_match:
  16. do
  17. {
  18. - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  19. + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  20. if ( yy_accept[yy_current_state] )
  21. {
  22. (yy_last_accepting_state) = yy_current_state;
  23. @@ -1555,9 +1555,9 @@ void yyFlexLexer::LexerOutput( const cha
  24. */
  25. int yyFlexLexer::yy_get_next_buffer()
  26. {
  27. - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  28. - register char *source = (yytext_ptr);
  29. - register int number_to_move, i;
  30. + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  31. + char *source = (yytext_ptr);
  32. + int number_to_move, i;
  33. int ret_val;
  34. if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  35. @@ -1689,14 +1689,14 @@ int yyFlexLexer::yy_get_next_buffer()
  36. yy_state_type yyFlexLexer::yy_get_previous_state()
  37. {
  38. - register yy_state_type yy_current_state;
  39. - register char *yy_cp;
  40. + yy_state_type yy_current_state;
  41. + char *yy_cp;
  42. yy_current_state = (yy_start);
  43. for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  44. {
  45. - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  46. + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  47. if ( yy_accept[yy_current_state] )
  48. {
  49. (yy_last_accepting_state) = yy_current_state;
  50. @@ -1721,10 +1721,10 @@ int yyFlexLexer::yy_get_next_buffer()
  51. */
  52. yy_state_type yyFlexLexer::yy_try_NUL_trans( yy_state_type yy_current_state )
  53. {
  54. - register int yy_is_jam;
  55. - register char *yy_cp = (yy_c_buf_p);
  56. + int yy_is_jam;
  57. + char *yy_cp = (yy_c_buf_p);
  58. - register YY_CHAR yy_c = 1;
  59. + YY_CHAR yy_c = 1;
  60. if ( yy_accept[yy_current_state] )
  61. {
  62. (yy_last_accepting_state) = yy_current_state;
  63. @@ -1742,9 +1742,9 @@ int yyFlexLexer::yy_get_next_buffer()
  64. return yy_is_jam ? 0 : yy_current_state;
  65. }
  66. - void yyFlexLexer::yyunput( int c, register char* yy_bp)
  67. + void yyFlexLexer::yyunput( int c, char* yy_bp)
  68. {
  69. - register char *yy_cp;
  70. + char *yy_cp;
  71. yy_cp = (yy_c_buf_p);
  72. @@ -1754,10 +1754,10 @@ int yyFlexLexer::yy_get_next_buffer()
  73. if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  74. { /* need to shift things up to make room */
  75. /* +2 for EOB chars. */
  76. - register yy_size_t number_to_move = (yy_n_chars) + 2;
  77. - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  78. + yy_size_t number_to_move = (yy_n_chars) + 2;
  79. + char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  80. YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  81. - register char *source =
  82. + char *source =
  83. &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  84. while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  85. @@ -2190,7 +2190,7 @@ void yyFlexLexer::LexerError( yyconst ch
  86. #ifndef yytext_ptr
  87. static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  88. {
  89. - register int i;
  90. + int i;
  91. for ( i = 0; i < n; ++i )
  92. s1[i] = s2[i];
  93. }
  94. @@ -2199,7 +2199,7 @@ static void yy_flex_strncpy (char* s1, y
  95. #ifdef YY_NEED_STRLEN
  96. static int yy_flex_strlen (yyconst char * s )
  97. {
  98. - register int n;
  99. + int n;
  100. for ( n = 0; s[n]; ++n )
  101. ;