File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change
1
+ # Defines the Chromium style for automatic reformatting.
2
+ # http://clang.llvm.org/docs/ClangFormatStyleOptions.html
3
+ BasedOnStyle : Chromium
4
+
5
+ # clang-format doesn't seem to do a good job of this for longer comments.
6
+ ReflowComments : ' false'
7
+
8
+ # We have lots of these. Though we need to put them all in curly braces,
9
+ # clang-format can't do that.
10
+ AllowShortIfStatementsOnASingleLine : ' true'
11
+
12
+ # Put escaped newlines into the rightmost column.
13
+ AlignEscapedNewlinesLeft : false
Original file line number Diff line number Diff line change 20
20
#include <stddef.h>
21
21
22
22
// BoringSSL headers
23
- #include <openssl/crypto.h>
24
23
#include <openssl/aead.h>
25
24
#include <openssl/bn.h>
26
25
#include <openssl/bytestring.h>
27
26
#include <openssl/cipher.h>
27
+ #include <openssl/crypto.h>
28
28
#include <openssl/digest.h>
29
29
#include <openssl/ec.h>
30
30
#include <openssl/ec_key.h>
40
40
41
41
// Symbol lookup table defined in `symbols.generated.h`, with indexes matching
42
42
// the enum values in `lib/src/boringssl/lookup/symbols.generated.dart`.
43
- extern void * _webcrypto_symbol_table [];
43
+ extern void * _webcrypto_symbol_table [];
44
44
45
- #endif // WEBCRYPTO_SYMBOLS_H
45
+ #endif // WEBCRYPTO_SYMBOLS_H
Original file line number Diff line number Diff line change 16
16
17
17
#include <stdint.h>
18
18
19
+ #include "include/dart_api_dl.h"
19
20
#include "symbols.h"
20
21
21
22
// Macro for annotating all functions to be exported
22
- #define WEBCRYPTO_EXPORT \
23
- __attribute__((visibility("default"))) \
24
- __attribute__((used))
23
+ #define WEBCRYPTO_EXPORT \
24
+ __attribute__((visibility("default"))) __attribute__((used))
25
25
26
26
// Function to lookup BoringSSL symbols based on index in the Sym enum.
27
27
// See src/symbols.yaml for details.
28
- WEBCRYPTO_EXPORT void * webcrypto_lookup_symbol (int32_t index )
29
- {
28
+ WEBCRYPTO_EXPORT void * webcrypto_lookup_symbol (int32_t index ) {
30
29
return _webcrypto_symbol_table [index ];
31
30
}
You can’t perform that action at this time.
0 commit comments