Branch: Tag:

2017-07-31

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

Added some const

4885:    return really_low_reference_inherited_identifier(q, e, i);   }    - int find_inherit(struct program *p, struct pike_string *name) + int find_inherit(const struct program *p, const struct pike_string *name)   {    int e;    int level = p->num_inherits; /* Larger than any inherit_level. */
5519:    *    * @return Return the index of the identifier found, otherwise -1.    */ - int isidentifier(struct pike_string *s) + int isidentifier(const struct pike_string *s)   {    return really_low_find_shared_string_identifier(s,    Pike_compiler->new_program,
6881:    * |    * +-E---foo Pike 7.7.34 ---    */ - PMOD_EXPORT int really_low_find_shared_string_identifier(struct pike_string *name, + PMOD_EXPORT int really_low_find_shared_string_identifier(const struct pike_string *name,    const struct program *prog,    int flags)   {
7141:      PMOD_EXPORT int low_find_lfun(struct program *p, enum LFUN lfun)   { -  struct pike_string *lfun_name; +  const struct pike_string *lfun_name;    unsigned int flags = 0;    int i;    struct identifier *id;
7186:    * Lookup the number of a function in a program given the name in    * a shared_string    */ - int low_find_shared_string_identifier(struct pike_string *name, + int low_find_shared_string_identifier(const struct pike_string *name,    const struct program *prog)   {    int max,min,tst;