From 52fc9eec433e2da7db47343a5f75c1b042ad0e9a Mon Sep 17 00:00:00 2001 From: Stu Black Date: Mon, 15 Dec 2025 13:52:37 -0500 Subject: [PATCH] Clean up bindgen invocation for WINGs somewhat. This is still a mess, but it's not all in one big line now. Going forward, commits that need new bindgen functions and types should put them on their own lines. That will make it easier to figure out which commit introduced the use of a given symbol. --- WINGs/wings-rs/Makefile.am | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/WINGs/wings-rs/Makefile.am b/WINGs/wings-rs/Makefile.am index aa9e1b23..156a967f 100644 --- a/WINGs/wings-rs/Makefile.am +++ b/WINGs/wings-rs/Makefile.am @@ -18,6 +18,36 @@ src/WINGsP.rs: ../WINGs/WINGsP.h ../../wrlib/wraster.h ../WINGs/WINGs.h ../WINGs --allowlist-type "^W_.+|^WM(View|Array|DragOperationType|Point|Data|OpenPanel|SavePanel|HashTable|DraggingInfo|SelectionProcs|Rect|EventProc|Widget|Size|Color|Pixmap|FilePanel)|R(Context|ContextAttributes|Image|RenderingMode|ScalingFilter|StdColormapMode|ImageFormat|Color)|_WINGsConfiguration" \ --allowlist-type "^WM(FontPanel|Screen|Button)" \ --allowlist-function "^WMCreateScreen|^WM(Get|Show)FontPanel|^WMCreateCommandButton|^WM(Initialize|Release)Application|^WMScreenMainLoop|^WMHandleEvent" \ + --allowlist-function "^WMWidgetScreen|^WM(Initialize|Release)Application|^WM(ScreenMainLoop|HandleEvent)|^WM(((Get|Set)TextFieldFont)|GetTextFieldText|SetTextFieldText|SelectTextFieldRange)" \ + --allowlist-type "WMList" \ + --allowlist-function "^WM(CreateList|SetListAction|GetListSelectedItem|InsertListItem|ClearList|FindRowOfListItemWithTitle|SelectListItem|SetListPosition|SortListItems)" \ + --allowlist-type "^WM(Window|Action)" \ + --allowlist-function "^WM(CreateWindow|SetWindowTitle|SetWindowMinSize|SetWindowCloseAction)" \ + --allowlist-type "^WMWidget" \ + --allowlist-function "^WM(Map|Destroy|Unmap|Resize|Realize|Move)Widget" \ + --allowlist-function "^WMWidget(Width|Height)" \ + --allowlist-function "^WM(SetWidgetBackgroundColor|SetWidgetBackgroundColor|MapSubwidgets)" \ + --allowlist-type "^WM(SplitView|SplitViewConstrainProc)" \ + --allowlist-function "^WM(SetViewNotifySizeChanges|CreateSplitView|SetSplitViewConstrainProc|GetSplitViewDividerThickness|AddSplitViewSubview)" \ + --allowlist-type "^WMNotification" \ + --allowlist-function "^WM(Add|Remove)NotificationObserver|^WMGetNotification(Object|Name)" \ + --allowlist-item "^WMNotificationObserverAction" \ + --allowlist-item "^WMViewSizeDidChangeNotification" \ + --allowlist-type "^WMFrame" \ + --allowlist-function "^WM(CreateFrame|SetFrameRelief)" \ + --allowlist-function "^WM(White|DarkGray|Release)Color" \ + --allowlist-type "^WMTextField" \ + --allowlist-function "^WM(CreateTextField)" \ + --allowlist-type "^WMLabel" \ + --allowlist-function "^WM(CreateLabel|SetLabelText|SetLabelFont|SetLabelTextColor|SetLabelRelief|SetLabelTextAlignment)" \ + --allowlist-type "^WM(Button|ButtonBehaviorMask)" \ + --allowlist-function "^WM(CreateCustomButton|SetButtonText|SetButtonAction|SetButtonText)" \ + --allowlist-function "wmkrange" \ + --allowlist-type "^WM(View|Array|DragOperationType|Point|Data|OpenPanel|SavePanel|HashTable|DraggingInfo|SelectionProcs|Rect|EventProc|Widget|Size|Color|Pixmap|FilePanel|Screen|Range|List|ListItem)" \ + --allowlist-type "^R(Context|ContextAttributes|Image|RenderingMode|ScalingFilter|StdColormapMode|ImageFormat|Color)" \ + --allowlist-type "_WINGsConfiguration" \ + --allowlist-item "^WMAlignment" \ + --allowlist-item "^WMReliefType" \ -o src/WINGsP.rs -- \ @PANGO_CFLAGS@ \ -I../../wrlib \