Branch: Tag:

2008-07-13

2008-07-13 13:53:47 by Marcus Comstedt <marcus@mc.pp.se>

Added final attribute to some constants which are supposed to be constants and not "almost like functions".

Rev: src/modules/Fuse/module.pmod.in:1.12
Rev: src/modules/Gz/buffertest.pike:1.3
Rev: src/modules/Gz/module.pmod.in:1.18
Rev: src/modules/Math/module.pmod.in:1.26
Rev: src/modules/Oracle/module.pmod.in:1.15
Rev: src/modules/Regexp/module.pmod.in:1.12
Rev: src/modules/files/sendfiletest.pike:1.12
Rev: src/post_modules/COM/examples/ads.pike:1.3
Rev: src/post_modules/GL/gen.pike:1.25
Rev: src/post_modules/GLUT/gen.pike:1.4
Rev: src/post_modules/GTK/new_build_pgtk.pike:1.30
Rev: src/post_modules/GTK/output/split.pike:1.16
Rev: src/post_modules/GTK2/build_pgtk.pike:1.16
Rev: src/post_modules/GTK2/output/split.pike:1.14
Rev: src/post_modules/Nettle/rijndaeltest.pike:1.5

1: - // $Id: module.pmod.in,v 1.17 2008/06/28 17:07:19 nilsson Exp $ + // $Id: module.pmod.in,v 1.18 2008/07/13 13:53:46 marcus Exp $   #pike __REAL_VERSION__      inherit @module@;
15:    protected private string read_buf;    protected private int file_pos, crc, write_mode, at_eof;    -  constant SEEK_SET = 0; -  constant SEEK_CUR = 1; -  constant SEEK_END = 2; +  final constant SEEK_SET = 0; +  final constant SEEK_CUR = 1; +  final constant SEEK_END = 2;       protected int check_header(string|void buf)    {