We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efba183 commit fbeafe0Copy full SHA for fbeafe0
pkgs/ffigen/test/header_parser_tests/globals.h
@@ -2,24 +2,22 @@
2
// for details. All rights reserved. Use of this source code is governed by a
3
// BSD-style license that can be found in the LICENSE file.
4
5
-#include <stdint.h>
6
#include <stdbool.h>
+#include <stdint.h>
7
8
bool coolGlobal;
9
int32_t myInt;
10
int32_t *aGlobalPointer0;
11
-int32_t *const aGlobalPointer1;
+int32_t *const aGlobalPointer1 = nullptr;
12
const int32_t *aGlobalPointer2;
13
-const int32_t *const aGlobalPointer3;
+const int32_t *const aGlobalPointer3 = nullptr;
14
long double longDouble;
15
long double *pointerToLongDouble;
16
17
// This should be ignored
18
int GlobalIgnore;
19
20
-struct EmptyStruct
21
-{
22
-};
+struct EmptyStruct {};
23
24
struct EmptyStruct globalStruct;
25
0 commit comments