summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-06 15:00:45 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-06 17:33:06 -0400
commitd9cb093989263b7e57a43d9ef18d88da7a77a784 (patch)
treefe2b5eafadbdbe4c4c7bd27c26a8c73c5b0173b3
parentfe404dfce901356dc7a5d38ba70029c72a946f27 (diff)
Run tools/format.sh
-rw-r--r--BUILD.gn4
-rw-r--r--src/binding.cc2
-rw-r--r--src/deno.h1
-rw-r--r--src/from_snapshot.cc2
-rw-r--r--src/main.cc2
-rw-r--r--src/snapshot_creator.cc4
-rw-r--r--tsconfig.json4
7 files changed, 10 insertions, 9 deletions
diff --git a/BUILD.gn b/BUILD.gn
index ad20e7a91..def162d42 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -69,10 +69,10 @@ static_library("libdeno") {
v8_source_set("deno_nosnapshot") {
sources = [
"src/binding.cc",
- "src/internal.h",
+ "src/deno.h",
"src/file_util.cc",
"src/file_util.h",
- "src/deno.h",
+ "src/internal.h",
]
deps = [
"third_party/v8:v8_monolith",
diff --git a/src/binding.cc b/src/binding.cc
index d8de138c1..0bbcf8b94 100644
--- a/src/binding.cc
+++ b/src/binding.cc
@@ -28,8 +28,8 @@ IN THE SOFTWARE.
#include "third_party/v8/include/v8.h"
#include "third_party/v8/src/base/logging.h"
-#include "internal.h"
#include "deno.h"
+#include "internal.h"
namespace deno {
diff --git a/src/deno.h b/src/deno.h
index cd9ade42f..605a76456 100644
--- a/src/deno.h
+++ b/src/deno.h
@@ -2,6 +2,7 @@
// All rights reserved. MIT License.
#ifndef DENO_H_
#define DENO_H_
+#include <stddef.h>
// Neither Rust nor Go support calling directly into C++ functions, therefore
// the public interface to libdeno is done in C.
#ifdef __cplusplus
diff --git a/src/from_snapshot.cc b/src/from_snapshot.cc
index 5dd32025a..3aa3bac77 100644
--- a/src/from_snapshot.cc
+++ b/src/from_snapshot.cc
@@ -8,8 +8,8 @@
#include "third_party/v8/include/v8.h"
#include "third_party/v8/src/base/logging.h"
-#include "internal.h"
#include "deno.h"
+#include "internal.h"
#ifdef DENO_MOCK_RUNTIME
#include "snapshot_mock_runtime.cc"
diff --git a/src/main.cc b/src/main.cc
index 0a6d76d34..9596dbddf 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -10,8 +10,8 @@
#include <unistd.h>
#endif
-#include "flatbuffers/flatbuffers.h"
#include "deno.h"
+#include "flatbuffers/flatbuffers.h"
#include "src/msg_generated.h"
#include "third_party/v8/src/base/logging.h"
diff --git a/src/snapshot_creator.cc b/src/snapshot_creator.cc
index 3f4d8c484..cb5caf304 100644
--- a/src/snapshot_creator.cc
+++ b/src/snapshot_creator.cc
@@ -1,9 +1,9 @@
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
// All rights reserved. MIT License.
// Hint: --trace_serializer is a useful debugging flag.
-#include "internal.h"
-#include "file_util.h"
#include "deno.h"
+#include "file_util.h"
+#include "internal.h"
#include "third_party/v8/include/v8.h"
#include "third_party/v8/src/base/logging.h"
diff --git a/tsconfig.json b/tsconfig.json
index 3ed7f63a4..441f233c2 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -13,6 +13,6 @@
"allowUnreachableCode": false,
"experimentalDecorators": true
},
- "include": [ "js/main.ts" ],
- "exclude": [ "node_modules" ]
+ "include": ["js/main.ts"],
+ "exclude": ["node_modules"]
}