refactor: apply project style guidelines

This commit is contained in:
2026-10-05 20:18:53 +02:00
parent 6ba23f579a
commit 2648991d04
32 changed files with 495 additions and 266 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
# Build configuration surface for `brolang build` (v0).
#
# A project's `build.bro` imports this module and declares a top-level constant
# named `config` of type `BuildConfig`. `brolang build [root]` type-checks
# build.bro, reads the config, and writes root/build/name.
#
# Declarative and literal-only: one executable per build. List fields take an
# address-of an array literal (`&["raylib"]`) and default to empty.
#! build configuration surface for `brolang build` (v0).
#!
#! a project's `build.bro` imports this module and declares a top-level constant
#! named `config` of type `BuildConfig`. `brolang build [root]` type-checks
#! build.bro, reads the config, and writes root/build/name.
#!
#! declarative and literal-only: one executable per build. list fields take an
#! address-of an array literal (`&["raylib"]`) and default to empty.
BuildConfig :: struct {
name []u8 # output executable name under root/build
source []u8 # program package directory, relative to build.bro