}
int pakfire_arch_is_compatible(const char* name, const char* compatible_arch) {
+ if (!name || !compatible_arch) {
+ errno = EINVAL;
+ return 1;
+ }
+
// Every architecture is compatible with itself
if (strcmp(name, compatible_arch) == 0)
return 1;
}
static int pakfire_arch_supported_by_host(const char* name) {
+ if (!name) {
+ errno = EINVAL;
+ return 1;
+ }
+
const char* native_arch = pakfire_arch_native();
// Check if those two architectures are compatible
}
char* pakfire_arch_find_interpreter(const char* name) {
+ if (!name) {
+ errno = EINVAL;
+ return NULL;
+ }
+
// If the host supports this architecture natively,
// we do not need to search for the interpreter
if (pakfire_arch_supported_by_host(name))