Commit 746595e
committed
Update cxx_impl and unity build for the regenerated C API
Picks up the C API where each type's C++ <-> C converters live in the
*_c.h that declares it, and refreshes the unity translation unit that the
macOS/iOS SwiftPM plugin builds: the generated capi sources are re-sorted
and the newly generated ones (dialog, geometry, placement) are included.
codegen.py stops emitting shortcut_manager_macos.mm in the platform list,
since cnativeapi.mm already includes it in its preamble to shadow Carbon's
global Point before anything introduces `using namespace nativeapi;`.
The Dart bindings are unchanged: the converters sit behind
#ifdef __cplusplus, so ffigen sees exactly the same C ABI as before.1 parent 1c9a1c6 commit 746595e
6 files changed
Lines changed: 40 additions & 12 deletions
File tree
- packages/cnativeapi
- ios/cnativeapi
- Sources/cnativeapi
- macos/cnativeapi
- Sources/cnativeapi
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
| |||
- src/capi/application_c.cpp+4-4
- src/capi/application_c.h+3-3
- src/capi/color_c.cpp+13-33
- src/capi/color_c.h+29
- src/capi/dialog_c.cpp-28
- src/capi/dialog_c.h+37
- src/capi/display_c.cpp+6-84
- src/capi/display_c.h+44-3
- src/capi/display_manager_c.cpp+3-19
- src/capi/geometry_c.cpp-48
- src/capi/geometry_c.h+61
- src/capi/image_c.cpp+1-17
- src/capi/keyboard_c.cpp+4-70
- src/capi/keyboard_c.h+80-3
- src/capi/keyboard_monitor_c.cpp+2-2
- src/capi/menu_c.cpp+13-201
- src/capi/menu_c.h+76-3
- src/capi/message_dialog_c.cpp+2-30
- src/capi/placement_c.cpp-64
- src/capi/placement_c.h+73
- src/capi/positioning_strategy_c.cpp+8-68
- src/capi/positioning_strategy_c.h+37
- src/capi/shortcut_c.cpp+4-51
- src/capi/shortcut_c.h+61-3
- src/capi/shortcut_manager_c.cpp+4-51
- src/capi/tray_icon_c.cpp+7-57
- src/capi/tray_icon_c.h+44-3
- src/capi/url_opener_c.cpp+1-57
- src/capi/url_opener_c.h+67
- src/capi/window_c.cpp+24-142
- src/capi/window_c.h+68-3
- src/capi/window_manager_c.cpp+2-2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | | - | |
12 | 16 | | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
| 20 | + | |
15 | 21 | | |
16 | | - | |
17 | 22 | | |
18 | 23 | | |
| 24 | + | |
19 | 25 | | |
20 | 26 | | |
| 27 | + | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
| |||
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
33 | | - | |
34 | 40 | | |
35 | | - | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
39 | 45 | | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | | - | |
16 | 20 | | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
| 24 | + | |
19 | 25 | | |
20 | | - | |
21 | 26 | | |
22 | 27 | | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
37 | | - | |
38 | 44 | | |
39 | | - | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
0 commit comments