On 2021-12-22 at 22:30:43 +0100, luigi scarso wrote:

 > hm, what we have now  ( always   #ifdef _WIN32   is true ) is :
 >
 >     switch (sysinfo.wProcessorArchitecture) {
 >     case PROCESSOR_ARCHITECTURE_AMD64:
 >         strcpy(uts->machine, "amd64");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_ARM:
 >         strcpy(uts->machine, "arm");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_ARM64:
 >         strcpy(uts->machine, "arm64");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_IA64:
 >         strcpy(uts->machine, "ia64");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_PPC:
 >         strcpy(uts->machine, "ppc");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_ALPHA:
 >         strcpy(uts->machine, "alpha");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_MIPS:
 >         strcpy(uts->machine, "mips");
 >         break;
 >     case PROCESSOR_ARCHITECTURE_INTEL:
 >         /*
 >          * dwProcessorType is only valid in Win95 and Win98 and WinME
 >          * wProcessorLevel is only valid in WinNT
 >          */
 >         switch (os) {
 >         case Win95:
 >         case Win98:
 >             switch (sysinfo.dwProcessorType) {
 >             case PROCESSOR_INTEL_386:
 >             case PROCESSOR_INTEL_486:
 >             case PROCESSOR_INTEL_PENTIUM:
 >                 sprintf(uts->machine, "i%ld", sysinfo.dwProcessorType);
 >                 break;
 >             default:
 >                 strcpy(uts->machine, "i386");
 >                 break;
 >             }
 >             break;
 >         case WinNT:
 >             sprintf(uts->machine, "i%d86", sysinfo.wProcessorLevel);
 >             break;
 >         default:
 >             strcpy(uts->machine, "unknown");
 >             break;
 >         }
 >         break;
 >     default:
 >         strcpy(uts->machine, "unknown");
 >         break;
 >     }

Hi Luigi,
I suppose that with "ppc", "alpha", and "mips" you can't derive the
register width width from the name.  Renaming them doesn't make sense
either. It's not important, I just said that it would be nice.  No
problem at all.  Ignore and proceed.

Thanks,
  Reinhard

--
------------------------------------------------------------------
Reinhard Kotucha                            Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                    mailto:[email protected]
------------------------------------------------------------------
_______________________________________________
dev-luatex mailing list
[email protected]
https://mailman.ntg.nl/mailman/listinfo/dev-luatex

Reply via email to