summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2006-04-09 21:15:58 -0500
committerDave Mitchell <davem@fdisolutions.com>2006-04-10 09:10:37 +0000
commit097eb12cc39d98a6d964631d26d4a7e23e180985 (patch)
treefd297fd6290f1d37f668eaa05456cd08693cf176 /proto.h
parent337d28f50abb1285c55ea2649c039a2a0083b442 (diff)
downloadperl-097eb12cc39d98a6d964631d26d4a7e23e180985.tar.gz
True consting goodness in regexes
Message-Id: <20060410071558.GA24756@petdance.com> p4raw-id: //depot/perl@27753
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/proto.h b/proto.h
index 96c664cdca..736d35ccc4 100644
--- a/proto.h
+++ b/proto.h
@@ -1808,7 +1808,7 @@ PERL_CALLCONV OP* Perl_prepend_elem(pTHX_ I32 optype, OP* head, OP* tail);
PERL_CALLCONV void Perl_push_scope(pTHX);
/* PERL_CALLCONV OP* ref(pTHX_ OP* o, I32 type); */
PERL_CALLCONV OP* Perl_refkids(pTHX_ OP* o, I32 type);
-PERL_CALLCONV void Perl_regdump(pTHX_ regexp* r)
+PERL_CALLCONV void Perl_regdump(pTHX_ const regexp* r)
__attribute__nonnull__(pTHX_1);
PERL_CALLCONV SV* Perl_regclass_swash(pTHX_ const struct regnode *n, bool doinit, SV **listsvp, SV **altsvp)
@@ -3529,12 +3529,12 @@ STATIC void S_reginsert(pTHX_ struct RExC_state_t *state, U8 op, regnode *opnd)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_3);
-STATIC void S_regoptail(pTHX_ struct RExC_state_t *state, regnode *p, regnode *val)
+STATIC void S_regoptail(pTHX_ const struct RExC_state_t *state, regnode *p, const regnode *val)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)
__attribute__nonnull__(pTHX_3);
-STATIC void S_regtail(pTHX_ struct RExC_state_t *state, regnode *p, regnode *val)
+STATIC void S_regtail(pTHX_ const struct RExC_state_t *state, regnode *p, const regnode *val)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)
__attribute__nonnull__(pTHX_3);
@@ -3548,7 +3548,7 @@ STATIC char* S_nextchar(pTHX_ struct RExC_state_t *state)
__attribute__nonnull__(pTHX_1);
# ifdef DEBUGGING
-STATIC regnode* S_dumpuntil(pTHX_ regexp *r, regnode *start, regnode *node, regnode *last, SV* sv, I32 l)
+STATIC regnode* S_dumpuntil(pTHX_ const regexp *r, regnode *start, regnode *node, regnode *last, SV* sv, I32 l)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)
__attribute__nonnull__(pTHX_3)
@@ -3558,11 +3558,11 @@ STATIC void S_put_byte(pTHX_ SV* sv, int c)
__attribute__nonnull__(pTHX_1);
# endif
-STATIC void S_scan_commit(pTHX_ struct RExC_state_t* state, struct scan_data_t *data)
+STATIC void S_scan_commit(pTHX_ const struct RExC_state_t* state, struct scan_data_t *data)
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2);
-STATIC void S_cl_anything(struct RExC_state_t* state, struct regnode_charclass_class *cl)
+STATIC void S_cl_anything(const struct RExC_state_t* state, struct regnode_charclass_class *cl)
__attribute__nonnull__(1)
__attribute__nonnull__(2);
@@ -3570,11 +3570,11 @@ STATIC int S_cl_is_anything(const struct regnode_charclass_class *cl)
__attribute__warn_unused_result__
__attribute__nonnull__(1);
-STATIC void S_cl_init(struct RExC_state_t* state, struct regnode_charclass_class *cl)
+STATIC void S_cl_init(const struct RExC_state_t* state, struct regnode_charclass_class *cl)
__attribute__nonnull__(1)
__attribute__nonnull__(2);
-STATIC void S_cl_init_zero(struct RExC_state_t* state, struct regnode_charclass_class *cl)
+STATIC void S_cl_init_zero(const struct RExC_state_t* state, struct regnode_charclass_class *cl)
__attribute__nonnull__(1)
__attribute__nonnull__(2);
@@ -3582,7 +3582,7 @@ STATIC void S_cl_and(struct regnode_charclass_class *cl, const struct regnode_ch
__attribute__nonnull__(1)
__attribute__nonnull__(2);
-STATIC void S_cl_or(struct RExC_state_t* state, struct regnode_charclass_class *cl, const struct regnode_charclass_class *or_with)
+STATIC void S_cl_or(const struct RExC_state_t* state, struct regnode_charclass_class *cl, const struct regnode_charclass_class *or_with)
__attribute__nonnull__(1)
__attribute__nonnull__(2)
__attribute__nonnull__(3);
@@ -3640,7 +3640,7 @@ STATIC bool S_reginclass(pTHX_ const regnode *n, const U8 *p, STRLEN *lenp, bool
__attribute__nonnull__(pTHX_2);
STATIC CHECKPOINT S_regcppush(pTHX_ I32 parenfloor);
-STATIC char* S_regcppop(pTHX_ regexp *rex)
+STATIC char* S_regcppop(pTHX_ const regexp *rex)
__attribute__nonnull__(pTHX_1);
STATIC U8* S_reghop3(U8 *pos, I32 off, U8 *lim)
@@ -3653,7 +3653,7 @@ STATIC U8* S_reghopmaybe3(U8 *pos, I32 off, U8 *lim)
__attribute__nonnull__(1)
__attribute__nonnull__(3);
-STATIC char* S_find_byclass(pTHX_ regexp * prog, regnode *c, char *s, const char *strend, I32 norun)
+STATIC char* S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s, const char *strend, I32 norun)
__attribute__warn_unused_result__
__attribute__nonnull__(pTHX_1)
__attribute__nonnull__(pTHX_2)