Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 246 of file widl.c.
Referenced by main().
{ static const struct { const char *name; syskind_t kind; } cpu_names[] = { { "i386", SYS_WIN32 }, { "i486", SYS_WIN32 }, { "i586", SYS_WIN32 }, { "i686", SYS_WIN32 }, { "i786", SYS_WIN32 }, { "amd64", SYS_WIN64 }, { "x86_64", SYS_WIN64 }, { "sparc", SYS_WIN32 }, { "alpha", SYS_WIN32 }, { "powerpc", SYS_WIN32 }, { "arm", SYS_WIN32 } }; unsigned int i; char *p, *spec = xstrdup( target ); /* target specification is in the form CPU-MANUFACTURER-OS or CPU-MANUFACTURER-KERNEL-OS */ if (!(p = strchr( spec, '-' ))) error( "Invalid target specification '%s'\n", target ); *p++ = 0; for (i = 0; i < sizeof(cpu_names)/sizeof(cpu_names[0]); i++) { if (!strcmp( cpu_names[i].name, spec )) { typelib_kind = cpu_names[i].kind; free( spec ); return; } } error( "Unrecognized CPU '%s'\n", spec ); }