Branch: Tag:

2014-08-15

2014-08-15 13:59:45 by Martin Nilsson <nilsson@opera.com>

static is now deprecated, as per the very long term plan.

1090:    if( !(THIS_COMPILATION->lex.pragmas & ID_NO_DEPRECATION_WARNINGS) &&    !TEST_COMPAT(7, 6) && Pike_compiler->compiler_pass==1 )    yywarning("Keyword nomask is deprecated in favor for 'final'."); -  +     }    | TOK_FINAL_ID { $$ = ID_FINAL | ID_INLINE; } -  | TOK_STATIC { $$ = ID_PROTECTED; } +  | TOK_STATIC { +  $$ = ID_PROTECTED; +  if( !(THIS_COMPILATION->lex.pragmas & ID_NO_DEPRECATION_WARNINGS) && +  !TEST_COMPAT(7, 8) && Pike_compiler->compiler_pass==1 ) +  yywarning("Keyword static is deprecated in favor for 'protected'."); +  }    | TOK_EXTERN { $$ = ID_EXTERN; }    | TOK_OPTIONAL { $$ = ID_OPTIONAL; }    | TOK_PRIVATE { $$ = ID_PRIVATE | ID_PROTECTED; }