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:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.442 2002/09/11 16:03:32 mast Exp $"); + RCSID("$Id: program.c,v 1.443 2002/09/12 13:15:49 marcus Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
1792:    debug_malloc_touch(Pike_compiler->fake_object->storage);   }    - PMOD_EXPORT void debug_start_new_program(int line, char *file) + PMOD_EXPORT void debug_start_new_program(int line, const char *file)   {    struct pike_string *save_file = lex.current_file;    int save_line = lex.current_line;
3381:    return n;   }    - PMOD_EXPORT int map_variable(char *name, -  char *type, + PMOD_EXPORT int map_variable(const char *name, +  const char *type,    INT32 flags,    size_t offset,    INT32 run_time_type)
3404:    return ret;   }    - PMOD_EXPORT int quick_map_variable(char *name, + PMOD_EXPORT int quick_map_variable(const char *name,    int name_length,    size_t offset, -  char *type, +  const char *type,    int type_length,    INT32 run_time_type,    INT32 flags)
3586:    return n;   }    - PMOD_EXPORT int simple_add_variable(char *name, -  char *type, + PMOD_EXPORT int simple_add_variable(const char *name, +  const char *type,    INT32 flags)   {    INT32 ret;
3823:    return n;   }    - PMOD_EXPORT int simple_add_constant(char *name, + PMOD_EXPORT int simple_add_constant(const char *name,    struct svalue *c,    INT32 flags)   {
3835:    return ret;   }    - PMOD_EXPORT int add_integer_constant(char *name, + PMOD_EXPORT int add_integer_constant(const char *name,    INT32 i,    INT32 flags)   {
3846:    return simple_add_constant(name, &tmp, flags);   }    - PMOD_EXPORT int quick_add_integer_constant(char *name, + PMOD_EXPORT int quick_add_integer_constant(const char *name,    int name_length,    INT32 i,    INT32 flags)
3864:    return ret;   }    - PMOD_EXPORT int add_float_constant(char *name, + PMOD_EXPORT int add_float_constant(const char *name,    double f,    INT32 flags)   {
3875:    return simple_add_constant(name, &tmp, flags);   }    - PMOD_EXPORT int add_string_constant(char *name, -  char *str, + PMOD_EXPORT int add_string_constant(const char *name, +  const char *str,    INT32 flags)   {    INT32 ret;
3889:    return ret;   }    - PMOD_EXPORT int add_program_constant(char *name, + PMOD_EXPORT int add_program_constant(const char *name,    struct program *p,    INT32 flags)   {
3902:    return ret;   }    - PMOD_EXPORT int add_object_constant(char *name, + PMOD_EXPORT int add_object_constant(const char *name,    struct object *o,    INT32 flags)   {
3915:    return ret;   }    - PMOD_EXPORT int add_function_constant(char *name, void (*cfun)(INT32), char * type, INT16 flags) + PMOD_EXPORT int add_function_constant(const char *name, void (*cfun)(INT32), +  const char * type, INT16 flags)   {    struct svalue s;    INT32 ret;
3929:   }       - PMOD_EXPORT int debug_end_class(char *name, ptrdiff_t namelen, INT32 flags) + PMOD_EXPORT int debug_end_class(const char *name, ptrdiff_t namelen, INT32 flags)   {    INT32 ret;    struct svalue tmp;
5768:    }   }    - PMOD_EXPORT int pike_add_function2(char *name, void (*cfun)(INT32), -  char *type, unsigned INT8 flags, + PMOD_EXPORT int pike_add_function2(const char *name, void (*cfun)(INT32), +  const char *type, unsigned INT8 flags,    unsigned INT16 opt_flags)   {    int ret;
5802:    return ret;   }    - PMOD_EXPORT int quick_add_function(char *name, + PMOD_EXPORT int quick_add_function(const char *name,    int name_length,    void (*cfun)(INT32), -  char *type, +  const char *type,    int type_length,    unsigned INT8 flags,    unsigned INT16 opt_flags)