Branch: Tag:

2014-03-01

2014-03-01 12:28:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Support modifier-style attributes in more places.

The syntaxes

__attribute__("foo", mixed) x;

and

__attribute__("foo") mixed x;

are now equivalent.

3398:    Pike_compiler->last_file=0;    }    +  if (Pike_compiler->current_attributes) { +  free_node(Pike_compiler->current_attributes); +  Pike_compiler->current_attributes = NULL; +  } +     unuse_modules(Pike_compiler->num_used_modules);       free_all_nodes();
8776:    free_string(c->lex.current_file);    c->lex.current_file = NULL;    } +  if(c->lex.attributes) { +  free_node(c->lex.attributes); +  c->lex.attributes = NULL; +  }    if (c->resolve_cache) {    free_mapping(c->resolve_cache);    c->resolve_cache = NULL;
8802:    free_string(c->lex.current_file);    c->lex.current_file=make_shared_string("-");    +  c->lex.attributes = NULL; +     if (runtime_options & RUNTIME_STRICT_TYPES)    {    c->lex.pragmas = ID_STRICT_TYPES;