Closed johntaiko closed 6 months ago
Wooooooow gonna try it out!
Just wondering why mismatched declaration does not lead to link failure
Just wondering why mismatched declaration does not lead to link failure
Linker is only a sysmbol(function name) lookup table without any syntax check, and it supports variable-counts arguments, the caller and the callee need to strictly adhere to the constraints themselves.
Just wondering why mismatched declaration does not lead to link failure
Linker is only a sysmbol(function name) lookup table without any syntax check, and it supports variable-counts arguments, the caller and the callee need to strictly adhere to the constraints themselves.
Oh, it seems a 2 levels include reference, so here rust extern C ABI conceals the real signature in libc.h.
https://docs.rs/libc/latest/libc/fn.calloc.html