Skip to content

Commit a31a123

Browse files
guangwongoraluben
authored andcommitted
cli: add version for anode and fix lint issues
1 parent b6904fe commit a31a123

26 files changed

Lines changed: 75 additions & 54 deletions

.github/workflows/build-tarball.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ permissions:
3636

3737
jobs:
3838
build-tarball:
39-
if: github.event.pull_request.draft == false
39+
if: github.event.pull_request.draft == false && false
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v3

.github/workflows/build-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ permissions:
3131

3232
jobs:
3333
build-windows:
34-
if: github.event.pull_request.draft == false
34+
if: github.event.pull_request.draft == false && false
3535
runs-on: windows-2019
3636
steps:
3737
- uses: actions/checkout@v3

.github/workflows/coverage-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ permissions:
3434

3535
jobs:
3636
coverage-linux:
37-
if: github.event.pull_request.draft == false
37+
if: github.event.pull_request.draft == false && false
3838
runs-on: ubuntu-latest
3939
steps:
4040
- uses: actions/checkout@v3

.github/workflows/coverage-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ permissions:
3636

3737
jobs:
3838
coverage-windows:
39-
if: github.event.pull_request.draft == false
39+
if: github.event.pull_request.draft == false && false
4040
runs-on: windows-2019
4141
steps:
4242
- uses: actions/checkout@v3

.github/workflows/doc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121

2222
jobs:
2323
build-docs:
24-
if: github.event.pull_request.draft == false
24+
if: github.event.pull_request.draft == false && false
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v3

.github/workflows/test-asan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ permissions:
3838

3939
jobs:
4040
test-asan:
41-
if: github.event.pull_request.draft == false
41+
if: github.event.pull_request.draft == false && false
4242
runs-on: ubuntu-20.04
4343
env:
4444
CC: clang

.github/workflows/test-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ permissions:
3131

3232
jobs:
3333
test-linux:
34-
if: github.event.pull_request.draft == false
34+
if: github.event.pull_request.draft == false && false
3535
runs-on: ubuntu-latest
3636
steps:
3737
- uses: actions/checkout@v3

.github/workflows/test-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ permissions:
3737

3838
jobs:
3939
test-macOS:
40-
if: github.event.pull_request.draft == false
40+
if: github.event.pull_request.draft == false && false
4141
runs-on: macos-latest
4242
steps:
4343
- uses: actions/checkout@v3

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -800,17 +800,16 @@ external libraries that are available under a variety of licenses. See
800800
[LICENSE](https://github.com/nodejs/node/blob/HEAD/LICENSE) for the full
801801
license text.
802802

803+
## Noslate-Anode
804+
805+
Noslate-Anode is developed by Alibaba and based on the Node.js project.
806+
All changes licensed under the MIT License.
807+
See the NOTICE file for more information.
808+
803809
[Code of Conduct]: https://github.com/nodejs/admin/blob/HEAD/CODE_OF_CONDUCT.md
804810
[Contributing to the project]: CONTRIBUTING.md
805811
[Node.js website]: https://nodejs.org/
806812
[OpenJS Foundation]: https://openjsf.org/
807813
[Strategic initiatives]: doc/contributing/strategic-initiatives.md
808814
[Technical values and prioritization]: doc/contributing/technical-values.md
809815
[Working Groups]: https://github.com/nodejs/TSC/blob/HEAD/WORKING_GROUPS.md
810-
811-
812-
## Noslate-Node
813-
814-
Noslate-Node is developed by Alibaba and based on the Node.js project.
815-
All changes licensed under the MIT License.
816-
See the NOTICE file for more information.

deps/metacache/city.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@ static uint32 UNALIGNED_LOAD32(const char *p) {
7373

7474
#endif // __BIG_ENDIAN__
7575

76-
#if !defined(LIKELY)
7776
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
78-
#define LIKELY(x) (__builtin_expect(!!(x), 1))
77+
#define MY_LIKELY(x) (__builtin_expect(!!(x), 1))
7978
#else
80-
#define LIKELY(x) (x)
81-
#endif
79+
#define MY_LIKELY(x) (x)
8280
#endif
8381

8482
static uint64 Fetch64(const char *p) {
@@ -313,7 +311,7 @@ uint128 CityHash128WithSeed(const char *s, size_t len, uint128 seed) {
313311
std::swap(z, x);
314312
s += 64;
315313
len -= 128;
316-
} while (LIKELY(len >= 128));
314+
} while (MY_LIKELY(len >= 128));
317315
x += Rotate(v.first + z, 49) * k0;
318316
z += Rotate(w.first, 37) * k0;
319317
// If 0 < len < 128, hash up to 4 chunks of 32 bytes each from the end of s.
@@ -432,7 +430,7 @@ static void CityHashCrc256Short(const char *s, size_t len, uint64 *result) {
432430
}
433431

434432
void CityHashCrc256(const char *s, size_t len, uint64 *result) {
435-
if (LIKELY(len >= 240)) {
433+
if (MY_LIKELY(len >= 240)) {
436434
CityHashCrc256Long(s, len, 0, result);
437435
} else {
438436
CityHashCrc256Short(s, len, result);
@@ -463,3 +461,5 @@ uint128 CityHashCrc128(const char *s, size_t len) {
463461
}
464462

465463
#endif
464+
465+
undef MY_LIKELY

0 commit comments

Comments
 (0)