Branch: Tag:

2002-09-12

2002-09-12 13:15:50 by Marcus Comstedt <marcus@mc.pp.se>

Added a bunch of missing 'const'.

Rev: src/constants.c:1.39
Rev: src/constants.h:1.23
Rev: src/dmalloc.h:1.36
Rev: src/module_support.c:1.49
Rev: src/module_support.h:1.13
Rev: src/pike_memory.c:1.121
Rev: src/pike_types.c:1.195
Rev: src/pike_types.h:1.81
Rev: src/port.c:1.53
Rev: src/port.h:1.44
Rev: src/program.c:1.443
Rev: src/program.h:1.166

5:   \*/      /* -  * $Id: constants.h,v 1.22 2002/05/31 22:41:23 nilsson Exp $ +  * $Id: constants.h,v 1.23 2002/09/12 13:15:49 marcus Exp $    */   #ifndef ADD_EFUN_H   #define ADD_EFUN_H
41:   /* Prototypes begin here */   PMOD_EXPORT struct mapping *get_builtin_constants(void);   void low_add_efun(struct pike_string *name, struct svalue *fun); - void low_add_constant(char *name, struct svalue *fun); - PMOD_EXPORT void add_global_program(char *name, struct program *p); + void low_add_constant(const char *name, struct svalue *fun); + PMOD_EXPORT void add_global_program(const char *name, struct program *p);   BLOCK_ALLOC(callable,128)   PMOD_EXPORT struct callable *low_make_callable(c_fun fun,    struct pike_string *name,
51:    optimize_fun optimize,    docode_fun docode);   PMOD_EXPORT struct callable *make_callable(c_fun fun, -  char *name, -  char *type, +  const char *name, +  const char *type,    INT16 flags,    optimize_fun optimize,    docode_fun docode); - PMOD_EXPORT struct callable *add_efun2(char *name, + PMOD_EXPORT struct callable *add_efun2(const char *name,    c_fun fun, -  char *type, +  const char *type,    INT16 flags,    optimize_fun optimize,    docode_fun docode); - PMOD_EXPORT struct callable *add_efun(char *name, c_fun fun, char *type, INT16 flags); - PMOD_EXPORT struct callable *quick_add_efun(char *name, ptrdiff_t name_length, + PMOD_EXPORT struct callable *add_efun(const char *name, c_fun fun, const char *type, INT16 flags); + PMOD_EXPORT struct callable *quick_add_efun(const char *name, ptrdiff_t name_length,    c_fun fun, -  char *type, ptrdiff_t type_length, +  const char *type, ptrdiff_t type_length,    INT16 flags,    optimize_fun optimize,    docode_fun docode);