Branch: Tag:

2017-02-01

2017-02-01 16:13:35 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Added internal function find_predef_identifier().

1961:    return resolve_identifier(ident);   }    + /* Look up a predefined identifier. */ + struct node_s *find_predef_identifier(struct pike_string *ident) + { +  struct compilation *c = THIS_COMPILATION; +  node *tmp = mkconstantsvaluenode(&c->default_module); +  node *ret = index_node(tmp, "predef", ident); +  if(ret && !ret->name) +  add_ref(ret->name = ident); +  free_node(tmp); +  return ret; + } +    /*! @decl constant UNDEFINED    *!    *! The undefined value; ie a zero for which @[zero_type()] returns 1.