Sorry to follow up to my own post, but I was looking through
Wolfgang Reimer's ptolemy-0.7.1p1-10
from
ftp://ftp.tu-ilmenau.de/pub/unix/ptolemy/ptolemy0.7.1.linux
and came across the following new in pigiMain.cc


int main(int argc, char** argv)
{
        pigiFilename = argv[0];

#if TK_MAJOR_VERSION >= 8
        Tcl_FindExecutable(argv[0]);
#endif

        KcLoadInit(argv[0]);
#if defined(PTLINUX) && defined(__i386__)
        // Fix for DECalendarQueue SIGFPE under x86 linux.
        // Note by W. Reimer: Glibc 2.1 does not support __setfpucw() any
        // longer. Instead there is a macro _FPU_SETCW. Actually, the whole
        // fix is not required any longer because in the default FPU control
        // word of libc 5.3.12 and newer (glibc) the interrupt mask bit for
        // invalid operation (_FPU_MASK_IM) is already set.
#if (_FPU_DEFAULT & _FPU_MASK_IM) == 0
#ifdef _FPU_SETCW
        { fpu_control_t cw = (_FPU_DEFAULT | _FPU_MASK_IM); _FPU_SETCW(cw); }
#else
        __setfpucw(_FPU_DEFAULT | _FPU_MASK_IM);
#endif /* _FPU_SETCW */
#endif /* (_FPU_DEFAULT & _FPU_MASK_IM) == 0 */
#endif /* defined(PTLINUX) && defined(__i386__) */
        KcInitLog("pigiLog.pt");
        CompileInit();
        KcCatchSignals();

        /* Strip off end of argv, not front */
        int doConsole = FALSE;
        if (argc >= 2 && strcmp(argv[argc-1], "-console") == 0) {
                doConsole = TRUE;
                --argc;
        }

        ptkRPCInit(argc, argv);
        if (doConsole) ptkConsoleWindow();
        ptkMainLoop();
        return 0;
}

-Christopher

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to