projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Constness and global namespace patrol.
[pspp-builds.git]
/
src
/
language
/
expressions
/
optimize.c
diff --git
a/src/language/expressions/optimize.c
b/src/language/expressions/optimize.c
index 154517927dee47bdecaa68fe93d4af926dd0227f..d80f4069b87a4cbfe1e7155f9ff3d4c8684a9848 100644
(file)
--- a/
src/language/expressions/optimize.c
+++ b/
src/language/expressions/optimize.c
@@
-45,7
+45,7
@@
expr_optimize (union any_node *node, struct expression *e)
{
int nonconst_cnt = 0; /* Number of nonconstant children. */
int sysmis_cnt = 0; /* Number of system-missing children. */
{
int nonconst_cnt = 0; /* Number of nonconstant children. */
int sysmis_cnt = 0; /* Number of system-missing children. */
- struct operation *op;
+
const
struct operation *op;
struct composite_node *c;
int i;
struct composite_node *c;
int i;
@@
-308,7
+308,7
@@
flatten_atom (union any_node *n, struct expression *e)
static void
flatten_composite (union any_node *n, struct expression *e)
{
static void
flatten_composite (union any_node *n, struct expression *e)
{
- struct operation *op = &operations[n->type];
+
const
struct operation *op = &operations[n->type];
size_t i;
for (i = 0; i < n->composite.arg_cnt; i++)
size_t i;
for (i = 0; i < n->composite.arg_cnt; i++)