diff --git a/src/program.c b/src/program.c index 3106dbf5e4c36861164aae4b7593d3d2883f3182..1d726a8fa84ef182663af8fe75ad13a234ce255f 100644 --- a/src/program.c +++ b/src/program.c @@ -2,11 +2,11 @@ || 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: program.c,v 1.566 2004/08/13 12:13:01 grubba Exp $ +|| $Id: program.c,v 1.567 2004/09/18 20:16:15 per Exp $ */ #include "global.h" -RCSID("$Id: program.c,v 1.566 2004/08/13 12:13:01 grubba Exp $"); +RCSID("$Id: program.c,v 1.567 2004/09/18 20:16:15 per Exp $"); #include "program.h" #include "object.h" #include "dynamic_buffer.h" @@ -101,10 +101,10 @@ BLOCK_ALLOC_FILL_PAGES(program, 4) #define DECLARE #include "compilation.h" -struct pike_string *this_program_string = NULL, *this_string = NULL; -static struct pike_string *UNDEFINED_string=0; +struct pike_string *this_program_string, *this_string; +static struct pike_string *UNDEFINED_string; -char *lfun_names[] = { +const char *const lfun_names[] = { "__INIT", "create", "destroy", diff --git a/src/program.h b/src/program.h index ac3ad45740527a467f11dbd401e1019368dcff3d..927d48b9b90a9fb31ccd2fa0f24e3848a0f6654d 100644 --- a/src/program.h +++ b/src/program.h @@ -2,7 +2,7 @@ || 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: program.h,v 1.207 2004/06/30 00:16:27 nilsson Exp $ +|| $Id: program.h,v 1.208 2004/09/18 20:16:27 per Exp $ */ #ifndef PROGRAM_H @@ -104,7 +104,7 @@ extern struct pike_string *this_program_string; */ #define LFUN__SEARCH 44 -extern char *lfun_names[]; +extern const char *const lfun_names[]; extern struct pike_string *lfun_strings[];