hrp@boring.cray.com (Hal Peterson) (07/26/89)
I am using GhostScript 1.3 with the patches supplied by Tony Li and snoopy's fix to interp.c. My platform is an 8MB Sun 3/50 running SunOS 3.5. I am compiling with GCC 1.35. Tracing, at least as implemented in GhostScript, does not work in UNIX, and the C compilers don't produce map files, so the function tracing code in gsmain.c is irrelevant. This is an irritation because every time I start up GhostScript I get the message Unable to find _main in map file which is confusing. So I got rid of it by conditionally compiling the map file code for __MSDOS__. -- Hal Peterson Domain: hrp@cray.com Cray Research Old style: hrp%cray.com@uc.msc.umn.edu 1440 Northland Dr. UUCP: uunet!cray!hrp Mendota Hts, MN 55120 USA Telephone: +1 612 681 3145 ======================================================================== *** gsmain-DIST.c Wed Jul 5 17:41:42 1989 --- gsmain.c Tue Jul 25 17:18:35 1989 *************** *** 57,62 **** --- 57,63 ---- #ifdef DEBUG /* Reset debugging flags */ memset(gs_debug, 0, 128); + #ifdef __MSDOS__ /* Open the map file and look up 'main' */ mapf = fopen(map_name, "rt"); if ( mapf == NULL ) *************** *** 72,77 **** --- 73,79 ---- } } #endif + #endif /* Initialize the proper device */ { extern gx_device *gp_default_device_p; extern gx_device *gx_device_default_p; *************** *** 119,124 **** --- 121,127 ---- break; case 'T': #ifdef DEBUG + #ifdef __MSDOS__ if ( mapf != NULL ) { char *delim; char *tname; *************** *** 138,145 **** trace_flush_flag = 1; } #else printf("Not a debugging configuration, -T switch ignored\n"); ! #endif break; } } --- 141,151 ---- trace_flush_flag = 1; } #else + printf("Tracing doesn't work on this system, -T switch ignored.\n"); + #endif /* defined(__MSDOS__) */ + #else printf("Not a debugging configuration, -T switch ignored\n"); ! #endif /* defined(DEBUG) */ break; } }
ghost@aladdin.com (L. Peter Deutsch) (07/29/89)
Hal Peterson's fix is OK as a patch. In release 1.4, the interface for trace.c has been changed slightly, and no conditional compilation is required. - P. D. ghost@aladdin.com ...{uunet,parcplace.com}!aladdin!ghost P. O. box 60264, Palo Alto, CA 94306