Ignore:
Timestamp:
Oct 28, 2014, 12:17:38 PM (5 years ago)
Author:
nmedfort
Message:

Implemented slab allocator based on the original Parabix StringPool?; intergrated it with RE and Pablo AST nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_parser.cpp

    r4271 r4272  
    266266
    267267RE * RE_Parser::parse_charset() {
    268     std::unique_ptr<CC> cc(makeCC());
     268    CC * cc = makeCC();
    269269    bool negated = false;
    270270    cursor_t start = ++_cursor;
     
    291291                ++_cursor;
    292292                if (negated) {
    293                     return makeDiff(makeAny(), cc.release());
    294                 }
    295                 return cc.release();
     293                    return makeDiff(makeAny(), cc);
     294                }
     295                return cc;
    296296            // The hyphen (-) is not treated as a range separator if it appears first or last, or as the
    297297            // endpoint of a range.
Note: See TracChangeset for help on using the changeset viewer.