Branch: Tag:

2017-07-31

2017-07-31 21:53:49 by Martin Nilsson <nilsson@fastmail.com>

Added some const

1342:   }      PMOD_EXPORT struct svalue *low_mapping_string_lookup(struct mapping *m, -  struct pike_string *p) +  const struct pike_string *p)   {    struct svalue tmp; -  SET_SVAL(tmp, T_STRING, 0, string, p); +  /* Expanded SET_SVALUE macro to silence discard const warning. */ +  struct svalue *ptr = &tmp; +  ptr->u.string = (struct pike_string *)p; +  SET_SVAL_TYPE_SUBTYPE(*ptr, T_STRING, 0);    return low_mapping_lookup(m, &tmp);   }