[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/src data/identifier.c data/identifier.h la...
From: |
John Darrington |
Subject: |
[Pspp-cvs] pspp/src data/identifier.c data/identifier.h la... |
Date: |
Wed, 25 Oct 2006 22:28:13 +0000 |
CVSROOT: /sources/pspp
Module name: pspp
Changes by: John Darrington <jmd> 06/10/25 22:28:13
Modified files:
src/data : identifier.c identifier.h
src/language/utilities: set.q
src/math : percentiles.c percentiles.h
src/output/charts: plot-chart.c plot-chart.h
Log message:
Yet more constness
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/src/data/identifier.c?cvsroot=pspp&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pspp/src/data/identifier.h?cvsroot=pspp&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pspp/src/language/utilities/set.q?cvsroot=pspp&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/pspp/src/math/percentiles.c?cvsroot=pspp&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/pspp/src/math/percentiles.h?cvsroot=pspp&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/pspp/src/output/charts/plot-chart.c?cvsroot=pspp&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/pspp/src/output/charts/plot-chart.h?cvsroot=pspp&r1=1.3&r2=1.4
Patches:
Index: data/identifier.c
===================================================================
RCS file: /sources/pspp/pspp/src/data/identifier.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- data/identifier.c 17 Mar 2006 04:58:25 -0000 1.2
+++ data/identifier.c 25 Oct 2006 22:28:13 -0000 1.3
@@ -31,7 +31,7 @@
/* Table of keywords. */
-const char *keywords[T_N_KEYWORDS + 1] =
+const char *const keywords[T_N_KEYWORDS + 1] =
{
"AND", "OR", "NOT",
"EQ", "GE", "GT", "LE", "LT", "NE",
@@ -117,7 +117,7 @@
int
lex_id_to_token (const char *id, size_t len)
{
- const char **kwp;
+ const char *const *kwp;
if (len < 2 || len > 4)
return T_ID;
Index: data/identifier.h
===================================================================
RCS file: /sources/pspp/pspp/src/data/identifier.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- data/identifier.h 20 Oct 2006 11:32:57 -0000 1.2
+++ data/identifier.h 25 Oct 2006 22:28:13 -0000 1.3
@@ -68,6 +68,6 @@
bool lex_id_match (const char *keyword_string, const char *token_string);
int lex_id_to_token (const char *id, size_t len);
-extern const char *keywords[T_N_KEYWORDS + 1] ;
+extern const char *const keywords[T_N_KEYWORDS + 1] ;
#endif /* !lex_def_h */
Index: language/utilities/set.q
===================================================================
RCS file: /sources/pspp/pspp/src/language/utilities/set.q,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- language/utilities/set.q 19 Oct 2006 15:04:53 -0000 1.12
+++ language/utilities/set.q 25 Oct 2006 22:28:13 -0000 1.13
@@ -622,7 +622,7 @@
void (*function) (void);
};
-struct show_sbc show_table[] =
+const struct show_sbc show_table[] =
{
{"BLANKS", show_blanks},
{"CCA", show_cca},
Index: math/percentiles.c
===================================================================
RCS file: /sources/pspp/pspp/src/math/percentiles.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- math/percentiles.c 15 Mar 2006 03:29:11 -0000 1.3
+++ math/percentiles.c 25 Oct 2006 22:28:13 -0000 1.4
@@ -39,7 +39,7 @@
};
-const char *ptile_alg_desc[] = {
+const char *const ptile_alg_desc[] = {
"",
N_("HAverage"),
N_("Weighted Average"),
Index: math/percentiles.h
===================================================================
RCS file: /sources/pspp/pspp/src/math/percentiles.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- math/percentiles.h 15 Mar 2006 03:29:11 -0000 1.2
+++ math/percentiles.h 25 Oct 2006 22:28:13 -0000 1.3
@@ -38,7 +38,7 @@
-extern const char *ptile_alg_desc[];
+extern const char *const ptile_alg_desc[];
Index: output/charts/plot-chart.c
===================================================================
RCS file: /sources/pspp/pspp/src/output/charts/plot-chart.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- output/charts/plot-chart.c 8 Jul 2006 03:05:52 -0000 1.4
+++ output/charts/plot-chart.c 25 Oct 2006 22:28:13 -0000 1.5
@@ -41,7 +41,7 @@
#include <output/output.h>
-const char *data_colour[] = {
+const char *const data_colour[] = {
"brown",
"red",
"orange",
Index: output/charts/plot-chart.h
===================================================================
RCS file: /sources/pspp/pspp/src/output/charts/plot-chart.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- output/charts/plot-chart.h 4 Apr 2006 12:43:22 -0000 1.3
+++ output/charts/plot-chart.h 25 Oct 2006 22:28:13 -0000 1.4
@@ -40,7 +40,7 @@
#define PLOT_CHART_H
-extern const char *data_colour[];
+extern const char *const data_colour[];
enum tick_orientation {
TICK_ABSCISSA=0,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/src data/identifier.c data/identifier.h la...,
John Darrington <=