refactor(options): always allocate option values (#30917)

Instead of keeping `P_ALLOCED` and `P_DEF_ALLOCED` flags to check if an
option value is allocated, always allocate option values to simplify the
logic.

Ref: #25672
This commit is contained in:
Famiu Haque
2024-10-27 19:09:24 +06:00
committed by GitHub
parent 123c0b6b4e
commit b136a9ee4c
7 changed files with 47 additions and 114 deletions

View File

@@ -67,7 +67,6 @@ local function get_flags(o)
end
end
for _, flag_desc in ipairs({
{ 'alloced' },
{ 'nodefault' },
{ 'no_mkrc' },
{ 'secure' },