From 849cf1aa92532339ab78f5a3852cac2e7b4309cb Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Tue, 20 Aug 2013 10:55:42 -0700 Subject: [PATCH] smalloc: consistent-ify syntax Small syntax fixes of variable renaming and argument alignment. --- src/smalloc.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/smalloc.cc b/src/smalloc.cc index 6270c66f78..07eecb9427 100644 --- a/src/smalloc.cc +++ b/src/smalloc.cc @@ -96,7 +96,7 @@ size_t ExternalArraySize(enum ExternalArrayType type) { // copyOnto(source, source_start, dest, dest_start, copy_length) void CopyOnto(const FunctionCallbackInfo& args) { - HandleScope scope(node_isolate); + HandleScope handle_scope(node_isolate); if (!args[0]->IsObject()) return ThrowTypeError("source must be an object"); @@ -172,7 +172,7 @@ void CopyOnto(const FunctionCallbackInfo& args) { // for internal use: // dest._data = sliceOnto(source, dest, start, end); void SliceOnto(const FunctionCallbackInfo& args) { - HandleScope scope(node_isolate); + HandleScope handle_scope(node_isolate); Local source = args[0].As(); Local dest = args[1].As(); @@ -212,7 +212,7 @@ void SliceOnto(const FunctionCallbackInfo& args) { // for internal use: // alloc(obj, n[, type]); void Alloc(const FunctionCallbackInfo& args) { - HandleScope scope(node_isolate); + HandleScope handle_scope(node_isolate); Local obj = args[0].As(); @@ -250,7 +250,7 @@ void Alloc(Handle obj, size_t length, enum ExternalArrayType type) { char* data = static_cast(malloc(length)); if (data == NULL) { FatalError("node::smalloc::Alloc(v8::Handle, size_t," - " ExternalArrayType)", "Out Of Memory"); + " v8::ExternalArrayType)", "Out Of Memory"); } Alloc(obj, data, length, type); @@ -299,7 +299,7 @@ void AllocDispose(const FunctionCallbackInfo& args) { void AllocDispose(Handle obj) { - HandleScope scope(node_isolate); + HandleScope handle_scope(node_isolate); if (using_alloc_cb) { Local ext_v = obj->GetHiddenValue(smalloc_sym);