From 01d015e4a19ac5b67ecd03199f0112fe4c26d3a9 Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Wed, 9 Jul 2008 22:43:46 +0200
Subject: [PATCH] A little more constness.

Rev: src/las.c:1.426
Rev: src/las.h:1.80
Rev: src/pike_types.c:1.348
Rev: src/pike_types.h:1.121
---
 src/las.c        | 8 ++++----
 src/las.h        | 6 +++---
 src/pike_types.c | 4 ++--
 src/pike_types.h | 4 ++--
 4 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/las.c b/src/las.c
index 4d2d769974..519df2e438 100644
--- a/src/las.c
+++ b/src/las.c
@@ -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: las.c,v 1.425 2008/06/28 11:01:53 mast Exp $
+|| $Id: las.c,v 1.426 2008/07/09 20:43:46 mast Exp $
 */
 
 #include "global.h"
@@ -1776,7 +1776,7 @@ node *debug_mktypenode(struct pike_type *t)
   return res;
 }
 
-node *low_mkconstantsvaluenode(struct svalue *s)
+node *low_mkconstantsvaluenode(const struct svalue *s)
 {
   node *res = mkemptynode();
   res->token = F_CONSTANT;
@@ -1791,12 +1791,12 @@ node *low_mkconstantsvaluenode(struct svalue *s)
   return res;
 }
 
-node *debug_mkconstantsvaluenode(struct svalue *s)
+node *debug_mkconstantsvaluenode(const struct svalue *s)
 {
   return low_mkconstantsvaluenode(s);
 }
 
-node *debug_mkliteralsvaluenode(struct svalue *s)
+node *debug_mkliteralsvaluenode(const struct svalue *s)
 {
   node *res = low_mkconstantsvaluenode(s);
 
diff --git a/src/las.h b/src/las.h
index 6de405f168..5fad463f4e 100644
--- a/src/las.h
+++ b/src/las.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: las.h,v 1.79 2008/05/24 15:14:12 grubba Exp $
+|| $Id: las.h,v 1.80 2008/07/09 20:43:46 mast Exp $
 */
 
 #ifndef LAS_H
@@ -186,8 +186,8 @@ void resolv_class(node *n);
 node *index_node(node *n, char *node_name, struct pike_string *id);
 int node_is_eq(node *a,node *b);
 node *debug_mktypenode(struct pike_type *t);
-node *debug_mkconstantsvaluenode(struct svalue *s);
-node *debug_mkliteralsvaluenode(struct svalue *s);
+node *debug_mkconstantsvaluenode(const struct svalue *s);
+node *debug_mkliteralsvaluenode(const struct svalue *s);
 node *debug_mksvaluenode(struct svalue *s);
 node *copy_node(node *n);
 node *defrost_node(node *n);
diff --git a/src/pike_types.c b/src/pike_types.c
index a2eb540076..97c8fa88cb 100644
--- a/src/pike_types.c
+++ b/src/pike_types.c
@@ -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: pike_types.c,v 1.347 2008/07/09 20:26:34 mast Exp $
+|| $Id: pike_types.c,v 1.348 2008/07/09 20:43:45 mast Exp $
 */
 
 #include "global.h"
@@ -7012,7 +7012,7 @@ struct pike_type *zzap_function_return(struct pike_type *a,
   return NULL;
 }
 
-struct pike_type *get_type_of_svalue(struct svalue *s)
+struct pike_type *get_type_of_svalue(const struct svalue *s)
 {
   struct pike_type *ret;
   switch(s->type)
diff --git a/src/pike_types.h b/src/pike_types.h
index 10c9813292..830bfaa286 100644
--- a/src/pike_types.h
+++ b/src/pike_types.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: pike_types.h,v 1.120 2008/06/18 20:48:09 grubba Exp $
+|| $Id: pike_types.h,v 1.121 2008/07/09 20:43:46 mast Exp $
 */
 
 #ifndef PIKE_TYPES_H
@@ -282,7 +282,7 @@ struct pike_type *new_check_call(struct pike_string *fun_name,
 				 node *args, INT32 *argno, INT32 flags);
 struct pike_type *zzap_function_return(struct pike_type *t,
 				       struct pike_type *fun_ret);
-struct pike_type *get_type_of_svalue(struct svalue *s);
+struct pike_type *get_type_of_svalue(const struct svalue *s);
 struct pike_type *object_type_to_program_type(struct pike_type *obj_t);
 PMOD_EXPORT char *get_name_of_type(TYPE_T t);
 void cleanup_pike_types(void);
-- 
GitLab