Skip to content

fix(flowc): emit stdbool.h for bool type - #435

Merged
godofecht merged 2 commits into
mainfrom
work
Aug 11, 2026
Merged

godofecht merged 2 commits into
mainfrom
work

Conversation

@godofecht

Copy link
Copy Markdown
Contributor

Summary

  • compiler/src/cgen.flow: add #include <stdbool.h> to the C preamble so that Flow bool type lowers to C bool correctly.

Context

Without stdbool.h, any Flow program using bool (directly or via stdlib functions like str_eq) would fail C compilation with "unknown type name 'bool'".

Test plan

  • ./flow run compiler/src/main.flow passes (flowc: PASS)
  • lib/stdlib/string.flow now compiles past the bool error

This pull request includes code written with the assistance of AI.
The code has not yet been reviewed by a human.

Generated with Devin

@cursor

cursor Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@godofecht
godofecht merged commit aa247f6 into main Aug 11, 2026
11 of 12 checks passed
@godofecht
godofecht deleted the work branch August 11, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant