HDTenEightyP/NetNews huggingface dataset:
From: toby@cs.man.ac.UK (Toby Howard)
Subject: random fonts
Organization: Department of Computer Science, University of Manchester
Distribution: gnu
Date: Mon, 6 Apr 1992 17:23:43 GMT

The following 'random fonts' program (from The PostScript language journal
2/1) makes GhostScript 2.4 (3/25/92) blow up with:

Initializing... done.
Error: /undefinedresult in --mod--
Operand stack:
[]  1416878226  0
Execution stack:
%interp_exit    --nostringval--  --nostringval--  false  --nostringval--  --nostringval--  false  --nostringval--  --nostringval--  %finish_show  --nostringval--  --nostringval--  %show_continue  --nostringval--  --nostringval--  --nostringval--
Dictionary stack:
426/449  6/200  10/20  1/10
Ghostscript 2.4 (3/25/92)
   

---It prints OK though.

%!
/newfont 20 dict def
newfont begin
/FontType 3 def
/FontMatrix [ .001 0 0 .001 0 0] def
/FontBBox [0 0 1000 1000] def
/Encoding 256 array def
/str 1 string def
/tempdict 10 dict def

/numfont FontDirectory length def
/fontlist

FontDirectory
{	
	pop
	dup /Symbol eq
	{
	 pop /numfont numfont 1 sub def
	} if
	dup /ZapfDingbats eq
	{
	pop /numfont numfont 1 sub def
	} if
} forall

numfont array astore def

/BuildChar {
	exch begin
	tempdict begin
	   /c exch def
	   fontlist rand numfont mod get findfont 
		1000 scalefont setfont

	c 97 ge c 122 le rand 8 mod 0 eq and and
	{
	/c c 32 sub def 1 .75 scale
	} if
	c 65 ge c 90 le rand 8 mod 0 eq and and
	{
	/c c 32 add def 1 1.5 scale
	} if

	str 0 c put
	
	str stringwidth exch 200 add exch 
		setcharwidth

	c 32 ne
	{
	rand 18 mod 9 sub rotate
	rand 20 mod 90 add 100 div rand
		20 mod 90 add 100 div scale

	/x rand 80 mod 10 sub def
	/y rand 80 mod 40 sub def
	x y moveto str true charpath
		pathbbox newpath

	/ury exch 50 add def
	/urx exch 50 add def
	/lly exch 50 sub def
	/llx exch 50 sub def

	llx lly moveto
	llx ury lineto
	urx ury lineto
	urx lly lineto

	gsave
		1 setgray fill
	grestore

	closepath 0 setlinewidth stroke

	x y moveto str show
	} if
	end
   end
} def

end

/ransom newfont definefont pop

/ransom findfont 40 scalefont setfont
100 100 moveto (DIANETICS) show 

100 200 moveto  (GhostScript) show showpage
--

-----------------------------------------------------------------------
Toby Howard    Department of Computer Science, University of Manchester
Lecturer               Oxford Road, Manchester, M13 9PL, United Kingdom
                                                   Tel: +44 61-275-6274
toby@cs.man.ac.uk                                  Fax: +44 61-275-6236
-----------------------------------------------------------------------

Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: eps2epsi won't work with GhostScript 2.4
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 7 Apr 1992 05:01:50 GMT

Re <9204070544.AA27629@raisin-nut> <2471@keele.keele.ac.uk>:

> Gisle Aas (Gisle.Aas@nr.no) posted a EPS --> EPSI filter a while back which
> used GhostScript and perl to generate a "Preview" section. I find this
> program _very_ useful for adding a Preview bitmap so that xfig can show EPS
> files on screen.
> 
> This worked fine with 2.3 but now I'm ready to put up GhostScript 2.4 
> it gives this error:-
> 
>  Can't run GhostScript at eps2epsi line 99, <> line 5405
> 
> and dumps core.

The problem is in the lines

	[1 1 1 rgbcolor 0 0 0 rgbcolor]
	makeimagedevice

The arguments for makeimagedevice changed from 2.3 to 2.4.  The
correct invocation is now

	<ff 00> makeimagedevice

Sorry for the inconvenience.  I probably should have changed the name
of the operator.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: uunet: ~/mail/mh/doc/multifarious.ps.Z
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 8 Apr 1992 21:27:08 GMT

In <9203280712.AA13092@raisin-nut>
<1992Mar28.042523.6423@algor2.algorists.com>, Jeffrey Kegler writes:

