Revert "chore(deps): pin puregotk nil-signal fix"
This reverts commit a161e348e2093172038390b0906448f0ae979a0d.
- commit
- 40378d5e4fd2372d054e49168ab2a6f67aedd0fd
- author
- brice · · 2026-07-14 17:59 UTC
- parent
- 8d647bb
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
905 files · +25263 -27842
M go.mod +1 -1
| @@ -11,7 +11,7 @@ require ( | |||
| 11 | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | |
| 12 | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | |
| 13 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | |
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | |
| 14 | + | github.com/bnema/puregotk v0.7.0 | |
| 15 | 15 | github.com/charmbracelet/bubbles v1.0.0 | |
| 16 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | |
| 17 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | |
| @@ -11,7 +11,7 @@ require ( | |||||
| 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | 11 | github.com/bnema/purego-pipewire v0.1.5-0.20260714124450-6504b9cdf02a | ||
| 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | 12 | github.com/bnema/purego-sqlite v0.1.4-0.20260714131321-3614fe683b9c | ||
| 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | 13 | github.com/bnema/purego-webp v0.2.1-0.20260714152238-7bc9c402fdf6 | ||
| 14 | - | github.com/bnema/puregotk v0.7.1-0.20260714170452-0b6b9b901234 | 14 | + | github.com/bnema/puregotk v0.7.0 |
| 15 | github.com/charmbracelet/bubbles v1.0.0 | 15 | github.com/charmbracelet/bubbles v1.0.0 | ||
| 16 | github.com/charmbracelet/bubbletea v1.3.10 | 16 | github.com/charmbracelet/bubbletea v1.3.10 | ||
| 17 | github.com/charmbracelet/lipgloss v1.1.0 | 17 | github.com/charmbracelet/lipgloss v1.1.0 | ||
M go.sum +0 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/internal/core/core.go +4 -197 generated file: collapsed
M vendor/github.com/bnema/puregotk/pkg/core/core.go +0 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-dialog.go +64 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-about-window.go +62 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-accent-color.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-action-row.go +29 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-alert-dialog.go +47 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-target.go +27 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation-util.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-animation.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-application.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-avatar.go +25 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-banner.go +26 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bin.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-bottom-sheet.go +38 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint-bin.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-breakpoint.go +37 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-content.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-button-row.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-dots.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel-indicator-lines.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-carousel.go +37 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-layout.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp-scrollable.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-clamp.go +22 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-combo-row.go +33 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-dialog.go +38 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-easing.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-entry-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-enum-list-model.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-expander-row.go +33 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-flap.go +48 -61 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-fold-threshold-policy.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-header-bar.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-inline-view-switcher.go +24 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout-slot.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-layout.go +17 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-leaflet.go +56 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-length-unit.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-main.go +15 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-message-dialog.go +44 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-multi-layout-view.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-direction.go +1 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-split-view.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-navigation-view.go +49 -60 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-overlay-split-view.go +38 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-password-entry-row.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-dialog.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-group.go +26 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-page.go +33 -38 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-row.go +22 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-preferences-window.go +29 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcut-label.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-dialog.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-item.go +25 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-shortcuts-section.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-item.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar-section.go +27 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-sidebar.go +39 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spin-row.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner-paintable.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spinner.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-split-button.go +34 -39 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-animation.go +30 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-spring-params.go +21 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-squeezer.go +44 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-status-page.go +24 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-style-manager.go +28 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipe-tracker.go +30 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-swipeable.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-switch-row.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-bar.go +32 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-button.go +16 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-overview.go +37 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-tab-view.go +87 -123 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-timed-animation.go +28 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast-overlay.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toast.go +36 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toggle-group.go +51 -64 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-toolbar-view.go +35 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-version.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-stack.go +62 -78 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-bar.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-sidebar.go +22 -15 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher-title.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-view-switcher.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window-title.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-window.go +22 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-box.go +46 -66 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/adw/adw-wrap-layout.go +46 -57 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/cairo/main.go +79 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkapplaunchcontext.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairo.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcairocontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcicpparams.go +25 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkclipboard.go +32 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcolorstate.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentdeserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentformats.go +31 -28 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentprovider.go +28 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcontentserializer.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkcursor.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevice.go +33 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicepad.go +22 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdevicetool.go +18 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplay.go +43 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdisplaymanager.go +20 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexture.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdmabuftexturebuilder.go +41 -53 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrag.go +28 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurface.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdragsurfacesize.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrawcontext.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkdrop.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkenums.go +1 -21 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkevents.go +118 -120 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframeclock.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkframetimings.go +20 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkglcontext.go +36 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexture.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkgltexturebuilder.go +35 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkkeys.go +22 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexture.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmemorytexturebuilder.go +35 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkmonitor.go +27 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpaintable.go +33 -63 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpango.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpixbuf.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopup.go +26 -47 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkpopuplayout.go +32 -36 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkrgba.go +21 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkseat.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksnapshot.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdksurface.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktexture.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevel.go +66 -157 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevellayout.go +25 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktoplevelsize.go +16 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdktypes.go +72 -95 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdk/gdkvulkancontext.go +13 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-animation.go +32 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-core.go +0 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-io.go +23 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-loader.go +22 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-simple-anim.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf-transform.go +1 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/gdk-pixbuf.go +79 -102 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gdkpixbuf/main.go +17 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gaction.go +31 -59 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactiongroup.go +39 -96 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gactionmap.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gappinfo.go +116 -244 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplication.go +55 -79 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gapplicationcommandline.go +27 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncinitable.go +22 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gasyncresult.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedinputstream.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbufferedoutputstream.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gbytesicon.go +15 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcancellable.go +27 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcharsetconverter.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcontenttype.go +26 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverter.go +20 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverterinputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gconverteroutputstream.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gcredentials.go +21 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatagrambased.go +30 -45 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdatainputstream.go +35 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdataoutputstream.go +23 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusactiongroup.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusaddress.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusauthobserver.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusconnection.go +66 -77 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbuserror.go +18 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterface.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusinterfaceskeleton.go +24 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusintrospection.go +56 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmenumodel.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmessage.go +64 -88 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusmethodinvocation.go +30 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnameowning.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusnamewatching.go +15 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobject.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanager.go +19 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerclient.go +23 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectmanagerserver.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectproxy.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusobjectskeleton.go +18 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusproxy.go +38 -42 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusserver.go +20 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdbusutils.go +22 -24 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontroller.go +16 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdebugcontrollerdbus.go +14 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdrive.go +82 -214 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsclientconnection.go +24 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsconnection.go +80 -207 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gdtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblem.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gemblemedicon.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfile.go +450 -1148 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileattribute.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileenumerator.go +35 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileicon.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinfo.go +84 -138 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileinputstream.go +23 -17 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileiostream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilemonitor.go +15 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilenamecompleter.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfileoutputstream.go +27 -23 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilterinputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gfilteroutputstream.go +14 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gicon.go +25 -32 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddress.go +34 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetaddressmask.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginetsocketaddress.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginitable.go +18 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/ginputstream.go +48 -52 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioenums.go +1 -90 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioerror.go +13 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giomodule.go +29 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gioscheduler.go +12 -4 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giostream.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giotypes.go +60 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/giptosmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gipv6tclassmessage.go +16 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/glistmodel.go +21 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gliststore.go +24 -22 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gloadableicon.go +23 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryinputstream.go +17 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemorymonitor.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmemoryoutputstream.go +19 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenu.go +50 -62 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmenumodel.go +33 -31 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmount.go +86 -215 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gmountoperation.go +32 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativesocketaddress.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnativevolumemonitor.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkaddress.go +21 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworking.go +14 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkmonitor.go +31 -49 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnetworkservice.go +19 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gnotification.go +26 -26 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/goutputstream.go +72 -86 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpermission.go +33 -33 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableinputstream.go +22 -30 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableoutputstream.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpollableutils.go +15 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpowerprofilemonitor.go +16 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gpropertyaction.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxy.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddress.go +21 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyaddressenumerator.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gproxyresolver.go +27 -35 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gremoteactiongroup.go +15 -12 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresolver.go +67 -75 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gresource.go +23 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gseekable.go +27 -41 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettings.go +67 -99 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsbackend.go +24 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsettingsschema.go +43 -48 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleaction.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleactiongroup.go +18 -9 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleasyncresult.go +40 -46 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleiostream.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimplepermission.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsimpleproxyresolver.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocket.go +72 -87 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddress.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketaddressenumerator.go +20 -13 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketclient.go +44 -54 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnectable.go +17 -19 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketconnection.go +21 -14 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketcontrolmessage.go +17 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketlistener.go +25 -18 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsocketservice.go +16 -8 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsrvtarget.go +11 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocess.go +39 -40 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gsubprocesslauncher.go +31 -34 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtask.go +52 -70 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpconnection.go +14 -5 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtcpwrapperconnection.go +15 -3 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtestdbus.go +22 -16 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthemedicon.go +19 -10 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedresolver.go +0 -7 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gthreadedsocketservice.go +12 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsbackend.go +33 -69 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlscertificate.go +29 -25 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsclientconnection.go +29 -55 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsconnection.go +46 -56 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsdatabase.go +48 -51 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsfiledatabase.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsinteraction.go +31 -27 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlspassword.go +22 -20 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gtlsserverconnection.go +13 -2 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixconnection.go +20 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixcredentialsmessage.go +17 -6 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixfdlist.go +19 -11 generated file: collapsed
M vendor/github.com/bnema/puregotk/v4/gio/gunixsocketaddress.go +22 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvfs.go +24 -18 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolume.go +58 -143 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gvolumemonitor.go +19 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibcompressor.go +18 -9 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/gzlibdecompressor.go +15 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/gio/main.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gallocator.go +28 -32 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/garray.go +59 -82 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gasyncqueue.go +39 -56 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gatomic.go +34 -43 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbacktrace.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbase64.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbitlock.go +24 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gbookmarkfile.go +61 -69 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcache.go +15 -10 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcharset.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gchecksum.go +25 -23 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gcompletion.go +17 -14 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gconvert.go +28 -25 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdataset.go +28 -36 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdate.go +65 -103 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdatetime.go +66 -107 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gdir.go +19 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/genviron.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gerror.go +29 -30 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gfileutils.go +38 -45 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ggettext.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghash.go +53 -81 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghmac.go +24 -21 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghook.go +26 -28 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/ghostutils.go +18 -11 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/giochannel.go +67 -83 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gkeyfile.go +62 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glib-types.go +12 -4 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/glist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmain.go +117 -181 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmappedfile.go +21 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmarkup.go +43 -51 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmem.go +31 -44 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gmessages.go +45 -70 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gnode.go +35 -50 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/goption.go +43 -57 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpathbuf.go +24 -26 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpattern.go +23 -19 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gpoll.go +13 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprimes.go +14 -3 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gprintf.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqsort.go +15 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gquark.go +19 -13 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gqueue.go +52 -84 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grand.go +30 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grcbox.go +27 -29 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefcount.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grefstring.go +20 -15 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gregex.go +57 -72 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/grel.go +21 -20 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gscanner.go +30 -40 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gsequence.go +49 -74 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gshell.go +16 -5 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslice.go +21 -17 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gslist.go +11 -2 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gspawn.go +23 -12 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstdio.go +27 -33 collapsed to keep the page light
M vendor/github.com/bnema/puregotk/v4/glib/gstrfuncs.go +71 -115
| @@ -1,7 +1,10 @@ | |||
| 1 | 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | |
| 2 | 2 | package glib | |
| 3 | 3 | ||
| 4 | - | import "github.com/bnema/puregotk/pkg/core" | |
| 4 | + | import ( | |
| 5 | + | "github.com/bnema/purego" | |
| 6 | + | "github.com/bnema/puregotk/pkg/core" | |
| 7 | + | ) | |
| 5 | 8 | ||
| 6 | 9 | // A typedef alias for gchar**. This is mostly useful when used together with | |
| 7 | 10 | // `g_auto()`. | |
| @@ -69,8 +72,6 @@ var xAsciiDigitValue func(byte) int | |||
| 69 | 72 | // Differs from [func@GLib.unichar_digit_value] because it takes a char, so | |
| 70 | 73 | // there's no worry about sign extension if characters are signed. | |
| 71 | 74 | func AsciiDigitValue(CVar byte) int { | |
| 72 | - | core.LazyRegister(&xAsciiDigitValue, "GLIB", "g_ascii_digit_value", false) | |
| 73 | - | ||
| 74 | 75 | cret := xAsciiDigitValue(CVar) | |
| 75 | 76 | return cret | |
| 76 | 77 | } | |
| @@ -87,8 +88,6 @@ var xAsciiDtostr func(string, int, float64) string | |||
| 87 | 88 | // be larger than [const@GLib.ASCII_DTOSTR_BUF_SIZE] bytes, including the terminating | |
| 88 | 89 | // nul character, which is always added. | |
| 89 | 90 | func AsciiDtostr(BufferVar string, BufLenVar int, DVar float64) string { | |
| 90 | - | core.LazyRegister(&xAsciiDtostr, "GLIB", "g_ascii_dtostr", false) | |
| 91 | - | ||
| 92 | 91 | cret := xAsciiDtostr(BufferVar, BufLenVar, DVar) | |
| 93 | 92 | return cret | |
| 94 | 93 | } | |
| @@ -108,8 +107,6 @@ var xAsciiFormatd func(string, int, string, float64) string | |||
| 108 | 107 | // If you just want to want to serialize the value into a | |
| 109 | 108 | // string, use [func@GLib.ascii_dtostr]. | |
| 110 | 109 | func AsciiFormatd(BufferVar string, BufLenVar int, FormatVar string, DVar float64) string { | |
| 111 | - | core.LazyRegister(&xAsciiFormatd, "GLIB", "g_ascii_formatd", false) | |
| 112 | - | ||
| 113 | 110 | cret := xAsciiFormatd(BufferVar, BufLenVar, FormatVar, DVar) | |
| 114 | 111 | return cret | |
| 115 | 112 | } | |
| @@ -132,8 +129,6 @@ var xAsciiStrcasecmp func(string, string) int | |||
| 132 | 129 | // | |
| 133 | 130 | // Both @s1 and @s2 must be non-`NULL`. | |
| 134 | 131 | func AsciiStrcasecmp(S1Var string, S2Var string) int { | |
| 135 | - | core.LazyRegister(&xAsciiStrcasecmp, "GLIB", "g_ascii_strcasecmp", false) | |
| 136 | - | ||
| 137 | 132 | cret := xAsciiStrcasecmp(S1Var, S2Var) | |
| 138 | 133 | return cret | |
| 139 | 134 | } | |
| @@ -143,8 +138,6 @@ var xAsciiStrdown func(string, int) string | |||
| 143 | 138 | // Converts all upper case ASCII letters to lower case ASCII letters, with | |
| 144 | 139 | // semantics that exactly match [func@GLib.ascii_tolower]. | |
| 145 | 140 | func AsciiStrdown(StrVar string, LenVar int) string { | |
| 146 | - | core.LazyRegister(&xAsciiStrdown, "GLIB", "g_ascii_strdown", false) | |
| 147 | - | ||
| 148 | 141 | cret := xAsciiStrdown(StrVar, LenVar) | |
| 149 | 142 | return cret | |
| 150 | 143 | } | |
| @@ -173,7 +166,6 @@ var xAsciiStringToSigned func(string, uint, int64, int64, *int64, **Error) bool | |||
| 173 | 166 | // parsing a string which starts with a number, but then has other | |
| 174 | 167 | // characters. | |
| 175 | 168 | func AsciiStringToSigned(StrVar string, BaseVar uint, MinVar int64, MaxVar int64, OutNumVar *int64) (bool, error) { | |
| 176 | - | core.LazyRegister(&xAsciiStringToSigned, "GLIB", "g_ascii_string_to_signed", false) | |
| 177 | 169 | var cerr *Error | |
| 178 | 170 | ||
| 179 | 171 | cret := xAsciiStringToSigned(StrVar, BaseVar, MinVar, MaxVar, OutNumVar, &cerr) | |
| @@ -208,7 +200,6 @@ var xAsciiStringToUnsigned func(string, uint, uint64, uint64, *uint64, **Error) | |||
| 208 | 200 | // parsing a string which starts with a number, but then has other | |
| 209 | 201 | // characters. | |
| 210 | 202 | func AsciiStringToUnsigned(StrVar string, BaseVar uint, MinVar uint64, MaxVar uint64, OutNumVar *uint64) (bool, error) { | |
| 211 | - | core.LazyRegister(&xAsciiStringToUnsigned, "GLIB", "g_ascii_string_to_unsigned", false) | |
| 212 | 203 | var cerr *Error | |
| 213 | 204 | ||
| 214 | 205 | cret := xAsciiStringToUnsigned(StrVar, BaseVar, MinVar, MaxVar, OutNumVar, &cerr) | |
| @@ -233,8 +224,6 @@ var xAsciiStrncasecmp func(string, string, uint) int | |||
| 233 | 224 | // function only on strings known to be in encodings where bytes | |
| 234 | 225 | // corresponding to ASCII letters always represent themselves. | |
| 235 | 226 | func AsciiStrncasecmp(S1Var string, S2Var string, NVar uint) int { | |
| 236 | - | core.LazyRegister(&xAsciiStrncasecmp, "GLIB", "g_ascii_strncasecmp", false) | |
| 237 | - | ||
| 238 | 227 | cret := xAsciiStrncasecmp(S1Var, S2Var, NVar) | |
| 239 | 228 | return cret | |
| 240 | 229 | } | |
| @@ -265,8 +254,6 @@ var xAsciiStrtod func(string, *string) float64 | |||
| 265 | 254 | // This function resets `errno` before calling `strtod()` so that | |
| 266 | 255 | // you can reliably detect overflow and underflow. | |
| 267 | 256 | func AsciiStrtod(NptrVar string, EndptrVar *string) float64 { | |
| 268 | - | core.LazyRegister(&xAsciiStrtod, "GLIB", "g_ascii_strtod", false) | |
| 269 | - | ||
| 270 | 257 | cret := xAsciiStrtod(NptrVar, EndptrVar) | |
| 271 | 258 | return cret | |
| 272 | 259 | } | |
| @@ -292,8 +279,6 @@ var xAsciiStrtoll func(string, *string, uint) int64 | |||
| 292 | 279 | // string conversion fails, zero is returned, and @endptr returns @nptr | |
| 293 | 280 | // (if @endptr is non-`NULL`). | |
| 294 | 281 | func AsciiStrtoll(NptrVar string, EndptrVar *string, BaseVar uint) int64 { | |
| 295 | - | core.LazyRegister(&xAsciiStrtoll, "GLIB", "g_ascii_strtoll", false) | |
| 296 | - | ||
| 297 | 282 | cret := xAsciiStrtoll(NptrVar, EndptrVar, BaseVar) | |
| 298 | 283 | return cret | |
| 299 | 284 | } | |
| @@ -324,8 +309,6 @@ var xAsciiStrtoull func(string, *string, uint) uint64 | |||
| 324 | 309 | // If the string conversion fails, zero is returned, and @endptr returns | |
| 325 | 310 | // @nptr (if @endptr is non-`NULL`). | |
| 326 | 311 | func AsciiStrtoull(NptrVar string, EndptrVar *string, BaseVar uint) uint64 { | |
| 327 | - | core.LazyRegister(&xAsciiStrtoull, "GLIB", "g_ascii_strtoull", false) | |
| 328 | - | ||
| 329 | 312 | cret := xAsciiStrtoull(NptrVar, EndptrVar, BaseVar) | |
| 330 | 313 | return cret | |
| 331 | 314 | } | |
| @@ -335,8 +318,6 @@ var xAsciiStrup func(string, int) string | |||
| 335 | 318 | // Converts all lower case ASCII letters to upper case ASCII letters, with | |
| 336 | 319 | // semantics that exactly match [func@GLib.ascii_toupper]. | |
| 337 | 320 | func AsciiStrup(StrVar string, LenVar int) string { | |
| 338 | - | core.LazyRegister(&xAsciiStrup, "GLIB", "g_ascii_strup", false) | |
| 339 | - | ||
| 340 | 321 | cret := xAsciiStrup(StrVar, LenVar) | |
| 341 | 322 | return cret | |
| 342 | 323 | } | |
| @@ -354,8 +335,6 @@ var xAsciiTolower func(byte) byte | |||
| 354 | 335 | // don't call it on `EOF` but no need to worry about casting to `guchar` | |
| 355 | 336 | // before passing a possibly non-ASCII character in. | |
| 356 | 337 | func AsciiTolower(CVar byte) byte { | |
| 357 | - | core.LazyRegister(&xAsciiTolower, "GLIB", "g_ascii_tolower", false) | |
| 358 | - | ||
| 359 | 338 | cret := xAsciiTolower(CVar) | |
| 360 | 339 | return cret | |
| 361 | 340 | } | |
| @@ -373,8 +352,6 @@ var xAsciiToupper func(byte) byte | |||
| 373 | 352 | // don't call it on `EOF` but no need to worry about casting to `guchar` | |
| 374 | 353 | // before passing a possibly non-ASCII character in. | |
| 375 | 354 | func AsciiToupper(CVar byte) byte { | |
| 376 | - | core.LazyRegister(&xAsciiToupper, "GLIB", "g_ascii_toupper", false) | |
| 377 | - | ||
| 378 | 355 | cret := xAsciiToupper(CVar) | |
| 379 | 356 | return cret | |
| 380 | 357 | } | |
| @@ -391,8 +368,6 @@ var xAsciiXdigitValue func(byte) int | |||
| 391 | 368 | // Differs from [func@GLib.unichar_xdigit_value] because it takes a char, so | |
| 392 | 369 | // there's no worry about sign extension if characters are signed. | |
| 393 | 370 | func AsciiXdigitValue(CVar byte) int { | |
| 394 | - | core.LazyRegister(&xAsciiXdigitValue, "GLIB", "g_ascii_xdigit_value", false) | |
| 395 | - | ||
| 396 | 371 | cret := xAsciiXdigitValue(CVar) | |
| 397 | 372 | return cret | |
| 398 | 373 | } | |
| @@ -402,8 +377,6 @@ var xMemdup func(uintptr, uint) uintptr | |||
| 402 | 377 | // Allocates @byte_size bytes of memory, and copies @byte_size bytes into it | |
| 403 | 378 | // from @mem. If @mem is `NULL` it returns `NULL`. | |
| 404 | 379 | func Memdup(MemVar uintptr, ByteSizeVar uint) uintptr { | |
| 405 | - | core.LazyRegister(&xMemdup, "GLIB", "g_memdup", false) | |
| 406 | - | ||
| 407 | 380 | cret := xMemdup(MemVar, ByteSizeVar) | |
| 408 | 381 | return cret | |
| 409 | 382 | } | |
| @@ -416,8 +389,6 @@ var xMemdup2 func(uintptr, uint) uintptr | |||
| 416 | 389 | // This replaces [func@GLib.memdup], which was prone to integer overflows when | |
| 417 | 390 | // converting the argument from a `gsize` to a `guint`. | |
| 418 | 391 | func Memdup2(MemVar uintptr, ByteSizeVar uint) uintptr { | |
| 419 | - | core.LazyRegister(&xMemdup2, "GLIB", "g_memdup2", false) | |
| 420 | - | ||
| 421 | 392 | cret := xMemdup2(MemVar, ByteSizeVar) | |
| 422 | 393 | return cret | |
| 423 | 394 | } | |
| @@ -429,8 +400,6 @@ var xStpcpy func(string, string) string | |||
| 429 | 400 | // in `dest`. The return value is useful for concatenating multiple | |
| 430 | 401 | // strings without having to repeatedly scan for the end. | |
| 431 | 402 | func Stpcpy(DestVar string, SrcVar string) string { | |
| 432 | - | core.LazyRegister(&xStpcpy, "GLIB", "g_stpcpy", false) | |
| 433 | - | ||
| 434 | 403 | cret := xStpcpy(DestVar, SrcVar) | |
| 435 | 404 | return cret | |
| 436 | 405 | } | |
| @@ -439,8 +408,6 @@ var xStrHasPrefix func(string, string) bool | |||
| 439 | 408 | ||
| 440 | 409 | // Looks whether the string @str begins with @prefix. | |
| 441 | 410 | func StrHasPrefix(StrVar string, PrefixVar string) bool { | |
| 442 | - | core.LazyRegister(&xStrHasPrefix, "GLIB", "g_str_has_prefix", false) | |
| 443 | - | ||
| 444 | 411 | cret := xStrHasPrefix(StrVar, PrefixVar) | |
| 445 | 412 | return cret | |
| 446 | 413 | } | |
| @@ -449,8 +416,6 @@ var xStrHasSuffix func(string, string) bool | |||
| 449 | 416 | ||
| 450 | 417 | // Looks whether a string ends with @suffix. | |
| 451 | 418 | func StrHasSuffix(StrVar string, SuffixVar string) bool { | |
| 452 | - | core.LazyRegister(&xStrHasSuffix, "GLIB", "g_str_has_suffix", false) | |
| 453 | - | ||
| 454 | 419 | cret := xStrHasSuffix(StrVar, SuffixVar) | |
| 455 | 420 | return cret | |
| 456 | 421 | } | |
| @@ -460,8 +425,6 @@ var xStrIsAscii func(string) bool | |||
| 460 | 425 | // Determines if a string is pure ASCII. A string is pure ASCII if it | |
| 461 | 426 | // contains no bytes with the high bit set. | |
| 462 | 427 | func StrIsAscii(StrVar string) bool { | |
| 463 | - | core.LazyRegister(&xStrIsAscii, "GLIB", "g_str_is_ascii", false) | |
| 464 | - | ||
| 465 | 428 | cret := xStrIsAscii(StrVar) | |
| 466 | 429 | return cret | |
| 467 | 430 | } | |
| @@ -491,8 +454,6 @@ var xStrMatchString func(string, string, bool) bool | |||
| 491 | 454 | // accent matching). Searching ‘fo’ would match ‘Foo’ and ‘Bar Foo | |
| 492 | 455 | // Baz’, but not ‘SFO’ (because no word has ‘fo’ as a prefix). | |
| 493 | 456 | func StrMatchString(SearchTermVar string, PotentialHitVar string, AcceptAlternatesVar bool) bool { | |
| 494 | - | core.LazyRegister(&xStrMatchString, "GLIB", "g_str_match_string", false) | |
| 495 | - | ||
| 496 | 457 | cret := xStrMatchString(SearchTermVar, PotentialHitVar, AcceptAlternatesVar) | |
| 497 | 458 | return cret | |
| 498 | 459 | } | |
| @@ -518,8 +479,6 @@ var xStrToAscii func(string, uintptr) string | |||
| 518 | 479 | // to be done independently of the currently locale, specify `"C"` for | |
| 519 | 480 | // @from_locale. | |
| 520 | 481 | func StrToAscii(StrVar string, FromLocaleVar *string) string { | |
| 521 | - | core.LazyRegister(&xStrToAscii, "GLIB", "g_str_to_ascii", false) | |
| 522 | - | ||
| 523 | 482 | FromLocaleVarPtr := core.GStrdupNullable(FromLocaleVar) | |
| 524 | 483 | defer core.GFreeNullable(FromLocaleVarPtr) | |
| 525 | 484 | ||
| @@ -545,8 +504,6 @@ var xStrTokenizeAndFold func(string, uintptr, *[]string) []string | |||
| 545 | 504 | // improve the transliteration if the language of the source string is | |
| 546 | 505 | // known. | |
| 547 | 506 | func StrTokenizeAndFold(StringVar string, TranslitLocaleVar *string, AsciiAlternatesVar *[]string) []string { | |
| 548 | - | core.LazyRegister(&xStrTokenizeAndFold, "GLIB", "g_str_tokenize_and_fold", false) | |
| 549 | - | ||
| 550 | 507 | TranslitLocaleVarPtr := core.GStrdupNullable(TranslitLocaleVar) | |
| 551 | 508 | defer core.GFreeNullable(TranslitLocaleVarPtr) | |
| 552 | 509 | ||
| @@ -572,8 +529,6 @@ var xStrcanon func(string, string, byte) string | |||
| 572 | 529 | // g_free (reformatted); | |
| 573 | 530 | // ``` | |
| 574 | 531 | func Strcanon(StringVar string, ValidCharsVar string, SubstitutorVar byte) string { | |
| 575 | - | core.LazyRegister(&xStrcanon, "GLIB", "g_strcanon", false) | |
| 576 | - | ||
| 577 | 532 | cret := xStrcanon(StringVar, ValidCharsVar, SubstitutorVar) | |
| 578 | 533 | return cret | |
| 579 | 534 | } | |
| @@ -583,8 +538,6 @@ var xStrcasecmp func(string, string) int | |||
| 583 | 538 | // A case-insensitive string comparison, corresponding to the standard | |
| 584 | 539 | // `strcasecmp()` function on platforms which support it. | |
| 585 | 540 | func Strcasecmp(S1Var string, S2Var string) int { | |
| 586 | - | core.LazyRegister(&xStrcasecmp, "GLIB", "g_strcasecmp", false) | |
| 587 | - | ||
| 588 | 541 | cret := xStrcasecmp(S1Var, S2Var) | |
| 589 | 542 | return cret | |
| 590 | 543 | } | |
| @@ -601,8 +554,6 @@ var xStrchomp func(string) string | |||
| 601 | 554 | // | |
| 602 | 555 | // Also see [func@GLib.strchug] and [func@GLib.strstrip]. | |
| 603 | 556 | func Strchomp(StringVar string) string { | |
| 604 | - | core.LazyRegister(&xStrchomp, "GLIB", "g_strchomp", false) | |
| 605 | - | ||
| 606 | 557 | cret := xStrchomp(StringVar) | |
| 607 | 558 | return cret | |
| 608 | 559 | } | |
| @@ -620,8 +571,6 @@ var xStrchug func(string) string | |||
| 620 | 571 | // | |
| 621 | 572 | // Also see [func@GLib.strchomp] and [func@GLib.strstrip]. | |
| 622 | 573 | func Strchug(StringVar string) string { | |
| 623 | - | core.LazyRegister(&xStrchug, "GLIB", "g_strchug", false) | |
| 624 | - | ||
| 625 | 574 | cret := xStrchug(StringVar) | |
| 626 | 575 | return cret | |
| 627 | 576 | } | |
| @@ -643,8 +592,6 @@ var xStrcompress func(string) string | |||
| 643 | 592 | // | |
| 644 | 593 | // [func@GLib.strescape] does the reverse conversion. | |
| 645 | 594 | func Strcompress(SourceVar string) string { | |
| 646 | - | core.LazyRegister(&xStrcompress, "GLIB", "g_strcompress", false) | |
| 647 | - | ||
| 648 | 595 | cret := xStrcompress(SourceVar) | |
| 649 | 596 | return cret | |
| 650 | 597 | } | |
| @@ -660,8 +607,6 @@ var xStrconcat func(string, ...interface{}) string | |||
| 660 | 607 | // assemble a translated message from pieces, since proper translation | |
| 661 | 608 | // often requires the pieces to be reordered. | |
| 662 | 609 | func Strconcat(String1Var string, varArgs ...interface{}) string { | |
| 663 | - | core.LazyRegister(&xStrconcat, "GLIB", "g_strconcat", false) | |
| 664 | - | ||
| 665 | 610 | cret := xStrconcat(String1Var, varArgs...) | |
| 666 | 611 | return cret | |
| 667 | 612 | } | |
| @@ -686,8 +631,6 @@ var xStrdelimit func(string, uintptr, byte) string | |||
| 686 | 631 | // g_free (reformatted); | |
| 687 | 632 | // ``` | |
| 688 | 633 | func Strdelimit(StringVar string, DelimitersVar *string, NewDelimiterVar byte) string { | |
| 689 | - | core.LazyRegister(&xStrdelimit, "GLIB", "g_strdelimit", false) | |
| 690 | - | ||
| 691 | 634 | DelimitersVarPtr := core.GStrdupNullable(DelimitersVar) | |
| 692 | 635 | defer core.GFreeNullable(DelimitersVarPtr) | |
| 693 | 636 | ||
| @@ -699,8 +642,6 @@ var xStrdown func(string) string | |||
| 699 | 642 | ||
| 700 | 643 | // Converts a string to lower case. | |
| 701 | 644 | func Strdown(StringVar string) string { | |
| 702 | - | core.LazyRegister(&xStrdown, "GLIB", "g_strdown", false) | |
| 703 | - | ||
| 704 | 645 | cret := xStrdown(StringVar) | |
| 705 | 646 | return cret | |
| 706 | 647 | } | |
| @@ -709,8 +650,6 @@ var xStrdup func(uintptr) string | |||
| 709 | 650 | ||
| 710 | 651 | // Duplicates a string. If @str is `NULL` it returns `NULL`. | |
| 711 | 652 | func Strdup(StrVar *string) string { | |
| 712 | - | core.LazyRegister(&xStrdup, "GLIB", "g_strdup", false) | |
| 713 | - | ||
| 714 | 653 | StrVarPtr := core.GStrdupNullable(StrVar) | |
| 715 | 654 | defer core.GFreeNullable(StrVarPtr) | |
| 716 | 655 | ||
| @@ -728,8 +667,6 @@ var xStrdupPrintf func(string, ...interface{}) string | |||
| 728 | 667 | // contains `%lc` or `%ls` conversions, which can fail if no multibyte | |
| 729 | 668 | // representation is available for the given character. | |
| 730 | 669 | func StrdupPrintf(FormatVar string, varArgs ...interface{}) string { | |
| 731 | - | core.LazyRegister(&xStrdupPrintf, "GLIB", "g_strdup_printf", false) | |
| 732 | - | ||
| 733 | 670 | cret := xStrdupPrintf(FormatVar, varArgs...) | |
| 734 | 671 | return cret | |
| 735 | 672 | } | |
| @@ -747,8 +684,6 @@ var xStrdupVprintf func(string, []interface{}) string | |||
| 747 | 684 | // See also [func@GLib.vasprintf], which offers the same functionality, but | |
| 748 | 685 | // additionally returns the length of the allocated string. | |
| 749 | 686 | func StrdupVprintf(FormatVar string, ArgsVar []interface{}) string { | |
| 750 | - | core.LazyRegister(&xStrdupVprintf, "GLIB", "g_strdup_vprintf", false) | |
| 751 | - | ||
| 752 | 687 | cret := xStrdupVprintf(FormatVar, ArgsVar) | |
| 753 | 688 | return cret | |
| 754 | 689 | } | |
| @@ -760,8 +695,6 @@ var xStrdupv func([]string) []string | |||
| 760 | 695 | // | |
| 761 | 696 | // If called on a `NULL` value, `g_strdupv()` simply returns `NULL`. | |
| 762 | 697 | func Strdupv(StrArrayVar []string) []string { | |
| 763 | - | core.LazyRegister(&xStrdupv, "GLIB", "g_strdupv", false) | |
| 764 | - | ||
| 765 | 698 | cret := xStrdupv(StrArrayVar) | |
| 766 | 699 | return cret | |
| 767 | 700 | } | |
| @@ -790,8 +723,6 @@ var xStrerror func(int) string | |||
| 790 | 723 | // g_strerror (saved_errno); | |
| 791 | 724 | // ``` | |
| 792 | 725 | func Strerror(ErrnumVar int) string { | |
| 793 | - | core.LazyRegister(&xStrerror, "GLIB", "g_strerror", false) | |
| 794 | - | ||
| 795 | 726 | cret := xStrerror(ErrnumVar) | |
| 796 | 727 | return cret | |
| 797 | 728 | } | |
| @@ -818,8 +749,6 @@ var xStrescape func(string, uintptr) string | |||
| 818 | 749 | // | |
| 819 | 750 | // [func@GLib.strcompress] does the reverse conversion. | |
| 820 | 751 | func Strescape(SourceVar string, ExceptionsVar *string) string { | |
| 821 | - | core.LazyRegister(&xStrescape, "GLIB", "g_strescape", false) | |
| 822 | - | ||
| 823 | 752 | ExceptionsVarPtr := core.GStrdupNullable(ExceptionsVar) | |
| 824 | 753 | defer core.GFreeNullable(ExceptionsVarPtr) | |
| 825 | 754 | ||
| @@ -833,8 +762,6 @@ var xStrfreev func([]string) | |||
| 833 | 762 | // | |
| 834 | 763 | // If @str_array is `NULL`, this function simply returns. | |
| 835 | 764 | func Strfreev(StrArrayVar []string) { | |
| 836 | - | core.LazyRegister(&xStrfreev, "GLIB", "g_strfreev", false) | |
| 837 | - | ||
| 838 | 765 | xStrfreev(StrArrayVar) | |
| 839 | 766 | } | |
| 840 | 767 | ||
| @@ -843,8 +770,6 @@ var xStrjoin func(uintptr, ...interface{}) string | |||
| 843 | 770 | // Joins a number of strings together to form one long string, with the | |
| 844 | 771 | // optional @separator inserted between each of them. | |
| 845 | 772 | func Strjoin(SeparatorVar *string, varArgs ...interface{}) string { | |
| 846 | - | core.LazyRegister(&xStrjoin, "GLIB", "g_strjoin", false) | |
| 847 | - | ||
| 848 | 773 | SeparatorVarPtr := core.GStrdupNullable(SeparatorVar) | |
| 849 | 774 | defer core.GFreeNullable(SeparatorVarPtr) | |
| 850 | 775 | ||
| @@ -861,8 +786,6 @@ var xStrjoinv func(uintptr, []string) string | |||
| 861 | 786 | // empty string. If @str_array contains a single item, @separator will not | |
| 862 | 787 | // appear in the resulting string. | |
| 863 | 788 | func Strjoinv(SeparatorVar *string, StrArrayVar []string) string { | |
| 864 | - | core.LazyRegister(&xStrjoinv, "GLIB", "g_strjoinv", false) | |
| 865 | - | ||
| 866 | 789 | SeparatorVarPtr := core.GStrdupNullable(SeparatorVar) | |
| 867 | 790 | defer core.GFreeNullable(SeparatorVarPtr) | |
| 868 | 791 | ||
| @@ -886,8 +809,6 @@ var xStrlcat func(string, string, uint) uint | |||
| 886 | 809 | // Caveat: this is supposedly a more secure alternative to `strcat()` or | |
| 887 | 810 | // `strncat()`, but for real security [func@GLib.strconcat] is harder to mess up. | |
| 888 | 811 | func Strlcat(DestVar string, SrcVar string, DestSizeVar uint) uint { | |
| 889 | - | core.LazyRegister(&xStrlcat, "GLIB", "g_strlcat", false) | |
| 890 | - | ||
| 891 | 812 | cret := xStrlcat(DestVar, SrcVar, DestSizeVar) | |
| 892 | 813 | return cret | |
| 893 | 814 | } | |
| @@ -909,8 +830,6 @@ var xStrlcpy func(string, string, uint) uint | |||
| 909 | 830 | // but if you really want to avoid screwups, [func@GLib.strdup] is an even better | |
| 910 | 831 | // idea. | |
| 911 | 832 | func Strlcpy(DestVar string, SrcVar string, DestSizeVar uint) uint { | |
| 912 | - | core.LazyRegister(&xStrlcpy, "GLIB", "g_strlcpy", false) | |
| 913 | - | ||
| 914 | 833 | cret := xStrlcpy(DestVar, SrcVar, DestSizeVar) | |
| 915 | 834 | return cret | |
| 916 | 835 | } | |
| @@ -922,8 +841,6 @@ var xStrncasecmp func(string, string, uint) int | |||
| 922 | 841 | // to [func@GLib.strcasecmp] except it only compares the first @n characters of | |
| 923 | 842 | // the strings. | |
| 924 | 843 | func Strncasecmp(S1Var string, S2Var string, NVar uint) int { | |
| 925 | - | core.LazyRegister(&xStrncasecmp, "GLIB", "g_strncasecmp", false) | |
| 926 | - | ||
| 927 | 844 | cret := xStrncasecmp(S1Var, S2Var, NVar) | |
| 928 | 845 | return cret | |
| 929 | 846 | } | |
| @@ -938,8 +855,6 @@ var xStrndup func(uintptr, uint) string | |||
| 938 | 855 | // To copy a number of characters from a UTF-8 encoded string, | |
| 939 | 856 | // use [func@GLib.utf8_strncpy] instead. | |
| 940 | 857 | func Strndup(StrVar *string, NVar uint) string { | |
| 941 | - | core.LazyRegister(&xStrndup, "GLIB", "g_strndup", false) | |
| 942 | - | ||
| 943 | 858 | StrVarPtr := core.GStrdupNullable(StrVar) | |
| 944 | 859 | defer core.GFreeNullable(StrVarPtr) | |
| 945 | 860 | ||
| @@ -951,8 +866,6 @@ var xStrnfill func(uint, byte) string | |||
| 951 | 866 | ||
| 952 | 867 | // Creates a new string @length bytes long filled with @fill_char. | |
| 953 | 868 | func Strnfill(LengthVar uint, FillCharVar byte) string { | |
| 954 | - | core.LazyRegister(&xStrnfill, "GLIB", "g_strnfill", false) | |
| 955 | - | ||
| 956 | 869 | cret := xStrnfill(LengthVar, FillCharVar) | |
| 957 | 870 | return cret | |
| 958 | 871 | } | |
| @@ -966,8 +879,6 @@ var xStrreverse func(string) string | |||
| 966 | 879 | // containing multibyte characters. For that purpose, use | |
| 967 | 880 | // [func@GLib.utf8_strreverse]. | |
| 968 | 881 | func Strreverse(StringVar string) string { | |
| 969 | - | core.LazyRegister(&xStrreverse, "GLIB", "g_strreverse", false) | |
| 970 | - | ||
| 971 | 882 | cret := xStrreverse(StringVar) | |
| 972 | 883 | return cret | |
| 973 | 884 | } | |
| @@ -980,8 +891,6 @@ var xStrrstr func(string, string) string | |||
| 980 | 891 | // The fact that this function returns `gchar *` rather than `const gchar *` is | |
| 981 | 892 | // a historical artifact. | |
| 982 | 893 | func Strrstr(HaystackVar string, NeedleVar string) string { | |
| 983 | - | core.LazyRegister(&xStrrstr, "GLIB", "g_strrstr", false) | |
| 984 | - | ||
| 985 | 894 | cret := xStrrstr(HaystackVar, NeedleVar) | |
| 986 | 895 | return cret | |
| 987 | 896 | } | |
| @@ -995,8 +904,6 @@ var xStrrstrLen func(string, int, string) string | |||
| 995 | 904 | // The fact that this function returns `gchar *` rather than `const gchar *` is | |
| 996 | 905 | // a historical artifact. | |
| 997 | 906 | func StrrstrLen(HaystackVar string, HaystackLenVar int, NeedleVar string) string { | |
| 998 | - | core.LazyRegister(&xStrrstrLen, "GLIB", "g_strrstr_len", false) | |
| 999 | - | ||
| 1000 | 907 | cret := xStrrstrLen(HaystackVar, HaystackLenVar, NeedleVar) | |
| 1001 | 908 | return cret | |
| 1002 | 909 | } | |
| @@ -1010,8 +917,6 @@ var xStrsignal func(int) string | |||
| 1010 | 917 | // returns a string in UTF-8 encoding, and since not all platforms support | |
| 1011 | 918 | // the `strsignal()` function. | |
| 1012 | 919 | func Strsignal(SignumVar int) string { | |
| 1013 | - | core.LazyRegister(&xStrsignal, "GLIB", "g_strsignal", false) | |
| 1014 | - | ||
| 1015 | 920 | cret := xStrsignal(SignumVar) | |
| 1016 | 921 | return cret | |
| 1017 | 922 | } | |
| @@ -1032,8 +937,6 @@ var xStrsplit func(string, string, int) []string | |||
| 1032 | 937 | // to represent empty elements, you'll need to check for the empty string | |
| 1033 | 938 | // before calling `g_strsplit()`. | |
| 1034 | 939 | func Strsplit(StringVar string, DelimiterVar string, MaxTokensVar int) []string { | |
| 1035 | - | core.LazyRegister(&xStrsplit, "GLIB", "g_strsplit", false) | |
| 1036 | - | ||
| 1037 | 940 | cret := xStrsplit(StringVar, DelimiterVar, MaxTokensVar) | |
| 1038 | 941 | return cret | |
| 1039 | 942 | } | |
| @@ -1064,8 +967,6 @@ var xStrsplitSet func(string, []byte, int) []string | |||
| 1064 | 967 | // Note that this function works on bytes not characters, so it can't be used | |
| 1065 | 968 | // to delimit UTF-8 strings for anything but ASCII characters. | |
| 1066 | 969 | func StrsplitSet(StringVar string, DelimitersVar []byte, MaxTokensVar int) []string { | |
| 1067 | - | core.LazyRegister(&xStrsplitSet, "GLIB", "g_strsplit_set", false) | |
| 1068 | - | ||
| 1069 | 970 | cret := xStrsplitSet(StringVar, DelimitersVar, MaxTokensVar) | |
| 1070 | 971 | return cret | |
| 1071 | 972 | } | |
| @@ -1082,8 +983,6 @@ var xStrstrLen func(string, int, string) string | |||
| 1082 | 983 | // The fact that this function returns `gchar *` rather than `const gchar *` is | |
| 1083 | 984 | // a historical artifact. | |
| 1084 | 985 | func StrstrLen(HaystackVar string, HaystackLenVar int, NeedleVar string) string { | |
| 1085 | - | core.LazyRegister(&xStrstrLen, "GLIB", "g_strstr_len", false) | |
| 1086 | - | ||
| 1087 | 986 | cret := xStrstrLen(HaystackVar, HaystackLenVar, NeedleVar) | |
| 1088 | 987 | return cret | |
| 1089 | 988 | } | |
| @@ -1103,8 +1002,6 @@ var xStrtod func(string, *string) float64 | |||
| 1103 | 1002 | // separated lists of values, since the commas may be interpreted as a decimal | |
| 1104 | 1003 | // point in some locales, causing unexpected results. | |
| 1105 | 1004 | func Strtod(NptrVar string, EndptrVar *string) float64 { | |
| 1106 | - | core.LazyRegister(&xStrtod, "GLIB", "g_strtod", false) | |
| 1107 | - | ||
| 1108 | 1005 | cret := xStrtod(NptrVar, EndptrVar) | |
| 1109 | 1006 | return cret | |
| 1110 | 1007 | } | |
| @@ -1113,8 +1010,6 @@ var xStrup func(string) string | |||
| 1113 | 1010 | ||
| 1114 | 1011 | // Converts a string to upper case. | |
| 1115 | 1012 | func Strup(StringVar string) string { | |
| 1116 | - | core.LazyRegister(&xStrup, "GLIB", "g_strup", false) | |
| 1117 | - | ||
| 1118 | 1013 | cret := xStrup(StringVar) | |
| 1119 | 1014 | return cret | |
| 1120 | 1015 | } | |
| @@ -1124,8 +1019,6 @@ var xStrvContains func([]string, string) bool | |||
| 1124 | 1019 | // Checks if an array of strings contains the string @str according to | |
| 1125 | 1020 | // [func@GLib.str_equal]. @strv must not be `NULL`. | |
| 1126 | 1021 | func StrvContains(StrvVar []string, StrVar string) bool { | |
| 1127 | - | core.LazyRegister(&xStrvContains, "GLIB", "g_strv_contains", false) | |
| 1128 | - | ||
| 1129 | 1022 | cret := xStrvContains(StrvVar, StrVar) | |
| 1130 | 1023 | return cret | |
| 1131 | 1024 | } | |
| @@ -1142,8 +1035,6 @@ var xStrvEqual func([]string, []string) bool | |||
| 1142 | 1035 | // Two empty arrays are considered equal. Neither @strv1 nor @strv2 may be | |
| 1143 | 1036 | // `NULL`. | |
| 1144 | 1037 | func StrvEqual(Strv1Var []string, Strv2Var []string) bool { | |
| 1145 | - | core.LazyRegister(&xStrvEqual, "GLIB", "g_strv_equal", false) | |
| 1146 | - | ||
| 1147 | 1038 | cret := xStrvEqual(Strv1Var, Strv2Var) | |
| 1148 | 1039 | return cret | |
| 1149 | 1040 | } | |
| @@ -1152,8 +1043,6 @@ var xStrvLength func([]string) uint | |||
| 1152 | 1043 | ||
| 1153 | 1044 | // Returns the length of an array of strings. @str_array must not be `NULL`. | |
| 1154 | 1045 | func StrvLength(StrArrayVar []string) uint { | |
| 1155 | - | core.LazyRegister(&xStrvLength, "GLIB", "g_strv_length", false) | |
| 1156 | - | ||
| 1157 | 1046 | cret := xStrvLength(StrArrayVar) | |
| 1158 | 1047 | return cret | |
| 1159 | 1048 | } | |
| @@ -1161,4 +1050,71 @@ func StrvLength(StrArrayVar []string) uint { | |||
| 1161 | 1050 | func init() { | |
| 1162 | 1051 | core.SetPackageName("GLIB", "glib-2.0") | |
| 1163 | 1052 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | |
| 1053 | + | var libs []uintptr | |
| 1054 | + | for _, libPath := range core.GetPaths("GLIB") { | |
| 1055 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |
| 1056 | + | if err != nil { | |
| 1057 | + | panic(err) | |
| 1058 | + | } | |
| 1059 | + | libs = append(libs, lib) | |
| 1060 | + | } | |
| 1061 | + | ||
| 1062 | + | core.PuregoSafeRegister(&xAsciiDigitValue, libs, "g_ascii_digit_value") | |
| 1063 | + | core.PuregoSafeRegister(&xAsciiDtostr, libs, "g_ascii_dtostr") | |
| 1064 | + | core.PuregoSafeRegister(&xAsciiFormatd, libs, "g_ascii_formatd") | |
| 1065 | + | core.PuregoSafeRegister(&xAsciiStrcasecmp, libs, "g_ascii_strcasecmp") | |
| 1066 | + | core.PuregoSafeRegister(&xAsciiStrdown, libs, "g_ascii_strdown") | |
| 1067 | + | core.PuregoSafeRegister(&xAsciiStringToSigned, libs, "g_ascii_string_to_signed") | |
| 1068 | + | core.PuregoSafeRegister(&xAsciiStringToUnsigned, libs, "g_ascii_string_to_unsigned") | |
| 1069 | + | core.PuregoSafeRegister(&xAsciiStrncasecmp, libs, "g_ascii_strncasecmp") | |
| 1070 | + | core.PuregoSafeRegister(&xAsciiStrtod, libs, "g_ascii_strtod") | |
| 1071 | + | core.PuregoSafeRegister(&xAsciiStrtoll, libs, "g_ascii_strtoll") | |
| 1072 | + | core.PuregoSafeRegister(&xAsciiStrtoull, libs, "g_ascii_strtoull") | |
| 1073 | + | core.PuregoSafeRegister(&xAsciiStrup, libs, "g_ascii_strup") | |
| 1074 | + | core.PuregoSafeRegister(&xAsciiTolower, libs, "g_ascii_tolower") | |
| 1075 | + | core.PuregoSafeRegister(&xAsciiToupper, libs, "g_ascii_toupper") | |
| 1076 | + | core.PuregoSafeRegister(&xAsciiXdigitValue, libs, "g_ascii_xdigit_value") | |
| 1077 | + | core.PuregoSafeRegister(&xMemdup, libs, "g_memdup") | |
| 1078 | + | core.PuregoSafeRegister(&xMemdup2, libs, "g_memdup2") | |
| 1079 | + | core.PuregoSafeRegister(&xStpcpy, libs, "g_stpcpy") | |
| 1080 | + | core.PuregoSafeRegister(&xStrHasPrefix, libs, "g_str_has_prefix") | |
| 1081 | + | core.PuregoSafeRegister(&xStrHasSuffix, libs, "g_str_has_suffix") | |
| 1082 | + | core.PuregoSafeRegister(&xStrIsAscii, libs, "g_str_is_ascii") | |
| 1083 | + | core.PuregoSafeRegister(&xStrMatchString, libs, "g_str_match_string") | |
| 1084 | + | core.PuregoSafeRegister(&xStrToAscii, libs, "g_str_to_ascii") | |
| 1085 | + | core.PuregoSafeRegister(&xStrTokenizeAndFold, libs, "g_str_tokenize_and_fold") | |
| 1086 | + | core.PuregoSafeRegister(&xStrcanon, libs, "g_strcanon") | |
| 1087 | + | core.PuregoSafeRegister(&xStrcasecmp, libs, "g_strcasecmp") | |
| 1088 | + | core.PuregoSafeRegister(&xStrchomp, libs, "g_strchomp") | |
| 1089 | + | core.PuregoSafeRegister(&xStrchug, libs, "g_strchug") | |
| 1090 | + | core.PuregoSafeRegister(&xStrcompress, libs, "g_strcompress") | |
| 1091 | + | core.PuregoSafeRegister(&xStrconcat, libs, "g_strconcat") | |
| 1092 | + | core.PuregoSafeRegister(&xStrdelimit, libs, "g_strdelimit") | |
| 1093 | + | core.PuregoSafeRegister(&xStrdown, libs, "g_strdown") | |
| 1094 | + | core.PuregoSafeRegister(&xStrdup, libs, "g_strdup") | |
| 1095 | + | core.PuregoSafeRegister(&xStrdupPrintf, libs, "g_strdup_printf") | |
| 1096 | + | core.PuregoSafeRegister(&xStrdupVprintf, libs, "g_strdup_vprintf") | |
| 1097 | + | core.PuregoSafeRegister(&xStrdupv, libs, "g_strdupv") | |
| 1098 | + | core.PuregoSafeRegister(&xStrerror, libs, "g_strerror") | |
| 1099 | + | core.PuregoSafeRegister(&xStrescape, libs, "g_strescape") | |
| 1100 | + | core.PuregoSafeRegister(&xStrfreev, libs, "g_strfreev") | |
| 1101 | + | core.PuregoSafeRegister(&xStrjoin, libs, "g_strjoin") | |
| 1102 | + | core.PuregoSafeRegister(&xStrjoinv, libs, "g_strjoinv") | |
| 1103 | + | core.PuregoSafeRegister(&xStrlcat, libs, "g_strlcat") | |
| 1104 | + | core.PuregoSafeRegister(&xStrlcpy, libs, "g_strlcpy") | |
| 1105 | + | core.PuregoSafeRegister(&xStrncasecmp, libs, "g_strncasecmp") | |
| 1106 | + | core.PuregoSafeRegister(&xStrndup, libs, "g_strndup") | |
| 1107 | + | core.PuregoSafeRegister(&xStrnfill, libs, "g_strnfill") | |
| 1108 | + | core.PuregoSafeRegister(&xStrreverse, libs, "g_strreverse") | |
| 1109 | + | core.PuregoSafeRegister(&xStrrstr, libs, "g_strrstr") | |
| 1110 | + | core.PuregoSafeRegister(&xStrrstrLen, libs, "g_strrstr_len") | |
| 1111 | + | core.PuregoSafeRegister(&xStrsignal, libs, "g_strsignal") | |
| 1112 | + | core.PuregoSafeRegister(&xStrsplit, libs, "g_strsplit") | |
| 1113 | + | core.PuregoSafeRegister(&xStrsplitSet, libs, "g_strsplit_set") | |
| 1114 | + | core.PuregoSafeRegister(&xStrstrLen, libs, "g_strstr_len") | |
| 1115 | + | core.PuregoSafeRegister(&xStrtod, libs, "g_strtod") | |
| 1116 | + | core.PuregoSafeRegister(&xStrup, libs, "g_strup") | |
| 1117 | + | core.PuregoSafeRegister(&xStrvContains, libs, "g_strv_contains") | |
| 1118 | + | core.PuregoSafeRegister(&xStrvEqual, libs, "g_strv_equal") | |
| 1119 | + | core.PuregoSafeRegister(&xStrvLength, libs, "g_strv_length") | |
| 1164 | 1120 | } | |
| @@ -1,7 +1,10 @@ | |||||
| 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | 1 | // Package glib was automatically generated by github.com/bnema/puregotk DO NOT EDIT | ||
| 2 | package glib | 2 | package glib | ||
| 3 | 3 | ||||
| 4 | - | import "github.com/bnema/puregotk/pkg/core" | 4 | + | import ( |
| 5 | + | "github.com/bnema/purego" | |||
| 6 | + | "github.com/bnema/puregotk/pkg/core" | |||
| 7 | + | ) | |||
| 5 | 8 | ||||
| 6 | // A typedef alias for gchar**. This is mostly useful when used together with | 9 | // A typedef alias for gchar**. This is mostly useful when used together with | ||
| 7 | // `g_auto()`. | 10 | // `g_auto()`. | ||
| @@ -69,8 +72,6 @@ var xAsciiDigitValue func(byte) int | |||||
| 69 | // Differs from [func@GLib.unichar_digit_value] because it takes a char, so | 72 | // Differs from [func@GLib.unichar_digit_value] because it takes a char, so | ||
| 70 | // there's no worry about sign extension if characters are signed. | 73 | // there's no worry about sign extension if characters are signed. | ||
| 71 | func AsciiDigitValue(CVar byte) int { | 74 | func AsciiDigitValue(CVar byte) int { | ||
| 72 | - | core.LazyRegister(&xAsciiDigitValue, "GLIB", "g_ascii_digit_value", false) | |||
| 73 | - | ||||
| 74 | cret := xAsciiDigitValue(CVar) | 75 | cret := xAsciiDigitValue(CVar) | ||
| 75 | return cret | 76 | return cret | ||
| 76 | } | 77 | } | ||
| @@ -87,8 +88,6 @@ var xAsciiDtostr func(string, int, float64) string | |||||
| 87 | // be larger than [const@GLib.ASCII_DTOSTR_BUF_SIZE] bytes, including the terminating | 88 | // be larger than [const@GLib.ASCII_DTOSTR_BUF_SIZE] bytes, including the terminating | ||
| 88 | // nul character, which is always added. | 89 | // nul character, which is always added. | ||
| 89 | func AsciiDtostr(BufferVar string, BufLenVar int, DVar float64) string { | 90 | func AsciiDtostr(BufferVar string, BufLenVar int, DVar float64) string { | ||
| 90 | - | core.LazyRegister(&xAsciiDtostr, "GLIB", "g_ascii_dtostr", false) | |||
| 91 | - | ||||
| 92 | cret := xAsciiDtostr(BufferVar, BufLenVar, DVar) | 91 | cret := xAsciiDtostr(BufferVar, BufLenVar, DVar) | ||
| 93 | return cret | 92 | return cret | ||
| 94 | } | 93 | } | ||
| @@ -108,8 +107,6 @@ var xAsciiFormatd func(string, int, string, float64) string | |||||
| 108 | // If you just want to want to serialize the value into a | 107 | // If you just want to want to serialize the value into a | ||
| 109 | // string, use [func@GLib.ascii_dtostr]. | 108 | // string, use [func@GLib.ascii_dtostr]. | ||
| 110 | func AsciiFormatd(BufferVar string, BufLenVar int, FormatVar string, DVar float64) string { | 109 | func AsciiFormatd(BufferVar string, BufLenVar int, FormatVar string, DVar float64) string { | ||
| 111 | - | core.LazyRegister(&xAsciiFormatd, "GLIB", "g_ascii_formatd", false) | |||
| 112 | - | ||||
| 113 | cret := xAsciiFormatd(BufferVar, BufLenVar, FormatVar, DVar) | 110 | cret := xAsciiFormatd(BufferVar, BufLenVar, FormatVar, DVar) | ||
| 114 | return cret | 111 | return cret | ||
| 115 | } | 112 | } | ||
| @@ -132,8 +129,6 @@ var xAsciiStrcasecmp func(string, string) int | |||||
| 132 | // | 129 | // | ||
| 133 | // Both @s1 and @s2 must be non-`NULL`. | 130 | // Both @s1 and @s2 must be non-`NULL`. | ||
| 134 | func AsciiStrcasecmp(S1Var string, S2Var string) int { | 131 | func AsciiStrcasecmp(S1Var string, S2Var string) int { | ||
| 135 | - | core.LazyRegister(&xAsciiStrcasecmp, "GLIB", "g_ascii_strcasecmp", false) | |||
| 136 | - | ||||
| 137 | cret := xAsciiStrcasecmp(S1Var, S2Var) | 132 | cret := xAsciiStrcasecmp(S1Var, S2Var) | ||
| 138 | return cret | 133 | return cret | ||
| 139 | } | 134 | } | ||
| @@ -143,8 +138,6 @@ var xAsciiStrdown func(string, int) string | |||||
| 143 | // Converts all upper case ASCII letters to lower case ASCII letters, with | 138 | // Converts all upper case ASCII letters to lower case ASCII letters, with | ||
| 144 | // semantics that exactly match [func@GLib.ascii_tolower]. | 139 | // semantics that exactly match [func@GLib.ascii_tolower]. | ||
| 145 | func AsciiStrdown(StrVar string, LenVar int) string { | 140 | func AsciiStrdown(StrVar string, LenVar int) string { | ||
| 146 | - | core.LazyRegister(&xAsciiStrdown, "GLIB", "g_ascii_strdown", false) | |||
| 147 | - | ||||
| 148 | cret := xAsciiStrdown(StrVar, LenVar) | 141 | cret := xAsciiStrdown(StrVar, LenVar) | ||
| 149 | return cret | 142 | return cret | ||
| 150 | } | 143 | } | ||
| @@ -173,7 +166,6 @@ var xAsciiStringToSigned func(string, uint, int64, int64, *int64, **Error) bool | |||||
| 173 | // parsing a string which starts with a number, but then has other | 166 | // parsing a string which starts with a number, but then has other | ||
| 174 | // characters. | 167 | // characters. | ||
| 175 | func AsciiStringToSigned(StrVar string, BaseVar uint, MinVar int64, MaxVar int64, OutNumVar *int64) (bool, error) { | 168 | func AsciiStringToSigned(StrVar string, BaseVar uint, MinVar int64, MaxVar int64, OutNumVar *int64) (bool, error) { | ||
| 176 | - | core.LazyRegister(&xAsciiStringToSigned, "GLIB", "g_ascii_string_to_signed", false) | |||
| 177 | var cerr *Error | 169 | var cerr *Error | ||
| 178 | 170 | ||||
| 179 | cret := xAsciiStringToSigned(StrVar, BaseVar, MinVar, MaxVar, OutNumVar, &cerr) | 171 | cret := xAsciiStringToSigned(StrVar, BaseVar, MinVar, MaxVar, OutNumVar, &cerr) | ||
| @@ -208,7 +200,6 @@ var xAsciiStringToUnsigned func(string, uint, uint64, uint64, *uint64, **Error) | |||||
| 208 | // parsing a string which starts with a number, but then has other | 200 | // parsing a string which starts with a number, but then has other | ||
| 209 | // characters. | 201 | // characters. | ||
| 210 | func AsciiStringToUnsigned(StrVar string, BaseVar uint, MinVar uint64, MaxVar uint64, OutNumVar *uint64) (bool, error) { | 202 | func AsciiStringToUnsigned(StrVar string, BaseVar uint, MinVar uint64, MaxVar uint64, OutNumVar *uint64) (bool, error) { | ||
| 211 | - | core.LazyRegister(&xAsciiStringToUnsigned, "GLIB", "g_ascii_string_to_unsigned", false) | |||
| 212 | var cerr *Error | 203 | var cerr *Error | ||
| 213 | 204 | ||||
| 214 | cret := xAsciiStringToUnsigned(StrVar, BaseVar, MinVar, MaxVar, OutNumVar, &cerr) | 205 | cret := xAsciiStringToUnsigned(StrVar, BaseVar, MinVar, MaxVar, OutNumVar, &cerr) | ||
| @@ -233,8 +224,6 @@ var xAsciiStrncasecmp func(string, string, uint) int | |||||
| 233 | // function only on strings known to be in encodings where bytes | 224 | // function only on strings known to be in encodings where bytes | ||
| 234 | // corresponding to ASCII letters always represent themselves. | 225 | // corresponding to ASCII letters always represent themselves. | ||
| 235 | func AsciiStrncasecmp(S1Var string, S2Var string, NVar uint) int { | 226 | func AsciiStrncasecmp(S1Var string, S2Var string, NVar uint) int { | ||
| 236 | - | core.LazyRegister(&xAsciiStrncasecmp, "GLIB", "g_ascii_strncasecmp", false) | |||
| 237 | - | ||||
| 238 | cret := xAsciiStrncasecmp(S1Var, S2Var, NVar) | 227 | cret := xAsciiStrncasecmp(S1Var, S2Var, NVar) | ||
| 239 | return cret | 228 | return cret | ||
| 240 | } | 229 | } | ||
| @@ -265,8 +254,6 @@ var xAsciiStrtod func(string, *string) float64 | |||||
| 265 | // This function resets `errno` before calling `strtod()` so that | 254 | // This function resets `errno` before calling `strtod()` so that | ||
| 266 | // you can reliably detect overflow and underflow. | 255 | // you can reliably detect overflow and underflow. | ||
| 267 | func AsciiStrtod(NptrVar string, EndptrVar *string) float64 { | 256 | func AsciiStrtod(NptrVar string, EndptrVar *string) float64 { | ||
| 268 | - | core.LazyRegister(&xAsciiStrtod, "GLIB", "g_ascii_strtod", false) | |||
| 269 | - | ||||
| 270 | cret := xAsciiStrtod(NptrVar, EndptrVar) | 257 | cret := xAsciiStrtod(NptrVar, EndptrVar) | ||
| 271 | return cret | 258 | return cret | ||
| 272 | } | 259 | } | ||
| @@ -292,8 +279,6 @@ var xAsciiStrtoll func(string, *string, uint) int64 | |||||
| 292 | // string conversion fails, zero is returned, and @endptr returns @nptr | 279 | // string conversion fails, zero is returned, and @endptr returns @nptr | ||
| 293 | // (if @endptr is non-`NULL`). | 280 | // (if @endptr is non-`NULL`). | ||
| 294 | func AsciiStrtoll(NptrVar string, EndptrVar *string, BaseVar uint) int64 { | 281 | func AsciiStrtoll(NptrVar string, EndptrVar *string, BaseVar uint) int64 { | ||
| 295 | - | core.LazyRegister(&xAsciiStrtoll, "GLIB", "g_ascii_strtoll", false) | |||
| 296 | - | ||||
| 297 | cret := xAsciiStrtoll(NptrVar, EndptrVar, BaseVar) | 282 | cret := xAsciiStrtoll(NptrVar, EndptrVar, BaseVar) | ||
| 298 | return cret | 283 | return cret | ||
| 299 | } | 284 | } | ||
| @@ -324,8 +309,6 @@ var xAsciiStrtoull func(string, *string, uint) uint64 | |||||
| 324 | // If the string conversion fails, zero is returned, and @endptr returns | 309 | // If the string conversion fails, zero is returned, and @endptr returns | ||
| 325 | // @nptr (if @endptr is non-`NULL`). | 310 | // @nptr (if @endptr is non-`NULL`). | ||
| 326 | func AsciiStrtoull(NptrVar string, EndptrVar *string, BaseVar uint) uint64 { | 311 | func AsciiStrtoull(NptrVar string, EndptrVar *string, BaseVar uint) uint64 { | ||
| 327 | - | core.LazyRegister(&xAsciiStrtoull, "GLIB", "g_ascii_strtoull", false) | |||
| 328 | - | ||||
| 329 | cret := xAsciiStrtoull(NptrVar, EndptrVar, BaseVar) | 312 | cret := xAsciiStrtoull(NptrVar, EndptrVar, BaseVar) | ||
| 330 | return cret | 313 | return cret | ||
| 331 | } | 314 | } | ||
| @@ -335,8 +318,6 @@ var xAsciiStrup func(string, int) string | |||||
| 335 | // Converts all lower case ASCII letters to upper case ASCII letters, with | 318 | // Converts all lower case ASCII letters to upper case ASCII letters, with | ||
| 336 | // semantics that exactly match [func@GLib.ascii_toupper]. | 319 | // semantics that exactly match [func@GLib.ascii_toupper]. | ||
| 337 | func AsciiStrup(StrVar string, LenVar int) string { | 320 | func AsciiStrup(StrVar string, LenVar int) string { | ||
| 338 | - | core.LazyRegister(&xAsciiStrup, "GLIB", "g_ascii_strup", false) | |||
| 339 | - | ||||
| 340 | cret := xAsciiStrup(StrVar, LenVar) | 321 | cret := xAsciiStrup(StrVar, LenVar) | ||
| 341 | return cret | 322 | return cret | ||
| 342 | } | 323 | } | ||
| @@ -354,8 +335,6 @@ var xAsciiTolower func(byte) byte | |||||
| 354 | // don't call it on `EOF` but no need to worry about casting to `guchar` | 335 | // don't call it on `EOF` but no need to worry about casting to `guchar` | ||
| 355 | // before passing a possibly non-ASCII character in. | 336 | // before passing a possibly non-ASCII character in. | ||
| 356 | func AsciiTolower(CVar byte) byte { | 337 | func AsciiTolower(CVar byte) byte { | ||
| 357 | - | core.LazyRegister(&xAsciiTolower, "GLIB", "g_ascii_tolower", false) | |||
| 358 | - | ||||
| 359 | cret := xAsciiTolower(CVar) | 338 | cret := xAsciiTolower(CVar) | ||
| 360 | return cret | 339 | return cret | ||
| 361 | } | 340 | } | ||
| @@ -373,8 +352,6 @@ var xAsciiToupper func(byte) byte | |||||
| 373 | // don't call it on `EOF` but no need to worry about casting to `guchar` | 352 | // don't call it on `EOF` but no need to worry about casting to `guchar` | ||
| 374 | // before passing a possibly non-ASCII character in. | 353 | // before passing a possibly non-ASCII character in. | ||
| 375 | func AsciiToupper(CVar byte) byte { | 354 | func AsciiToupper(CVar byte) byte { | ||
| 376 | - | core.LazyRegister(&xAsciiToupper, "GLIB", "g_ascii_toupper", false) | |||
| 377 | - | ||||
| 378 | cret := xAsciiToupper(CVar) | 355 | cret := xAsciiToupper(CVar) | ||
| 379 | return cret | 356 | return cret | ||
| 380 | } | 357 | } | ||
| @@ -391,8 +368,6 @@ var xAsciiXdigitValue func(byte) int | |||||
| 391 | // Differs from [func@GLib.unichar_xdigit_value] because it takes a char, so | 368 | // Differs from [func@GLib.unichar_xdigit_value] because it takes a char, so | ||
| 392 | // there's no worry about sign extension if characters are signed. | 369 | // there's no worry about sign extension if characters are signed. | ||
| 393 | func AsciiXdigitValue(CVar byte) int { | 370 | func AsciiXdigitValue(CVar byte) int { | ||
| 394 | - | core.LazyRegister(&xAsciiXdigitValue, "GLIB", "g_ascii_xdigit_value", false) | |||
| 395 | - | ||||
| 396 | cret := xAsciiXdigitValue(CVar) | 371 | cret := xAsciiXdigitValue(CVar) | ||
| 397 | return cret | 372 | return cret | ||
| 398 | } | 373 | } | ||
| @@ -402,8 +377,6 @@ var xMemdup func(uintptr, uint) uintptr | |||||
| 402 | // Allocates @byte_size bytes of memory, and copies @byte_size bytes into it | 377 | // Allocates @byte_size bytes of memory, and copies @byte_size bytes into it | ||
| 403 | // from @mem. If @mem is `NULL` it returns `NULL`. | 378 | // from @mem. If @mem is `NULL` it returns `NULL`. | ||
| 404 | func Memdup(MemVar uintptr, ByteSizeVar uint) uintptr { | 379 | func Memdup(MemVar uintptr, ByteSizeVar uint) uintptr { | ||
| 405 | - | core.LazyRegister(&xMemdup, "GLIB", "g_memdup", false) | |||
| 406 | - | ||||
| 407 | cret := xMemdup(MemVar, ByteSizeVar) | 380 | cret := xMemdup(MemVar, ByteSizeVar) | ||
| 408 | return cret | 381 | return cret | ||
| 409 | } | 382 | } | ||
| @@ -416,8 +389,6 @@ var xMemdup2 func(uintptr, uint) uintptr | |||||
| 416 | // This replaces [func@GLib.memdup], which was prone to integer overflows when | 389 | // This replaces [func@GLib.memdup], which was prone to integer overflows when | ||
| 417 | // converting the argument from a `gsize` to a `guint`. | 390 | // converting the argument from a `gsize` to a `guint`. | ||
| 418 | func Memdup2(MemVar uintptr, ByteSizeVar uint) uintptr { | 391 | func Memdup2(MemVar uintptr, ByteSizeVar uint) uintptr { | ||
| 419 | - | core.LazyRegister(&xMemdup2, "GLIB", "g_memdup2", false) | |||
| 420 | - | ||||
| 421 | cret := xMemdup2(MemVar, ByteSizeVar) | 392 | cret := xMemdup2(MemVar, ByteSizeVar) | ||
| 422 | return cret | 393 | return cret | ||
| 423 | } | 394 | } | ||
| @@ -429,8 +400,6 @@ var xStpcpy func(string, string) string | |||||
| 429 | // in `dest`. The return value is useful for concatenating multiple | 400 | // in `dest`. The return value is useful for concatenating multiple | ||
| 430 | // strings without having to repeatedly scan for the end. | 401 | // strings without having to repeatedly scan for the end. | ||
| 431 | func Stpcpy(DestVar string, SrcVar string) string { | 402 | func Stpcpy(DestVar string, SrcVar string) string { | ||
| 432 | - | core.LazyRegister(&xStpcpy, "GLIB", "g_stpcpy", false) | |||
| 433 | - | ||||
| 434 | cret := xStpcpy(DestVar, SrcVar) | 403 | cret := xStpcpy(DestVar, SrcVar) | ||
| 435 | return cret | 404 | return cret | ||
| 436 | } | 405 | } | ||
| @@ -439,8 +408,6 @@ var xStrHasPrefix func(string, string) bool | |||||
| 439 | 408 | ||||
| 440 | // Looks whether the string @str begins with @prefix. | 409 | // Looks whether the string @str begins with @prefix. | ||
| 441 | func StrHasPrefix(StrVar string, PrefixVar string) bool { | 410 | func StrHasPrefix(StrVar string, PrefixVar string) bool { | ||
| 442 | - | core.LazyRegister(&xStrHasPrefix, "GLIB", "g_str_has_prefix", false) | |||
| 443 | - | ||||
| 444 | cret := xStrHasPrefix(StrVar, PrefixVar) | 411 | cret := xStrHasPrefix(StrVar, PrefixVar) | ||
| 445 | return cret | 412 | return cret | ||
| 446 | } | 413 | } | ||
| @@ -449,8 +416,6 @@ var xStrHasSuffix func(string, string) bool | |||||
| 449 | 416 | ||||
| 450 | // Looks whether a string ends with @suffix. | 417 | // Looks whether a string ends with @suffix. | ||
| 451 | func StrHasSuffix(StrVar string, SuffixVar string) bool { | 418 | func StrHasSuffix(StrVar string, SuffixVar string) bool { | ||
| 452 | - | core.LazyRegister(&xStrHasSuffix, "GLIB", "g_str_has_suffix", false) | |||
| 453 | - | ||||
| 454 | cret := xStrHasSuffix(StrVar, SuffixVar) | 419 | cret := xStrHasSuffix(StrVar, SuffixVar) | ||
| 455 | return cret | 420 | return cret | ||
| 456 | } | 421 | } | ||
| @@ -460,8 +425,6 @@ var xStrIsAscii func(string) bool | |||||
| 460 | // Determines if a string is pure ASCII. A string is pure ASCII if it | 425 | // Determines if a string is pure ASCII. A string is pure ASCII if it | ||
| 461 | // contains no bytes with the high bit set. | 426 | // contains no bytes with the high bit set. | ||
| 462 | func StrIsAscii(StrVar string) bool { | 427 | func StrIsAscii(StrVar string) bool { | ||
| 463 | - | core.LazyRegister(&xStrIsAscii, "GLIB", "g_str_is_ascii", false) | |||
| 464 | - | ||||
| 465 | cret := xStrIsAscii(StrVar) | 428 | cret := xStrIsAscii(StrVar) | ||
| 466 | return cret | 429 | return cret | ||
| 467 | } | 430 | } | ||
| @@ -491,8 +454,6 @@ var xStrMatchString func(string, string, bool) bool | |||||
| 491 | // accent matching). Searching ‘fo’ would match ‘Foo’ and ‘Bar Foo | 454 | // accent matching). Searching ‘fo’ would match ‘Foo’ and ‘Bar Foo | ||
| 492 | // Baz’, but not ‘SFO’ (because no word has ‘fo’ as a prefix). | 455 | // Baz’, but not ‘SFO’ (because no word has ‘fo’ as a prefix). | ||
| 493 | func StrMatchString(SearchTermVar string, PotentialHitVar string, AcceptAlternatesVar bool) bool { | 456 | func StrMatchString(SearchTermVar string, PotentialHitVar string, AcceptAlternatesVar bool) bool { | ||
| 494 | - | core.LazyRegister(&xStrMatchString, "GLIB", "g_str_match_string", false) | |||
| 495 | - | ||||
| 496 | cret := xStrMatchString(SearchTermVar, PotentialHitVar, AcceptAlternatesVar) | 457 | cret := xStrMatchString(SearchTermVar, PotentialHitVar, AcceptAlternatesVar) | ||
| 497 | return cret | 458 | return cret | ||
| 498 | } | 459 | } | ||
| @@ -518,8 +479,6 @@ var xStrToAscii func(string, uintptr) string | |||||
| 518 | // to be done independently of the currently locale, specify `"C"` for | 479 | // to be done independently of the currently locale, specify `"C"` for | ||
| 519 | // @from_locale. | 480 | // @from_locale. | ||
| 520 | func StrToAscii(StrVar string, FromLocaleVar *string) string { | 481 | func StrToAscii(StrVar string, FromLocaleVar *string) string { | ||
| 521 | - | core.LazyRegister(&xStrToAscii, "GLIB", "g_str_to_ascii", false) | |||
| 522 | - | ||||
| 523 | FromLocaleVarPtr := core.GStrdupNullable(FromLocaleVar) | 482 | FromLocaleVarPtr := core.GStrdupNullable(FromLocaleVar) | ||
| 524 | defer core.GFreeNullable(FromLocaleVarPtr) | 483 | defer core.GFreeNullable(FromLocaleVarPtr) | ||
| 525 | 484 | ||||
| @@ -545,8 +504,6 @@ var xStrTokenizeAndFold func(string, uintptr, *[]string) []string | |||||
| 545 | // improve the transliteration if the language of the source string is | 504 | // improve the transliteration if the language of the source string is | ||
| 546 | // known. | 505 | // known. | ||
| 547 | func StrTokenizeAndFold(StringVar string, TranslitLocaleVar *string, AsciiAlternatesVar *[]string) []string { | 506 | func StrTokenizeAndFold(StringVar string, TranslitLocaleVar *string, AsciiAlternatesVar *[]string) []string { | ||
| 548 | - | core.LazyRegister(&xStrTokenizeAndFold, "GLIB", "g_str_tokenize_and_fold", false) | |||
| 549 | - | ||||
| 550 | TranslitLocaleVarPtr := core.GStrdupNullable(TranslitLocaleVar) | 507 | TranslitLocaleVarPtr := core.GStrdupNullable(TranslitLocaleVar) | ||
| 551 | defer core.GFreeNullable(TranslitLocaleVarPtr) | 508 | defer core.GFreeNullable(TranslitLocaleVarPtr) | ||
| 552 | 509 | ||||
| @@ -572,8 +529,6 @@ var xStrcanon func(string, string, byte) string | |||||
| 572 | // g_free (reformatted); | 529 | // g_free (reformatted); | ||
| 573 | // ``` | 530 | // ``` | ||
| 574 | func Strcanon(StringVar string, ValidCharsVar string, SubstitutorVar byte) string { | 531 | func Strcanon(StringVar string, ValidCharsVar string, SubstitutorVar byte) string { | ||
| 575 | - | core.LazyRegister(&xStrcanon, "GLIB", "g_strcanon", false) | |||
| 576 | - | ||||
| 577 | cret := xStrcanon(StringVar, ValidCharsVar, SubstitutorVar) | 532 | cret := xStrcanon(StringVar, ValidCharsVar, SubstitutorVar) | ||
| 578 | return cret | 533 | return cret | ||
| 579 | } | 534 | } | ||
| @@ -583,8 +538,6 @@ var xStrcasecmp func(string, string) int | |||||
| 583 | // A case-insensitive string comparison, corresponding to the standard | 538 | // A case-insensitive string comparison, corresponding to the standard | ||
| 584 | // `strcasecmp()` function on platforms which support it. | 539 | // `strcasecmp()` function on platforms which support it. | ||
| 585 | func Strcasecmp(S1Var string, S2Var string) int { | 540 | func Strcasecmp(S1Var string, S2Var string) int { | ||
| 586 | - | core.LazyRegister(&xStrcasecmp, "GLIB", "g_strcasecmp", false) | |||
| 587 | - | ||||
| 588 | cret := xStrcasecmp(S1Var, S2Var) | 541 | cret := xStrcasecmp(S1Var, S2Var) | ||
| 589 | return cret | 542 | return cret | ||
| 590 | } | 543 | } | ||
| @@ -601,8 +554,6 @@ var xStrchomp func(string) string | |||||
| 601 | // | 554 | // | ||
| 602 | // Also see [func@GLib.strchug] and [func@GLib.strstrip]. | 555 | // Also see [func@GLib.strchug] and [func@GLib.strstrip]. | ||
| 603 | func Strchomp(StringVar string) string { | 556 | func Strchomp(StringVar string) string { | ||
| 604 | - | core.LazyRegister(&xStrchomp, "GLIB", "g_strchomp", false) | |||
| 605 | - | ||||
| 606 | cret := xStrchomp(StringVar) | 557 | cret := xStrchomp(StringVar) | ||
| 607 | return cret | 558 | return cret | ||
| 608 | } | 559 | } | ||
| @@ -620,8 +571,6 @@ var xStrchug func(string) string | |||||
| 620 | // | 571 | // | ||
| 621 | // Also see [func@GLib.strchomp] and [func@GLib.strstrip]. | 572 | // Also see [func@GLib.strchomp] and [func@GLib.strstrip]. | ||
| 622 | func Strchug(StringVar string) string { | 573 | func Strchug(StringVar string) string { | ||
| 623 | - | core.LazyRegister(&xStrchug, "GLIB", "g_strchug", false) | |||
| 624 | - | ||||
| 625 | cret := xStrchug(StringVar) | 574 | cret := xStrchug(StringVar) | ||
| 626 | return cret | 575 | return cret | ||
| 627 | } | 576 | } | ||
| @@ -643,8 +592,6 @@ var xStrcompress func(string) string | |||||
| 643 | // | 592 | // | ||
| 644 | // [func@GLib.strescape] does the reverse conversion. | 593 | // [func@GLib.strescape] does the reverse conversion. | ||
| 645 | func Strcompress(SourceVar string) string { | 594 | func Strcompress(SourceVar string) string { | ||
| 646 | - | core.LazyRegister(&xStrcompress, "GLIB", "g_strcompress", false) | |||
| 647 | - | ||||
| 648 | cret := xStrcompress(SourceVar) | 595 | cret := xStrcompress(SourceVar) | ||
| 649 | return cret | 596 | return cret | ||
| 650 | } | 597 | } | ||
| @@ -660,8 +607,6 @@ var xStrconcat func(string, ...interface{}) string | |||||
| 660 | // assemble a translated message from pieces, since proper translation | 607 | // assemble a translated message from pieces, since proper translation | ||
| 661 | // often requires the pieces to be reordered. | 608 | // often requires the pieces to be reordered. | ||
| 662 | func Strconcat(String1Var string, varArgs ...interface{}) string { | 609 | func Strconcat(String1Var string, varArgs ...interface{}) string { | ||
| 663 | - | core.LazyRegister(&xStrconcat, "GLIB", "g_strconcat", false) | |||
| 664 | - | ||||
| 665 | cret := xStrconcat(String1Var, varArgs...) | 610 | cret := xStrconcat(String1Var, varArgs...) | ||
| 666 | return cret | 611 | return cret | ||
| 667 | } | 612 | } | ||
| @@ -686,8 +631,6 @@ var xStrdelimit func(string, uintptr, byte) string | |||||
| 686 | // g_free (reformatted); | 631 | // g_free (reformatted); | ||
| 687 | // ``` | 632 | // ``` | ||
| 688 | func Strdelimit(StringVar string, DelimitersVar *string, NewDelimiterVar byte) string { | 633 | func Strdelimit(StringVar string, DelimitersVar *string, NewDelimiterVar byte) string { | ||
| 689 | - | core.LazyRegister(&xStrdelimit, "GLIB", "g_strdelimit", false) | |||
| 690 | - | ||||
| 691 | DelimitersVarPtr := core.GStrdupNullable(DelimitersVar) | 634 | DelimitersVarPtr := core.GStrdupNullable(DelimitersVar) | ||
| 692 | defer core.GFreeNullable(DelimitersVarPtr) | 635 | defer core.GFreeNullable(DelimitersVarPtr) | ||
| 693 | 636 | ||||
| @@ -699,8 +642,6 @@ var xStrdown func(string) string | |||||
| 699 | 642 | ||||
| 700 | // Converts a string to lower case. | 643 | // Converts a string to lower case. | ||
| 701 | func Strdown(StringVar string) string { | 644 | func Strdown(StringVar string) string { | ||
| 702 | - | core.LazyRegister(&xStrdown, "GLIB", "g_strdown", false) | |||
| 703 | - | ||||
| 704 | cret := xStrdown(StringVar) | 645 | cret := xStrdown(StringVar) | ||
| 705 | return cret | 646 | return cret | ||
| 706 | } | 647 | } | ||
| @@ -709,8 +650,6 @@ var xStrdup func(uintptr) string | |||||
| 709 | 650 | ||||
| 710 | // Duplicates a string. If @str is `NULL` it returns `NULL`. | 651 | // Duplicates a string. If @str is `NULL` it returns `NULL`. | ||
| 711 | func Strdup(StrVar *string) string { | 652 | func Strdup(StrVar *string) string { | ||
| 712 | - | core.LazyRegister(&xStrdup, "GLIB", "g_strdup", false) | |||
| 713 | - | ||||
| 714 | StrVarPtr := core.GStrdupNullable(StrVar) | 653 | StrVarPtr := core.GStrdupNullable(StrVar) | ||
| 715 | defer core.GFreeNullable(StrVarPtr) | 654 | defer core.GFreeNullable(StrVarPtr) | ||
| 716 | 655 | ||||
| @@ -728,8 +667,6 @@ var xStrdupPrintf func(string, ...interface{}) string | |||||
| 728 | // contains `%lc` or `%ls` conversions, which can fail if no multibyte | 667 | // contains `%lc` or `%ls` conversions, which can fail if no multibyte | ||
| 729 | // representation is available for the given character. | 668 | // representation is available for the given character. | ||
| 730 | func StrdupPrintf(FormatVar string, varArgs ...interface{}) string { | 669 | func StrdupPrintf(FormatVar string, varArgs ...interface{}) string { | ||
| 731 | - | core.LazyRegister(&xStrdupPrintf, "GLIB", "g_strdup_printf", false) | |||
| 732 | - | ||||
| 733 | cret := xStrdupPrintf(FormatVar, varArgs...) | 670 | cret := xStrdupPrintf(FormatVar, varArgs...) | ||
| 734 | return cret | 671 | return cret | ||
| 735 | } | 672 | } | ||
| @@ -747,8 +684,6 @@ var xStrdupVprintf func(string, []interface{}) string | |||||
| 747 | // See also [func@GLib.vasprintf], which offers the same functionality, but | 684 | // See also [func@GLib.vasprintf], which offers the same functionality, but | ||
| 748 | // additionally returns the length of the allocated string. | 685 | // additionally returns the length of the allocated string. | ||
| 749 | func StrdupVprintf(FormatVar string, ArgsVar []interface{}) string { | 686 | func StrdupVprintf(FormatVar string, ArgsVar []interface{}) string { | ||
| 750 | - | core.LazyRegister(&xStrdupVprintf, "GLIB", "g_strdup_vprintf", false) | |||
| 751 | - | ||||
| 752 | cret := xStrdupVprintf(FormatVar, ArgsVar) | 687 | cret := xStrdupVprintf(FormatVar, ArgsVar) | ||
| 753 | return cret | 688 | return cret | ||
| 754 | } | 689 | } | ||
| @@ -760,8 +695,6 @@ var xStrdupv func([]string) []string | |||||
| 760 | // | 695 | // | ||
| 761 | // If called on a `NULL` value, `g_strdupv()` simply returns `NULL`. | 696 | // If called on a `NULL` value, `g_strdupv()` simply returns `NULL`. | ||
| 762 | func Strdupv(StrArrayVar []string) []string { | 697 | func Strdupv(StrArrayVar []string) []string { | ||
| 763 | - | core.LazyRegister(&xStrdupv, "GLIB", "g_strdupv", false) | |||
| 764 | - | ||||
| 765 | cret := xStrdupv(StrArrayVar) | 698 | cret := xStrdupv(StrArrayVar) | ||
| 766 | return cret | 699 | return cret | ||
| 767 | } | 700 | } | ||
| @@ -790,8 +723,6 @@ var xStrerror func(int) string | |||||
| 790 | // g_strerror (saved_errno); | 723 | // g_strerror (saved_errno); | ||
| 791 | // ``` | 724 | // ``` | ||
| 792 | func Strerror(ErrnumVar int) string { | 725 | func Strerror(ErrnumVar int) string { | ||
| 793 | - | core.LazyRegister(&xStrerror, "GLIB", "g_strerror", false) | |||
| 794 | - | ||||
| 795 | cret := xStrerror(ErrnumVar) | 726 | cret := xStrerror(ErrnumVar) | ||
| 796 | return cret | 727 | return cret | ||
| 797 | } | 728 | } | ||
| @@ -818,8 +749,6 @@ var xStrescape func(string, uintptr) string | |||||
| 818 | // | 749 | // | ||
| 819 | // [func@GLib.strcompress] does the reverse conversion. | 750 | // [func@GLib.strcompress] does the reverse conversion. | ||
| 820 | func Strescape(SourceVar string, ExceptionsVar *string) string { | 751 | func Strescape(SourceVar string, ExceptionsVar *string) string { | ||
| 821 | - | core.LazyRegister(&xStrescape, "GLIB", "g_strescape", false) | |||
| 822 | - | ||||
| 823 | ExceptionsVarPtr := core.GStrdupNullable(ExceptionsVar) | 752 | ExceptionsVarPtr := core.GStrdupNullable(ExceptionsVar) | ||
| 824 | defer core.GFreeNullable(ExceptionsVarPtr) | 753 | defer core.GFreeNullable(ExceptionsVarPtr) | ||
| 825 | 754 | ||||
| @@ -833,8 +762,6 @@ var xStrfreev func([]string) | |||||
| 833 | // | 762 | // | ||
| 834 | // If @str_array is `NULL`, this function simply returns. | 763 | // If @str_array is `NULL`, this function simply returns. | ||
| 835 | func Strfreev(StrArrayVar []string) { | 764 | func Strfreev(StrArrayVar []string) { | ||
| 836 | - | core.LazyRegister(&xStrfreev, "GLIB", "g_strfreev", false) | |||
| 837 | - | ||||
| 838 | xStrfreev(StrArrayVar) | 765 | xStrfreev(StrArrayVar) | ||
| 839 | } | 766 | } | ||
| 840 | 767 | ||||
| @@ -843,8 +770,6 @@ var xStrjoin func(uintptr, ...interface{}) string | |||||
| 843 | // Joins a number of strings together to form one long string, with the | 770 | // Joins a number of strings together to form one long string, with the | ||
| 844 | // optional @separator inserted between each of them. | 771 | // optional @separator inserted between each of them. | ||
| 845 | func Strjoin(SeparatorVar *string, varArgs ...interface{}) string { | 772 | func Strjoin(SeparatorVar *string, varArgs ...interface{}) string { | ||
| 846 | - | core.LazyRegister(&xStrjoin, "GLIB", "g_strjoin", false) | |||
| 847 | - | ||||
| 848 | SeparatorVarPtr := core.GStrdupNullable(SeparatorVar) | 773 | SeparatorVarPtr := core.GStrdupNullable(SeparatorVar) | ||
| 849 | defer core.GFreeNullable(SeparatorVarPtr) | 774 | defer core.GFreeNullable(SeparatorVarPtr) | ||
| 850 | 775 | ||||
| @@ -861,8 +786,6 @@ var xStrjoinv func(uintptr, []string) string | |||||
| 861 | // empty string. If @str_array contains a single item, @separator will not | 786 | // empty string. If @str_array contains a single item, @separator will not | ||
| 862 | // appear in the resulting string. | 787 | // appear in the resulting string. | ||
| 863 | func Strjoinv(SeparatorVar *string, StrArrayVar []string) string { | 788 | func Strjoinv(SeparatorVar *string, StrArrayVar []string) string { | ||
| 864 | - | core.LazyRegister(&xStrjoinv, "GLIB", "g_strjoinv", false) | |||
| 865 | - | ||||
| 866 | SeparatorVarPtr := core.GStrdupNullable(SeparatorVar) | 789 | SeparatorVarPtr := core.GStrdupNullable(SeparatorVar) | ||
| 867 | defer core.GFreeNullable(SeparatorVarPtr) | 790 | defer core.GFreeNullable(SeparatorVarPtr) | ||
| 868 | 791 | ||||
| @@ -886,8 +809,6 @@ var xStrlcat func(string, string, uint) uint | |||||
| 886 | // Caveat: this is supposedly a more secure alternative to `strcat()` or | 809 | // Caveat: this is supposedly a more secure alternative to `strcat()` or | ||
| 887 | // `strncat()`, but for real security [func@GLib.strconcat] is harder to mess up. | 810 | // `strncat()`, but for real security [func@GLib.strconcat] is harder to mess up. | ||
| 888 | func Strlcat(DestVar string, SrcVar string, DestSizeVar uint) uint { | 811 | func Strlcat(DestVar string, SrcVar string, DestSizeVar uint) uint { | ||
| 889 | - | core.LazyRegister(&xStrlcat, "GLIB", "g_strlcat", false) | |||
| 890 | - | ||||
| 891 | cret := xStrlcat(DestVar, SrcVar, DestSizeVar) | 812 | cret := xStrlcat(DestVar, SrcVar, DestSizeVar) | ||
| 892 | return cret | 813 | return cret | ||
| 893 | } | 814 | } | ||
| @@ -909,8 +830,6 @@ var xStrlcpy func(string, string, uint) uint | |||||
| 909 | // but if you really want to avoid screwups, [func@GLib.strdup] is an even better | 830 | // but if you really want to avoid screwups, [func@GLib.strdup] is an even better | ||
| 910 | // idea. | 831 | // idea. | ||
| 911 | func Strlcpy(DestVar string, SrcVar string, DestSizeVar uint) uint { | 832 | func Strlcpy(DestVar string, SrcVar string, DestSizeVar uint) uint { | ||
| 912 | - | core.LazyRegister(&xStrlcpy, "GLIB", "g_strlcpy", false) | |||
| 913 | - | ||||
| 914 | cret := xStrlcpy(DestVar, SrcVar, DestSizeVar) | 833 | cret := xStrlcpy(DestVar, SrcVar, DestSizeVar) | ||
| 915 | return cret | 834 | return cret | ||
| 916 | } | 835 | } | ||
| @@ -922,8 +841,6 @@ var xStrncasecmp func(string, string, uint) int | |||||
| 922 | // to [func@GLib.strcasecmp] except it only compares the first @n characters of | 841 | // to [func@GLib.strcasecmp] except it only compares the first @n characters of | ||
| 923 | // the strings. | 842 | // the strings. | ||
| 924 | func Strncasecmp(S1Var string, S2Var string, NVar uint) int { | 843 | func Strncasecmp(S1Var string, S2Var string, NVar uint) int { | ||
| 925 | - | core.LazyRegister(&xStrncasecmp, "GLIB", "g_strncasecmp", false) | |||
| 926 | - | ||||
| 927 | cret := xStrncasecmp(S1Var, S2Var, NVar) | 844 | cret := xStrncasecmp(S1Var, S2Var, NVar) | ||
| 928 | return cret | 845 | return cret | ||
| 929 | } | 846 | } | ||
| @@ -938,8 +855,6 @@ var xStrndup func(uintptr, uint) string | |||||
| 938 | // To copy a number of characters from a UTF-8 encoded string, | 855 | // To copy a number of characters from a UTF-8 encoded string, | ||
| 939 | // use [func@GLib.utf8_strncpy] instead. | 856 | // use [func@GLib.utf8_strncpy] instead. | ||
| 940 | func Strndup(StrVar *string, NVar uint) string { | 857 | func Strndup(StrVar *string, NVar uint) string { | ||
| 941 | - | core.LazyRegister(&xStrndup, "GLIB", "g_strndup", false) | |||
| 942 | - | ||||
| 943 | StrVarPtr := core.GStrdupNullable(StrVar) | 858 | StrVarPtr := core.GStrdupNullable(StrVar) | ||
| 944 | defer core.GFreeNullable(StrVarPtr) | 859 | defer core.GFreeNullable(StrVarPtr) | ||
| 945 | 860 | ||||
| @@ -951,8 +866,6 @@ var xStrnfill func(uint, byte) string | |||||
| 951 | 866 | ||||
| 952 | // Creates a new string @length bytes long filled with @fill_char. | 867 | // Creates a new string @length bytes long filled with @fill_char. | ||
| 953 | func Strnfill(LengthVar uint, FillCharVar byte) string { | 868 | func Strnfill(LengthVar uint, FillCharVar byte) string { | ||
| 954 | - | core.LazyRegister(&xStrnfill, "GLIB", "g_strnfill", false) | |||
| 955 | - | ||||
| 956 | cret := xStrnfill(LengthVar, FillCharVar) | 869 | cret := xStrnfill(LengthVar, FillCharVar) | ||
| 957 | return cret | 870 | return cret | ||
| 958 | } | 871 | } | ||
| @@ -966,8 +879,6 @@ var xStrreverse func(string) string | |||||
| 966 | // containing multibyte characters. For that purpose, use | 879 | // containing multibyte characters. For that purpose, use | ||
| 967 | // [func@GLib.utf8_strreverse]. | 880 | // [func@GLib.utf8_strreverse]. | ||
| 968 | func Strreverse(StringVar string) string { | 881 | func Strreverse(StringVar string) string { | ||
| 969 | - | core.LazyRegister(&xStrreverse, "GLIB", "g_strreverse", false) | |||
| 970 | - | ||||
| 971 | cret := xStrreverse(StringVar) | 882 | cret := xStrreverse(StringVar) | ||
| 972 | return cret | 883 | return cret | ||
| 973 | } | 884 | } | ||
| @@ -980,8 +891,6 @@ var xStrrstr func(string, string) string | |||||
| 980 | // The fact that this function returns `gchar *` rather than `const gchar *` is | 891 | // The fact that this function returns `gchar *` rather than `const gchar *` is | ||
| 981 | // a historical artifact. | 892 | // a historical artifact. | ||
| 982 | func Strrstr(HaystackVar string, NeedleVar string) string { | 893 | func Strrstr(HaystackVar string, NeedleVar string) string { | ||
| 983 | - | core.LazyRegister(&xStrrstr, "GLIB", "g_strrstr", false) | |||
| 984 | - | ||||
| 985 | cret := xStrrstr(HaystackVar, NeedleVar) | 894 | cret := xStrrstr(HaystackVar, NeedleVar) | ||
| 986 | return cret | 895 | return cret | ||
| 987 | } | 896 | } | ||
| @@ -995,8 +904,6 @@ var xStrrstrLen func(string, int, string) string | |||||
| 995 | // The fact that this function returns `gchar *` rather than `const gchar *` is | 904 | // The fact that this function returns `gchar *` rather than `const gchar *` is | ||
| 996 | // a historical artifact. | 905 | // a historical artifact. | ||
| 997 | func StrrstrLen(HaystackVar string, HaystackLenVar int, NeedleVar string) string { | 906 | func StrrstrLen(HaystackVar string, HaystackLenVar int, NeedleVar string) string { | ||
| 998 | - | core.LazyRegister(&xStrrstrLen, "GLIB", "g_strrstr_len", false) | |||
| 999 | - | ||||
| 1000 | cret := xStrrstrLen(HaystackVar, HaystackLenVar, NeedleVar) | 907 | cret := xStrrstrLen(HaystackVar, HaystackLenVar, NeedleVar) | ||
| 1001 | return cret | 908 | return cret | ||
| 1002 | } | 909 | } | ||
| @@ -1010,8 +917,6 @@ var xStrsignal func(int) string | |||||
| 1010 | // returns a string in UTF-8 encoding, and since not all platforms support | 917 | // returns a string in UTF-8 encoding, and since not all platforms support | ||
| 1011 | // the `strsignal()` function. | 918 | // the `strsignal()` function. | ||
| 1012 | func Strsignal(SignumVar int) string { | 919 | func Strsignal(SignumVar int) string { | ||
| 1013 | - | core.LazyRegister(&xStrsignal, "GLIB", "g_strsignal", false) | |||
| 1014 | - | ||||
| 1015 | cret := xStrsignal(SignumVar) | 920 | cret := xStrsignal(SignumVar) | ||
| 1016 | return cret | 921 | return cret | ||
| 1017 | } | 922 | } | ||
| @@ -1032,8 +937,6 @@ var xStrsplit func(string, string, int) []string | |||||
| 1032 | // to represent empty elements, you'll need to check for the empty string | 937 | // to represent empty elements, you'll need to check for the empty string | ||
| 1033 | // before calling `g_strsplit()`. | 938 | // before calling `g_strsplit()`. | ||
| 1034 | func Strsplit(StringVar string, DelimiterVar string, MaxTokensVar int) []string { | 939 | func Strsplit(StringVar string, DelimiterVar string, MaxTokensVar int) []string { | ||
| 1035 | - | core.LazyRegister(&xStrsplit, "GLIB", "g_strsplit", false) | |||
| 1036 | - | ||||
| 1037 | cret := xStrsplit(StringVar, DelimiterVar, MaxTokensVar) | 940 | cret := xStrsplit(StringVar, DelimiterVar, MaxTokensVar) | ||
| 1038 | return cret | 941 | return cret | ||
| 1039 | } | 942 | } | ||
| @@ -1064,8 +967,6 @@ var xStrsplitSet func(string, []byte, int) []string | |||||
| 1064 | // Note that this function works on bytes not characters, so it can't be used | 967 | // Note that this function works on bytes not characters, so it can't be used | ||
| 1065 | // to delimit UTF-8 strings for anything but ASCII characters. | 968 | // to delimit UTF-8 strings for anything but ASCII characters. | ||
| 1066 | func StrsplitSet(StringVar string, DelimitersVar []byte, MaxTokensVar int) []string { | 969 | func StrsplitSet(StringVar string, DelimitersVar []byte, MaxTokensVar int) []string { | ||
| 1067 | - | core.LazyRegister(&xStrsplitSet, "GLIB", "g_strsplit_set", false) | |||
| 1068 | - | ||||
| 1069 | cret := xStrsplitSet(StringVar, DelimitersVar, MaxTokensVar) | 970 | cret := xStrsplitSet(StringVar, DelimitersVar, MaxTokensVar) | ||
| 1070 | return cret | 971 | return cret | ||
| 1071 | } | 972 | } | ||
| @@ -1082,8 +983,6 @@ var xStrstrLen func(string, int, string) string | |||||
| 1082 | // The fact that this function returns `gchar *` rather than `const gchar *` is | 983 | // The fact that this function returns `gchar *` rather than `const gchar *` is | ||
| 1083 | // a historical artifact. | 984 | // a historical artifact. | ||
| 1084 | func StrstrLen(HaystackVar string, HaystackLenVar int, NeedleVar string) string { | 985 | func StrstrLen(HaystackVar string, HaystackLenVar int, NeedleVar string) string { | ||
| 1085 | - | core.LazyRegister(&xStrstrLen, "GLIB", "g_strstr_len", false) | |||
| 1086 | - | ||||
| 1087 | cret := xStrstrLen(HaystackVar, HaystackLenVar, NeedleVar) | 986 | cret := xStrstrLen(HaystackVar, HaystackLenVar, NeedleVar) | ||
| 1088 | return cret | 987 | return cret | ||
| 1089 | } | 988 | } | ||
| @@ -1103,8 +1002,6 @@ var xStrtod func(string, *string) float64 | |||||
| 1103 | // separated lists of values, since the commas may be interpreted as a decimal | 1002 | // separated lists of values, since the commas may be interpreted as a decimal | ||
| 1104 | // point in some locales, causing unexpected results. | 1003 | // point in some locales, causing unexpected results. | ||
| 1105 | func Strtod(NptrVar string, EndptrVar *string) float64 { | 1004 | func Strtod(NptrVar string, EndptrVar *string) float64 { | ||
| 1106 | - | core.LazyRegister(&xStrtod, "GLIB", "g_strtod", false) | |||
| 1107 | - | ||||
| 1108 | cret := xStrtod(NptrVar, EndptrVar) | 1005 | cret := xStrtod(NptrVar, EndptrVar) | ||
| 1109 | return cret | 1006 | return cret | ||
| 1110 | } | 1007 | } | ||
| @@ -1113,8 +1010,6 @@ var xStrup func(string) string | |||||
| 1113 | 1010 | ||||
| 1114 | // Converts a string to upper case. | 1011 | // Converts a string to upper case. | ||
| 1115 | func Strup(StringVar string) string { | 1012 | func Strup(StringVar string) string { | ||
| 1116 | - | core.LazyRegister(&xStrup, "GLIB", "g_strup", false) | |||
| 1117 | - | ||||
| 1118 | cret := xStrup(StringVar) | 1013 | cret := xStrup(StringVar) | ||
| 1119 | return cret | 1014 | return cret | ||
| 1120 | } | 1015 | } | ||
| @@ -1124,8 +1019,6 @@ var xStrvContains func([]string, string) bool | |||||
| 1124 | // Checks if an array of strings contains the string @str according to | 1019 | // Checks if an array of strings contains the string @str according to | ||
| 1125 | // [func@GLib.str_equal]. @strv must not be `NULL`. | 1020 | // [func@GLib.str_equal]. @strv must not be `NULL`. | ||
| 1126 | func StrvContains(StrvVar []string, StrVar string) bool { | 1021 | func StrvContains(StrvVar []string, StrVar string) bool { | ||
| 1127 | - | core.LazyRegister(&xStrvContains, "GLIB", "g_strv_contains", false) | |||
| 1128 | - | ||||
| 1129 | cret := xStrvContains(StrvVar, StrVar) | 1022 | cret := xStrvContains(StrvVar, StrVar) | ||
| 1130 | return cret | 1023 | return cret | ||
| 1131 | } | 1024 | } | ||
| @@ -1142,8 +1035,6 @@ var xStrvEqual func([]string, []string) bool | |||||
| 1142 | // Two empty arrays are considered equal. Neither @strv1 nor @strv2 may be | 1035 | // Two empty arrays are considered equal. Neither @strv1 nor @strv2 may be | ||
| 1143 | // `NULL`. | 1036 | // `NULL`. | ||
| 1144 | func StrvEqual(Strv1Var []string, Strv2Var []string) bool { | 1037 | func StrvEqual(Strv1Var []string, Strv2Var []string) bool { | ||
| 1145 | - | core.LazyRegister(&xStrvEqual, "GLIB", "g_strv_equal", false) | |||
| 1146 | - | ||||
| 1147 | cret := xStrvEqual(Strv1Var, Strv2Var) | 1038 | cret := xStrvEqual(Strv1Var, Strv2Var) | ||
| 1148 | return cret | 1039 | return cret | ||
| 1149 | } | 1040 | } | ||
| @@ -1152,8 +1043,6 @@ var xStrvLength func([]string) uint | |||||
| 1152 | 1043 | ||||
| 1153 | // Returns the length of an array of strings. @str_array must not be `NULL`. | 1044 | // Returns the length of an array of strings. @str_array must not be `NULL`. | ||
| 1154 | func StrvLength(StrArrayVar []string) uint { | 1045 | func StrvLength(StrArrayVar []string) uint { | ||
| 1155 | - | core.LazyRegister(&xStrvLength, "GLIB", "g_strv_length", false) | |||
| 1156 | - | ||||
| 1157 | cret := xStrvLength(StrArrayVar) | 1046 | cret := xStrvLength(StrArrayVar) | ||
| 1158 | return cret | 1047 | return cret | ||
| 1159 | } | 1048 | } | ||
| @@ -1161,4 +1050,71 @@ func StrvLength(StrArrayVar []string) uint { | |||||
| 1161 | func init() { | 1050 | func init() { | ||
| 1162 | core.SetPackageName("GLIB", "glib-2.0") | 1051 | core.SetPackageName("GLIB", "glib-2.0") | ||
| 1163 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | 1052 | core.SetSharedLibraries("GLIB", []string{"libgobject-2.0.so.0", "libglib-2.0.so.0", "libgobject-2.0.0.dylib", "libglib-2.0.0.dylib"}) | ||
| 1053 | + | var libs []uintptr | |||
| 1054 | + | for _, libPath := range core.GetPaths("GLIB") { | |||
| 1055 | + | lib, err := purego.Dlopen(libPath, purego.RTLD_NOW|purego.RTLD_GLOBAL) | |||
| 1056 | + | if err != nil { | |||
| 1057 | + | panic(err) | |||
| 1058 | + | } | |||
| 1059 | + | libs = append(libs, lib) | |||
| 1060 | + | } | |||
| 1061 | + | ||||
| 1062 | + | core.PuregoSafeRegister(&xAsciiDigitValue, libs, "g_ascii_digit_value") | |||
| 1063 | + | core.PuregoSafeRegister(&xAsciiDtostr, libs, "g_ascii_dtostr") | |||
| 1064 | + | core.PuregoSafeRegister(&xAsciiFormatd, libs, "g_ascii_formatd") | |||
| 1065 | + | core.PuregoSafeRegister(&xAsciiStrcasecmp, libs, "g_ascii_strcasecmp") | |||
| 1066 | + | core.PuregoSafeRegister(&xAsciiStrdown, libs, "g_ascii_strdown") | |||
| 1067 | + | core.PuregoSafeRegister(&xAsciiStringToSigned, libs, "g_ascii_string_to_signed") | |||
| 1068 | + | core.PuregoSafeRegister(&xAsciiStringToUnsigned, libs, "g_ascii_string_to_unsigned") | |||
| 1069 | + | core.PuregoSafeRegister(&xAsciiStrncasecmp, libs, "g_ascii_strncasecmp") | |||
| 1070 | + | core.PuregoSafeRegister(&xAsciiStrtod, libs, "g_ascii_strtod") | |||
| 1071 | + | core.PuregoSafeRegister(&xAsciiStrtoll, libs, "g_ascii_strtoll") | |||
| 1072 | + | core.PuregoSafeRegister(&xAsciiStrtoull, libs, "g_ascii_strtoull") | |||
| 1073 | + | core.PuregoSafeRegister(&xAsciiStrup, libs, "g_ascii_strup") | |||
| 1074 | + | core.PuregoSafeRegister(&xAsciiTolower, libs, "g_ascii_tolower") | |||
| 1075 | + | core.PuregoSafeRegister(&xAsciiToupper, libs, "g_ascii_toupper") | |||
| 1076 | + | core.PuregoSafeRegister(&xAsciiXdigitValue, libs, "g_ascii_xdigit_value") | |||
| 1077 | + | core.PuregoSafeRegister(&xMemdup, libs, "g_memdup") | |||
| 1078 | + | core.PuregoSafeRegister(&xMemdup2, libs, "g_memdup2") | |||
| 1079 | + | core.PuregoSafeRegister(&xStpcpy, libs, "g_stpcpy") | |||
| 1080 | + | core.PuregoSafeRegister(&xStrHasPrefix, libs, "g_str_has_prefix") | |||
| 1081 | + | core.PuregoSafeRegister(&xStrHasSuffix, libs, "g_str_has_suffix") | |||
| 1082 | + | core.PuregoSafeRegister(&xStrIsAscii, libs, "g_str_is_ascii") | |||
| 1083 | + | core.PuregoSafeRegister(&xStrMatchString, libs, "g_str_match_string") | |||
| 1084 | + | core.PuregoSafeRegister(&xStrToAscii, libs, "g_str_to_ascii") | |||
| 1085 | + | core.PuregoSafeRegister(&xStrTokenizeAndFold, libs, "g_str_tokenize_and_fold") | |||
| 1086 | + | core.PuregoSafeRegister(&xStrcanon, libs, "g_strcanon") | |||
| 1087 | + | core.PuregoSafeRegister(&xStrcasecmp, libs, "g_strcasecmp") | |||
| 1088 | + | core.PuregoSafeRegister(&xStrchomp, libs, "g_strchomp") | |||
| 1089 | + | core.PuregoSafeRegister(&xStrchug, libs, "g_strchug") | |||
| 1090 | + | core.PuregoSafeRegister(&xStrcompress, libs, "g_strcompress") | |||
| 1091 | + | core.PuregoSafeRegister(&xStrconcat, libs, "g_strconcat") | |||
| 1092 | + | core.PuregoSafeRegister(&xStrdelimit, libs, "g_strdelimit") | |||
| 1093 | + | core.PuregoSafeRegister(&xStrdown, libs, "g_strdown") | |||
| 1094 | + | core.PuregoSafeRegister(&xStrdup, libs, "g_strdup") | |||
| 1095 | + | core.PuregoSafeRegister(&xStrdupPrintf, libs, "g_strdup_printf") | |||
| 1096 | + | core.PuregoSafeRegister(&xStrdupVprintf, libs, "g_strdup_vprintf") | |||
| 1097 | + | core.PuregoSafeRegister(&xStrdupv, libs, "g_strdupv") | |||
| 1098 | + | core.PuregoSafeRegister(&xStrerror, libs, "g_strerror") | |||
| 1099 | + | core.PuregoSafeRegister(&xStrescape, libs, "g_strescape") | |||
| 1100 | + | core.PuregoSafeRegister(&xStrfreev, libs, "g_strfreev") | |||
| 1101 | + | core.PuregoSafeRegister(&xStrjoin, libs, "g_strjoin") | |||
| 1102 | + | core.PuregoSafeRegister(&xStrjoinv, libs, "g_strjoinv") | |||
| 1103 | + | core.PuregoSafeRegister(&xStrlcat, libs, "g_strlcat") | |||
| 1104 | + | core.PuregoSafeRegister(&xStrlcpy, libs, "g_strlcpy") | |||
| 1105 | + | core.PuregoSafeRegister(&xStrncasecmp, libs, "g_strncasecmp") | |||
| 1106 | + | core.PuregoSafeRegister(&xStrndup, libs, "g_strndup") | |||
| 1107 | + | core.PuregoSafeRegister(&xStrnfill, libs, "g_strnfill") | |||
| 1108 | + | core.PuregoSafeRegister(&xStrreverse, libs, "g_strreverse") | |||
| 1109 | + | core.PuregoSafeRegister(&xStrrstr, libs, "g_strrstr") | |||
| 1110 | + | core.PuregoSafeRegister(&xStrrstrLen, libs, "g_strrstr_len") | |||
| 1111 | + | core.PuregoSafeRegister(&xStrsignal, libs, "g_strsignal") | |||
| 1112 | + | core.PuregoSafeRegister(&xStrsplit, libs, "g_strsplit") | |||
| 1113 | + | core.PuregoSafeRegister(&xStrsplitSet, libs, "g_strsplit_set") | |||
| 1114 | + | core.PuregoSafeRegister(&xStrstrLen, libs, "g_strstr_len") | |||
| 1115 | + | core.PuregoSafeRegister(&xStrtod, libs, "g_strtod") | |||
| 1116 | + | core.PuregoSafeRegister(&xStrup, libs, "g_strup") | |||
| 1117 | + | core.PuregoSafeRegister(&xStrvContains, libs, "g_strv_contains") | |||
| 1118 | + | core.PuregoSafeRegister(&xStrvEqual, libs, "g_strv_equal") | |||
| 1119 | + | core.PuregoSafeRegister(&xStrvLength, libs, "g_strv_length") | |||
| 1164 | } | 1120 | } | ||