Crypt-SecretBuffer

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN


### Developing

However, if you're trying to build from a fresh Git checkout, you'll need
the Dist::Zilla tool (and many plugins) to create the Makefile.PL.

    cpanm Dist::Zilla
    dzil authordeps --missing | cpanm
    dzil build

While Dist::Zilla takes the busywork and mistakes out of module authorship,
it fails to address the need of XS authors to easily compile XS projects
and run single test cases rather than the whole test suite.  For this, you
might find the following script handy:

    ./dzil-prove t/01-ctor.t  # or any other test case

which runs "dzil build" to get a clean dist, then enters the build directory
and runs "perl Makefile.PL" to compile the XS, then "prove -lvb t/01-ctor.t".

### Copyright

secret_buffer_parse_match_str.c  view on Meta::CPAN

         }
#if 0
         if (consttime) {
            warn(" @%2d matched=%d parse->pos=%d real_search_pos=%d ret_pos=%d ret_lim=%d anchor_fail=%d",
               (int)(search_pos-orig), (int)matched, (int)(parse->pos-orig), (int)(real_search_pos-orig),
               (int)(ret_pos? ret_pos-orig : -1), (int)(ret_lim? ret_lim-orig : -1), (int)anchor_fail);
         }
#endif
         #undef SB_HANDLE_ENCODING_ERROR
         /* Code below does not set return values unless `search_pos >= real_search_pos`
          * so that the consttime busywork iterations don't change any return-value state.
          */
         /* Found the goal? (match, or negated match) */
         if (matched != negate) {
            /* The desired (multi?)match begins here, unless it already began */
            if (!ret_pos && search_pos >= real_search_pos) {
               ret_pos=     search_pos;
               ret_pos_bit= search_pos_bit;
            }
            /* It also ends here if multi is false, unless already set */
            if (!multi && !ret_lim && search_pos >= real_search_pos) {

secret_buffer_parse_match_str.c  view on Meta::CPAN

         }
#if 0
         if (!anchored && !multi) {
            warn(" @%2d matched=%d parse->lim=%d real_search_lim=%d ret_pos=%d ret_lim=%d anchor_fail=%d",
               (int)(search_lim-orig-1), (int)matched, (int)(parse->lim-orig), (int)(real_search_lim-orig),
               (int)(ret_pos? ret_pos-orig : -1), (int)(ret_lim? ret_lim-orig : -1), (int)anchor_fail);
         }
#endif
         #undef SB_HANDLE_ENCODING_ERROR
         /* Code below does not set return values unless `search_pos >= real_search_pos`
          * so that the consttime busywork iterations don't change any return-value state.
          */
         /* Found the goal? (match, or negated match) */
         if (matched != negate) {
            /* The desired (multi?)match begins here, unless it already began */
            if (!ret_lim && search_lim <= real_search_lim) {
               ret_lim=     search_lim;
               ret_lim_bit= search_lim_bit;
            }
            /* It also ends here if multi is false, unless already set */
            if (!multi && !ret_pos && search_lim <= real_search_lim) {



( run in 0.995 second using v1.01-cache-2.11-cpan-39bf76dae61 )