function_handle = (switch_loadable_module_function_table_t *)switch_dso_data_sym(dso, "v8_mod_init", &derr);
if (!function_handle || derr) {
- status = SWITCH_STATUS_FALSE;
err = derr;
goto err;
}
} else if (!strcasecmp(as, "xml")) {
switch_snprintf(tmp_str, sizeof(tmp_str), "%u", count);
- switch_xml_set_attr(switch_xml_set_flag(xml, SWITCH_XML_DUP), strdup("row_count"), strdup(tmp_str));
+ switch_xml_set_attr_d(xml, "row_count", tmp_str);
output_text = switch_xml_toxml(xml, SWITCH_FALSE);
JS_COREDB_FUNCTION_IMPL(BindText)
{
HandleScope handle_scope(info.GetIsolate());
- bool status;
int32_t param_index = -1;
string param_value;
}
/* convert args */
- status = !info[0].IsEmpty() && info[0]->IsInt32() ? true : false;
param_index = info[0]->Int32Value();
String::Utf8Value str(info[1]);
param_value = js_safe_str(*str);
JS_COREDB_FUNCTION_IMPL(BindInt)
{
HandleScope handle_scope(info.GetIsolate());
- bool status;
int32_t param_index = -1;
int32_t param_value = -1;
}
/* convert args */
- status = !info[0].IsEmpty() && info[0]->IsInt32() ? true : false;
param_index = info[0]->Int32Value();
-
- status = !info[1].IsEmpty() && info[1]->IsInt32() ? true : false;
param_value = info[1]->Int32Value();
if (param_index < 1) {
#if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >=5
void JSMain::Initialize(v8::Platform **platform)
{
- bool res = V8::InitializeICUDefaultLocation(SWITCH_GLOBAL_dirs.mod_dir);
+ V8::InitializeICUDefaultLocation(SWITCH_GLOBAL_dirs.mod_dir);
V8::InitializeExternalStartupData(SWITCH_GLOBAL_dirs.mod_dir);
*platform = v8::platform::CreateDefaultPlatform();