Switch to a autotools build system and format

This commit is contained in:
2026-04-17 12:19:37 -05:00
parent 3657b8de60
commit ceffd1869a
17 changed files with 554 additions and 110 deletions

View File

@@ -1,11 +1,12 @@
(define-module (petri)
:use-module (agar core)
:use-module (agar gui)
:export (petri-app))
#:use-module (ice-9 format)
#:export (init get-error event-loop make-window make-label window-show)
#:replace (quit))
(define-syntax-rule (petri-app exp ...)
(begin
(init-core)
(init-gui)
exp ...
(event-loop)))
(load-extension "libpetri-guile" "init_petri")
(define (make-window)
(_window-new))
(define (make-label parent fmt . args)
(_label-new parent (apply format #f fmt args)))