◐ Shell
clean mode source ↗

src, tools: add check for left leaning pointers · nodejs/node@cbdc1fd

@@ -315,15 +315,15 @@ static struct {

315315

}

316316317317

#if HAVE_INSPECTOR

318-

bool StartInspector(Environment *env, const char* script_path,

318+

bool StartInspector(Environment* env, const char* script_path,

319319

const DebugOptions& options) {

320320

// Inspector agent can't fail to start, but if it was configured to listen

321321

// right away on the websocket port and fails to bind/etc, this will return

322322

// false.

323323

return env->inspector_agent()->Start(platform_, script_path, options);

324324

}

325325326-

bool InspectorStarted(Environment *env) {

326+

bool InspectorStarted(Environment* env) {

327327

return env->inspector_agent()->IsStarted();

328328

}

329329

#endif // HAVE_INSPECTOR

@@ -352,7 +352,7 @@ static struct {

352352

void Dispose() {}

353353

void DrainVMTasks(Isolate* isolate) {}

354354

void CancelVMTasks(Isolate* isolate) {}

355-

bool StartInspector(Environment *env, const char* script_path,

355+

bool StartInspector(Environment* env, const char* script_path,

356356

const DebugOptions& options) {

357357

env->ThrowError("Node compiled with NODE_USE_V8_PLATFORM=0");

358358

return true;

@@ -374,7 +374,7 @@ static struct {

374374

#endif // !NODE_USE_V8_PLATFORM

375375376376

#if !NODE_USE_V8_PLATFORM || !HAVE_INSPECTOR

377-

bool InspectorStarted(Environment *env) {

377+

bool InspectorStarted(Environment* env) {

378378

return false;

379379

}

380380

#endif // !NODE_USE_V8_PLATFORM || !HAVE_INSPECTOR

@@ -419,7 +419,7 @@ static void PrintErrorString(const char* format, ...) {

419419

va_end(ap);

420420

}

421421422-

const char *signo_string(int signo) {

422+

const char* signo_string(int signo) {

423423

#define SIGNO_CASE(e) case e: return #e;

424424

switch (signo) {

425425

#ifdef SIGHUP

@@ -2452,7 +2452,7 @@ static void EnvEnumerator(const PropertyCallbackInfo<Array>& info) {

24522452

Local<Array> envarr = Array::New(isolate);

24532453

WCHAR* p = environment;

24542454

while (*p) {

2455-

WCHAR *s;

2455+

WCHAR* s;

24562456

if (*p == L'=') {

24572457

// If the key starts with '=' it is a hidden environment variable.

24582458

p += wcslen(p) + 1;