Sha256: 5185cca7b32a0b1f81f5858c712fb42903b4a85c09e0d6f22c35e95db9859d9c

Contents?: true

Size: 922 Bytes

Versions: 6

Compression:

Stored size: 922 Bytes

Contents

//
//  CSnowcrash.cc
//  snowcrash
//
//  Created by Ali Khoramshahi on 13/6/14.
//  Copyright (c) 2014 Apiary Inc. All rights reserved.
//

#include "csnowcrash.h"
#include "snowcrash.h"

using namespace snowcrash;

int sc_c_parse(const char* source, sc_blueprint_parser_options option, sc_report_t** report, sc_blueprint_t** blueprint, sc_sm_blueprint_t** sm_blueprint)
{
    Report* resultReport = ::new snowcrash::Report;
    Blueprint* resultblueprint = ::new snowcrash::Blueprint;
    SourceMap<snowcrash::Blueprint>* resultSourceMap = ::new SourceMap<snowcrash::Blueprint>;

    ParseResultRef<Blueprint> result(*resultReport, *resultblueprint, *resultSourceMap);

    int ret = snowcrash::parse(source, option, result);

    *report = AS_TYPE(sc_report_t, resultReport);
    *blueprint = AS_TYPE(sc_blueprint_t, resultblueprint);
    *sm_blueprint = AS_TYPE(sc_sm_blueprint_t, resultSourceMap);

    return ret;
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
redsnow-0.3.7 ext/snowcrash/src/csnowcrash.cc
redsnow-0.3.4 ext/snowcrash/src/csnowcrash.cc
redsnow-0.3.3 ext/snowcrash/src/csnowcrash.cc
redsnow-0.3.2 ext/snowcrash/src/csnowcrash.cc
redsnow-0.3.1 ext/snowcrash/src/csnowcrash.cc
redsnow-0.3.0 ext/snowcrash/src/csnowcrash.cc