Branch: Tag:

2004-09-18

2004-09-18 21:25:08 by Martin Nilsson <mani@lysator.liu.se>

Added const

Rev: src/modules/Image/colors.c:1.73
Rev: src/modules/Image/pattern.c:1.31

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: colors.c,v 1.72 2004/03/05 23:04:02 nilsson Exp $ + || $Id: colors.c,v 1.73 2004/09/18 21:24:53 nilsson Exp $   */      /*
191:      #include "global.h"    - RCSID("$Id: colors.c,v 1.72 2004/03/05 23:04:02 nilsson Exp $"); -  +    #include "image_machine.h"      #include <math.h>
1243:   {    struct svalue s;    int n; -  static char *callables[]={"light","dark","neon","dull","bright"}; +  static const char *callables[]={"light","dark","neon","dull","bright"};       if (args!=1)    Pike_error("Image.Color[]: illegal number of args.\n");