> When I attempt to print multifarious.ps
> from the MH mailer's documentation, the following occurs:
>
> =================== Start of piece of terminal session ====================
> $ zcat multifar.ps.Z | gs -dNOPAUSE -sOUTPUTFILE=/dev/null - 2>&1 | tee errs
> Initializing... done.
> Error: /invalidfont in --%show_continue--
> [...... a bunch of other stuff ......]

There are at least three different problems interacting here.

(1) The file is, in fact, buggy.  It uses the name /fi both as an
abbreviation for the 'fill' operator and as a font name.  The former
use overrides the latter, so strings that should be shown in the fi
font (whatever that is) in fact come out in whatever font was
current.  As a result, nearly all the labels on the diagram on p. 4
are shown in a font that lacks most of the alphabetic characters, so
this diagram displays with lots of white spaces where labels should
be.  (I checked this by printing the file on a LaserWriter.)

(2) There is also a bug in the CharBuilder procedure, namely, if an
attempt is made to display a character that is not in the font,
CharBuilder does nothing; specifically, it never executes a
setcharwidth or a setcachedevice.  This violates Adobe's documented
requirements for Type 3 fonts.  Adobe interpreters apparently
disregard this, and assume a character width of 0; Ghostscript gives
the error reported above.  I will "fix" Ghostscript to do what the
Adobe interpreters do, by changing line 389 of gschar.c (the sws_none
case) from
		return_error(gs_error_invalidfont);	/* WRONG */
to
		penum->wxy.x = penum->wxy.y = 0; break;

(3) After this change, Ghostscript gets through p. 4 OK, and then
crashes.  I am still tracking this problem down.  I will post the fix
if it's simple, or just put it in 2.4.1 if not.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: mikew@hpwarga.wal.hp.com (Michael Williams)
Subject: Re: gs2.4 on HP/UX 7.05
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 6 Apr 1992 07:07:44 GMT

> Everything goes fine compiling gs2.4 on an HP 425 until:
> 
> > make
>         ./ccgs "cc  -O  -DSYSV -Wc,-Ns5000 -Wc,-Nw500" _temp_.c gxclist.c
> Global optimizer warning in "clist_render": Element cbuf[500] outside array boun
> ds, procedure not optimized.
> C1 internal error in "clist_render": unknown optype passed to find()
> mv: _temp_.o: Cannot access: No such file or directory
> *** Error code 1

I've compiled GhostScript 2.4 on such a platform.  You'll need to snarf
the line and execute the compile without the `-O' optimize switch.
(Whenever I encounter strange messages like this one, it's the first
thing I try.)  Then gxclist.c will compile without problem.

Michael B. Williams
Hewlett-Packard Company

Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: Bug in ghostscript 2.4's reflected stroke joints
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 14 Apr 1992 05:50:36 GMT

Re <9204140259.AA20734@raisin-nut> <pavel.703206856@lambda>:

> I believe that there is a bug in ghostscript version 2.4,
> in the rendering of strokes under reflected transformations;
> the following small PS file exhibits the problem:
> [...... example deleted ......]

Yes, there is a bug.  I have sent you (Pavel) the fix.  Since I will
be releasing Ghostscript 2.4.1, which will incorporate the fix,
before the end of the week, I won't bother posting the fix here
separately.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: Some problem in using MSDOS gs2.4: gs.exe and gs386.exe
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 14 Apr 1992 14:29:41 GMT

Re
<9204140209.AA20436@raisin-nut>
<rstanton.174.703187976@garnet.berkeley.edu>:

> >> 4. The gs386.exe (plus dos4gw.exe) was not functioned at all.  
> >>    The error message was: (after I execute gs386 myfile.ps)
> >> 
> >>    DOS/4GW Protected Mode Run-Time Version 1.3
> >>    Copyright ....
> >>    DOS/4GW Fatal error: Loader failed --LINEXE_LOADER
> >> 
> 
> I got this error running GS386 under QEMM-386 with no specified EXTENDED
> memory. Once I altered my CONFIG.SYS to exclude, say, 1Mb of extended
> memory from being controlled by QEMM, GS386 worked fine.
> 
> I'd find it useful if GS386 could work with, say, XMS memory instead of plain
> extended memory.

I'm pretty sure GS386 does work with XMS memory, since I run
HIMEM.SYS (the version that comes with DOS 5.0) on my machine with no
trouble.  There must be more to the story than this; I just don't
know what it is yet.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: schultz@halley.ESt.3m.COM (John C. Schultz)
Subject: Canon BJ10E Bubblejet printing from DOS
Organization: 3M Company, 3M Center, Minnesota, USA
Distribution: gnu
Date: Fri, 10 Apr 1992 18:47:46 GMT

I tried to use Ghostscript 2.4 to print a Postscrtip (tm) document on
a Canon BJ10ex printer from a compaq 386sx laptop.  The printing
started OK but after correctly printing about an inch, the printer
started beeping and garbled the print.  For the rest of the page, the
printer sometimes printed, sometimes beeped.  It sounded almost like
the printer was getting data too fast.  Is handshaking a problem?

BTW, the same document printed very well on a HP LaserJet III - good
software!

--
   John C. Schultz   +1 (612) 733-4047   schultz@halley.serc.3m.com
   How to include the taste of Glendronach in a multi-media system?

Newsgroups: gnu.ghostscript.bug
From: varmint@ccwf.cc.utexas.edu (Samir Varma)
Subject: Laserjet driver bug in v2.4 for MSDOS
Reply-To: varmint@ccwf.cc.utexas.edu (Samir Varma)
Organization: Center for Particle Physics, University of Texas
Distribution: gnu
Date: Fri, 10 Apr 1992 22:56:36 GMT

I think I've found a bug in ghostscript v2.4 for the PC.  I have a HP
Laserjet III and when I print a document to it using the laserjet driver
of ghostscript 2.4 (for dos) the pages come out offset by 3/16 of an
inch horizontally to the right and 1/4 of an inch vertically downwards.

Ghostscript 2.3 does not exhibit this problem with the ljet3 driver (which
no longer exists in 2.4--- it has been replaced by a generic laserjet driver).
Does anyone know of a fix to this problem?  I really need to use 2.4 because 
I have a huge postscript file to print out and 2.3 chokes on it with a 
"/VMerror in filetype".  2.4 runs fine but has this offset problem.

Thanks for the help,

Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: How to Quit ?
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sat, 11 Apr 1992 13:52:22 GMT

Re <9204110609.AA10340@raisin-nut>
<1992Apr11.012442.9193@acsu.buffalo.edu>:

> After Printing a Postscript file using Ghostscript, it leaves:
> GS>
> and I have to type quit and then print the second file. 
> 
> Suppose I have to print 10 files. I want to send a batch file and then
> go out to buy a coffee and then pick up the ten files, how can I do it?

Ghostscript accepts multiple files on the command line.  The simplest
way of handling this is to say

	gs file1.ps quit.ps

quit.ps is a small file in the Ghostscript fileset that just contains
the word

	quit

When Ghostscript reads this it will quit.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: stevew@helios.unl.edu (Steve Wu)
Subject: gs24 ljet3 problem
Organization: University of Nebraska - Lincoln
Distribution: gnu
Date: Sat, 11 Apr 1992 23:30:30 GMT

  I had a problem with gs24 ljet3 driver. It works but the output is
not completely correct. The picture I printed shifted to the right
sight by several pixals. Does anyone has the same problem?

  By the way, the code for sunview.dev isn't right and I fix it
myself. Is there a new patch for this?

  steve
--
stevew@helios.unl.edu  |=| \ Fender / |=| ... smoke on the water, fire in
                       |=|   \    /   |=| the sky...   Smoke on the water.
stevew@hoss.unl.edu    |=|     \/     |=|     (36 bars guitar solo)
		      Deep purple, the best

Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: How to Quit ?
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 14 Apr 1992 05:48:38 GMT

Re <9204140207.AA20416@raisin-nut>
<1992Apr13.153157.18917@acsu.buffalo.edu>:

> There seems to be requirement on how many files are allowed on command
> line. 
> 
> I tested that 10 files will be too many and 8 seems to be fine. 

Ghostscript has no limit.  The limit is in the MS-DOS shell
(COMMAND.COM), which will not accept command lines longer than about
120 characters.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: fnsbo@nsd.uib.NO (Bjarne Oymyr)
Subject: gs2.4 msdos386 executable w/TVGA16 device wanted
Organization: University of Bergen
Distribution: gnu
Date: Fri, 10 Apr 1992 14:20:46 GMT

Having a Trident 8900 (1024k) I have understood that the best resolution
I can get with gs2.4 is with the TVGA16 device (800x600x16).

If someone have compiled gs2.4 with this device, or know where I can ftp it 
from, I would be very pleased to hear from you.

If trident can use other devices than the TVGA16 for high resolution, please 
let me know.

Thanks in advance (for any help)!

 -Bjarne

-----------------
Bjarne Oymyr
INTERNET: oymyr@nsd.uib.no 

Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: How to convert fonts? (type3->type1)
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 13 Apr 1992 16:10:42 GMT

Re <9204130539.AA15096@raisin-nut>
<EBROWN.92Apr12141355@bud_light.eastman>:

> I own quite a few .afm files (fonts) (type 3 I believe) and would like
> to convert those for use with ghostscript which I believe requires
> type 1 font files (.pfa or .pfb).  Is there a way to do this?.  Is
> there a program I can get to do it?  I'm trying to use it for high
> resolution output and I'd like to stay away from bitmap fonts.

.afm files are not fonts: they just give character widths and
spacing, not the actual character outlines.

Ghostscript can use either Type 3 or Type 1 fonts (both .pfa and .pfb).

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: pesetsk@athena.mit.edu (David M Pesetsky)
Subject: Hercules driver
Organization: Massachusetts Institute of Technology
Distribution: gnu
Date: Thu, 9 Apr 1992 18:47:53 GMT

I want to run Ghostscript on my 386SX PC with a Hercules graphics card,
outputting to screen.

I have the MSDOS executables and what I think are all the relevant files
from the various *.zip archives.  From reading the doc files and even
grepping them for references to Hercules, I gather that I need some
sort of driver, and I gather that the characters BGI somehow figure into
this.

I do not own C (I'm not a programmer), and thus am not equipped to build
my own version.  Should I forget it, is there something I'm missing, or
both?

Also, a possibly related question.  The program GS.EXE loads and runs,
though without showing me my document, obviously.  On the other hand,
GS386.EXE gives the error message:

	DOS/4GW Protected Mode Run-time   Version 1.3
	Copyright (c) Rational Systems, Inc. 1990-1991
	DOS/4GW Fatal error: Can't initialize loader[1]  -- LINEXE_LOADER

What is this about?

Thanks,

David Pesetsky

Newsgroups: gnu.ghostscript.bug
From: manis@cs.ubc.ca (Vincent Manis)
Subject: Re: Canon BJ10E Bubblejet printing from DOS
Organization: Institute for Pure and Applied Eschatology
Distribution: gnu
Date: Sat, 11 Apr 1992 19:49:39 GMT

In article <9204110645.1.UUL1.3#5127@aladdin.com> ghost@aladdin.COM (L.
Peter Deutsch) writes: 
>1) I do not know whether the BJ10ex is fully compatible with the
>BJ10e.
I have been happily running gs2.3 on my BJ10ex for the past few months
(using the driver supplied with 2.4, which Peter sent me some time ago).
The BJ10ex apparently has a few extra features than the BJ10e (what they
are, I don't know: Canon seems to feel that the technical description of
their printers should be considered classified information), but when I
asked I was told there are *no* 10e features which function differently
on the 10ex. 

Eagerly awaiting 2.4.1...
--
\    Vincent Manis <manis@cs.ubc.ca>      "There is no law that vulgarity and
 \   Department of Computer Science      literary excellence cannot coexist."
 /\  University of British Columbia                        -- A. Trevor Hodge
/  \ Vancouver, BC, Canada V6T 1W5 (604) 228-2394

Newsgroups: gnu.ghostscript.bug
From: alex@am.SUblink.ORG (Alex Martelli)
Subject: DJ500 compression mode 3 (was Re: filters)
Organization: Premiata Famiglia Martelli & Figli
Distribution: gnu
Date: Fri, 10 Apr 1992 21:33:17 GMT

spedpr@thor.CArdiff.ac.UK (Paul Richards) writes:
	...
:>As an aside, does the deskjet 500 really have mode 3 compression. It's
:>not listed in the manual?

But it is - DeskJet 500 Printer Technical Reference Manual (HP Part
number, as well as reorder number, C2106-90030), pages 8-18 to 8-23.

The manual is costly, well-written, slim, and unfortunately omits any
mention of font downloading (not a big loss for GS, actually, although
it might well be for, say, a dvi driver) - but if all you need is
detail of graphics-mode operation, it might be worth its large cost.
-- 
Alex Martelli - alex@am.sublink.org - +39 (51) 250434 - Bologna, Italia

Newsgroups: gnu.ghostscript.bug
From: haccme@milton.u.washington.edu (Thomas Ridgeway)
Subject: really public domain? (was: Re: Font sources )
Organization: University of Washington, Seattle
Distribution: gnu
Date: Tue, 7 Apr 1992 16:36:56 GMT

In article <1992Apr6.152051.668@ircam.fr> Joseph.Francis@ircam.fr (Joseph Francis) writes:
>In article <9204021715.AA20334@claude.cs.umb.edu> karl@cs.umb.edu writes:
>>The GNU project needs to have a number of decent fonts . . . .
  [etc.]
>I downloaded about 175 Postscript fonts from the ftp server
> [name deleted],
> which has some nice families (Frutiger, Bodoni, Peignot) and
>some nice title fonts (Umbra, DomCasual, the blood-dripping
>"PostCrypt" for example) though not all the fonts are of a high
>quality. Are these not public-domain enough for the gnu project?

  Maybe they are, and maybe they aren't.

  As has been commented several times in this newsgroup, the pedigree
  of some fonts made available for public access is *very* questionable
  and GNU or anybody else should be very cautious.

  I have myself downloaded from a reputable ftp server frequently
  discussed in this group a font which turned out to be a mechanical
  translation of a commercial font which I was able to duplicate
  *exactly* from the commercial original by straight font-type conversion.
  
  As a matter of faith, I also believe in free; but I know that not
  all things are free, and some that seem to be are not really.

cheers,
Tom

Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: \ vs. / in command line file names
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 13 Apr 1992 15:59:23 GMT

> I for one am anxiously awaiting the use of "\" ine filenames by
> ghostscript.  I use Norton Desktop's "associate" feature to view
> PostScript files with GhostScript simply by clicking on the filename.
> Unfortunately, right now I have to reformat the file name with "awk"
> and write a new DOS batch file to run GhostScript on the fly...

The problem is that Ghostscript is pushing the file name through its
scanner.  Consequently, all \s must be doubled, e.g.,
	gs c:\\foo\\bar\\file.ps
I expect to have this fixed this week.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: Re: Ghostscriot 2.4 problem with 300dpi driver
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 14 Apr 1992 06:40:36 GMT

Re <9204140305.AA20765@raisin-nut>
<explorer.703216682@tbird.cc.iastate.edu>:

> [regarding a 300 dpi driver]
> ... Ghostscript 2.4 seems to die when running screen.ps
> (which comes with the source) using this driver.
> 
> It displays fine on the screen (X11R4) but created the following traceback
> when core was dumped:
> [...... traceback omitted ......]
>
> Is this a known bug, or is it something only I've found?  ;)

I've already found one bug in Ghostscript 2.4 having to do with
changing the halftone screen dynamically, which may get triggered if
the size of the halftone cell ever changes.  You seem to have tripped
over another, which I suspect is associated with very large halftone
cells (in this case, the cell is 1/4" x 1/4", or over 5600 pixels).
Whatever it is, I'll have it fixed in 2.4.1, due out this week.

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug
From: ghost@aladdin.COM (L. Peter Deutsch)
Subject: cc error at gdevmem1.c: 456
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 9 Apr 1992 06:07:35 GMT

In <9204090030.AA03121@raisin-nut>
<9204081906.AA15019@gateway.bnr.ca>, Richard (R.) Johns writes,
regarding Ghostscript 2.4:

> Here's another problem, not related to HP cc optimization:
> 
> > make
>         ./ccgs "cc  -O  -DSYSV -Wc,-Ns5000 -Wc,-Nw500" _temp_.c gdevmem1.c
> "gdevmem1.c", line 456: operands of + have incompatible types
> 
> It certainly doesn't look like there're any problems that wouldn't show up
> with any cc compiler.  Any suggestions?

In my opinion, this is a C compiler bug.  The statement in question
adds two values of different enum types, but the ANSI standard
specifically says that names in enum types are "declared as constants
of type int", so the compiler must allow them to be used freely as
though they were ints.  I know of no other C compiler that forbids
this, although some compilers have similar, less serious problems of
this kind (e.g., not allowing a enum value to be used as the index in
a switch statement).

L. Peter Deutsch :: Aladdin Enterprises :: P.O. box 60264, Palo Alto, CA 94306
ghost@aladdin.com, ...decwrl!aladdin!ghost ; 415-322-0103 8-9 AM M-F/msg
	    "Implementation is the sincerest form of flattery."


Newsgroups: gnu.ghostscript.bug