diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-08-01 14:49:39 -0600 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-08-02 09:24:53 -0600 |
commit | b9e8c997b9a1c15e919ad20df9ba2f1501c64d76 (patch) | |
tree | ccbdd2a8d3502df647e6f1edc4f7c29c3bf44c20 /embed.fnc | |
parent | 26faadbdfacc510abb04832e4c81d1f71329c697 (diff) | |
download | perl-b9e8c997b9a1c15e919ad20df9ba2f1501c64d76.tar.gz |
regcomp.c: Revise API for static function
This is to allow future changes. The function now returns success or
failure, and the created regnode (if any) is set via a parameter
pointer.
I removed the 'register' declaration to get this to work, because
such declarations are considered bad form these days, e.g.,
http://stackoverflow.com/questions/314994/whats-a-good-example-of-register-variable-usage-in-c
Diffstat (limited to 'embed.fnc')
-rw-r--r-- | embed.fnc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1934,8 +1934,9 @@ Es |regnode*|reg_node |NN struct RExC_state_t *pRExC_state|U8 op Es |UV |reg_recode |const char value|NN SV **encp Es |regnode*|regpiece |NN struct RExC_state_t *pRExC_state \ |NN I32 *flagp|U32 depth -Es |regnode*|grok_bslash_N|NN struct RExC_state_t *pRExC_state \ - |NULLOK UV *valuep|NULLOK I32 *flagp|U32 depth +Es |bool |grok_bslash_N |NN struct RExC_state_t *pRExC_state \ + |NULLOK regnode** nodep|NULLOK UV *valuep \ + |NULLOK I32 *flagp|U32 depth|bool in_char_class Es |void |reginsert |NN struct RExC_state_t *pRExC_state \ |U8 op|NN regnode *opnd|U32 depth Es |void |regtail |NN struct RExC_state_t *pRExC_state \ |