Fixed default FreeBSD make compatibility error.
This commit is contained in:
parent
728b4f67da
commit
eb499c07c9
2 changed files with 3 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.16)
|
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 11)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
|
||||||
|
|
@ -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.
|
/* Compute how many indentation levels (2 spaces per level) are still open.
|
||||||
* Only counts significant lines (non-blank, not comment-only),
|
* 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) {
|
static int compute_open_indent_blocks(const char *buf) {
|
||||||
int in_block_comment = 0;
|
int in_block_comment = 0;
|
||||||
int open = 0;
|
int open = 0;
|
||||||
|
|
@ -618,7 +618,7 @@ static int compute_open_indent_blocks(const char *buf) {
|
||||||
|
|
||||||
/* Detect if current buffer looks incomplete:
|
/* Detect if current buffer looks incomplete:
|
||||||
* - Unclosed quotes (\' or \") with escapes
|
* - Unclosed quotes (\' or \") with escapes
|
||||||
* - Unclosed block comment \/* ... *\/
|
* - Unclosed comment block
|
||||||
* - Parentheses not balanced
|
* - Parentheses not balanced
|
||||||
* - Last significant line is a block header (if/else/while/for/fun)
|
* - Last significant line is a block header (if/else/while/for/fun)
|
||||||
* - Line ends with an operator/comma
|
* - Line ends with an operator/comma
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue