Skip to content

Commit 739d071

Browse files
committed
Reformat native code
1 parent 9a906cf commit 739d071

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

sqlite3/assets/wasm/getentropy.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#include <stdlib.h>
2+
23
#include "bridge.h"
34

4-
// sqlite3mc calls getentropy on initialization. That call pulls a bunch of WASI imports in when
5-
// using the default WASI libc, which we're trying to avoid here.
6-
// Instead, we use a local implementation backed by `Random.secure()` in Dart.
5+
// sqlite3mc calls getentropy on initialization. That call pulls a bunch of WASI
6+
// imports in when using the default WASI libc, which we're trying to avoid
7+
// here. Instead, we use a local implementation backed by `Random.secure()` in
8+
// Dart.
79
int getentropy(void* buf, size_t n) {
8-
return xRandomness(-1, (int) n, (char*) buf);
10+
return xRandomness(-1, (int)n, (char*)buf);
911
}

sqlite3/tool/format_native.dart

Lines changed: 0 additions & 11 deletions
This file was deleted.

sqlite3/tool/format_native.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
clang-format --style=google -i assets/sqlite3.h assets/wasm/*.{c,h} test/**/*.c

0 commit comments

Comments
 (0)