Fixed kcgi bug in ./scripts/check_op_includes.py. (0.41.10)
This commit is contained in:
parent
76a6103721
commit
abfb302c52
2 changed files with 10 additions and 4 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(fun VERSION 0.41.9 LANGUAGES C)
|
project(fun VERSION 0.41.10 LANGUAGES C)
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
|
||||||
|
|
@ -107,15 +107,21 @@ def parse_includes_from_vm(text: str) -> set[str]:
|
||||||
def map_token(d: str, n: str) -> str:
|
def map_token(d: str, n: str) -> str:
|
||||||
# Directory-specific namespaces
|
# Directory-specific namespaces
|
||||||
if d == "curl":
|
if d == "curl":
|
||||||
return f"CURL_{n.upper()}"
|
if n in {"download", "get", "post"}:
|
||||||
|
return f"CURL_{n.upper()}"
|
||||||
if d == "openssl":
|
if d == "openssl":
|
||||||
return f"OPENSSL_{n.upper()}"
|
if n in {"md5", "ripemd160", "sha256", "sha512"}:
|
||||||
|
return f"OPENSSL_{n.upper()}"
|
||||||
if d == "rust":
|
if d == "rust":
|
||||||
return f"RUST_{n.upper()}"
|
if n in {"get_sp", "hello", "hello_args", "hello_args_return", "set_exit" }:
|
||||||
|
return f"RUST_{n.upper()}"
|
||||||
if d == "cpp":
|
if d == "cpp":
|
||||||
if n == "add":
|
if n == "add":
|
||||||
return "CPP_ADD"
|
return "CPP_ADD"
|
||||||
return f"CPP_{n.upper()}"
|
return f"CPP_{n.upper()}"
|
||||||
|
if d == "kcgi":
|
||||||
|
if n in {"end", "parse", "reply_start", "write"}:
|
||||||
|
return f"KCGI_{n.upper()}"
|
||||||
if d == "ini":
|
if d == "ini":
|
||||||
if n in {"load", "free", "get_string", "get_int", "get_double", "get_bool", "set", "unset", "save"}:
|
if n in {"load", "free", "get_string", "get_int", "get_double", "get_bool", "set", "unset", "save"}:
|
||||||
return f"INI_{n.upper()}"
|
return f"INI_{n.upper()}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue