🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.ghostscript.bug
1 messages
1 total messages Started by Chris Goedde Tue, 15 Dec 1992 06:38
Compiling under UNICOS
#564
Author: Chris Goedde
Date: Tue, 15 Dec 1992 06:38
27 lines
1337 bytes
I'm trying to compile ghostscript 2.5.2 on a cray under unicos.  The
first problem is that ints are 8 bytes, which causes a problem in
gdevmem.h at:

/*
 * The clog2_bytes macro assumes that ints are 2 or 4 bytes in size:
 * check this now.
 */
#if !(arch_sizeof_int == 2 || arch_sizeof_int == 4)
#  error sizeof(int) must be 2 or 4 for correct operation.
#endif
/* Generic macros for chunk accessing. */
#define cbytes(ct) ((int)sizeof(ct))    /* sizeof may be unsigned */
#  define chunk_bytes cbytes(chunk)
#define clog2_bytes(ct) ((int)sizeof(ct)>>1)    /* works for 1,2,4! */

My questions are:

1) Is this a hopeless task?  Has anyone succeeded or tried and failed
   at this?
b) Is there a work around for this macro, or does this particular
   assumption  about the length of ints appear elsewhere?

Thanks,

chris
goedde@shape.mps.ohio-state.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads