1
0
Fork 0
forked from fun/fun

Fixed default FreeBSD make compatibility error.

This commit is contained in:
Johannes Findeisen 2025-09-30 00:23:24 +02:00
commit eb499c07c9
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16)
project(fun VERSION 0.12.3 LANGUAGES C)
project(fun VERSION 0.12.4 LANGUAGES C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED ON)

View file

@ -545,7 +545,7 @@ static int starts_with_kw(const char *s, const char *kw) {
/* Compute how many indentation levels (2 spaces per level) are still open.
* Only counts significant lines (non-blank, not comment-only),
* and ignores text inside \/* ... *\/ block comments. */
* and ignores text inside comment blocks. */
static int compute_open_indent_blocks(const char *buf) {
int in_block_comment = 0;
int open = 0;
@ -618,7 +618,7 @@ static int compute_open_indent_blocks(const char *buf) {
/* Detect if current buffer looks incomplete:
* - Unclosed quotes (\' or \") with escapes
* - Unclosed block comment \/* ... *\/
* - Unclosed comment block
* - Parentheses not balanced
* - Last significant line is a block header (if/else/while/for/fun)
* - Line ends with an operator/comma