aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/c_type.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-04-18 11:09:17 +0200
committerlemon <lsof@mailbox.org>2026-04-18 11:09:17 +0200
commit970508c5221f930937021203107ecbac5ac9960c (patch)
treec6ec98e89e48331cf20adf5db4742e4155e7686a /src/c_type.h
parente9b132ef171114b0384ef30d6630db22d2b47e5d (diff)
c: fix some compatible type declarations
When K&R prototypes are present, definition of compatible types and composite types becomes recursive. For example `int f(int (*)())` should be compatible with `int f(int (*)(int))` etc
Diffstat (limited to 'src/c_type.h')
-rw-r--r--src/c_type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c_type.h b/src/c_type.h
index 1347fcc..3b1e022 100644
--- a/src/c_type.h
+++ b/src/c_type.h
@@ -135,6 +135,7 @@ bool getfield(FieldData *res, Type, internstr);
Type completetype(internstr name, int id, TypeData *td);
Type typedecay(Type);
bool assigncompat(Type dst, Type src);
+bool typescompat(Type *pcomposite, Type, Type);
enum typetag intpromote(enum typetag);
Type cvtarith(Type a, Type b);
Type complex2struct(Type);