Branch: Tag:

2001-04-28

2001-04-28 19:32:56 by Martin Stjernholm <mast@lysator.liu.se>

Added const-ness to a bunch of functions that doesn't modify the svalues
sent to them. Fixed prototype for the _m_delete lfun.

Rev: src/program.c:1.316
Rev: src/program.h:1.126
Rev: src/svalue.c:1.101
Rev: src/svalue.h:1.89

5:   \*/      /* -  * $Id: program.h,v 1.125 2001/04/14 09:44:21 hubbe Exp $ +  * $Id: program.h,v 1.126 2001/04/28 19:32:56 mast Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
526:   PMOD_EXPORT char *get_storage(struct object *o, struct program *p);   struct program *low_program_from_function(struct program *p,    INT32 i); - PMOD_EXPORT struct program *program_from_function(struct svalue *f); - PMOD_EXPORT struct program *program_from_svalue(struct svalue *s); + PMOD_EXPORT struct program *program_from_function(const struct svalue *f); + PMOD_EXPORT struct program *program_from_svalue(const struct svalue *s);   struct find_child_cache_s;   int find_child(struct program *parent, struct program *child);   void yywarning(char *fmt, ...) ATTRIBUTE((format(printf,1,2)));