Files
RedBear-OS/local/recipes/dev/libclc/source/libc/include/complex.yaml
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

139 lines
2.7 KiB
YAML

header: complex.h
header_template: complex.h.def
macros: []
types:
- type_name: cfloat16
- type_name: cfloat128
- type_name: float128
enums: []
objects: []
functions:
- name: cimag
standards:
- stdc
return_type: double
arguments:
- type: _Complex double
- name: cimagf
standards:
- stdc
return_type: float
arguments:
- type: _Complex float
- name: cimagl
standards:
- stdc
return_type: long double
arguments:
- type: _Complex long double
- name: cimagf16
standards:
- stdc
return_type: _Float16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: cimagf128
standards:
- stdc
return_type: float128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128
- name: creal
standards:
- stdc
return_type: double
arguments:
- type: _Complex double
- name: crealf
standards:
- stdc
return_type: float
arguments:
- type: _Complex float
- name: creall
standards:
- stdc
return_type: long double
arguments:
- type: _Complex long double
- name: crealf16
standards:
- stdc
return_type: _Float16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: crealf128
standards:
- stdc
return_type: float128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128
- name: conj
standards:
- stdc
return_type: _Complex double
arguments:
- type: _Complex double
- name: conjf
standards:
- stdc
return_type: _Complex float
arguments:
- type: _Complex float
- name: conjl
standards:
- stdc
return_type: _Complex long double
arguments:
- type: _Complex long double
- name: conjf16
standards:
- stdc
return_type: cfloat16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: conjf128
standards:
- stdc
return_type: cfloat128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128
- name: cproj
standards:
- stdc
return_type: _Complex double
arguments:
- type: _Complex double
- name: cprojf
standards:
- stdc
return_type: _Complex float
arguments:
- type: _Complex float
- name: cprojl
standards:
- stdc
return_type: _Complex long double
arguments:
- type: _Complex long double
- name: cprojf16
standards:
- stdc
return_type: cfloat16
arguments:
- type: cfloat16
guard: LIBC_TYPES_HAS_CFLOAT16
- name: cprojf128
standards:
- stdc
return_type: cfloat128
arguments:
- type: cfloat128
guard: LIBC_TYPES_HAS_CFLOAT128