Branch: Tag:

2004-09-18

2004-09-18 20:19:41 by Per Hedbor <ph@opera.com>

More const

Rev: src/opcodes.c:1.163
Rev: src/opcodes.h:1.40
Rev: src/pike_search.c:1.23
Rev: src/pike_search.h:1.9
Rev: src/pike_search_engine.c:1.12

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: opcodes.c,v 1.162 2004/02/03 20:40:13 nilsson Exp $ + || $Id: opcodes.c,v 1.163 2004/09/18 20:18:20 per Exp $   */      #include "global.h" - RCSID("$Id: opcodes.c,v 1.162 2004/02/03 20:40:13 nilsson Exp $"); + RCSID("$Id: opcodes.c,v 1.163 2004/09/18 20:18:20 per Exp $");   #include "constants.h"   #include "interpret.h"   #include "opcodes.h"
241:      #define LEXER    - struct keyword instr_names[]= + const struct keyword instr_names[]=   {   #ifndef PIKE_PRECOMPILER   #include "interpret_protos.h"
296:   size_t instrs_checksum;   #endif /* PIKE_USE_MACHINE_CODE */    - char *low_get_f_name(int n, struct program *p) + const char *low_get_f_name(int n, struct program *p)   {    static char buf[30];   
320:    return buf;   }    - char *get_f_name(int n) + const char *get_f_name(int n)   {    if (Pike_fp && Pike_fp->context.prog)    return low_get_f_name(n, Pike_fp->context.prog);
355:   }   #endif /* HAVE_COMPUTED_GOTO */    - char *get_token_name(int n) + const char *get_token_name(int n)   {    static char buf[30];    if (n<F_MAX_INSTR && instrs[n-F_OFFSET].name)