diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-07-15 23:12:43 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-07-15 23:12:43 +0200 |
commit | b67cb2864e0de124bd7c4f9b0fda442329e09f3f (patch) | |
tree | f1e60fced1de05c8fa4232d0a07b5534f47abac6 /libguile/objcodes.h | |
parent | e1203ea00f033954e385a0f2f6aa8b886778dab1 (diff) | |
download | guile-b67cb2864e0de124bd7c4f9b0fda442329e09f3f.tar.gz |
Const-qualify buffers passed to `scm_c_make_objcode_slice ()'.
* libguile/objcodes.c (scm_c_make_objcode_slice): Add `const' qualifier
for PTR and DATA.
* libguile/objcodes.h: Update accordingly.
Diffstat (limited to 'libguile/objcodes.h')
-rw-r--r-- | libguile/objcodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/objcodes.h b/libguile/objcodes.h index 21e4add89..e9b1cdbff 100644 --- a/libguile/objcodes.h +++ b/libguile/objcodes.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2009 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -56,7 +56,7 @@ SCM_API scm_t_bits scm_tc16_objcode; #define SCM_OBJCODE_IS_U8VECTOR(x) (SCM_SMOB_FLAGS (x) & SCM_F_OBJCODE_IS_U8VECTOR) #define SCM_OBJCODE_IS_SLICE(x) (SCM_SMOB_FLAGS (x) & SCM_F_OBJCODE_IS_SLICE) -SCM scm_c_make_objcode_slice (SCM parent, scm_t_uint8 *ptr); +SCM scm_c_make_objcode_slice (SCM parent, const scm_t_uint8 *ptr); SCM_API SCM scm_load_objcode (SCM file); SCM_API SCM scm_objcode_p (SCM obj); SCM_API SCM scm_objcode_meta (SCM objcode); |