Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/xhpast.cpp
Show All 34 Lines | int xhpast_process(std::string &in) { | ||||
char *buffer; | char *buffer; | ||||
in.reserve(in.size() + 1); | in.reserve(in.size() + 1); | ||||
buffer = const_cast<char*>(in.c_str()); | buffer = const_cast<char*>(in.c_str()); | ||||
buffer[in.size() + 1] = 0; // need double NULL for scan_buffer | buffer[in.size() + 1] = 0; // need double NULL for scan_buffer | ||||
void* scanner; | void* scanner; | ||||
yy_extra_type extra; | yy_extra_type extra; | ||||
extra.idx_expr = true;//flags.idx_expr; | extra.idx_expr = true;//flags.idx_expr; | ||||
extra.include_debug = true;//flags.include_debug; | |||||
extra.insert_token = 0;//flags.eval ? T_OPEN_TAG_FAKE : 0; | extra.insert_token = 0;//flags.eval ? T_OPEN_TAG_FAKE : 0; | ||||
extra.short_tags = true;//flags.short_tags; | extra.short_tags = true;//flags.short_tags; | ||||
extra.asp_tags = false;//flags.asp_tags; | extra.asp_tags = false;//flags.asp_tags; | ||||
xhpast::Node *root = NULL; | xhpast::Node *root = NULL; | ||||
xhpastlex_init(&scanner); | xhpastlex_init(&scanner); | ||||
xhpastset_extra(&extra, scanner); | xhpastset_extra(&extra, scanner); | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |