mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
Call lint in travis (and fix long long issue)
This commit is contained in:
parent
235e549035
commit
6d288b63cd
2 changed files with 5 additions and 2 deletions
|
@ -49,3 +49,4 @@ script:
|
||||||
- $BUILD_PATH/mock_runtime_test
|
- $BUILD_PATH/mock_runtime_test
|
||||||
- $BUILD_PATH/mock_main foo bar
|
- $BUILD_PATH/mock_main foo bar
|
||||||
- $BUILD_PATH/deno meow
|
- $BUILD_PATH/deno meow
|
||||||
|
- ./tools/lint.sh
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
|
||||||
// All rights reserved. MIT License.
|
// All rights reserved. MIT License.
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
@ -77,8 +78,9 @@ class StartupDataCppWriter {
|
||||||
file_ << buffer;
|
file_ << buffer;
|
||||||
WriteBinaryContentsAsCArray();
|
WriteBinaryContentsAsCArray();
|
||||||
file_ << "};\n";
|
file_ << "};\n";
|
||||||
snprintf(buffer, sizeof(buffer), "static const int %s_blob_size = %llu;\n",
|
snprintf(buffer, sizeof(buffer),
|
||||||
name_, static_cast<unsigned long long>(data_.size()));
|
"static const int %s_blob_size = %" PRId64 ";\n", name_,
|
||||||
|
static_cast<uint64_t>(data_.size()));
|
||||||
file_ << buffer;
|
file_ << buffer;
|
||||||
snprintf(buffer, sizeof(buffer), "static v8::StartupData %s_blob =\n",
|
snprintf(buffer, sizeof(buffer), "static v8::StartupData %s_blob =\n",
|
||||||
name_);
|
name_);
|
||||||
|
|
Loading…
Reference in a new issue