summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>1999-12-12 22:16:07 +0000
committerHenry Stiles <henry.stiles@artifex.com>1999-12-12 22:16:07 +0000
commitdd30771fce4f855b18cce9d90c427b22f3744bce (patch)
tree13b11b4a07bcc974c71b8140b43968b8c8146dd9
parentac5a0d6e11428b2df89ea8d5eddac4bc38339b53 (diff)
Imports Aladdin's 596.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@1040 06663e23-700e-0410-b217-a244a6096597
-rw-r--r--gs/doc/Bug-form.htm4
-rw-r--r--gs/doc/C-style.htm4
-rw-r--r--gs/doc/Commprod.htm4
-rw-r--r--gs/doc/Copying.htm4
-rw-r--r--gs/doc/Current.htm29
-rw-r--r--gs/doc/Devices.htm336
-rw-r--r--gs/doc/Dll.htm8
-rw-r--r--gs/doc/Drivers.htm4
-rw-r--r--gs/doc/Gs-vms.hlp4
-rw-r--r--gs/doc/Gsdoc.el4
-rw-r--r--gs/doc/Helpers.htm9
-rw-r--r--gs/doc/Hershey.htm2
-rw-r--r--gs/doc/History1.htm4
-rw-r--r--gs/doc/History2.htm4
-rw-r--r--gs/doc/History3.htm4
-rw-r--r--gs/doc/History4.htm4
-rw-r--r--gs/doc/History5.htm6
-rw-r--r--gs/doc/Htmstyle.htm6
-rw-r--r--gs/doc/Humor.htm2
-rw-r--r--gs/doc/Install.htm333
-rw-r--r--gs/doc/Language.htm165
-rw-r--r--gs/doc/Lib.htm4
-rw-r--r--gs/doc/Make.htm884
-rw-r--r--gs/doc/New-user.htm13
-rw-r--r--gs/doc/News.htm923
-rw-r--r--gs/doc/Ps2pdf.htm43
-rw-r--r--gs/doc/Psfiles.htm12
-rw-r--r--gs/doc/Public.htm2
-rw-r--r--gs/doc/Readme29
-rw-r--r--gs/doc/Readme.htm22
-rw-r--r--gs/doc/Release.htm79
-rw-r--r--gs/doc/Source.htm12
-rw-r--r--gs/doc/Tester.htm4
-rw-r--r--gs/doc/Unix-lpr.htm4
-rw-r--r--gs/doc/Use.htm149
-rw-r--r--gs/doc/fonts.htm10
-rw-r--r--gs/doc/xfonts.htm4
-rw-r--r--gs/examples/alphabet.ps1
-rw-r--r--gs/examples/waterfal.ps3
-rw-r--r--gs/lib/Fontmap3
-rw-r--r--gs/lib/Fontmap.ATB170
-rw-r--r--gs/lib/Fontmap.ATM187
-rw-r--r--gs/lib/Fontmap.GS405
-rw-r--r--gs/lib/Fontmap.OS2216
-rw-r--r--gs/lib/Fontmap.VMS120
-rw-r--r--gs/lib/align.ps19
-rwxr-xr-xgs/lib/bdftops2
-rwxr-xr-xgs/lib/bdftops.bat2
-rw-r--r--gs/lib/bdftops.ps19
-rw-r--r--gs/lib/caption.ps2
-rw-r--r--gs/lib/cid2code.ps19
-rw-r--r--gs/lib/docie.ps19
-rwxr-xr-xgs/lib/dvipdf2
-rw-r--r--gs/lib/errpage.ps2
-rwxr-xr-xgs/lib/fixmswrd.pl4
-rwxr-xr-xgs/lib/font2c2
-rwxr-xr-xgs/lib/font2c.bat2
-rw-r--r--gs/lib/font2c.ps19
-rw-r--r--gs/lib/font2pcl.ps19
-rw-r--r--gs/lib/gs_btokn.ps19
-rw-r--r--gs/lib/gs_ccfnt.ps28
-rw-r--r--gs/lib/gs_ce_e.ps36
-rw-r--r--gs/lib/gs_cff.ps19
-rw-r--r--gs/lib/gs_cidfn.ps34
-rw-r--r--gs/lib/gs_cmap.ps19
-rw-r--r--gs/lib/gs_cmdl.ps19
-rw-r--r--gs/lib/gs_dbt_e.ps19
-rw-r--r--gs/lib/gs_diskf.ps19
-rw-r--r--gs/lib/gs_dpnxt.ps19
-rw-r--r--gs/lib/gs_dps.ps19
-rw-r--r--gs/lib/gs_dps1.ps19
-rw-r--r--gs/lib/gs_dps2.ps19
-rw-r--r--gs/lib/gs_epsf.ps19
-rw-r--r--gs/lib/gs_fform.ps19
-rw-r--r--gs/lib/gs_fonts.ps23
-rw-r--r--gs/lib/gs_il1_e.ps19
-rw-r--r--gs/lib/gs_il2_e.ps19
-rw-r--r--gs/lib/gs_init.ps75
-rw-r--r--gs/lib/gs_kanji.ps19
-rw-r--r--gs/lib/gs_ksb_e.ps19
-rw-r--r--gs/lib/gs_l.xbm29
-rw-r--r--gs/lib/gs_l.xpm58
-rw-r--r--gs/lib/gs_l2img.ps19
-rw-r--r--gs/lib/gs_l_m.xbm29
-rw-r--r--gs/lib/gs_lev2.ps21
-rw-r--r--gs/lib/gs_lgo_e.ps21
-rw-r--r--gs/lib/gs_lgx_e.ps21
-rw-r--r--gs/lib/gs_ll3.ps54
-rw-r--r--gs/lib/gs_m.xbm16
-rw-r--r--gs/lib/gs_m.xpm44
-rw-r--r--gs/lib/gs_m_m.xbm16
-rw-r--r--gs/lib/gs_mex_e.ps25
-rw-r--r--gs/lib/gs_mgl_e.ps23
-rw-r--r--gs/lib/gs_mro_e.ps29
-rw-r--r--gs/lib/gs_pdf_e.ps19
-rw-r--r--gs/lib/gs_pdfwr.ps56
-rw-r--r--gs/lib/gs_pfile.ps19
-rw-r--r--gs/lib/gs_rdlin.ps19
-rw-r--r--gs/lib/gs_res.ps36
-rw-r--r--gs/lib/gs_s.xbm11
-rw-r--r--gs/lib/gs_s.xpm36
-rw-r--r--gs/lib/gs_s_m.xbm11
-rw-r--r--gs/lib/gs_setpd.ps21
-rw-r--r--gs/lib/gs_statd.ps19
-rw-r--r--gs/lib/gs_std_e.ps19
-rw-r--r--gs/lib/gs_sym_e.ps21
-rw-r--r--gs/lib/gs_t.xbm8
-rw-r--r--gs/lib/gs_t.xpm28
-rw-r--r--gs/lib/gs_t_m.xbm8
-rw-r--r--gs/lib/gs_trap.ps23
-rw-r--r--gs/lib/gs_ttf.ps106
-rw-r--r--gs/lib/gs_typ32.ps19
-rw-r--r--gs/lib/gs_typ42.ps19
-rw-r--r--gs/lib/gs_type1.ps43
-rw-r--r--gs/lib/gs_wan_e.ps25
-rw-r--r--gs/lib/gs_wl1_e.ps19
-rw-r--r--gs/lib/gs_wl2_e.ps19
-rw-r--r--gs/lib/gs_wl5_e.ps19
-rwxr-xr-xgs/lib/gsbj2
-rwxr-xr-xgs/lib/gsbj.bat2
-rwxr-xr-xgs/lib/gsdj2
-rwxr-xr-xgs/lib/gsdj.bat2
-rwxr-xr-xgs/lib/gsdj5002
-rwxr-xr-xgs/lib/gsdj500.bat2
-rwxr-xr-xgs/lib/gslj2
-rwxr-xr-xgs/lib/gslj.bat2
-rwxr-xr-xgs/lib/gslp2
-rwxr-xr-xgs/lib/gslp.bat2
-rw-r--r--gs/lib/gslp.ps263
-rwxr-xr-xgs/lib/gsnd2
-rwxr-xr-xgs/lib/gsnd.bat2
-rwxr-xr-xgs/lib/gsndt.bat2
-rw-r--r--gs/lib/gsnup.ps90
-rwxr-xr-xgs/lib/gst.bat2
-rwxr-xr-xgs/lib/gstt.bat2
-rw-r--r--gs/lib/impath.ps19
-rw-r--r--gs/lib/lines.ps2
-rwxr-xr-xgs/lib/lp386.bat2
-rwxr-xr-xgs/lib/lp386r2.bat2
-rwxr-xr-xgs/lib/lpgs.bat2
-rwxr-xr-xgs/lib/lpr2.bat2
-rwxr-xr-xgs/lib/lprsetup.sh2
-rw-r--r--gs/lib/markhint.ps19
-rw-r--r--gs/lib/markpath.ps19
-rw-r--r--gs/lib/packfile.ps19
-rw-r--r--gs/lib/pcharstr.ps19
-rwxr-xr-xgs/lib/pdf2dsc2
-rw-r--r--gs/lib/pdf2dsc.ps19
-rwxr-xr-xgs/lib/pdf2ps2
-rwxr-xr-xgs/lib/pdf2ps.bat2
-rw-r--r--gs/lib/pdf_base.ps33
-rw-r--r--gs/lib/pdf_draw.ps173
-rw-r--r--gs/lib/pdf_font.ps61
-rw-r--r--gs/lib/pdf_main.ps43
-rw-r--r--gs/lib/pdf_ops.ps136
-rw-r--r--gs/lib/pdf_sec.ps19
-rw-r--r--gs/lib/pf2afm8
-rwxr-xr-xgs/lib/pfbtopfa2
-rw-r--r--gs/lib/pfbtopfa.ps21
-rwxr-xr-xgs/lib/pftogsf.bat2
-rwxr-xr-xgs/lib/pj-gs.sh2
-rw-r--r--gs/lib/ppath.ps19
-rwxr-xr-xgs/lib/printafm2
-rw-r--r--gs/lib/ps2ai.ps2
-rwxr-xr-xgs/lib/ps2ascii2
-rwxr-xr-xgs/lib/ps2ascii.bat2
-rw-r--r--gs/lib/ps2ascii.ps23
-rwxr-xr-xgs/lib/ps2epsi2
-rwxr-xr-xgs/lib/ps2epsi.bat2
-rw-r--r--gs/lib/ps2epsi.ps19
-rwxr-xr-xgs/lib/ps2pdf6
-rw-r--r--gs/lib/ps2pdf.bat10
-rwxr-xr-xgs/lib/ps2ps2
-rw-r--r--gs/lib/ps2ps.bat2
-rwxr-xr-xgs/lib/pv.sh2
-rw-r--r--gs/lib/rollconv.ps2
-rw-r--r--gs/lib/showchar.ps19
-rw-r--r--gs/lib/stcinfo.ps2
-rw-r--r--gs/lib/stcolor.ps2
-rwxr-xr-xgs/lib/sysvlp.sh2
-rw-r--r--gs/lib/traceimg.ps19
-rw-r--r--gs/lib/traceop.ps19
-rw-r--r--gs/lib/type1enc.ps19
-rw-r--r--gs/lib/type1ops.ps38
-rw-r--r--gs/lib/uninfo.ps2
-rwxr-xr-xgs/lib/unix-lpr.sh2
-rw-r--r--gs/lib/unprot.ps19
-rw-r--r--gs/lib/viewcmyk.ps20
-rw-r--r--gs/lib/viewgif.ps19
-rw-r--r--gs/lib/viewmiff.ps19
-rw-r--r--gs/lib/viewpbm.ps19
-rw-r--r--gs/lib/viewpcx.ps19
-rw-r--r--gs/lib/viewps2a.ps19
-rwxr-xr-xgs/lib/wftopfa2
-rw-r--r--gs/lib/wftopfa.ps19
-rw-r--r--gs/lib/winmaps.ps19
-rw-r--r--gs/lib/wmakebat.bat2
-rw-r--r--gs/lib/wrfont.ps19
-rw-r--r--gs/lib/zeroline.ps2
-rw-r--r--gs/man/ansi2knr.12
-rw-r--r--gs/man/gs.16
-rw-r--r--gs/man/pdf2dsc.16
-rw-r--r--gs/man/pdf2ps.16
-rw-r--r--gs/man/ps2ascii.16
-rw-r--r--gs/man/ps2epsi.16
-rw-r--r--gs/man/ps2pdf.16
-rw-r--r--gs/man/ps2ps.16
-rw-r--r--gs/src/all-arch.mak745
-rw-r--r--gs/src/ansi2knr.c2
-rw-r--r--gs/src/bcwin32.mak106
-rw-r--r--gs/src/bench.c7
-rw-r--r--gs/src/bfont.h19
-rw-r--r--gs/src/btoken.h19
-rwxr-xr-xgs/src/bughunt.sh2
-rwxr-xr-xgs/src/catmake2
-rw-r--r--gs/src/ccfont.h19
-rw-r--r--gs/src/ccgs2
-rw-r--r--gs/src/cfonts.mak127
-rw-r--r--gs/src/contrib.mak19
-rwxr-xr-xgs/src/cp.bat2
-rwxr-xr-xgs/src/cp.cmd2
-rw-r--r--gs/src/ctype_.h19
-rw-r--r--gs/src/devs.mak48
-rw-r--r--gs/src/dirent_.h19
-rw-r--r--gs/src/dos_.h19
-rw-r--r--gs/src/dpmainc.c2
-rw-r--r--gs/src/dstack.h19
-rwxr-xr-xgs/src/dvx-gcc.mak63
-rw-r--r--gs/src/dvx-head.mak19
-rw-r--r--gs/src/dvx-tail.mak23
-rw-r--r--gs/src/dwdll.cpp2
-rw-r--r--gs/src/dwdll.h2
-rw-r--r--gs/src/dwimg.cpp2
-rw-r--r--gs/src/dwimg.h2
-rw-r--r--gs/src/dwinst.cpp937
-rw-r--r--gs/src/dwinst.h113
-rw-r--r--gs/src/dwmain.cpp2
-rw-r--r--gs/src/dwmain.h20
-rw-r--r--gs/src/dwmain.rc2
-rw-r--r--gs/src/dwmainc.cpp2
-rw-r--r--gs/src/dwnodll.cpp2
-rw-r--r--gs/src/dwsetup.cpp1036
-rw-r--r--gs/src/dwsetup.def5
-rw-r--r--gs/src/dwsetup.h50
-rw-r--r--gs/src/dwsetup.rc148
-rw-r--r--gs/src/dwtext.cpp2
-rw-r--r--gs/src/dwtext.h2
-rw-r--r--gs/src/dwuninst.cpp860
-rw-r--r--gs/src/dwuninst.def5
-rw-r--r--gs/src/dwuninst.h33
-rw-r--r--gs/src/dwuninst.rc40
-rw-r--r--gs/src/echogs.c19
-rw-r--r--gs/src/errno_.h19
-rw-r--r--gs/src/errors.h19
-rw-r--r--gs/src/estack.h19
-rw-r--r--gs/src/files.h20
-rw-r--r--gs/src/gconf.c19
-rw-r--r--gs/src/gconf.h19
-rw-r--r--gs/src/gdebug.h19
-rw-r--r--gs/src/gdev3852.c25
-rw-r--r--gs/src/gdev3b1.c21
-rw-r--r--gs/src/gdev4081.c21
-rw-r--r--gs/src/gdev4693.c2
-rw-r--r--gs/src/gdev8510.c24
-rw-r--r--gs/src/gdev8bcm.c19
-rw-r--r--gs/src/gdev8bcm.h20
-rw-r--r--gs/src/gdevabuf.c19
-rw-r--r--gs/src/gdevadmp.c23
-rw-r--r--gs/src/gdevalph.c19
-rw-r--r--gs/src/gdevbbox.c22
-rw-r--r--gs/src/gdevbbox.h20
-rw-r--r--gs/src/gdevbit.c19
-rw-r--r--gs/src/gdevbj10.c21
-rw-r--r--gs/src/gdevbjc.h21
-rw-r--r--gs/src/gdevbjcl.c21
-rw-r--r--gs/src/gdevbjcl.h21
-rw-r--r--gs/src/gdevbmp.c19
-rw-r--r--gs/src/gdevbmp.h19
-rw-r--r--gs/src/gdevbmpa.c21
-rw-r--r--gs/src/gdevbmpc.c19
-rw-r--r--gs/src/gdevccr.c21
-rw-r--r--gs/src/gdevcd8.c10
-rw-r--r--gs/src/gdevcdj.c21
-rw-r--r--gs/src/gdevcgm.c19
-rw-r--r--gs/src/gdevcgml.c19
-rw-r--r--gs/src/gdevcgml.h19
-rw-r--r--gs/src/gdevcgmx.h19
-rw-r--r--gs/src/gdevcif.c24
-rw-r--r--gs/src/gdevclj.c382
-rw-r--r--gs/src/gdevcljc.c19
-rw-r--r--gs/src/gdevcmap.c19
-rw-r--r--gs/src/gdevcmap.h19
-rw-r--r--gs/src/gdevcp50.c21
-rw-r--r--gs/src/gdevcslw.c19
-rw-r--r--gs/src/gdevdbit.c79
-rw-r--r--gs/src/gdevdcrd.c19
-rw-r--r--gs/src/gdevdcrd.h19
-rw-r--r--gs/src/gdevddrw.c19
-rw-r--r--gs/src/gdevdfax.c21
-rw-r--r--gs/src/gdevdflt.c19
-rw-r--r--gs/src/gdevdgbr.c19
-rw-r--r--gs/src/gdevdjet.c19
-rw-r--r--gs/src/gdevdjtc.c21
-rw-r--r--gs/src/gdevdm24.c21
-rw-r--r--gs/src/gdevdrop.c27
-rw-r--r--gs/src/gdevegaa.asm19
-rw-r--r--gs/src/gdevemap.c19
-rw-r--r--gs/src/gdevepsc.c21
-rw-r--r--gs/src/gdevepsn.c21
-rw-r--r--gs/src/gdevescp.c21
-rw-r--r--gs/src/gdevevga.c19
-rw-r--r--gs/src/gdevherc.c21
-rw-r--r--gs/src/gdevhit.c19
-rw-r--r--gs/src/gdevhl7x.c36
-rw-r--r--gs/src/gdevht.c19
-rw-r--r--gs/src/gdevht.h20
-rw-r--r--gs/src/gdevifno.c5
-rw-r--r--gs/src/gdevimgn.c35
-rw-r--r--gs/src/gdevjpeg.c19
-rw-r--r--gs/src/gdevl256.c19
-rw-r--r--gs/src/gdevl31s.c22
-rw-r--r--gs/src/gdevlbp8.c21
-rw-r--r--gs/src/gdevlj56.c19
-rw-r--r--gs/src/gdevlp8k.c21
-rw-r--r--gs/src/gdevlxm.c21
-rw-r--r--gs/src/gdevm1.c19
-rw-r--r--gs/src/gdevm16.c19
-rw-r--r--gs/src/gdevm2.c19
-rw-r--r--gs/src/gdevm24.c19
-rw-r--r--gs/src/gdevm32.c19
-rw-r--r--gs/src/gdevm4.c19
-rw-r--r--gs/src/gdevm8.c19
-rw-r--r--gs/src/gdevmeds.c24
-rw-r--r--gs/src/gdevmeds.h20
-rw-r--r--gs/src/gdevmem.c19
-rw-r--r--gs/src/gdevmem.h19
-rw-r--r--gs/src/gdevmgr.c21
-rw-r--r--gs/src/gdevmgr.h21
-rw-r--r--gs/src/gdevmiff.c19
-rw-r--r--gs/src/gdevmpla.c19
-rw-r--r--gs/src/gdevmpla.h19
-rw-r--r--gs/src/gdevmr1.c19
-rw-r--r--gs/src/gdevmr2n.c19
-rw-r--r--gs/src/gdevmr8n.c19
-rw-r--r--gs/src/gdevmrop.h19
-rw-r--r--gs/src/gdevmrun.c19
-rw-r--r--gs/src/gdevmrun.h19
-rw-r--r--gs/src/gdevmswn.c20
-rw-r--r--gs/src/gdevmswn.h19
-rw-r--r--gs/src/gdevmsxf.c19
-rw-r--r--gs/src/gdevn533.c21
-rw-r--r--gs/src/gdevnfwd.c19
-rw-r--r--gs/src/gdevo182.c21
-rw-r--r--gs/src/gdevokii.c21
-rw-r--r--gs/src/gdevos2p.c25
-rw-r--r--gs/src/gdevp2up.c19
-rw-r--r--gs/src/gdevpbm.c19
-rw-r--r--gs/src/gdevpccm.c19
-rw-r--r--gs/src/gdevpccm.h20
-rw-r--r--gs/src/gdevpcfb.c19
-rw-r--r--gs/src/gdevpcfb.h19
-rw-r--r--gs/src/gdevpcl.c19
-rw-r--r--gs/src/gdevpcl.h20
-rw-r--r--gs/src/gdevpcx.c19
-rw-r--r--gs/src/gdevpdf.c100
-rw-r--r--gs/src/gdevpdfd.c23
-rw-r--r--gs/src/gdevpdff.c583
-rw-r--r--gs/src/gdevpdfi.c176
-rw-r--r--gs/src/gdevpdfm.c58
-rw-r--r--gs/src/gdevpdfo.c19
-rw-r--r--gs/src/gdevpdfo.h19
-rw-r--r--gs/src/gdevpdfp.c146
-rw-r--r--gs/src/gdevpdfr.c19
-rw-r--r--gs/src/gdevpdft.c206
-rw-r--r--gs/src/gdevpdfu.c82
-rw-r--r--gs/src/gdevpdfx.h133
-rw-r--r--gs/src/gdevpe.c30
-rw-r--r--gs/src/gdevpipe.c19
-rw-r--r--gs/src/gdevpjet.c21
-rw-r--r--gs/src/gdevplnx.c22
-rw-r--r--gs/src/gdevplnx.h21
-rw-r--r--gs/src/gdevpm.c23
-rw-r--r--gs/src/gdevpm.h19
-rw-r--r--gs/src/gdevpng.c36
-rw-r--r--gs/src/gdevppla.c19
-rw-r--r--gs/src/gdevppla.h19
-rw-r--r--gs/src/gdevprn.c19
-rw-r--r--gs/src/gdevprn.h19
-rw-r--r--gs/src/gdevprna.h21
-rw-r--r--gs/src/gdevps.c26
-rw-r--r--gs/src/gdevpsci.c19
-rw-r--r--gs/src/gdevpsd1.c234
-rw-r--r--gs/src/gdevpsdf.c79
-rw-r--r--gs/src/gdevpsdf.h152
-rw-r--r--gs/src/gdevpsdi.c37
-rw-r--r--gs/src/gdevpsdp.c470
-rw-r--r--gs/src/gdevpsds.c19
-rw-r--r--gs/src/gdevpsds.h19
-rw-r--r--gs/src/gdevpsdt.c279
-rw-r--r--gs/src/gdevpsim.c19
-rw-r--r--gs/src/gdevpx.c19
-rw-r--r--gs/src/gdevpxat.h19
-rw-r--r--gs/src/gdevpxen.h19
-rw-r--r--gs/src/gdevpxop.h19
-rw-r--r--gs/src/gdevrops.c19
-rw-r--r--gs/src/gdevs3ga.c19
-rw-r--r--gs/src/gdevsco.c19
-rw-r--r--gs/src/gdevsgi.c2
-rw-r--r--gs/src/gdevsgi.h2
-rw-r--r--gs/src/gdevsj48.c28
-rw-r--r--gs/src/gdevsnfb.c21
-rw-r--r--gs/src/gdevsppr.c21
-rw-r--r--gs/src/gdevstc.c20
-rw-r--r--gs/src/gdevstc.h21
-rw-r--r--gs/src/gdevstc1.c21
-rw-r--r--gs/src/gdevstc2.c21
-rw-r--r--gs/src/gdevstc3.c21
-rw-r--r--gs/src/gdevstc4.c21
-rw-r--r--gs/src/gdevsun.c21
-rw-r--r--gs/src/gdevsunr.c19
-rw-r--r--gs/src/gdevsvga.c19
-rw-r--r--gs/src/gdevsvga.h20
-rw-r--r--gs/src/gdevtfax.c19
-rw-r--r--gs/src/gdevtfax.h19
-rw-r--r--gs/src/gdevtfnx.c19
-rw-r--r--gs/src/gdevtifs.c23
-rw-r--r--gs/src/gdevtifs.h19
-rw-r--r--gs/src/gdevtknk.c31
-rw-r--r--gs/src/gdevupd.c24
-rw-r--r--gs/src/gdevvec.c19
-rw-r--r--gs/src/gdevvec.h19
-rw-r--r--gs/src/gdevvglb.c19
-rw-r--r--gs/src/gdevwddb.c20
-rw-r--r--gs/src/gdevwdib.c19
-rw-r--r--gs/src/gdevwpr2.c22
-rw-r--r--gs/src/gdevwprn.c20
-rw-r--r--gs/src/gdevx.c19
-rw-r--r--gs/src/gdevx.h20
-rw-r--r--gs/src/gdevxalt.c19
-rw-r--r--gs/src/gdevxcmp.c19
-rw-r--r--gs/src/gdevxcmp.h19
-rw-r--r--gs/src/gdevxini.c19
-rw-r--r--gs/src/gdevxres.c19
-rw-r--r--gs/src/gdevxxf.c19
-rw-r--r--gs/src/genarch.c106
-rw-r--r--gs/src/genconf.c36
-rw-r--r--gs/src/gendev.c19
-rw-r--r--gs/src/genht.c19
-rw-r--r--gs/src/geninit.c19
-rw-r--r--gs/src/ghost.h19
-rw-r--r--gs/src/gp.h19
-rw-r--r--gs/src/gp_dosfb.c19
-rw-r--r--gs/src/gp_dosfe.c19
-rw-r--r--gs/src/gp_dosfs.c19
-rw-r--r--gs/src/gp_dvx.c19
-rw-r--r--gs/src/gp_getnv.c19
-rw-r--r--gs/src/gp_gnrdl.c411
-rw-r--r--gs/src/gp_iwatc.c19
-rw-r--r--gs/src/gp_msdos.c19
-rw-r--r--gs/src/gp_mshdl.c19
-rw-r--r--gs/src/gp_msio.c26
-rw-r--r--gs/src/gp_mslib.c19
-rw-r--r--gs/src/gp_mswin.c20
-rw-r--r--gs/src/gp_mswin.h19
-rw-r--r--gs/src/gp_nofb.c19
-rw-r--r--gs/src/gp_nsync.c19
-rw-r--r--gs/src/gp_ntfs.c19
-rw-r--r--gs/src/gp_os2.c31
-rw-r--r--gs/src/gp_os9.c19
-rw-r--r--gs/src/gp_posem.c19
-rw-r--r--gs/src/gp_pthr.c60
-rw-r--r--gs/src/gp_ptsem.c67
-rw-r--r--gs/src/gp_semon.c22
-rw-r--r--gs/src/gp_strdl.c19
-rw-r--r--gs/src/gp_sysv.c19
-rw-r--r--gs/src/gp_unifn.c19
-rw-r--r--gs/src/gp_unifs.c19
-rw-r--r--gs/src/gp_unix.c19
-rw-r--r--gs/src/gp_vms.c19
-rw-r--r--gs/src/gp_wgetv.c27
-rw-r--r--gs/src/gp_win32.c19
-rw-r--r--gs/src/gp_wsync.c19
-rw-r--r--gs/src/gpcheck.h19
-rw-r--r--gs/src/gpgetenv.h19
-rw-r--r--gs/src/gpsync.h19
-rw-r--r--gs/src/gs-fonts.rps2
-rw-r--r--gs/src/gs.c19
-rw-r--r--gs/src/gs.mak19
-rw-r--r--gs/src/gs.rps2
-rw-r--r--gs/src/gs16spl.c2
-rw-r--r--gs/src/gs16spl.rc2
-rw-r--r--gs/src/gsalloc.c19
-rw-r--r--gs/src/gsalloc.h19
-rw-r--r--gs/src/gsalpha.c19
-rw-r--r--gs/src/gsalpha.h19
-rw-r--r--gs/src/gsalphac.c19
-rw-r--r--gs/src/gsalphac.h19
-rw-r--r--gs/src/gsargs.c19
-rw-r--r--gs/src/gsargs.h19
-rw-r--r--gs/src/gsbitmap.h19
-rw-r--r--gs/src/gsbitops.c19
-rw-r--r--gs/src/gsbitops.h19
-rw-r--r--gs/src/gsbittab.c19
-rw-r--r--gs/src/gsbittab.h19
-rw-r--r--gs/src/gsccode.h30
-rw-r--r--gs/src/gsccolor.h19
-rw-r--r--gs/src/gscdef.c27
-rw-r--r--gs/src/gscdefs.h20
-rw-r--r--gs/src/gscdevn.c19
-rw-r--r--gs/src/gschar.c19
-rw-r--r--gs/src/gschar.h19
-rw-r--r--gs/src/gschar0.c19
-rw-r--r--gs/src/gscie.c19
-rw-r--r--gs/src/gscie.h19
-rw-r--r--gs/src/gsciemap.c19
-rw-r--r--gs/src/gsclipsr.c19
-rw-r--r--gs/src/gsclipsr.h19
-rw-r--r--gs/src/gscolor.c22
-rw-r--r--gs/src/gscolor.h19
-rw-r--r--gs/src/gscolor1.c20
-rw-r--r--gs/src/gscolor1.h19
-rw-r--r--gs/src/gscolor2.c19
-rw-r--r--gs/src/gscolor2.h19
-rw-r--r--gs/src/gscolor3.c19
-rw-r--r--gs/src/gscolor3.h19
-rw-r--r--gs/src/gscompt.h19
-rw-r--r--gs/src/gscoord.c19
-rw-r--r--gs/src/gscoord.h21
-rw-r--r--gs/src/gscparam.c19
-rw-r--r--gs/src/gscpixel.c19
-rw-r--r--gs/src/gscpixel.h20
-rw-r--r--gs/src/gscpm.h19
-rw-r--r--gs/src/gscrd.c19
-rw-r--r--gs/src/gscrd.h19
-rw-r--r--gs/src/gscrdp.c19
-rw-r--r--gs/src/gscrdp.h19
-rw-r--r--gs/src/gscrypt1.h19
-rw-r--r--gs/src/gscscie.c19
-rw-r--r--gs/src/gscsel.h19
-rw-r--r--gs/src/gscsepnm.h19
-rw-r--r--gs/src/gscsepr.c19
-rw-r--r--gs/src/gscsepr.h19
-rw-r--r--gs/src/gscspace.c19
-rw-r--r--gs/src/gscspace.h19
-rw-r--r--gs/src/gscssub.c19
-rw-r--r--gs/src/gscssub.h19
-rw-r--r--gs/src/gsdcolor.h19
-rw-r--r--gs/src/gsdevice.c19
-rw-r--r--gs/src/gsdevice.h19
-rw-r--r--gs/src/gsdevmem.c19
-rw-r--r--gs/src/gsdll.c19
-rw-r--r--gs/src/gsdll.h2
-rw-r--r--gs/src/gsdll2.rc21
-rw-r--r--gs/src/gsdll32.rc2
-rw-r--r--gs/src/gsdllos2.h2
-rw-r--r--gs/src/gsdllwin.h2
-rw-r--r--gs/src/gsdparam.c19
-rw-r--r--gs/src/gsdpnext.h19
-rw-r--r--gs/src/gsdps.c19
-rw-r--r--gs/src/gsdps.h19
-rw-r--r--gs/src/gsdps1.c19
-rw-r--r--gs/src/gsdsc.c2
-rw-r--r--gs/src/gsdsrc.c19
-rw-r--r--gs/src/gsdsrc.h19
-rw-r--r--gs/src/gserror.h19
-rw-r--r--gs/src/gserrors.h19
-rw-r--r--gs/src/gserver.c19
-rw-r--r--gs/src/gsexit.h19
-rw-r--r--gs/src/gsfcmap.c19
-rw-r--r--gs/src/gsfcmap.h19
-rw-r--r--gs/src/gsfemu.c19
-rw-r--r--gs/src/gsflip.c19
-rw-r--r--gs/src/gsflip.h19
-rw-r--r--gs/src/gsfname.c19
-rw-r--r--gs/src/gsfname.h21
-rw-r--r--gs/src/gsfont.c81
-rw-r--r--gs/src/gsfont.h22
-rw-r--r--gs/src/gsfont0.c19
-rw-r--r--gs/src/gsfunc.c19
-rw-r--r--gs/src/gsfunc.h33
-rw-r--r--gs/src/gsfunc0.c68
-rw-r--r--gs/src/gsfunc0.h26
-rw-r--r--gs/src/gsfunc3.c106
-rw-r--r--gs/src/gsfunc3.h19
-rw-r--r--gs/src/gsgc.h19
-rw-r--r--gs/src/gshsb.c19
-rw-r--r--gs/src/gshsb.h19
-rw-r--r--gs/src/gsht.c19
-rw-r--r--gs/src/gsht.h19
-rw-r--r--gs/src/gsht1.c19
-rw-r--r--gs/src/gsht1.h19
-rw-r--r--gs/src/gshtscr.c19
-rw-r--r--gs/src/gshtx.c19
-rw-r--r--gs/src/gshtx.h19
-rw-r--r--gs/src/gsimage.c19
-rw-r--r--gs/src/gsimage.h20
-rw-r--r--gs/src/gsimpath.c19
-rwxr-xr-xgs/src/gsindent2
-rw-r--r--gs/src/gsinit.c19
-rw-r--r--gs/src/gsio.h19
-rw-r--r--gs/src/gsiodev.c21
-rw-r--r--gs/src/gsiparam.h22
-rw-r--r--gs/src/gsiparm2.h19
-rw-r--r--gs/src/gsiparm3.h19
-rw-r--r--gs/src/gsiparm4.h19
-rw-r--r--gs/src/gsistate.c19
-rw-r--r--gs/src/gsjconf.h19
-rw-r--r--gs/src/gsjmorec.h19
-rw-r--r--gs/src/gslib.c19
-rw-r--r--gs/src/gslib.h20
-rw-r--r--gs/src/gsline.c19
-rw-r--r--gs/src/gsline.h19
-rw-r--r--gs/src/gslparam.h19
-rw-r--r--gs/src/gsmalloc.c19
-rw-r--r--gs/src/gsmalloc.h19
-rw-r--r--gs/src/gsmatrix.c19
-rw-r--r--gs/src/gsmatrix.h19
-rw-r--r--gs/src/gsmdebug.h20
-rw-r--r--gs/src/gsmemlok.c19
-rw-r--r--gs/src/gsmemlok.h19
-rw-r--r--gs/src/gsmemory.c39
-rw-r--r--gs/src/gsmemory.h27
-rw-r--r--gs/src/gsmemraw.h19
-rw-r--r--gs/src/gsmemret.c19
-rw-r--r--gs/src/gsmemret.h19
-rw-r--r--gs/src/gsmisc.c19
-rw-r--r--gs/src/gsnogc.c19
-rw-r--r--gs/src/gsnogc.h19
-rw-r--r--gs/src/gsnorop.c19
-rw-r--r--gs/src/gsnotify.c19
-rw-r--r--gs/src/gsnotify.h19
-rw-r--r--gs/src/gsos2.rc23
-rw-r--r--gs/src/gspaint.c19
-rw-r--r--gs/src/gspaint.h27
-rw-r--r--gs/src/gsparam.c23
-rw-r--r--gs/src/gsparam.h19
-rw-r--r--gs/src/gsparam2.c19
-rw-r--r--gs/src/gsparams.c19
-rw-r--r--gs/src/gsparams.h19
-rw-r--r--gs/src/gsparamx.c19
-rw-r--r--gs/src/gsparamx.h19
-rw-r--r--gs/src/gspath.c19
-rw-r--r--gs/src/gspath.h49
-rw-r--r--gs/src/gspath1.c19
-rw-r--r--gs/src/gspath2.h20
-rw-r--r--gs/src/gspcolor.c19
-rw-r--r--gs/src/gspcolor.h19
-rw-r--r--gs/src/gspenum.h19
-rw-r--r--gs/src/gspmdrv.c19
-rw-r--r--gs/src/gspmdrv.h19
-rw-r--r--gs/src/gspmdrv.rc23
-rw-r--r--gs/src/gsptype1.c27
-rw-r--r--gs/src/gsptype1.h19
-rw-r--r--gs/src/gsptype2.c19
-rw-r--r--gs/src/gsptype2.h19
-rw-r--r--gs/src/gsrect.h19
-rw-r--r--gs/src/gsrefct.h19
-rw-r--r--gs/src/gsrop.c19
-rw-r--r--gs/src/gsrop.h19
-rw-r--r--gs/src/gsropc.c19
-rw-r--r--gs/src/gsropc.h19
-rw-r--r--gs/src/gsropt.h19
-rw-r--r--gs/src/gsroptab.c19
-rw-r--r--gs/src/gsshade.c19
-rw-r--r--gs/src/gsshade.h19
-rw-r--r--gs/src/gsstate.c19
-rw-r--r--gs/src/gsstate.h19
-rw-r--r--gs/src/gsstruct.h19
-rw-r--r--gs/src/gsstype.h19
-rwxr-xr-xgs/src/gssubst2
-rw-r--r--gs/src/gstext.c29
-rw-r--r--gs/src/gstext.h19
-rw-r--r--gs/src/gstrap.c19
-rw-r--r--gs/src/gstrap.h19
-rw-r--r--gs/src/gstype1.c46
-rw-r--r--gs/src/gstype1.h19
-rw-r--r--gs/src/gstype2.c19
-rw-r--r--gs/src/gstype42.c26
-rw-r--r--gs/src/gstypes.h19
-rw-r--r--gs/src/gsuid.h19
-rw-r--r--gs/src/gsutil.c26
-rw-r--r--gs/src/gsutil.h24
-rw-r--r--gs/src/gswin.rc2
-rw-r--r--gs/src/gsxfont.h19
-rw-r--r--gs/src/gx.h19
-rw-r--r--gs/src/gxacpath.c19
-rw-r--r--gs/src/gxalloc.h25
-rw-r--r--gs/src/gxalpha.h19
-rw-r--r--gs/src/gxarith.h19
-rw-r--r--gs/src/gxband.h19
-rw-r--r--gs/src/gxbcache.c19
-rw-r--r--gs/src/gxbcache.h19
-rw-r--r--gs/src/gxbitfmt.h19
-rw-r--r--gs/src/gxbitmap.h19
-rw-r--r--gs/src/gxbitops.h19
-rw-r--r--gs/src/gxccache.c19
-rw-r--r--gs/src/gxccman.c19
-rw-r--r--gs/src/gxcdevn.h19
-rw-r--r--gs/src/gxchar.c19
-rw-r--r--gs/src/gxchar.h19
-rw-r--r--gs/src/gxcht.c94
-rw-r--r--gs/src/gxcie.h19
-rw-r--r--gs/src/gxcindex.h19
-rw-r--r--gs/src/gxclbits.c24
-rw-r--r--gs/src/gxcldev.h19
-rw-r--r--gs/src/gxclfile.c19
-rw-r--r--gs/src/gxclimag.c205
-rw-r--r--gs/src/gxclio.h19
-rw-r--r--gs/src/gxclip.c19
-rw-r--r--gs/src/gxclip.h19
-rw-r--r--gs/src/gxclip2.c19
-rw-r--r--gs/src/gxclip2.h19
-rw-r--r--gs/src/gxclipm.c19
-rw-r--r--gs/src/gxclipm.h20
-rw-r--r--gs/src/gxclipsr.h19
-rw-r--r--gs/src/gxclist.c32
-rw-r--r--gs/src/gxclist.h34
-rw-r--r--gs/src/gxcllzw.c19
-rw-r--r--gs/src/gxclmem.c19
-rw-r--r--gs/src/gxclmem.h19
-rw-r--r--gs/src/gxclpage.c19
-rw-r--r--gs/src/gxclpage.h20
-rw-r--r--gs/src/gxclpath.c70
-rw-r--r--gs/src/gxclpath.h20
-rw-r--r--gs/src/gxclrast.c23
-rw-r--r--gs/src/gxclread.c19
-rw-r--r--gs/src/gxclrect.c19
-rw-r--r--gs/src/gxclutil.c19
-rw-r--r--gs/src/gxclzlib.c19
-rw-r--r--gs/src/gxcmap.c19
-rw-r--r--gs/src/gxcmap.h20
-rw-r--r--gs/src/gxcolor2.h19
-rw-r--r--gs/src/gxcomp.h19
-rw-r--r--gs/src/gxcoord.h20
-rw-r--r--gs/src/gxcpath.c36
-rw-r--r--gs/src/gxcpath.h20
-rw-r--r--gs/src/gxcspace.h19
-rw-r--r--gs/src/gxctable.c19
-rw-r--r--gs/src/gxctable.h19
-rw-r--r--gs/src/gxcvalue.h19
-rw-r--r--gs/src/gxdcconv.c19
-rw-r--r--gs/src/gxdcconv.h19
-rw-r--r--gs/src/gxdcolor.c19
-rw-r--r--gs/src/gxdcolor.h19
-rw-r--r--gs/src/gxdda.h20
-rw-r--r--gs/src/gxdevbuf.h19
-rw-r--r--gs/src/gxdevcli.h19
-rw-r--r--gs/src/gxdevice.h19
-rw-r--r--gs/src/gxdevmem.h20
-rw-r--r--gs/src/gxdevrop.h19
-rw-r--r--gs/src/gxdht.h19
-rw-r--r--gs/src/gxdhtres.h19
-rw-r--r--gs/src/gxdither.c32
-rw-r--r--gs/src/gxdither.h19
-rw-r--r--gs/src/gxfarith.h19
-rw-r--r--gs/src/gxfcache.h20
-rw-r--r--gs/src/gxfcmap.h19
-rw-r--r--gs/src/gxfill.c68
-rw-r--r--gs/src/gxfixed.h19
-rw-r--r--gs/src/gxfmap.h19
-rw-r--r--gs/src/gxfont.h54
-rw-r--r--gs/src/gxfont0.h19
-rw-r--r--gs/src/gxfont1.h22
-rw-r--r--gs/src/gxfont42.h19
-rw-r--r--gs/src/gxfrac.h19
-rw-r--r--gs/src/gxftype.h19
-rw-r--r--gs/src/gxfunc.h19
-rw-r--r--gs/src/gxgetbit.h19
-rw-r--r--gs/src/gxhint1.c19
-rw-r--r--gs/src/gxhint2.c19
-rw-r--r--gs/src/gxhint3.c49
-rw-r--r--gs/src/gxht.c21
-rw-r--r--gs/src/gxht.h19
-rw-r--r--gs/src/gxhtbit.c19
-rw-r--r--gs/src/gxhttile.h19
-rw-r--r--gs/src/gxhttype.h19
-rw-r--r--gs/src/gxi12bit.c19
-rw-r--r--gs/src/gxiclass.h19
-rw-r--r--gs/src/gxicolor.c19
-rw-r--r--gs/src/gxidata.c61
-rw-r--r--gs/src/gxifast.c21
-rw-r--r--gs/src/gximage.c19
-rw-r--r--gs/src/gximage.h20
-rw-r--r--gs/src/gximage1.c19
-rw-r--r--gs/src/gximage2.c19
-rw-r--r--gs/src/gximage3.c20
-rw-r--r--gs/src/gximage4.c19
-rw-r--r--gs/src/gximono.c19
-rw-r--r--gs/src/gxino12b.c19
-rw-r--r--gs/src/gxiodev.h20
-rw-r--r--gs/src/gxiparam.h22
-rw-r--r--gs/src/gxipixel.c19
-rw-r--r--gs/src/gxiscale.c61
-rw-r--r--gs/src/gxistate.h19
-rw-r--r--gs/src/gxline.h19
-rw-r--r--gs/src/gxlum.h19
-rw-r--r--gs/src/gxmatrix.h19
-rw-r--r--gs/src/gxmclip.c19
-rw-r--r--gs/src/gxmclip.h19
-rw-r--r--gs/src/gxobj.h19
-rw-r--r--gs/src/gxop1.h19
-rw-r--r--gs/src/gxp1fill.c19
-rw-r--r--gs/src/gxp1impl.h19
-rw-r--r--gs/src/gxpageq.c19
-rw-r--r--gs/src/gxpageq.h19
-rw-r--r--gs/src/gxpaint.c19
-rw-r--r--gs/src/gxpaint.h20
-rw-r--r--gs/src/gxpath.c19
-rw-r--r--gs/src/gxpath.h20
-rw-r--r--gs/src/gxpath2.c36
-rw-r--r--gs/src/gxpcache.h19
-rw-r--r--gs/src/gxpcmap.c33
-rw-r--r--gs/src/gxpcolor.h20
-rw-r--r--gs/src/gxpcopy.c40
-rw-r--r--gs/src/gxpdash.c21
-rw-r--r--gs/src/gxpflat.c19
-rw-r--r--gs/src/gxropc.h19
-rw-r--r--gs/src/gxrplane.h19
-rw-r--r--gs/src/gxsample.c19
-rw-r--r--gs/src/gxsample.h19
-rw-r--r--gs/src/gxshade.c25
-rw-r--r--gs/src/gxshade.h19
-rw-r--r--gs/src/gxshade1.c19
-rw-r--r--gs/src/gxshade4.c19
-rw-r--r--gs/src/gxshade4.h19
-rw-r--r--gs/src/gxshade6.c273
-rw-r--r--gs/src/gxstate.h19
-rw-r--r--gs/src/gxstroke.c19
-rw-r--r--gs/src/gxsync.c19
-rw-r--r--gs/src/gxsync.h19
-rw-r--r--gs/src/gxtext.h19
-rw-r--r--gs/src/gxtmap.h19
-rw-r--r--gs/src/gxtype1.c182
-rw-r--r--gs/src/gxtype1.h41
-rw-r--r--gs/src/gxxfont.h19
-rw-r--r--gs/src/gzacpath.h20
-rw-r--r--gs/src/gzcpath.h20
-rw-r--r--gs/src/gzline.h19
-rw-r--r--gs/src/gzpath.h20
-rw-r--r--gs/src/gzstate.h19
-rw-r--r--gs/src/ialloc.c19
-rw-r--r--gs/src/ialloc.h19
-rw-r--r--gs/src/iastate.h20
-rw-r--r--gs/src/iastruct.h19
-rw-r--r--gs/src/ibnum.c19
-rw-r--r--gs/src/ibnum.h20
-rw-r--r--gs/src/iccfont.c19
-rw-r--r--gs/src/iccinit0.c19
-rw-r--r--gs/src/icfontab.c19
-rw-r--r--gs/src/ichar.h20
-rw-r--r--gs/src/ichar1.h19
-rw-r--r--gs/src/icharout.h19
-rw-r--r--gs/src/icie.h19
-rw-r--r--gs/src/icolor.h24
-rw-r--r--gs/src/iconf.c19
-rw-r--r--gs/src/icontext.c19
-rw-r--r--gs/src/icontext.h19
-rw-r--r--gs/src/icremap.h19
-rw-r--r--gs/src/icsmap.h19
-rw-r--r--gs/src/icstate.h19
-rw-r--r--gs/src/iddict.h19
-rw-r--r--gs/src/iddstack.h19
-rw-r--r--gs/src/idebug.c19
-rw-r--r--gs/src/idebug.h19
-rw-r--r--gs/src/idict.c19
-rw-r--r--gs/src/idict.h19
-rw-r--r--gs/src/idictdef.h19
-rw-r--r--gs/src/idosave.h19
-rw-r--r--gs/src/idparam.c19
-rw-r--r--gs/src/idparam.h19
-rw-r--r--gs/src/idsdata.h19
-rw-r--r--gs/src/idstack.c19
-rw-r--r--gs/src/idstack.h19
-rw-r--r--gs/src/iesdata.h19
-rw-r--r--gs/src/iestack.h19
-rw-r--r--gs/src/ifilter.h23
-rw-r--r--gs/src/ifilter2.h19
-rw-r--r--gs/src/ifont.h19
-rw-r--r--gs/src/ifont1.h19
-rw-r--r--gs/src/ifrpred.h19
-rw-r--r--gs/src/ifunc.h19
-rw-r--r--gs/src/ifwpred.h19
-rw-r--r--gs/src/igc.c19
-rw-r--r--gs/src/igc.h21
-rw-r--r--gs/src/igcref.c19
-rw-r--r--gs/src/igcstr.c19
-rw-r--r--gs/src/igcstr.h19
-rw-r--r--gs/src/igstate.h19
-rw-r--r--gs/src/iht.h19
-rw-r--r--gs/src/iimage.h20
-rw-r--r--gs/src/iimage2.h20
-rw-r--r--gs/src/iinit.c29
-rw-r--r--gs/src/iinit.h19
-rw-r--r--gs/src/ilevel.h19
-rw-r--r--gs/src/ilocate.c19
-rw-r--r--gs/src/imain.c19
-rw-r--r--gs/src/imain.h19
-rw-r--r--gs/src/imainarg.c26
-rw-r--r--gs/src/imainarg.h19
-rw-r--r--gs/src/imemory.h19
-rw-r--r--gs/src/iminst.h19
-rw-r--r--gs/src/iname.c52
-rw-r--r--gs/src/iname.h19
-rw-r--r--gs/src/inamedef.h19
-rw-r--r--gs/src/inameidx.h19
-rw-r--r--gs/src/inames.h19
-rw-r--r--gs/src/inamestr.h19
-rw-r--r--gs/src/inobtokn.c19
-rw-r--r--gs/src/inouparm.c19
-rwxr-xr-xgs/src/instcopy43
-rw-r--r--gs/src/int.mak56
-rw-r--r--gs/src/interp.c28
-rw-r--r--gs/src/interp.h19
-rw-r--r--gs/src/iosdata.h19
-rw-r--r--gs/src/iostack.h19
-rw-r--r--gs/src/ipacked.h19
-rw-r--r--gs/src/iparam.c21
-rw-r--r--gs/src/iparam.h20
-rw-r--r--gs/src/iparray.h19
-rw-r--r--gs/src/ipcolor.h19
-rw-r--r--gs/src/ireclaim.c19
-rw-r--r--gs/src/iref.h19
-rw-r--r--gs/src/isave.c19
-rw-r--r--gs/src/isave.h20
-rw-r--r--gs/src/iscan.c19
-rw-r--r--gs/src/iscan.h20
-rw-r--r--gs/src/iscanbin.c19
-rw-r--r--gs/src/iscanbin.h19
-rw-r--r--gs/src/iscannum.c19
-rw-r--r--gs/src/iscannum.h19
-rw-r--r--gs/src/isdata.h19
-rw-r--r--gs/src/isstate.h20
-rw-r--r--gs/src/istack.c19
-rw-r--r--gs/src/istack.h19
-rw-r--r--gs/src/istkparm.h19
-rw-r--r--gs/src/istream.h20
-rw-r--r--gs/src/istruct.h19
-rw-r--r--gs/src/iutil.c21
-rw-r--r--gs/src/iutil.h20
-rw-r--r--gs/src/iutil2.c19
-rw-r--r--gs/src/iutil2.h19
-rw-r--r--gs/src/iutilasm.asm19
-rw-r--r--gs/src/ivmem2.h19
-rw-r--r--gs/src/ivmspace.h19
-rw-r--r--gs/src/jerror_.h19
-rw-r--r--gs/src/jpeg.mak19
-rw-r--r--gs/src/lib.mak58
-rw-r--r--gs/src/libpng.mak19
-rw-r--r--gs/src/main.h19
-rw-r--r--gs/src/malloc_.h19
-rw-r--r--gs/src/math_.h19
-rw-r--r--gs/src/md5.c8
-rw-r--r--gs/src/md5.h19
-rw-r--r--gs/src/memory_.h19
-rw-r--r--gs/src/msvc32.mak139
-rw-r--r--gs/src/msvccmd.mak19
-rw-r--r--gs/src/msvclib.mak34
-rw-r--r--gs/src/msvctail.mak19
-rwxr-xr-xgs/src/mv.bat2
-rwxr-xr-xgs/src/mv.cmd2
-rw-r--r--gs/src/oparc.h19
-rw-r--r--gs/src/opcheck.h20
-rw-r--r--gs/src/opdef.h19
-rw-r--r--gs/src/openvms.mak50
-rw-r--r--gs/src/openvms.mmk38
-rw-r--r--gs/src/oper.h19
-rw-r--r--gs/src/opextern.h19
-rw-r--r--gs/src/os2.mak241
-rw-r--r--gs/src/ostack.h19
-rw-r--r--gs/src/pcwin.mak21
-rw-r--r--gs/src/pipe_.h19
-rw-r--r--gs/src/png_.h19
-rwxr-xr-xgs/src/rm.bat2
-rwxr-xr-xgs/src/rm.cmd2
-rw-r--r--gs/src/sa85d.c19
-rw-r--r--gs/src/sa85d.h19
-rw-r--r--gs/src/sa85x.h19
-rw-r--r--gs/src/sbcp.c19
-rw-r--r--gs/src/sbhc.c19
-rw-r--r--gs/src/sbhc.h20
-rw-r--r--gs/src/sbtx.h20
-rw-r--r--gs/src/sbwbs.c19
-rw-r--r--gs/src/sbwbs.h20
-rw-r--r--gs/src/scanchar.h20
-rw-r--r--gs/src/scantab.c19
-rw-r--r--gs/src/scf.h19
-rw-r--r--gs/src/scfd.c21
-rw-r--r--gs/src/scfdgen.c23
-rw-r--r--gs/src/scfdtab.c6
-rw-r--r--gs/src/scfe.c19
-rw-r--r--gs/src/scfetab.c19
-rw-r--r--gs/src/scfparam.c19
-rw-r--r--gs/src/scfx.h19
-rw-r--r--gs/src/scommon.h19
-rw-r--r--gs/src/sdcparam.c19
-rw-r--r--gs/src/sdcparam.h19
-rw-r--r--gs/src/sdct.h20
-rw-r--r--gs/src/sdctc.c19
-rw-r--r--gs/src/sdctd.c19
-rw-r--r--gs/src/sdcte.c19
-rw-r--r--gs/src/sddparam.c19
-rw-r--r--gs/src/sdeparam.c19
-rw-r--r--gs/src/seexec.c19
-rw-r--r--gs/src/sfilter.h19
-rw-r--r--gs/src/sfilter1.c19
-rw-r--r--gs/src/sfilter2.c19
-rw-r--r--gs/src/sfxboth.c19
-rw-r--r--gs/src/sfxfd.c19
-rw-r--r--gs/src/sfxstdio.c19
-rw-r--r--gs/src/shc.c19
-rw-r--r--gs/src/shc.h19
-rw-r--r--gs/src/shcgen.c19
-rw-r--r--gs/src/shcgen.h20
-rw-r--r--gs/src/siinterp.c19
-rw-r--r--gs/src/siinterp.h19
-rw-r--r--gs/src/siscale.c19
-rw-r--r--gs/src/siscale.h20
-rw-r--r--gs/src/sisparam.h19
-rw-r--r--gs/src/sjpeg.h20
-rw-r--r--gs/src/sjpegc.c19
-rw-r--r--gs/src/sjpegd.c19
-rw-r--r--gs/src/sjpege.c19
-rw-r--r--gs/src/slzwc.c19
-rw-r--r--gs/src/slzwce.c19
-rw-r--r--gs/src/slzwd.c19
-rw-r--r--gs/src/slzwx.h20
-rw-r--r--gs/src/smtf.c19
-rw-r--r--gs/src/smtf.h20
-rw-r--r--gs/src/spdiff.c19
-rw-r--r--gs/src/spdiffx.h20
-rw-r--r--gs/src/spngp.c19
-rw-r--r--gs/src/spngpx.h20
-rw-r--r--gs/src/spprint.c19
-rw-r--r--gs/src/spprint.h19
-rw-r--r--gs/src/spsdf.c19
-rw-r--r--gs/src/spsdf.h19
-rw-r--r--gs/src/srdline.h19
-rw-r--r--gs/src/srld.c19
-rw-r--r--gs/src/srle.c19
-rw-r--r--gs/src/srlx.h20
-rw-r--r--gs/src/sstring.c19
-rw-r--r--gs/src/sstring.h19
-rw-r--r--gs/src/stat_.h19
-rw-r--r--gs/src/std.h19
-rw-r--r--gs/src/stdio_.h19
-rw-r--r--gs/src/stdpre.h19
-rw-r--r--gs/src/store.h19
-rw-r--r--gs/src/stream.c25
-rw-r--r--gs/src/stream.h26
-rw-r--r--gs/src/strimpl.h19
-rw-r--r--gs/src/string_.h19
-rw-r--r--gs/src/szlibc.c19
-rw-r--r--gs/src/szlibd.c19
-rw-r--r--gs/src/szlibe.c19
-rw-r--r--gs/src/szlibx.h19
-rw-r--r--gs/src/szlibxx.h19
-rw-r--r--gs/src/time_.h19
-rw-r--r--gs/src/ugcclib.mak26
-rw-r--r--gs/src/unix-aux.mak19
-rw-r--r--gs/src/unix-end.mak29
-rwxr-xr-xgs/src/unix-gcc.mak59
-rwxr-xr-xgs/src/unixansi.mak56
-rw-r--r--gs/src/unixhead.mak19
-rw-r--r--gs/src/unixinst.mak50
-rw-r--r--gs/src/unixlink.mak23
-rw-r--r--gs/src/unixtrad.mak43
-rw-r--r--gs/src/version.mak27
-rw-r--r--gs/src/vmsmath.h19
-rw-r--r--gs/src/watc.mak64
-rw-r--r--gs/src/watclib.mak33
-rw-r--r--gs/src/watcw32.mak66
-rw-r--r--gs/src/wccommon.mak19
-rw-r--r--gs/src/wctail.mak19
-rw-r--r--gs/src/windows_.h19
-rw-r--r--gs/src/winint.mak144
-rw-r--r--gs/src/winlib.mak22
-rw-r--r--gs/src/winplat.mak19
-rw-r--r--gs/src/wmin.mak19
-rw-r--r--gs/src/x_.h19
-rw-r--r--gs/src/zarith.c19
-rw-r--r--gs/src/zarray.c19
-rw-r--r--gs/src/zbfont.c31
-rw-r--r--gs/src/zbseq.c19
-rw-r--r--gs/src/zcfont.c19
-rw-r--r--gs/src/zchar.c19
-rw-r--r--gs/src/zchar1.c19
-rw-r--r--gs/src/zchar2.c19
-rw-r--r--gs/src/zchar32.c19
-rw-r--r--gs/src/zchar42.c19
-rw-r--r--gs/src/zcharout.c19
-rw-r--r--gs/src/zcharx.c19
-rw-r--r--gs/src/zcid.c19
-rw-r--r--gs/src/zcie.c19
-rw-r--r--gs/src/zcolor.c26
-rw-r--r--gs/src/zcolor1.c19
-rw-r--r--gs/src/zcolor2.c19
-rw-r--r--gs/src/zcontext.c19
-rw-r--r--gs/src/zcontrol.c19
-rw-r--r--gs/src/zcrd.c19
-rw-r--r--gs/src/zcsdevn.c19
-rw-r--r--gs/src/zcsindex.c19
-rw-r--r--gs/src/zcspixel.c19
-rw-r--r--gs/src/zcssepr.c19
-rw-r--r--gs/src/zdevcal.c19
-rw-r--r--gs/src/zdevice.c19
-rw-r--r--gs/src/zdevice2.c19
-rw-r--r--gs/src/zdict.c19
-rw-r--r--gs/src/zdosio.c19
-rw-r--r--gs/src/zdouble.c19
-rw-r--r--gs/src/zdpnext.c19
-rw-r--r--gs/src/zdps.c19
-rw-r--r--gs/src/zdps1.c19
-rw-r--r--gs/src/zfbcp.c19
-rw-r--r--gs/src/zfcmap.c19
-rw-r--r--gs/src/zfdctd.c19
-rw-r--r--gs/src/zfdcte.c19
-rw-r--r--gs/src/zfdecode.c19
-rw-r--r--gs/src/zfile.c19
-rw-r--r--gs/src/zfileio.c34
-rw-r--r--gs/src/zfilter.c19
-rw-r--r--gs/src/zfilter2.c19
-rw-r--r--gs/src/zfilterx.c19
-rw-r--r--gs/src/zfont.c35
-rw-r--r--gs/src/zfont0.c19
-rw-r--r--gs/src/zfont1.c138
-rw-r--r--gs/src/zfont2.c19
-rw-r--r--gs/src/zfont32.c19
-rw-r--r--gs/src/zfont42.c19
-rw-r--r--gs/src/zfproc.c29
-rw-r--r--gs/src/zfreuse.c19
-rw-r--r--gs/src/zfunc.c19
-rw-r--r--gs/src/zfunc0.c19
-rw-r--r--gs/src/zfunc3.c19
-rw-r--r--gs/src/zfunc4.c19
-rw-r--r--gs/src/zfzlib.c19
-rw-r--r--gs/src/zgeneric.c19
-rw-r--r--gs/src/zgstate.c19
-rw-r--r--gs/src/zhsb.c19
-rw-r--r--gs/src/zht.c19
-rw-r--r--gs/src/zht1.c19
-rw-r--r--gs/src/zht2.c19
-rw-r--r--gs/src/zimage.c51
-rw-r--r--gs/src/zimage2.c19
-rw-r--r--gs/src/zimage3.c19
-rw-r--r--gs/src/ziodev.c28
-rw-r--r--gs/src/ziodev2.c19
-rw-r--r--gs/src/zlib.mak24
-rw-r--r--gs/src/zmath.c19
-rw-r--r--gs/src/zmatrix.c19
-rw-r--r--gs/src/zmedia2.c19
-rw-r--r--gs/src/zmisc.c19
-rw-r--r--gs/src/zmisc1.c19
-rw-r--r--gs/src/zmisc2.c19
-rw-r--r--gs/src/zmisc3.c19
-rw-r--r--gs/src/zpacked.c19
-rw-r--r--gs/src/zpaint.c19
-rw-r--r--gs/src/zpath.c19
-rw-r--r--gs/src/zpath1.c19
-rw-r--r--gs/src/zpcolor.c19
-rw-r--r--gs/src/zrelbit.c19
-rw-r--r--gs/src/zrop.c19
-rw-r--r--gs/src/zshade.c19
-rw-r--r--gs/src/zstack.c19
-rw-r--r--gs/src/zstring.c19
-rw-r--r--gs/src/zsysvm.c19
-rw-r--r--gs/src/ztoken.c19
-rw-r--r--gs/src/ztrap.c19
-rw-r--r--gs/src/ztype.c19
-rw-r--r--gs/src/zupath.c19
-rw-r--r--gs/src/zusparam.c19
-rw-r--r--gs/src/zvmem.c19
-rw-r--r--gs/src/zvmem2.c19
-rw-r--r--gs/zlib/contrib/iostream2/zstream.h2
1173 files changed, 14969 insertions, 20620 deletions
diff --git a/gs/doc/Bug-form.htm b/gs/doc/Bug-form.htm
index e484e64f2..f24b193f7 100644
--- a/gs/doc/Bug-form.htm
+++ b/gs/doc/Bug-form.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Ghostscript bug report form</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: bug-form.txt -->
</head>
@@ -132,7 +132,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/C-style.htm b/gs/doc/C-style.htm
index a96fc9af9..790301a31 100644
--- a/gs/doc/C-style.htm
+++ b/gs/doc/C-style.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Aladdin's C coding guidelines</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: c-style.txt -->
</head>
@@ -933,7 +933,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Commprod.htm b/gs/doc/Commprod.htm
index f234b3602..cc080a7da 100644
--- a/gs/doc/Commprod.htm
+++ b/gs/doc/Commprod.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Conditions to distribute Ghostscript in a commercial context</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: commprod.txt -->
</head>
@@ -305,7 +305,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Copying.htm b/gs/doc/Copying.htm
index 24f31b36a..8230b4bff 100644
--- a/gs/doc/Copying.htm
+++ b/gs/doc/Copying.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Not the Gnu General Public License</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: COPYING -->
</head>
@@ -55,7 +55,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Current.htm b/gs/doc/Current.htm
index 7aef624e6..39a00c984 100644
--- a/gs/doc/Current.htm
+++ b/gs/doc/Current.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Information specifically about the current release</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: current.txt -->
</head>
@@ -85,13 +85,6 @@ code, if you want to use precompiled versions of the jpeg, libpng, or zlib
libraries.
<p>
-GNU readline is supported (as a build-time option). However, because of the
-"viral" nature of the GNU License, you are not allowed to distribute Aladdin
-Ghostscript if you compile it with GNU readline support. See <a
-href="../src/gp_gnrdl.c"> the <b><tt>gp_gnrdl.c</tt></b> source file</a> for
-more information.
-
-<p>
The syntax
<b><tt>%</tt></b><em>iodevice</em><b><tt>%</tt></b><em>filename</em> is now
supported with the <b><tt>-sOutputFile=</tt></b> switch, allowing you to
@@ -116,6 +109,12 @@ documentation</a> for details.
Ghostscript as a dynamically linked library is now supported on the Mac as
well as on Windows.
+<p>
+GNU readline was supported in most of the beta distributions for 6.0, but
+was removed at the last minute because of objections from the Free Software
+Foundation. Please see <a href="Make.htm#GNU_readline">here</a> for more
+information.
+
<h1><a name="Changes"></a>Changes (since release 5.50)</h1>
<h2>Directories and build procedure</h2>
@@ -132,7 +131,7 @@ other than MS Windows, the build procedure does not write into this
directory.
<p>
-The files included in the Ghostscript release now are divided into 5
+The files included in the Ghostscript release now are found in five
subdirectories.
<ul>
@@ -158,7 +157,7 @@ PDF files. Copied by <b><tt>make install</tt></b>.
</ul>
<p>
-The build procedure creates 2 additional subdirectories,
+The build procedure creates two additional subdirectories,
<em>top</em><b><tt>/obj/</tt></b> (or <b><tt>debugobj</tt></b> or
<b><tt>pgobj</tt></b>) and <em>top</em><b><tt>/bin/</tt></b>. See the
documentation on <a href="Make.htm">how to build Ghostscript</a> for more
@@ -175,13 +174,7 @@ information.
<h1><a name="Known_problems"></a>Known problems</h1>
<p>
-On MS Windows, trying to execute <b><tt>setfileposition</tt></b> or
-<b><tt>bytesavailable</tt></b> on the standard input file crashes
-Ghostscript.
-
-<p>
-(This is not a complete list of known problems: see the <a href="News.htm">
-release news</a> for details.)
+See the <a href="News.htm">release news</a> for details.
<h2><a name="Usage"></a>Usage</h2>
@@ -272,7 +265,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Devices.htm b/gs/doc/Devices.htm
index babdd2d4f..a57f3e806 100644
--- a/gs/doc/Devices.htm
+++ b/gs/doc/Devices.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Details of Ghostscript output devices</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: devices.txt -->
</head>
@@ -324,130 +324,178 @@ The source module <b><tt>gdevcd8.c</tt></b> contains four generic drivers:
<h2><a name="HP8_further_documentation"></a>Further documentation</h2>
-<pre>
+<p>
+<b>Credits:</b> Much of the driver is based on ideas derived from the
+cdj550 driver of George Cameron. The support for the hp670, hp690, hp890
+and hp1600 was added by Martin Gerbershagen.
- CREDITS: Much of the driver is based on ideas derived
- from the cdj550 driver of George Cameron.
-
- The support for the hp670, hp690, hp890
- and hp1600 was added by Martin Gerbershagen.
-
- ----------------------------------------------------------------
-
- 11.11.96. Initial release of the driver
-
- 25.08.97 Version 1.2. Resolved all but one of the
- known bugs, introduced a couple
- of perfomance improvements. Complete
- new color-transfer-function handling.
- (see gamma).
-
- 01.06.98 Version 1.3 Due to the most welcome contribution
- of Martin Gerbershagen (ger@ulm.temic.de),
- support for the hp670, hp690 and hp890
- and hp1600 has been added. Martin has also
- resolved all known bugs.
-
- Problems : Dark colors are still pale.
-
-
- The driver needs no longer special switches to be invoked
- except -sDEVICE=cdj850, or -sDEVICE=CDJ890, or sDEVICE=CDJ670
- or -sDevice=CDJ1600
-
- The hp690 is supported through the hp670 device, the hp855, hp870
- and the hp1100 through the hp850 device.
-
- The following switches are supported.
-
- -dPapertype= 0 plain paper [default]
- 1 bond paper
- 2 special paper
- 3 glossy film
- 4 transparency film
-
- Note, currently the lookuptables are not suited
- for printing on special paper or transperencies.
- Please revert to the gamma functions in this case.
-
- -dQuality= -1 draft
- 0 normal [default]
- 1 presentation
-
- -dRetStatus= 0 C-RET off
- 1 C-RET on [default]
-
- -dMasterGamma= 3.0 [default = 1.0]
- __Note__: To take advantage of the calibrated color-transfer
- functions, be sure not to have any Gamma-Statements
- left! If you need to (i.e. overhead sheets),
- you still can use the gamma-functions, but they will
- override the built-in calibration. To use gamma in the
- traditional way, set MasterGamma to any value greater
- 1.0 and less 10.0. To adjust individual gamma-values,
- you have to additionally set MasterGamma to a value
- greater 1.0 and less 10.0
-
- With the next release, gamma functions will be dropped.
-
- When using the driver, be aware that printing in 600dpi involves
- processing of large amounts of data (> 188MB !). Therefore, the
- driver is not what you would expect to be a fast driver ;-)
- This is no problem when printing a full sized color page (because
- printing itself is slow), but it's really annoying if yoy print only
- text pages. Maybe I can optimize the code for text-only pages in a
- later release. Right now, it is recommended to use the highest
- possible optimisation level your compiler offers....
- For the time beeing, use the cdj550 device with -sBitsPerPixel=3
- for fast proof-prints. If you simply want to print 600dpi b/w data,
- use the cdj550 device with -sBitsPerPixel=8 (or 1).
-
- Since the printer itself is slow, it may help to set the
- process-priority of the gs-process to regular or even less. On a
- 486/100MHZ this is still sufficient to maintain a continuos
- data-flow.
- Note to OS/2 users: Simply put the gs-window into the background,
- or minimize it. Also make sure, that print01.sys is invoked without
- the /irq switch (great speed improvement under warp4).
-
- The printer default settings compensate for dot-gain by a
- calibrated color-transfer function. If this appears to be to light
- for your business-graphs, or for overhead-sheets, feel free to set
- -dMasterGamma=1.7.
-
- Furthermore, you may tweak the gammavalues independently by setting
- -dGammaValC, -dGammaValM, -dGammaValY or -dGammaValK (if not set,
- the values default to MasterGamma). This will only work, when
- -dMasterGamma is set to a value greater than 1.0.
-
- If you want to learn more about gamma, see:
-
- <a href="ftp://ftp.igd.fhg.de/pub/doc/colour/GammaFAQ.pdf">ftp://ftp.igd.fhg.de/pub/doc/colour/GammaFAQ.pdf</a>
-
- Further information, bugs, tips etc, can be found
- at my website.
-
- Have fun!
-
- Uli
-
- <a href="mailto:uliw@erdw.ethz.ch">uliw@erdw.ethz.ch</a>
- <a href="http://www.erdw.ethz.ch/~bonk/">http://www.erdw.ethz.ch/~bonk/</a>
-
- Note: Depending on how you transfered the files,
- you might need to remove some CR-codes used on intel-based machines:
-
- simply type: unzip -a hp850.zip
-
- to compile with gs5.x, simply add
-
- DEVICE_DEVS4=cdj850.dev cdj670.dev cdj890.dev cdj1600.dev
-
- to your makefile.
-
- BTW, it is always a good idea to read <a href="Make.htm">Make.htm</a>
- before attempting to recompile.....
-</pre>
+
+
+<blockquote><table cellpadding=0 cellspacing=0>
+<tr valign=top> <td>11.11.96
+ <td>&nbsp;&nbsp;&nbsp;
+ <td>Version 1.0
+ <td>&nbsp;&nbsp;&nbsp;
+ <td>&nbsp;
+<tr valign=top> <td>25.08.97
+ <td>&nbsp;
+ <td>Version 1.2
+ <td>&nbsp;
+ <td>Resolved all but one of the known bugs, introduced a couple of
+ perfomance improvements. Complete new color-transfer-function
+ handling (see gamma).
+<tr valign=top> <td>01.06.98
+ <td>&nbsp;
+ <td>Version 1.3
+ <td>&nbsp;
+ <td>Due to the most welcome contribution of Martin Gerbershagen
+ (ger@ulm.temic.de), support for the hp670, hp690 and hp890 and
+ hp1600 has been added. Martin has also resolved all known bugs.
+<tr valign=top> <td>&nbsp;
+ <td>&nbsp;
+ <td>&nbsp;
+ <td>&nbsp;
+ <td>Problems:Dark colors are still pale.
+</table></blockquote>
+
+<p>
+The hp690 is supported through the hp670 device, the hp855, hp870 and the
+hp1100 through the hp850 device. The driver needs no longer special
+switches to be invoked except <b><tt>-sDEVICE=cdj850</tt></b>,
+<b><tt>-sDEVICE=CDJ890</tt></b>, <b><tt>-sDEVICE=CDJ670</tt></b>, or
+<b><tt>-sDevice=CDJ1600</tt></b>. The following switches are supported.
+
+<blockquote><table cellpadding=0 cellspacing=0>
+<tr valign=top> <td><b><tt>-dPapertype=</tt></b>
+ <td>&nbsp;&nbsp;&nbsp;
+ <td>0
+ <td>&nbsp;&nbsp;&nbsp;
+ <td>plain paper [default]
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>1
+ <td>&nbsp;
+ <td>bond paper
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>2
+ <td>&nbsp;
+ <td>special paper
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>3
+ <td>&nbsp;
+ <td>glossy film
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>4
+ <td>&nbsp;
+ <td>transparency film
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>&nbsp;
+ <td>&nbsp;
+ <td>Currently the lookup tables are unsuited for printing on
+ special paper or transparencies. For these please revert to the
+ gamma functions.
+<tr valign=top> <td><b><tt>-dQuality=</tt></b>
+ <td>&nbsp;
+ <td>-1
+ <td>&nbsp;
+ <td>draft
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>0
+ <td>&nbsp;
+ <td>normal [default]
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>1
+ <td>&nbsp;
+ <td>presentation
+<tr valign=top> <td><b><tt>-dRetStatus=</tt></b>
+ <td>&nbsp;
+ <td>0
+ <td>&nbsp;
+ <td>C-RET off
+<tr valign=top> <td>
+ <td>&nbsp;
+ <td>1
+ <td>&nbsp;
+ <td>C-RET on [default]
+<tr valign=top> <td><b><tt>-dMasterGamma=</tt></b>
+ <td>&nbsp;
+ <td>3.0
+ <td>&nbsp;
+ <td>[default = 1.0]
+</table></blockquote>
+
+
+<blockquote>
+<b>Note:</b> To take advantage of the calibrated color-transfer functions,
+be sure not to have any gamma statements left! If you need to (i.e., for
+overhead transparencies), you still can use the gamma functions, but they
+will override the built-in calibration. To use gamma in the traditional
+way, set MasterGamma to any value greater than 1.0 and less than 10.0. To
+adjust individual gamma values, you have to additionally set MasterGamma to
+a value greater than 1.0 and less than 10.0. With the next release, gamma
+functions will be dropped.
+</blockquote>
+
+<p>
+When using the driver, be aware that printing at 600dpi involves
+processing large amounts of data (&gt; 188MB !). Therefore the
+driver is not what you would expect to be a fast driver ;-)
+This is no problem when printing a full-sized color page (because
+printing itself is slow), but it's really annoying if you print only
+text pages. Maybe I can optimize the code for text-only pages in a
+later release. Right now, it is recommended to use the highest
+possible optimisation level your compiler offers.
+For the time being, use the cdj550 device with <b><tt>-sBitsPerPixel=3</tt></b>
+for fast proof prints. If you simply want to print 600dpi BW data,
+use the cdj550 device with <b><tt>-sBitsPerPixel=8</tt></b> (or 1).
+
+<p>
+Since the printer itself is slow, it may help to set the process priority
+of the gs process to "regular" or even less. On a 486/100MHz this is still
+sufficient to maintain a continuous data flow. Note to OS/2 users: simply
+put the gs window into the background or minimize it. Also make sure that
+<b><tt>print01.sys</tt></b> is invoked without the <b><tt>/irq</tt></b>
+switch (great speed improvement under Warp4).
+
+<p>
+The printer default settings compensate for dot-gain by a calibrated
+color-transfer function. If this appears to be too light for your business
+graphs, or for overhead transparencies, feel free to set
+<b><tt>-dMasterGamma=1.7</tt></b>. Furthermore, you may tweak the gamma
+values independently by setting <b><tt>-dGammaValC</tt></b>,
+<b><tt>-dGammaValM</tt></b>, <b><tt>-dGammaValY</tt></b> or
+<b><tt>-dGammaValK</tt></b> (if not set, the values default to
+<b><tt>MasterGamma</tt></b>). This will only work when
+<b><tt>-dMasterGamma</tt></b> is set to a value greater than 1.0.
+
+<p>
+Further information, bugs, tips etc, can be found at my website. To learn
+more about gamma, see
+<a href="ftp://ftp.igd.fhg.de/pub/doc/colour/GammaFAQ.pdf">ftp://ftp.igd.fhg.de/pub/doc/colour/GammaFAQ.pdf</a>.
+
+<p>
+Depending on how you transfer the files, under UNIX you may need to remove
+the CRs of the CR-LF sequence used for end-of-line on DOS-based (MS
+Windows-based) systems. You can do this in unpacking the files with <b><tt>unzip&nbsp;-a&nbsp;hp850.zip</tt></b>.
+
+<p>
+To compile with gs5.x or later, simply add to your makefile
+<blockquote>
+DEVICE_DEVS4=cdj850.dev cdj670.dev cdj890.dev cdj1600.dev
+</blockquote>
+
+<p>
+Have fun!
+
+<p>
+Uli &lt;<a href="mailto:uliw@erdw.ethz.ch">uliw@erdw.ethz.ch</a>&gt;
+<br><a href="http://www.erdw.ethz.ch/~bonk/">http://www.erdw.ethz.ch/~bonk/</a>
<hr>
@@ -456,7 +504,7 @@ The source module <b><tt>gdevcd8.c</tt></b> contains four generic drivers:
<p>
This section, written by George Cameron, deals with the DeskJet 500C,
DeskJet 550C, PaintJet, PaintJet XL, PaintJet XL300, the DEC LJ250
-operating in Paintjet-compatible mode.
+operating in PaintJet-compatible mode.
<h2><a name="HP_gdevcdj"></a>Drivers contained in <b><tt>gdevcdj.c</tt></b></h2>
@@ -491,14 +539,14 @@ colour and mono drivers. It is also possible to set various
printer-specific parameters from the command line, for example
<blockquote><b><tt>
-gs&nbsp;-sDEVICE=cdeskjet&nbsp;-dBitsPerPixel=16&nbsp;-dDepletion=1&nbsp;-dShingling=2&nbsp;tiger.ps
+gs&nbsp;-sDEVICE=cDeskJet&nbsp;-dBitsPerPixel=16&nbsp;-dDepletion=1&nbsp;-dShingling=2&nbsp;tiger.ps
</tt></b></blockquote>
<p>
-<b>Note:</b> the old names <b><tt>cdeskjet</tt></b>,
+<b>Note:</b> the old names <b><tt>cDeskJet</tt></b>,
<b><tt>cdjcolor</tt></b> and <b><tt>cdjmono</tt></b> drivers have been
retained; however, their functionality duplicates that available using the
-drivers above (and <b><tt>cdeskjet</tt></b> is identical to
+drivers above (and <b><tt>cDeskJet</tt></b> is identical to
<b><tt>cdj500</tt></b>). That is, we can use
<blockquote><table cellpadding=0 cellspacing=0>
@@ -520,10 +568,10 @@ documentation). You can <a href="Use#Paper_size">specify other paper
sizes</a> on the command line, including A3 for the PaintJet XL and
PaintJet XL300, as also explained in the usage documentation.
-<h2><a name="HP_limits"></a>Deskjet physical limits</h2>
+<h2><a name="HP_limits"></a>DeskJet physical limits</h2>
<p>
-The Deskjet's maximum printing width is 2400 dots, or 8 inches
+The DeskJet's maximum printing width is 2400 dots, or 8 inches
(20.32cm). The printer manuals say that the maximum recommended printing
height on the page is 10.3 inches (26.16cm), but since this is obviously
not true for A4 paper, and I have been unable to detect any problems in
@@ -531,7 +579,7 @@ printing longer page lengths, this would seem to be a rather artificial
restriction.
<p>
-All Deskjets have 0.5 inches (1.27cm) of unprintable bottom margin, due to the mechanical
+All DeskJets have 0.5 inches (1.27cm) of unprintable bottom margin, due to the mechanical
arrangement used to grab the paper. Side margins are approximately 0.25 inches (0.64cm)
for U.S. letter paper, and 0.15 inches (0.38cm) for A4.
@@ -558,7 +606,7 @@ integer (see below for the range of allowable values), that number defines
the default bits per pixel (bit depth) for the generic drivers. If the
symbol is undefined, the default is 24 bits per pixel. It is, of course,
still possible to specify the value from the command line as described
-below. Note also that the <b><tt>cdeskjet</tt></b>,
+below. Note also that the <b><tt>cDeskJet</tt></b>,
<b><tt>cdjcolor</tt></b> and <b><tt>cdjmono</tt></b> drivers are unaffected
by setting this symbol, as their default settings are predefined to be 1, 3
and 24 respectively.
@@ -608,7 +656,7 @@ on this printer, and uses less memory. Any differences between 24-bit and
32-bit should be small.)
</dl></blockquote>
-<h3><a name="HP_deskjet_properties"></a>Deskjet properties</h3>
+<h3><a name="HP_DeskJet_properties"></a>DeskJet properties</h3>
<blockquote><table cellpadding=0 cellspacing=0>
<tr valign=bottom>
@@ -635,7 +683,7 @@ on this printer, and uses less memory. Any differences between 24-bit and
<td>"Intelligent" dot-removal: 0 = none, 1 = 25%, 2 = 50%, 1 best for graphics? Use 0 for transparencies.
</table></blockquote>
-<h3><a name="HP_paintjet_properties"></a>Paintjet XL300 / Paintjet XL properties</h3>
+<h3><a name="HP_PaintJet_properties"></a>PaintJet XL300 / PaintJet XL properties</h3>
<blockquote>
<table cellpadding=0 cellspacing=0>
@@ -671,7 +719,7 @@ on this printer, and uses less memory. Any differences between 24-bit and
</table>
<p>
-The Paintjet (non-XL) has no additional properties.
+The PaintJet (non-XL) has no additional properties.
</blockquote>
@@ -736,8 +784,8 @@ reasonably well in practice.
<p>
This feature is available on HP's more recent inkjet printers, including
-the Deskjet 520 (mono), 540 (mono or colour) and 560C (mono and colour).
-The colour and monochrome drivers for the HP deskjet 550c are (probably)
+the DeskJet 520 (mono), 540 (mono or colour) and 560C (mono and colour).
+The colour and monochrome drivers for the HP DeskJet 550c are (probably)
the best you will get for use with Ghostscript, for the following reasons.
<p>
@@ -908,7 +956,7 @@ the Ghostscript command line (using the <b><tt>-d</tt></b> and
<b><tt>-s</tt></b> switches or other predetermined switches if they have an
effect on the driver) or using the PostScript Level 2
<b><tt>setpagedevice</tt></b> operator if Ghostscript has been compiled
-with the <b><tt>level2</tt></b> device (which it should
+with the <b><tt>level2</tt></b> or <b><tt>level3</tt></b> device (which it should
<b><tt>;-)</tt></b>). There are <b>no</b> special-purpose operators such as
one was able to find in Level 1 printers.
@@ -3465,7 +3513,7 @@ At the time of this writing uniprint drives:
<ul>
<li>NEC Pinwriter P2X (24-pin monochrome impact printer, ESC/P style)
<li>Several Epson Stylus Color models (ESC/P2 style)
-<li>HP-Deskjet 550c (basic HP-RTL)
+<li>HP-DeskJet 550c (basic HP-RTL)
<li>Canon BJC 610
</ul>
@@ -3588,7 +3636,7 @@ gs @stc.upp -sOutputFile=/dev/lp1 tiger.ps -c quit
<td>&nbsp;
<td>high resolution paper
<tr> <td>&nbsp;
-<tr> <th align=left colspan=6>HP Deskjet 550C
+<tr> <th align=left colspan=6>HP DeskJet 550C
<tr valign=top> <td>&nbsp;
<td><b><tt>cdj550.upp</tt></b>
<td>&nbsp;
@@ -3788,7 +3836,7 @@ into <b><tt>uniprint</tt></b>: <b><tt>cdj850</tt></b> by Uli Wortmann
Helmut Riegler.
<p>
-Uli addresses features of the more recent Deskjet models that will not be
+Uli addresses features of the more recent DeskJet models that will not be
available in <b><tt>uniprint</tt></b> soon. Martin taught me a lesson on
HP-PCL3 headers that will be available soon in <b><tt>uniprint</tt></b>
soon. Helmut in turn followed an almost similar idea, but targetted
@@ -3801,7 +3849,7 @@ with version 1.68 of uniprint, BJC support is available. Work on the
<p>
<b><tt>uniprint</tt></b> is actually an update of <b><tt>stcolor</tt></b>,
but much more versatile than its predecessor; <b><tt>stcolor</tt></b>, in
-its turn, started as a clone of the color Deskjet family of drivers
+its turn, started as a clone of the color DeskJet family of drivers
(<b><tt>cdj</tt></b>*). Finally, <b><tt>cdj</tt></b>* can be considered an
addition of features to the simpler monochrome drivers of Ghostscript. This
addition of features is useful to get an idea of the functionality of
@@ -4532,7 +4580,7 @@ here for <b><tt>uniprint</tt></b>:
<dt>Scott F. Johnston and Scott J. Kramer
<dd>for testing the <b><tt>stc800</tt></b> modes
<dt>Martin Lottermoser
-<dd>for his great commented H-P Deskjet driver
+<dd>for his great commented H-P DeskJet driver
<dt>Helmut Riegler
<dd>for the BJC extension
<dt>Hans-Gerd Straeter
@@ -4667,7 +4715,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Dll.htm b/gs/doc/Dll.htm
index 20e979629..e387e5afe 100644
--- a/gs/doc/Dll.htm
+++ b/gs/doc/Dll.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>How to use the Ghostscript Dynamic Link Library (DLL)</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: dll.txt -->
</head>
@@ -94,7 +94,7 @@ simultaneously.
<li>The <a href="#Win_device">Win32 DLL <b><tt>GSDLL32.DLL</tt></b></a> has
MULTIPLE NONSHARED data segments. Under Win32s it can be used by only one
-program at a time, but under Windows 95 or Windows NT it can be called by
+program at a time, but under Windows 95/98 or Windows NT it can be called by
multiple programs simultaneously.
<li>The <a href="#Win16">Win16 DLL <b><tt>GSDLL16.DLL</tt></b></a> is a
@@ -320,7 +320,7 @@ locked by the caller, but locking the device prevents the Ghostscript DLL
from closing the device or changing its size or depth.
<p>
-Under OS/2, Windows 95 and Windows NT, this lock is implemented using a
+Under OS/2, Windows 95/98 and Windows NT, this lock is implemented using a
mutual exclusion semaphore (mutex). The return value is the lock count,
which is either 0 ("unlocked") or 1 ("locked"). The function blocks until
the device is locked by the caller.
@@ -692,7 +692,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Drivers.htm b/gs/doc/Drivers.htm
index 4246bbde4..bbe9dadeb 100644
--- a/gs/doc/Drivers.htm
+++ b/gs/doc/Drivers.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>The interface between Ghostscript and device drivers</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: drivers.txt -->
</head>
@@ -2473,7 +2473,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Gs-vms.hlp b/gs/doc/Gs-vms.hlp
index 308340fb5..3f8d9f66c 100644
--- a/gs/doc/Gs-vms.hlp
+++ b/gs/doc/Gs-vms.hlp
@@ -1,7 +1,7 @@
1 gs
gs - Aladdin Ghostscript interpreter/previewer
-
-! Ghostscript version 5.91, 30 August 1999
+! $RCSfile$ $Revision$
+! Ghostscript version 5.96, 12 November 1999
Usage:
$ gs [options] [file ...]
diff --git a/gs/doc/Gsdoc.el b/gs/doc/Gsdoc.el
index 82d4578eb..cbeaae5fe 100644
--- a/gs/doc/Gsdoc.el
+++ b/gs/doc/Gsdoc.el
@@ -521,14 +521,14 @@ properly placed markers, but that's history."
;; Replace the RCS $Id if one can be found in exactly the right format, and
;; otherwise insert one just after the title, along with a warning message.
-
+(if (re-search-forward "<!-- $RCSfile$ $Revision$ -->" nil t)
(progn
(setq Original (buffer-substring (match-beginning 1) (match-end 1)))
(replace-match g~thisfile t t nil 1)
)
(progn
(search-forward "</title>" nil t) (end-of-line)
-
+ (insert (concat "\n<!-- $Id: " g~thisfile " $ -->"))
(setq Original "(UNSET by gs-structure)")
)
)
diff --git a/gs/doc/Helpers.htm b/gs/doc/Helpers.htm
index f97346517..e9405d8b1 100644
--- a/gs/doc/Helpers.htm
+++ b/gs/doc/Helpers.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>People who have helped with Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: helpers.txt -->
</head>
@@ -52,6 +52,9 @@ Ghostscript since its inception in 1986:
<dd>for several drivers and bug reports
<dt>Alan Barclay
<dd>for the RGB TIFF drivers
+<dt>Nelson H. F. Beebe
+ <dd>for testing on a wide variety of Unix architectures, and for
+ the multi-architecture makefile
<dt>Karl Berry and Kathy Hargreaves
<dd>for helping create the fonts originally distributed with
Ghostscript
@@ -97,6 +100,8 @@ Ghostscript since its inception in 1986:
<dd>for a port to the Atari ST
<dt>J. Greely
<dd>for help with the PostScript-to-ASCII filter
+<dt>Gintautas Grigelionis
+ <dd>for a set of XBM/XPM icons
<dt>Paul Haeberli
<dd>for the ideas behind better color selection and trapezoid fill
algorithms
@@ -282,7 +287,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Hershey.htm b/gs/doc/Hershey.htm
index ef17b63e5..52b4b1b8d 100644
--- a/gs/doc/Hershey.htm
+++ b/gs/doc/Hershey.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Hershey fonts for Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: hershey.txt -->
</head>
diff --git a/gs/doc/History1.htm b/gs/doc/History1.htm
index 40a4a1932..79a8cb022 100644
--- a/gs/doc/History1.htm
+++ b/gs/doc/History1.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>History of Ghostscript versions 1.n</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: history1.txt -->
<!--
WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
@@ -395,7 +395,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/History2.htm b/gs/doc/History2.htm
index da6674f8a..956e70ade 100644
--- a/gs/doc/History2.htm
+++ b/gs/doc/History2.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>History of Ghostscript versions 1.n</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: history2.txt -->
<!--
WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
@@ -5258,7 +5258,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/History3.htm b/gs/doc/History3.htm
index 66d8ff753..2e254c1f5 100644
--- a/gs/doc/History3.htm
+++ b/gs/doc/History3.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>History of Ghostscript versions 3.n</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: history3.txt -->
<!--
WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
@@ -8443,7 +8443,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/History4.htm b/gs/doc/History4.htm
index 3ba194e72..18a221f58 100644
--- a/gs/doc/History4.htm
+++ b/gs/doc/History4.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>History of Ghostscript versions 4.n</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: history4.txt -->
<!--
WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
@@ -3863,7 +3863,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/History5.htm b/gs/doc/History5.htm
index 2275e7d29..7330e4b34 100644
--- a/gs/doc/History5.htm
+++ b/gs/doc/History5.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>History of Ghostscript versions 5.0 - 5.50</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!--
WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
re-create the table of contents here, because it will replace the
@@ -2782,7 +2782,7 @@ Removes pdf_2ps.ps from the fileset. (int.mak, unixinst.mak,
pdf_2ps.ps[deleted])
Ensures that every file that is copyright, maintained, and distributed by
-
+Aladdin Enterprises has a RCS $Id$ line (actually, $Id$). In
.c and .h files, these lines currently are only comments, but they could be
converted easily to static strings later if we want to. We had to touch
almost every file in the fileset to do this, but we did *not* change the
@@ -5703,7 +5703,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Htmstyle.htm b/gs/doc/Htmstyle.htm
index 8d9a1803e..418fa5b5f 100644
--- a/gs/doc/Htmstyle.htm
+++ b/gs/doc/Htmstyle.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>HTML coding and style guidelines for Ghostscript documentation</title>
-
+<!-- $RCSfile$ $Revision$ -->
</head>
<body>
@@ -215,7 +215,7 @@ Besides the essential HTML structure elements, Ghostscript HTML document's
comment:
<blockquote>
-
+<b><tt>&lt;!-- $Id$ --&gt;</tt></b>
</blockquote>
<li>For documents converted from another form, an HTML comment line giving
@@ -762,7 +762,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Humor.htm b/gs/doc/Humor.htm
index edc4c814b..677a35db7 100644
--- a/gs/doc/Humor.htm
+++ b/gs/doc/Humor.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Another Ghostscript interpreter</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: humor.txt -->
</head>
diff --git a/gs/doc/Install.htm b/gs/doc/Install.htm
index 81d69a36f..bf68b2a60 100644
--- a/gs/doc/Install.htm
+++ b/gs/doc/Install.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>How to install Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: install.txt -->
</head>
@@ -24,11 +24,11 @@ How to install Ghostscript
<blockquote><ul>
<li><a href="#Overview">Overview of how to install Ghostscript</a>
-<li><a href="#Install_DOS">Installing Ghostscript on DOS</a>
-<li><a href="#Install_Windows">Installing Ghostscript on MS Windows</a>
-<li><a href="#Install_OS2">Installing Ghostscript on OS/2 2.x</a>
<li><a href="#Install_Unix">Installing Ghostscript on Unix</a>
+<li><a href="#Install_Windows">Installing Ghostscript on MS Windows</a>
<li><a href="#Install_VMS">Installing Ghostscript on OpenVMS</a>
+<li><a href="#Install_DOS">Installing Ghostscript on DOS</a>
+<li><a href="#Install_OS2">Installing Ghostscript on OS/2 2.x</a>
</ul></blockquote>
<!-- [1.2 end table of contents] ------------------------------------------- -->
@@ -88,28 +88,28 @@ files.
<hr>
-<h1><a name="Install_DOS"></a>Installing Ghostscript on DOS</h1>
+<h1><a name="Install_Unix"></a>Installing Ghostscript on Unix</h1>
<p>
-You need the files <b><tt>GS386.EXE</tt></b> and <b><tt>DOS4GW.EXE</tt></b>
-to run Ghostscript. You should install all the files except the fonts in
-<b><tt>C:\GS</tt></b>, and the fonts in <b><tt>C:\GS\FONTS</tt></b>.
+You need the file <b><tt>gs</tt></b> to run Ghostscript on Unix, and
+installing Ghostscript on a Unix system requires building it first: please
+read <a href="Make.htm#Unix_build">how to build Ghostscript on Unix</a> in
+the documentation on building Ghostscript, especially regarding how to
+decide <a href="Make.htm#UNIX_makefile">which makefile to use</a> and how
+you may need to edit it. After building, execute "<b><tt>make
+install</tt></b>" to install the executable and all the required and
+ancillary files.
-<p><a name="Use_platform_fonts_DOS"></a>
-If you have Adobe Type Manager (ATM) fonts installed on your system, and
-you wish to use them with Ghostscript, you may wish to replace the
-<b><tt>FONTMAP</tt></b> file with <b><tt>FONTMAP.ATM</tt></b>, and to add
-to the environment variable <b><tt>GS_LIB</tt></b> the name of the
-directory where the fonts are located (see below for more information about
-<b><tt>GS_LIB</tt></b>). Before you do this, please read carefully the
-license that accompanies the ATM fonts; Aladdin Enterprises takes no
-responsibility for any possible violations of such licenses. Similarly, if
-you have Adobe Type Basics, you may wish to replace <b><tt>FONTMAP</tt></b>
-with <b><tt>FONTMAP.ATB</tt></b>. Finally, if you have neither ATM nor ATB
-but you have Adobe Acrobat installed, you can use the Acrobat fonts in
-place of the ones provided with Ghostscript by adding the Acrobat fonts
-directory to <b><tt>GS_FONTPATH</tt></b> and removing these fonts from
-<b><tt>FONTMAP</tt></b>:
+<p><a name="Use_Acrobat_fonts_Unix"></a>
+The makefile installs all the files except fonts under the directory
+defined in the makefile as "<b><tt>prefix</tt></b>",
+<b><tt>/usr/local</tt></b> by default. The fonts should be installed in
+<em>{prefix}</em><b><tt>/share/ghostscript/fonts</tt></b>.
+Consult the makefile for more details. If you have Adobe Acrobat
+installed, you can use the Acrobat fonts in place of the ones provided with
+Ghostscript by adding the Acrobat fonts directory to
+<b><tt>GS_FONTPATH</tt></b> and removing these fonts from
+<b><tt>Fontmap.GS</tt></b>:
<blockquote>
Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique, Helvetica,
@@ -117,19 +117,132 @@ Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique, Symbol, Times-Bold,
Times-BoldItalic, Times-Italic, Times-Roman, ZapfDingbats
</blockquote>
+<p>
+For Linux, you can install or upgrade Ghostscript from precompiled
+<a href="http://www.rpm.org">RPM</a> files using:
+<blockquote><b><tt>
+ rpm -U ghostscript-N.NN-1.i386.rpm<br>
+ rpm -U ghostscript-fonts-N.NN-1.noarch.rpm
+</tt></b></blockquote>
+
<hr>
<h1><a name="Install_Windows"></a>Installing Ghostscript on MS Windows</h1>
<p>
-You need these files to run Ghostscript on Win32s (partial 32-bit
-environment under MS Windows 3), Windows 95, or Windows NT:
+Aladdin Enterprises usually distributes Ghostscript releases for
+Windows as self-extracting archive files, since this is the most
+convenient form for users.
+However, we or other parties may distribute releases in the form of
+plain zip archives.
+
+<p>
+The self-extracting archive is normally named
+<b><tt>gs###w32.exe</tt></b>,
+where ### is the release number (e.g., 403 for Ghostscript 4.03,
+600 for Ghostscript 6.0).
+
+<p>
+The zip archive is normally named
+<b><tt>gs###w32.zip</tt></b>,
+where ### is the release number (e.g., 403 for Ghostscript 4.03,
+600 for Ghostscript 6.0).
+
+<p>
+Only one of <b><tt>gs###w32.exe</tt></b> or <b><tt>gs###w32.zip</tt></b>
+is required.
+
+<h2><a name="Windows4"></a>Windows 95/98 and NT 4</h2>
+
+<p>
+To install a self-extracting Ghostscript archive on Windows 95/98 or
+Windows
+NT 4, you need just this self-extracting archive file. Run this file to
+install Ghostscript.
+
+<p>
+Alternatively, if you have the zip file, unzip it to a temporary
+directory then run the included <b><tt>setupgs.exe</tt></b>.
+After the setup program has finished, remove the temporary files.
+
+<p>
+After installing Ghostscript, it is strongly recommended that you
+install the <a href="New-user.htm#GSview">GSview previewer</a>,
+which provides an easier to use graphical interface for Ghostscript.
+Information on GSview is available from:
+
+<blockquote>
+<a
+href="http://www.cs.wisc.edu/~ghost/gsview/">http://www.cs.wisc.edu/~ghost
+/gsview/</a>
+</blockquote>
+
+<h2><a name="Windows3"></a>Win32s (Windows 3.1) and Windows NT 3.5</h2>
+
+<p>
+To install Ghostscript on Win32s (partial 32-bit environment under MS
+Windows 3.1), or Windows NT 3.5 you need the same archive file.
+However, the self extracting archive will not automatically run
+and install the Ghostscript.
+You must manually unzip this archive and install it.
+To install Ghostscript, execute the following commands in a Command Prompt
+window (replacing <em>###</em> with the release number):
+
+<blockquote><b><tt>
+c:
+<br>mkdir \Aladdin
+<br>cd \Aladdin
+<br>ftp get gs<em>###</em>w32.zip
+<br>unzip gs<em>###</em>w32.zip
+</tt></b></blockquote>
+
+If the file is named <b><tt>.zip</tt></b> and not <b><tt>.exe</tt></b>,
+unzip it using
+<blockquote><b><tt>
+unzip gs<em>###</em>w32.zip
+</tt></b></blockquote>
+
+<p>
+After unpacking the archive, create a shortcut to
+
+<blockquote>
+<b><tt>c:\Aladdin\gs<em>#.#</em>\bin\gswin32.exe</tt></b>
+</blockquote>
+
+<p>
+If you place Ghostscript in a different directory, you will need to set
+<b><tt>GS_LIB</tt></b> or use the command line option <b><tt>-I</tt></b>.
+See <a href="Use.htm">Use.htm</a> for details.
+
+<h2><a name="General_Windows"></a>General Windows configuration</h2>
+
+<p>
+The archive includes files in these subdirectories:
+
+<blockquote><b><tt>
+gs<em>#.#</em>\bin
+<br>gs<em>#.#</em>\lib
+<br>gs<em>#.#</em>\examples
+<br>gs<em>#.#</em>\doc
+<br>fonts
+</tt></b></blockquote>
+
+<p>
+Note that the subdirectory is only <em>#.#</em>, not <em>#.##</em>, if
+the
+release number ends in 00. E.g., for release 6.0, <em>###</em> is 600,
+but
+<em>#.#</em> is 6.0.
+
+<p>
+The actual executable files, in the <b><tt>gs<em>#.#</em>\bin</tt></b>
+subdirectory, are:
<blockquote><table cellpadding=0 cellspacing=0>
<tr valign=top> <td><b><tt>GS16SPL.EXE</tt></b>
<td>&nbsp;&nbsp;&nbsp;
- <td>Print spooler for Win32s (Windows 3) only; must be in the same
- directory as <b><tt>GWSIN32.EXE</tt></b>
+ <td>Print spooler for Win32s (Windows 3.1) only; must be in the same
+ directory as <b><tt>GSWIN32.EXE</tt></b>
<tr valign=top> <td><b><tt>GSWIN32.EXE</tt></b>
<td>&nbsp;
<td>32-bit Ghostscript using windows
@@ -138,24 +251,13 @@ environment under MS Windows 3), Windows 95, or Windows NT:
<td>32-bit Ghostscript using only the command line
<tr valign=top> <td><b><tt>GSDLL32.DLL</tt></b>
<td>&nbsp;
- <td>32-bit dynamic link library containing most of Ghostscript's functionality
+ <td>32-bit dynamic link library containing most of Ghostscript's
+functionality
</table></blockquote>
-<p>
-You should install all the files except the fonts in <b><tt>C:\GS</tt></b>,
-and the fonts in <b><tt>C:\GS\FONTS</tt></b>.
-
-<p>
-The <a href="New-user.htm#GSview">GSview previewer</a> contains an
-installation program to install and configure GSview and Ghostscript for
-Win32. Information on GSview is available from:
-
-<blockquote>
-<a href="http://www.cs.wisc.edu/~ghost/gsview/">http://www.cs.wisc.edu/~ghost/gsview/</a>
-</blockquote>
<p>
-See "<a href="#Install_DOS">Installing Ghostscript on DOS</a>" above for
+See "<a href="#Install_DOS">Installing Ghostscript on DOS</a>" below for
information about using Adobe Type Manager, Adobe Type Basics, or Adobe
Acrobat fonts. If your system uses TrueType fonts, you can get them
converted to a Ghostscript-compatible format at the time you select your
@@ -169,7 +271,8 @@ converted to a Ghostscript-compatible format at the time you select your
<li>Choose Advanced.
<li>At the top of the dialog box you will see TrueType Fonts Send to
Printer As: Choose <em>(drop-down menu)</em> Adobe Type 1.
-<li>Uncheck Use Printer Fonts for All TrueType Fonts and Use Substitution
+<li>Uncheck Use Printer Fonts for All TrueType Fonts and Use
+Substitution
Table.
<li>OK.
<li>OK etc.
@@ -188,7 +291,7 @@ For printer devices, the default output is:
<td>Win95 or WinNT
<tr valign=top> <td>Prompt for a printer port
<td>&nbsp;
- <td>Win32s (Windows 3)
+ <td>Win32s (Windows 3.1)
</table></blockquote>
<p>
@@ -199,11 +302,13 @@ This can be modified as follows.
<dt><b><tt>-sOutputFile="LPT1:"</tt></b>
<dd>Output to the named port.
-<dt><b><tt>-sOutputFile="\\spool\printer name"</tt></b> (Windows 95 or Windows NT)
+<dt><b><tt>-sOutputFile="\\spool\printer name"</tt></b> (Windows 95 or
+Windows NT)
<dd>Output to the named printer.
<dt><b><tt>-sOutputFile="\\spool"</tt></b> (Windows 95 or Windows NT)
-<dd>Prompt for the name of a printer. Only local printers are supported.
+<dd>Prompt for the name of a printer. Only local printers are
+supported.
</dl>
</blockquote>
@@ -224,15 +329,80 @@ HKEY_LOCAL_MACHINE\SOFTWARE\Aladdin Ghostscript\#.##
<p>
where #.## is the Ghostscript version number. This does not work under
-Win32s (that is, Windows 3, which doesn't support named registry values).
+Win32s (that is, Windows 3.1, which doesn't support named registry
+values).
<p>
-If the environment variable <b><tt>GS_DLL</tt></b> is defined, Ghostscript
+If the environment variable <b><tt>GS_DLL</tt></b> is defined,
+Ghostscript
tries to load the Ghostscript dynamic link library (DLL) with the name
given. If this fails, Ghostscript tries to load
-<b><tt>GSDLL32.DLL</tt></b> from the current directory, the search path or
+<b><tt>GSDLL32.DLL</tt></b> from the current directory, the search path
+or
the same directory as the Ghostscript executable.
+<p>
+The Ghostscript setup program will create registry values
+for the environment variables <b><tt>GS_LIB</tt></b>
+and <b><tt>GS_DLL</tt></b>.
+
+<hr>
+
+<h1><a name="Install_VMS"></a>Installing Ghostscript on OpenVMS</h1>
+
+<p>
+You need the file <b><tt>GS.EXE</tt></b> to run Ghostscript on OpenVMS, and
+installing Ghostscript on an OpenVMS system requires building it first:
+please
+read <a href="Make.htm#VMS_build">how to build Ghostscript on VMS</a> in the
+documentation on building Ghostscript.
+
+<p>
+Install all the files, including the fonts, in the same directory as the
+executable and initialization files. By default, this is the directory in
+which you did the compilation. Consult the
+<a href="Make.htm#VMS_build">documentation on building Ghostscript</a> for
+more details.
+
+<p>
+If you have DECWindows/Motif installed, you may wish to replace the
+<b><tt>FONTMAP.GS</tt></b> file with <b><tt>FONTMAP.VMS</tt></b>. Read the
+comment at the beginning of the latter file for more information.
+
+<!-- [2.0 end contents] ---------------------------------------------------- -->
+
+<!-- [3.0 begin visible trailer] ------------------------------------------- -->
+<hr>
+
+<h1><a name="Install_DOS"></a>Installing Ghostscript on DOS</h1>
+
+<p>
+You need the files <b><tt>GS386.EXE</tt></b> and <b><tt>DOS4GW.EXE</tt></b>
+to run Ghostscript. You should install all the files except the fonts in
+<b><tt>C:\GS</tt></b>, and the fonts in <b><tt>C:\GS\FONTS</tt></b>.
+
+<p><a name="Use_platform_fonts_DOS"></a>
+If you have Adobe Type Manager (ATM) fonts installed on your system, and
+you wish to use them with Ghostscript, you may wish to replace the
+<b><tt>FONTMAP</tt></b> file with <b><tt>FONTMAP.ATM</tt></b>, and to add
+to the environment variable <b><tt>GS_LIB</tt></b> the name of the
+directory where the fonts are located (see below for more information about
+<b><tt>GS_LIB</tt></b>). Before you do this, please read carefully the
+license that accompanies the ATM fonts; Aladdin Enterprises takes no
+responsibility for any possible violations of such licenses. Similarly, if
+you have Adobe Type Basics, you may wish to replace <b><tt>FONTMAP</tt></b>
+with <b><tt>FONTMAP.ATB</tt></b>. Finally, if you have neither ATM nor ATB
+but you have Adobe Acrobat installed, you can use the Acrobat fonts in
+place of the ones provided with Ghostscript by adding the Acrobat fonts
+directory to <b><tt>GS_FONTPATH</tt></b> and removing these fonts from
+<b><tt>FONTMAP</tt></b>:
+
+<blockquote>
+Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique, Helvetica,
+Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique, Symbol, Times-Bold,
+Times-BoldItalic, Times-Italic, Times-Roman, ZapfDingbats
+</blockquote>
+
<hr>
<h1><a name="Install_OS2"></a>Installing Ghostscript on OS/2 2.x</h1>
@@ -348,71 +518,6 @@ specified queue, use <b><tt>-sOutputFile=\\spool\NullLPT1</tt></b>, where
<hr>
-<h1><a name="Install_Unix"></a>Installing Ghostscript on Unix</h1>
-
-<p>
-You need the file <b><tt>gs</tt></b> to run Ghostscript on Unix, and
-installing Ghostscript on a Unix system requires building it first: please
-read <a href="Make.htm#Unix_build">how to build Ghostscript on Unix</a> in
-the documentation on building Ghostscript, especially regarding how to
-decide <a href="Make.htm#UNIX_makefile">which makefile to use</a> and how
-you may need to edit it. After building, execute "<b><tt>make
-install</tt></b>" to install the executable and all the required and
-ancillary files.
-
-<p><a name="Use_Acrobat_fonts_Unix"></a>
-The makefile installs all the files except fonts under the directory
-defined in the makefile as "<b><tt>prefix</tt></b>",
-<b><tt>/usr/local</tt></b> by default. The fonts should be installed in
-<em>{prefix}</em><b><tt>/share/ghostscript/fonts</tt></b>.
-Consult the makefile for more details. If you have Adobe Acrobat
-installed, you can use the Acrobat fonts in place of the ones provided with
-Ghostscript by adding the Acrobat fonts directory to
-<b><tt>GS_FONTPATH</tt></b> and removing these fonts from
-<b><tt>Fontmap.GS</tt></b>:
-
-<blockquote>
-Courier, Courier-Bold, Courier-BoldOblique, Courier-Oblique, Helvetica,
-Helvetica-Bold, Helvetica-BoldOblique, Helvetica-Oblique, Symbol, Times-Bold,
-Times-BoldItalic, Times-Italic, Times-Roman, ZapfDingbats
-</blockquote>
-
-<p>
-For Linux, you can install or upgrade Ghostscript from precompiled
-<a href="http://www.rpm.org">RPM</a> files using:
-<blockquote><b><tt>
- rpm -U ghostscript-N.NN-1.i386.rpm<br>
- rpm -U ghostscript-fonts-N.NN-1.noarch.rpm
-</tt></b></blockquote>
-
-<hr>
-
-<h1><a name="Install_VMS"></a>Installing Ghostscript on OpenVMS</h1>
-
-<p>
-You need the file <b><tt>GS.EXE</tt></b> to run Ghostscript on OpenVMS, and
-installing Ghostscript on an OpenVMS system requires building it first:
-please
-read <a href="Make.htm#VMS_build">how to build Ghostscript on VMS</a> in the
-documentation on building Ghostscript.
-
-<p>
-Install all the files, including the fonts, in the same directory as the
-executable and initialization files. By default, this is the directory in
-which you did the compilation. Consult the
-<a href="Make.htm#VMS_build">documentation on building Ghostscript</a> for
-more details.
-
-<p>
-If you have DECWindows/Motif installed, you may wish to replace the
-<b><tt>FONTMAP.GS</tt></b> file with <b><tt>FONTMAP.VMS</tt></b>. Read the
-comment at the beginning of the latter file for more information.
-
-<!-- [2.0 end contents] ---------------------------------------------------- -->
-
-<!-- [3.0 begin visible trailer] ------------------------------------------- -->
-<hr>
-
<font size=2>
<p>Copyright &copy; 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
@@ -423,7 +528,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Language.htm b/gs/doc/Language.htm
index 4b233a95a..1988e7b35 100644
--- a/gs/doc/Language.htm
+++ b/gs/doc/Language.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>The relationship between Ghostscript and PostScript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: language.txt -->
</head>
@@ -27,7 +27,7 @@ The relationship between Ghostscript and PostScript
<li><a href="#Implementation_limits">Implementation limits</a>
<ul>
<li><a href="#Architectural_limits">Architectural limits</a>
-<li><a href="#Typical_memory_limits">Typical memory limits in Level 1</a>
+<li><a href="#Typical_memory_limits">Typical memory limits in LanguageLevel 1</a>
<li><a href="#VM_consumption">Other differences in VM consumption</a>
</ul>
<li><a href="#Additional_operators">Additional operators in Ghostscript</a>
@@ -74,8 +74,8 @@ overview</a>.
<p>
The Ghostscript interpreter, except as noted below, is intended to execute
-properly any source program written in the (Level 2) <b>PostScript</b>
-language as defined in the <a
+properly any source program written in the (LanguageLevel 3)
+<b>PostScript</b> language as defined in the <a
href="http://cseng.awl.com/bookdetail.qry?ISBN=0-201-37922-8&ptype=0"><em>PostScript
Language Reference, Third Edition</em> (ISBN 0-201-37922-8)</a> published by
Addison-Wesley in mid-1999. However, the interpreter is configurable in
@@ -176,6 +176,9 @@ Ghostscript currently does not implement the following PDF 1.3 facilities:
<li>Native <b><tt>Separation</tt></b> and <b><tt>DeviceN</tt></b> color
spaces, as noted above for PostScript.
+
+<li>Native <b><tt>ICCBased</tt></b> color spaces -- these too always use the
+alternate space.
</ul>
<p>
@@ -189,101 +192,181 @@ are not in the PostScript language defined by Adobe.
<p>
The implementation limits show here correspond to those in Tables B.1 and
-B.2 of the Second Edition. Asterisks (*) mark the ones different from the
-limits in the Second Edition.
+B.2 of the Second and Third Editions, which describe the quantities fully.
+Where Ghostscript's limits are different from those of Adobe's
+implementations (as shown in the Third Edition), Adobe's limits are also
+shown.
<h2><a name="Architectural_limits"></a>Architectural limits</h2>
<blockquote><table cellpadding=0 cellspacing=0>
+<tr><th colspan=7 bgcolor="#CCCC00"><hr><font size="+1">Architectural limits (corresponds to Adobe table B.1)</font><hr>
+<tr valign=bottom>
+ <th align=left>Quantity
+ <td>&nbsp;&nbsp;
+ <th align=left>Limit
+ <td>&nbsp;&nbsp;
+ <th align=left>Type
+ <td>&nbsp;&nbsp;
+ <th align=left>Adobe
+<tr> <td colspan=7><hr>
<tr valign=top> <td>integer
- <td>&nbsp;&nbsp;&nbsp;
<td>&nbsp;
- <td>32-bit twos complement integer
+ <td>32-bit
+ <td>&nbsp;
+ <td>twos complement integer
+ <td>&nbsp;
+ <td>&nbsp;
<tr valign=top> <td>real
<td>&nbsp;
+ <td>single-precision
+ <td>&nbsp;
+ <td>IEEE float
+ <td>&nbsp;
<td>&nbsp;
- <td>single-precision IEEE float
<tr valign=top> <td>array
<td>&nbsp;
+ <td>65535
+ <td>&nbsp;
+ <td>elements
+ <td>&nbsp;
<td>&nbsp;
- <td>65535 elements
<tr valign=top> <td>dictionary
<td>&nbsp;
+ <td>65534
+ <td>&nbsp;
+ <td>elements
<td>&nbsp;
- <td>65534 elements
+ <td>65535
<tr valign=top> <td>string
<td>&nbsp;
- <td>*
- <td>65535 characters
+ <td>65535
+ <td>&nbsp;
+ <td>characters
+ <td>&nbsp;
+ <td>&nbsp;
<tr valign=top> <td>name
<td>&nbsp;
- <td>*
- <td>16383 characters
+ <td>16383
+ <td>&nbsp;
+ <td>characters
+ <td>&nbsp;
+ <td>127
<tr valign=top> <td>filename
<td>&nbsp;
+ <td>100
+ <td>&nbsp;
+ <td>characters
+ <td>&nbsp;
+ <td>&nbsp;
+<tr valign=top> <td><b><tt>save</tt></b> level
+ <td>&nbsp;
+ <td>none
<td>&nbsp;
- <td>100 characters
-<tr valign=top> <td>save level
+ <td>(capacity of memory)
<td>&nbsp;
- <td>*
- <td>none (capacity of memory)
-<tr valign=top> <td>gsave level
+ <td>15
+<tr valign=top> <td><b><tt>gsave</tt></b> level
+ <td>&nbsp;
+ <td>none
<td>&nbsp;
- <td>*
- <td>none (capacity of memory)
+ <td>(capacity of memory)
+ <td>&nbsp;
+ <td>13
</table></blockquote>
-<h2><a name="Typical_memory_limits"></a>Typical memory limits in Level 1</h2>
+<h2><a name="Typical_memory_limits"></a>Typical memory limits in LanguageLevel 1</h2>
<blockquote><table cellpadding=0 cellspacing=0>
+
+<tr><th colspan=7 bgcolor="#CCCC00"><hr><font size="+1">Memory limits (corresponds to Adobe table B.2)</font><hr>
+<tr valign=bottom>
+ <th align=left>Quantity
+ <td>&nbsp;&nbsp;
+ <th align=left>Limit
+ <td>&nbsp;&nbsp;
+ <th align=left>Type
+ <td>&nbsp;&nbsp;
+ <th align=left>Adobe
+<tr> <td colspan=7><hr>
<tr valign=top> <td><b><tt>userdict</tt></b>
- <td>&nbsp;&nbsp;&nbsp;
<td>&nbsp;
<td>200
-<tr valign=top> <td><b><tt>FontDirectory</tt></b>
<td>&nbsp;
<td>&nbsp;
+ <td>&nbsp;
+ <td>&nbsp;
+<tr valign=top> <td><b><tt>FontDirectory</tt></b>
+ <td>&nbsp;
<td>100
+ <td>&nbsp;
+ <td>&nbsp;
+ <td>&nbsp;
+ <td>&nbsp;
<tr valign=top> <td>operand stack
<td>&nbsp;
- <td>*
<td>800
-<tr valign=top> <td>dictionary stack
<td>&nbsp;
<td>&nbsp;
+ <td>&nbsp;
+ <td>500
+<tr valign=top> <td>dictionary stack
+ <td>&nbsp;
<td>20
-<tr valign=top> <td>execution stack
<td>&nbsp;
<td>&nbsp;
+<tr valign=top> <td>execution stack
+ <td>&nbsp;
<td>250
+ <td>&nbsp;
+ <td>&nbsp;
<tr valign=top> <td>interpreter level
<td>&nbsp;
- <td>*
- <td>none (capacity of memory)
+ <td>none
+ <td>&nbsp;
+ <td>(capacity of memory)
+ <td>&nbsp;
+ <td>10
<tr valign=top> <td>path
<td>&nbsp;
- <td>*
- <td>none (capacity of memory)
-<tr valign=top> <td>dash
+ <td>none
+ <td>&nbsp;
+ <td>(capacity of memory)
<td>&nbsp;
+ <td>1500
+<tr valign=top> <td>dash
<td>&nbsp;
<td>11
+ <td>&nbsp;
+ <td>&nbsp;
<tr valign=top> <td>VM
<td>&nbsp;
- <td>*
- <td>capacity of memory
+ <td>none
+ <td>&nbsp;
+ <td>(capacity of memory)
+ <td>&nbsp;
+ <td>240000
<tr valign=top> <td>file
<td>&nbsp;
- <td>*
- <td>determined by operating system
+ <td>none
+ <td>&nbsp;
+ <td>(determined by operating system)
+ <td>&nbsp;
+ <td>6
<tr valign=top> <td>image
<td>&nbsp;
- <td>*
- <td>65535 values (samples &times; components) for 1-, 2-, 4-, or 8-bit samples
+ <td>65535
+ <td>&nbsp;
+ <td>values (samples � components)<br>for1-, 2-, 4-, or 8-bit samples
+ <td>&nbsp;
+ <td>3300
<tr valign=top> <td>&nbsp;
<td>&nbsp;
+ <td>32767
+ <td>&nbsp;
+ <td>values for 12-bit samples
<td>&nbsp;
- <td>32767 values for 12-bit samples
+ <td>3300
</table></blockquote>
<h2><a name="VM_consumption"></a>Other differences in VM consumption</h2>
@@ -1179,7 +1262,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Lib.htm b/gs/doc/Lib.htm
index 1b8cde98b..5b7b81621 100644
--- a/gs/doc/Lib.htm
+++ b/gs/doc/Lib.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>The Ghostscript library</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: lib.txt -->
</head>
@@ -484,7 +484,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Make.htm b/gs/doc/Make.htm
index 61273c1d5..da03465bc 100644
--- a/gs/doc/Make.htm
+++ b/gs/doc/Make.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>How to build Ghostscript from source code</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: make.txt -->
</head>
@@ -43,7 +43,7 @@ How to build Ghostscript from source code
<li><a href="#Features_and_devices">Selecting features and devices</a>
<ul>
<li><a href="#Precompiled_data">Precompiled run-time data</a>
-<li><a href="#LZW">LZW compression</a>
+<li><a href="#GNU_readline">GNU readline</a>
</ul>
<li><a href="#Makefile_setup">Setting up "makefile"</a>
<li><a href="#Invoke_make">Invoking "make"</a>
@@ -51,44 +51,57 @@ How to build Ghostscript from source code
</ul>
<li><a href="#PC_build">How to build Ghostscript from source (PC version)</a>
<ul>
-<li><a href="#Borland_build">Borland environment</a>
+<li><a href="#Borland_build">Borland/Inprise environment</a>
<li><a href="#Microsoft_build">Microsoft environment</a>
<li><a href="#Watcom_build">Watcom environment</a>
<li><a href="#Cygwin32_build">Cygwin32 gcc</a>
</ul>
<li><a href="#Mac_build">How to build Ghostscript from source (Mac version)</a>
+<ul>
+<li><a href="#MacOS">Traditional MacOS</a>
+<li><a href="#Rhapsody">Rhapsody OS</a>
+</ul>
<li><a href="#Unix_build">How to build Ghostscript from source (Unix version)</a>
<ul>
+<li><a href="#Multi_architecture_makefile">The multi-architecture makefile</a>
<li><a href="#UNIX_makefile">Setting up "makefile"</a>
-<li><a href="#Unix_build_problems">Unix build problems (and solutions)</a>
+<li><a href="#Tool_specific_problems">Tool-specific problems</a>
<ul>
<li><a href="#gcc_27x">gcc 2.7.*</a>
<li><a href="#GNU_make">GNU make</a>
+</ul>
+<li><a href="#OS_specific_problems">OS-specific problems</a>
+<ul>
<li><a href="#386_Unix">386 Unix</a>
+<li><a href="#BSDI">BSDI</a>
+<li><a href="#Digital_Unix">Digital Unix (Alpha)</a>
+<li><a href="#FreeBSD">FreeBSD</a>
+<li><a href="#Linux">Linux</a>
+<li><a href="#NeXTSTEP">NeXTSTEP</a>
+<li><a href="#SCO">SCO Unix/Xenix</a>
+<li><a href="#SVR4">SVR4 Unix</a>
+<li><a href="#System_V">System V Unix platforms</a>
+<li><a href="#Unixware">Unixware</a>
+</ul>
+<li><a href="#Hardware_specific_problems">Hardware-specific problems</a>
+<ul>
<li><a href="#Alpha_with_gcc">Alpha with gcc</a>
<li><a href="#Apollo">H-P Apollo</a>
<li><a href="#ATT_7040">AT&amp;T 7040 R3</a>
<li><a href="#Convex">Convex</a>
<li><a href="#DECStations">DECStations with Ultrix</a>
-<li><a href="#Digital_Unix">Digital Unix (Alpha)</a>
<li><a href="#HP_RISC">H-P RISC workstations</a>
<li><a href="#Intergraph">Intergraph Clipper</a>
-<li><a href="#Linux">Linux</a>
<li><a href="#MIPS">MIPS</a>
<li><a href="#NCR_3550">NCR 3550</a>
-<li><a href="#NeXTSTEP">NeXTSTEP</a>
<li><a href="#Pyramid">Pyramid MIServer-S</a>
<li><a href="#RS6000">IBM RS/6000 with AIX</a>
-<li><a href="#SCO">SCO Unix/Xenix</a>
<li><a href="#Silicon_Graphics">Silicon Graphics</a>
<li><a href="#Sun">Sun</a>
<ul>
<li><a href="#SunOS">SunOS</a>
<li><a href="#Solaris">Solaris</a>
</ul>
-<li><a href="#SVR4">SVR4 Unix</a>
-<li><a href="#System_V">System V Unix platforms</a>
-<li><a href="#Unixware">Unixware</a>
<li><a href="#VAX_Ultrix">VAX with Ultrix</a>
</ul>
</ul>
@@ -100,6 +113,7 @@ How to build Ghostscript from source code
</ul>
<li><a href="#Other_environments">Other environments</a>
<ul>
+<li><a href="#No_multi_thread">Environments lacking multi-threading</a>
<li><a href="#Plan_9">Plan 9</a>
<li><a href="#QNX">QNX</a>
</ul>
@@ -515,7 +529,7 @@ relatively small ones containing platform-specific information.
<tr> <td colspan=3><hr>
<tr> <td><b><tt>bcwin32.mak</tt></b>
<td>&nbsp;
- <td>MS Windows with Borland compilers
+ <td>MS Windows with Borland/Inprise compilers
<!-- OBSOLETE|<tr> <td><b><tt>dvx-gcc.mak</tt></b>
<!-- OBSOLETE| <td>&nbsp;
<!-- OBSOLETE| <td>DESQview/X with gcc
@@ -596,8 +610,8 @@ You must edit the platform-specific makefile to change any of these:
macros)
<li>Which optional features to include (<b><tt>FEATURE_DEVS</tt></b>)
<li>Which device drivers to include (<b><tt>DEVICE_DEVS</tt></b> and
-<b><tt>DEVICE_DEVS</tt></b>{<em>1--15</em>} macros)
-<li>Default resolution parameters for a dot-matrix printer driver
+<b><tt>DEVICE_DEVS</tt></b>{<em>1--20</em>} macros)
+<li>Default resolution parameters for some printer drivers
(<b><tt>devs.mak</tt></b> or <b><tt>contrib.mak</tt></b>, whichever defines
the driver)
@@ -692,11 +706,11 @@ on some platforms they don't work.
Note that if you want to include a driver named <em>xxx</em>, you must put
<b><tt>$(DD)</tt></b><em>xxx</em><b><tt>.dev</tt></b> in
<b><tt>DEVICE_DEVS</tt></b>*. Similarly, if you want to include a feature
-related to the PostScript and/or PDF language interpreters (PostScript level
+related to the PostScript or PDF language interpreters (PostScript level
1 .. 3, or other language features such as the ability to read EPSF files or
TrueType font files), you must represent it as
<b><tt>$(PSD)</tt></b><em>xxx</em><b><tt>.dev</tt></b>. If you are linking
-only the graphics library (not the language interpreter(s)) with an
+only the graphics library -- not the language interpreter(s) -- with an
application and want to include optional graphics library features such as
CIE color, you represent them as
<b><tt>$(GLD)</tt></b><em>xxx</em><b><tt>.dev</tt></b>.
@@ -734,35 +748,68 @@ though the data files use PostScript syntax, compiled halftones do not
require the PostScript interpreter and may be used with the graphics library
alone.
-<h3><a name="LZW"></a>LZW compression</h3>
-
-<p>
-It is possible to substitute an LZW compressor for the LZW-compatible
-encoder provided with the standard fileset, by finding two lines in
-<b><tt>lib.mak</tt></b>
-
-<blockquote><b><tt>
-lzwe_=slzwce.$(OBJ) slzwc.$(OBJ)<br>
-#lzwe_=slzwe.$(OBJ) slzwc.$(OBJ)
-</tt></b></blockquote>
-
-<p>
-and changing them to
-
-<blockquote><b><tt>
-#lzwe_=slzwce.$(OBJ) slzwc.$(OBJ)<br>
-lzwe_=slzwe.$(OBJ) slzwc.$(OBJ)
-</tt></b></blockquote>
-
-<p>
-If you do this, you are responsible for constructing or obtaining a file
-<b><tt>slzwe.c</tt></b> that implements LZW compression; no such file is
-included in any current standard Ghostscript distribution, although you may
-be able to find one in distributions that predate Unisys's amnesty cutoff
-of January 1, 1995. You are also responsible for drawing your own
-conclusions about the applicability to LZW compression code of patents held
-by Unisys and IBM, and for obtaining any licenses you believe to be
-relevant.
+<h3><a name="GNU_readline"></a>GNU readline</h3>
+
+<p>
+Aladdin Ghostscript does not include an interface to GNU readline. A user
+contributed code for this purpose, which we spent significant time debugging
+and then updating to track internal architectural changes in Ghostscript.
+The contributor was willing to assign the copyright to Aladdin Enterprises,
+and to allow the code to be distributed with the Aladdin Free Public License
+(AFPL) as well as the GNU License (GPL). However, even though the GPL
+allows linking GPLed code (such as the GNU readline library package) with
+non-GPLed code (such as all the rest of Aladdin Ghostscript) if one doesn't
+distribute the result, the Free Software Foundation, creators of the GPL,
+have told us that in their opinion, the GPL forbids distributing non-GPLed
+code that is merely <em>intended</em> to be linked with GPLed code. We
+understand that FSF takes this position in order to prevent the construction
+of software that is partly GPLed and partly not GPLed, even though the
+text of the GPL does not actually forbid this (it only forbids
+<em>distribution</em> of such software). We think that FSF's position is
+legally questionable and not in the best interest of users, but we do not
+have the resources to challenge it, especially since FSF's attorney
+apparently supports it. Therefore, even though we added the
+user-contributed interface to GNU readline in internal Aladdin Ghostscript
+version 5.71 and had it working in version 5.93 (one of the last beta
+versions before the 6.0 release), we removed it from the Aladdin Ghostscript
+6.0 distribution.
+
+<p>
+GNU Ghostscript distributions will include support for GNU readline. As
+with other GNU Ghostscript components that are not included in Aladdin
+Ghostscript, Aladdin will not attempt to run, link, or even compile this
+code, or keep it current across changes in the rest of Ghostscript. We
+will, however, welcome bug fixes or updates, and distribute them with
+subsequent releases of GNU Ghostscript.
+
+<p>
+The first GNU Ghostscript distribution that will include GNU readline
+support will be GNU Ghostscript 6.0, currently scheduled for release in the
+third quarter of 2000. Before that time, we may return the copyright of
+Ghostscript's GNU readline interface module, which the original author
+assigned to Aladdin Enterprises, to the author, so that users of GNU
+Ghostscript will have have access to it. However, since it requires
+internal changes not available in any released GNU Ghostscript version
+before 6.0, any user who gets this code and links it with Aladdin
+Ghostscript 6.0 will, according to FSF, be violating the intent (though not
+the letter) of the GPL.
+
+<p>
+We put considerable work into making it possible for Ghostscript to use GNU
+readline, including the creation and adjustment of internal software
+interfaces specifically to serve this purpose. In principle, we should have
+undone this work in Aladdin Ghostscript, lest FSF object to it too as
+intended to facilitate linking Aladdin Ghostscript with GNU readline (as the
+U.S. government has been said to do for code that merely provides APIs where
+encryption may be added). However, we are willing to take this risk rather
+than spend the time to undo the interface changes.
+
+<p>
+If you have comments or questions about this situation, please feel free to
+contact the Free Software Foundation, authors of the GPL and copyright
+holders of GNU readline, at <a href="mailto:gnu@gnu.org">gnu@gnu.org</a>,
+and Aladdin Enterprises, author and copyright holder of Ghostscript, at
+<a href="mailto:ghost@aladdin.com">ghost@aladdin.com</a>.
<h2><a name="Makefile_setup"></a>Setting up "makefile"</h2>
@@ -830,10 +877,10 @@ platform.
<h2><a name="Cross-compiling"></a>Cross-compiling</h2>
<p>
-If you are compiling Ghostscript on machines <b>X1</b> ... <b>Xn</b> with
+If you are compiling Ghostscript on machines <b>X1</b> ... <b>X</b><em>n</em> with
cross-compilers that generate code for machine <b>Y</b>, you must first
perform several extra steps on some machine <b>Z</b> (not necessarily of the
-same type as either <b>Xi</b> or <b>Y</b>). First of all, choose a makefile
+same type as either <b>X</b><em>i</em> or <b>Y</b>). First of all, choose a makefile
appropriate for <b>Z</b> and edit it to reflect the run-time options you
wish to include (<b><tt>FEATURE_DEVS</tt></b>, <b><tt>DEVICE_DEVS*</tt></b>,
and any other relevant options), just as for non-cross-compilation.
@@ -855,13 +902,13 @@ If <b>Z</b> runs Unix, perform the following steps:
</blockquote>
<li>Copy the files <b><tt>obj/*.h</tt></b> from <b>Z</B> to the directory on
-each <b>Xi</b> that will be used for compilation.
+each <b>X</b><em>i</em> that will be used for compilation.
<li>Extract from the file <b><tt>obj/ldt.tr</tt></b> (on <b>Z</b>) the list
of <b><tt>.o</b></tt> files that will be linked: this gives the list of
source files that must be compiled.
-<li>Do the compilations on <b>Xi</b>.
+<li>Do the compilations on <b>X</b><em>i</em>.
</ol>
<p>
@@ -884,13 +931,13 @@ this.</em>
</blockquote>
<li>Copy the files <b><tt>obj\*.h</tt></b> from <b>Z</B> to the directory on
-each <b>Xi</b> that will be used for compilation.
+each <b>X</b><em>i</em> that will be used for compilation.
<li>Extract from the file <b><tt>obj\ldt.tr</tt></b> (on <b>Z</b>) the list
of <b><tt>.obj</b></tt> files that will be linked: this gives the list of
source files that must be compiled.
-<li>Do the compilations on <b>Xi</b>.
+<li>Do the compilations on <b>X</b><em>i</em>.
</ol>
<hr>
@@ -911,7 +958,7 @@ All Ghostscript builds in PC (DOS and MS Windows) environments are 32- or
<tr> <td colspan=5><hr>
<tr> <td valign=top><b><tt>bcwin32.mak</tt></b>
<td>&nbsp;
- <td valign=top><a href="#Borland_build">Borland C++ 4.x</a>
+ <td valign=top><a href="#Borland_build">Borland/Inprise C++ 4.x</a>
<td>&nbsp;
<td valign=top>32-bit MS Windows 3.1 + Win32s, 95, 98, NT
<tr> <td valign=top><b><tt>msvc32.mak</tt></b>
@@ -937,14 +984,15 @@ All Ghostscript builds in PC (DOS and MS Windows) environments are 32- or
</table></blockquote>
<p>
-To build Ghostscript you need MS-DOS version 3.3 or later and Borland C/C++
-(4.0 or later); Microsoft Visual C++ (version 4.0 or later); Watcom C/386
-(version 8.5 or later) or C++ (any version); or the free djgpp + go32
-development system. The options in the makefiles are chosen to strike a
-balance between RAM consumption and likely usefulness. If you run
-<b><tt>make</tt></b> in directory <em>{dir}</em>, the default configuration
-generates an executable that assumes the Ghostscript initialization and font
-files are in directory <em>{dir}</em><b><tt>\lib</tt></b>.
+To build Ghostscript you need MS-DOS version 3.3 or later and
+Borland/Inprise C/C++ (4.0 or later); Microsoft Visual C++ (version 4.0 or
+later); Watcom C/386 (version 8.5 or later) or C++ (any version); or the
+free djgpp + go32 development system. The options in the makefiles are
+chosen to strike a balance between RAM consumption and likely usefulness.
+If you run <b><tt>make</tt></b> in directory <em>{dir}</em>, the default
+configuration generates an executable that assumes the Ghostscript
+initialization and font files are in directory
+<em>{dir}</em><b><tt>\lib</tt></b>.
<p>
Note that the <b><tt>make</tt></b> program supplied with each PC compiler
@@ -998,13 +1046,14 @@ simple way to fix this, if you have the InfoZIP <b><tt>zip</tt></b> and
<td>(Delete the temporary zip file)
</table></blockquote>
-<h2><a name="Borland_build"></a>Borland environment</h2>
+<h2><a name="Borland_build"></a>Borland/Inprise environment</h2>
<p>
-To compile Ghostscript with the Borland environment, you need Borland C++
-(version 4.0 or later); specifically the compiler, <b><tt>make</tt></b>
-utility, and linker. You also need either the Borland assembler (version
-1.0 or later) or the Microsoft assembler (version 4.0 or later).
+To compile Ghostscript with the Borland/Inprise environment (hereafter
+referred to as just "Borland"), you need Borland C++ (version 4.0 or later);
+specifically the compiler, <b><tt>make</tt></b> utility, and linker. You
+also need either the Borland assembler (version 1.0 or later) or the
+Microsoft assembler (version 4.0 or later).
<p>
To create "<b><tt>makefile</tt></b>", give the command
@@ -1087,6 +1136,14 @@ You should then run "<b><tt>_genarch.bat</tt></b>", wait until
<h2><a name="Microsoft_build"></a>Microsoft environment</h2>
<p>
+NOTE: We have received reports that the Microsoft Visual C++ 5.0 and 6.0
+compilers produce incorrect code for Ghostscript version 6.0 and later, from
+the same source code that compiles and runs correctly with other compilers.
+We strongly recommend using the Inprise (Borland) compiler rather than
+MSVC++ 5.0 or later. (We use the Inprise compiler for the executables that
+we distribute ourselves.)
+
+<p>
To compile Ghostscript with the Microsoft environment, you need Microsoft
Visual C++ 4.0 or later with its associated "<b><tt>nmake</tt></b>" utility
and linker. If you're using version 4.x, before building, in
@@ -1133,9 +1190,9 @@ unfortunate, and there is no good technical reason for it, but we were
unable to persuade Watcom (now Powersoft) to do anything about it.
<p>
-To use the Watcom compiler, add to <b><tt>\AUTOEXEC.BAT</tt></b> the line
+To use the Watcom compiler, add to <b><tt>AUTOEXEC.BAT</tt></b> the line
"<b><tt>set&nbsp;DOS4G=quiet</tt></b>". Check that
-<b><tt>\AUTOEXEC.BAT</tt></b> also contains a line of the form
+<b><tt>AUTOEXEC.BAT</tt></b> also contains a line of the form
"<b><tt>set&nbsp;WATCOM=</tt></b><em>{wcdir}</em>" where <em>{wcdir}</em> is
the directory where you installed the Watcom tools, and that the setting of
<b><tt>PATH</tt></b> includes <em>{wcdir}</em><b><tt>\binnt</tt></b> (or
@@ -1202,8 +1259,9 @@ compiler.
<h1><a name="Mac_build"></a>How to build Ghostscript from source (Mac version)</h1>
-<p>
+<h2><a name="MacOS"></a>Traditional MacOS</h2>
+<p>
There are additional Mac-specific source files in a distribution
separate from the rest of Ghostscript. In addition to the standard Ghostscript
sources, you will need the following files:
@@ -1263,6 +1321,37 @@ Once everything is laid out, look at the file <b><tt>Worksheet</tt></b> in
the "<b><tt>Mac Specific</tt></b>" folder for complete steps to build the
system with either MPW or CodeWarrior.
+<p>
+Some versions of CodeWarrior on the PowerPC have a code generation bug that
+causes the compiled Ghostscript to occasionally produce bad output. To
+avoid triggering this bug, do not use the "Use FMADD & FMSUB" Code Gen
+option. We recommend using the following options (for CodeWarrior 4, all
+patches applied):
+
+<blockquote><b><tt>
+Code Gen:
+<br>Struct alignment: PowerPC
+<br>Traceback Tables: Inline
+<br>Target Processor: 750 (or as appropriate for your system)
+<br>Store Static Data in TOC
+<br>Schedule Instructions
+<br>Peephole Optimization
+<br>
+<br>Global Optimizations:
+<br>Level 3
+</tt></b></blockquote>
+
+<h2><a name="Rhapsody"></a>Rhapsody OS</h2>
+
+<p>
+Currently, building with Rhapsody is only supported with non-display
+devices, such as <b><tt>pdfwrite</tt></b> for converting PostScript to PDF,
+raster file devices such as <b><tt>pbmraw</tt></b>, and printers. For this
+environment, use <b><tt>unixansi.mak</tt></b> with these additional
+definitions in the <b><tt>make</tt></b> command line: <b><tt>SYNC=nosync
+STDLIBS= DEVICE_DEVS=</tt></b> (yes, there is really just a space after the
+second and third '=').
+
<hr>
<h1><a name="Unix_build"></a>How to build Ghostscript from source (Unix version)</h1>
@@ -1279,10 +1368,67 @@ platform.
</ul>
<p>
-Be sure to check the section on <a href="#Unix_build_problems">Unix build
-problems</a> for notes on your particular platform and compiler. In fact,
-that is the <b><em>first</em></b> place to check if you build Ghostscript and it
-crashes or produces obviously incorrect results.
+Be sure to check the sections on <a
+href="#Tool_specific_problems">tool-</a>, <a
+href="#OS_specific_problems">OS-</a>, and <a
+href="#Hardware_specific_problems">hardware-</a>specific problems for notes
+on your particular platform and compiler. In fact, that is the
+<b><em>first</em></b> place to check if you build Ghostscript and it crashes
+or produces obviously incorrect results.
+
+<h2><a name="Multi_architecture_makefile"></a>The multi-architecture makefile</h2>
+
+<p>
+Especially if you are working in a Unix environment with multiple CPU types,
+operating systems, and/or C compilers, you may find the file
+<b><tt>all-arch.mak</tt></b> useful. This user-contributed file includes
+"wrappers" for the Unix makefiles for many different common environments.
+The author of this file notes:
+
+<blockquote>
+
+<p>
+This makefile allows you to execute
+
+<pre>
+ make `hostname`
+</pre>
+
+<p>
+on any machine on a network, without having to examine the Makefile for a
+specific target name. Also, some of the targets in the Makefile incorporate
+special changes in compiler options for certain files, to work around
+compiler bugs that Ghostscript has been so good at exposing. Having that
+special handling written down in a Makefile proves very convenient.
+
+<p>
+I don't do "make install" until I've done
+
+<pre>
+ cd ...build-directory.../gs-x.yz
+ cd lib
+ ../bin/gs ../examples/tiger.ps
+</pre>
+
+<p>
+and verified that the famous tiger can be correctly displayed. Also, the
+"make install" step is careful to first remove any existing
+<b><tt>$(BINDIR)/gs</tt></b>, then install a new gs there with a hard link
+to gs-x.yz.
+
+<p>
+That way, each installation makes gs a synonym for the latest release,
+but earlier ones remain in place in case backtracking is needed, which
+I've fairly often wanted to do when investigating changed behavior, or
+a suspected bug.
+
+<p>
+When I've been experimenting with a new feature, such as GNU readline
+support, I change the setting of GS from gs to ngs (new gs), so as not
+to break any existing programs by the installation of an experimental
+version.
+
+</blockquote>
<h2><a name="UNIX_makefile"></a>Setting up "makefile"</h2>
@@ -1368,9 +1514,9 @@ compiler does not automatically search, you must change the
<p>
Currently Ghostscript is set up to compile and link in a generic Unix
environment. Some Unix environments may require changing the
-<b><tt>LDFLAGS</tt></b> macro in the makefile; be sure to check the
-section on <a href="#Unix_build_problems">build problems</a> for your
-specific system.
+<b><tt>LDFLAGS</tt></b> macro in the makefile; be sure to check the <a
+href="#Unix_build">Unix section</a> for your specific tools, operating
+system, and hardware.
<p>
Ghostscript uses ANSI syntax for function definitions. Because of this,
@@ -1387,7 +1533,7 @@ is included in the makefile rule for compiling <b><tt>.c</tt></b> files.
code, where <em>$$</em> is the process ID. If for some reason you want to
change this name, it is defined in a script file <b><tt>ccgs</tt></b>.
-<h2><a name="Unix_build_problems"></a>Unix build problems (and solutions)</h2>
+<h2><a name="Tool_specific_problems"></a>Tool-specific problems</h2>
<h3><a name="gcc_27x"></a>gcc 2.7.*</h3>
@@ -1413,6 +1559,8 @@ Current versions of GNU <b><tt>make</tt></b> have no problems, but GNU
cases; if this happens, use the platform's standard <b><tt>make</tt></b>,
typically <b><tt>/bin/make</tt></b>.
+<h2><a name="OS_specific_problems"></a>OS-specific problems</h2>
+
<h3><a name="386_Unix"></a>386 Unix</h3>
<ul>
@@ -1428,6 +1576,267 @@ executable unusable.
<li>Also see regarding <a href="#System_V">System V</a> platforms.
</ul>
+<h3><a name="BSDI"></a>BSDI</h3>
+
+<p>
+BSDI currently doesn't have a working semaphore / mutex package that
+Ghostscript can use. See <a href="#No_multi_thread">here</a> for how to
+work around this problem.
+
+<p>
+BSDI's native <b><tt>make</tt></b> program uses a different syntax for its
+<b><tt>include</tt></b> directive than all other versions of
+<b><tt>make</tt></b>. Use GNU <b><tt>make</tt></b> to build Ghostscript.
+
+<h3><a name="Digital_Unix"></a>Digital Unix (Alpha)</h3>
+
+<p><ul>
+
+<li>Use <b><tt>unixansi.mak</tt></b> for all Digital Unix compilers.
+
+<li>For versions of Digital Unix before 4.0, set
+
+<p>
+<b><tt>CFLAGS=-std -migrate -Olimit 1000 -g3 -O2 $(XCFLAGS)<br>
+LDFLAGS=-lots $(XLDFLAGS)</tt></b>
+
+<p>
+You may be able to omit <b><tt>-g3</tt></b>. For later versions of Digital
+Unix, users have reported that the proper flags are
+
+<p>
+<b><tt>CFLAGS=-std1 -Olimit 1000 -g3 -O2 $(XCFLAGS)</tt></b>
+
+<p>
+again, optionally omitting the <b><tt>-g3</tt></b>.
+</ul>
+
+<h3><a name="FreeBSD"></a>FreeBSD</h3>
+
+<p>
+On FreeBSD systems, in the top-level makefile (<b><tt>unixansi.mak</tt></b>,
+<b><tt>unix-gcc.mak</tt></b>, or <b><tt>unixtrad.mak</tt></b>), change the
+value of <b><tt>SYNC</tt></b> from <b><tt>posync</tt></b> to
+<b><tt>fbsdsync</tt></b> before building.
+
+<h3><a name="Linux"></a>Linux</h3>
+
+<p><ul>
+<li>If you build on Linux with X11 R6 or later, you may get link-time error
+messages about undefined references to various functions beginning with
+"SMC" and "ICE". If this happens, make sure that <b><tt>XLIBS</tt></b> in
+the makefile is set to
+"<b><tt>Xt&nbsp;SM&nbsp;ICE&nbsp;Xext&nbsp;X11</tt></b>" rather than
+"<b><tt>Xt&nbsp;Xext&nbsp;X11</tt></b>".
+
+<li>With gcc version 2.6.3 or later, you may encounter an incompatibility
+in object formats (<b><tt>a.out</tt></b> vs. ELF) with the XFree86 library.
+Typically, <b><tt>ld</tt></b> complains that some X library is not found,
+or that many <b><tt>Xlib</tt></b> or <b><tt>Xt</tt></b> functions are not
+found in the library (similar to the messages for omitting
+<b><tt>SM</tt></b> and <b><tt>ICE</tt></b> from <b><tt>XLIBS</tt></b>). Or
+you get a message when you start Ghostscript that the program or the shared
+library is an unrecognized format.
+If this happens, edit <b><tt>unix-gcc.mak</tt></b> to add the switches
+"<b><tt>-b i486-linuxaout</tt></b>" to both <b><tt>CFLAGS</tt></b> and
+<b><tt>LDFLAGS</tt></b>, then "<b><tt>make clean</tt></b>" followed by
+"<b><tt>make</tt></b>"). If this doesn't help, or if other strange things
+happen, contact your Linux supplier or support resource.
+
+<li>A few of Ghostscript's drivers are multi-threaded (currently only
+those whose names begin with "bmpa"). These drivers require
+<b><tt>libc</tt></b> version 6 or higher. Some Linux distributions,
+including Red Hat distributions before 5.0, have <b><tt>libc</tt></b>
+version 5, so these drivers will not compile: the symptom is that the
+compiler will not be able to find the file <b><tt>semaphore.h</tt></b>.
+If this happens, remove these drivers (from the definitions of
+<b><tt>DEVICE_DEVS*</tt></b> in <b><tt>unix-gcc.mak</tt></b>), and, if
+you wish, substitute the corresponding single-threaded drivers,
+whose names don't include the "a".
+</ul>
+
+<p>
+To create <a href="http://www.rpm.org">RPM</a>
+(<b>R</b>ed Hat <b>P</b>ackage <b>M</b>anager)
+files for Ghostscript N.NN:
+
+<ul>
+<li>Change to your source directory (<b><tt>/usr/src/redhat</tt></b> for Red Hat
+ Linux 5.1).
+<li>Copy <b><tt>ghostscript-N.NN*.tar.gz</tt></b> (4 source files) to the
+<b><tt>SOURCES</tt></b> subdirectory.
+<li>Copy <b><tt>ghostscript-fonts-5.10a.tar.gz</tt></b> to the
+<b><tt>SOURCES</tt></b> subdirectory.
+<li>From <b><tt>SOURCES/ghostscript-N.NN.tar.gz</tt></b>,
+<ul>
+<li>extract <b><tt>rpm-conf.dif</tt></b> and copy to
+<b><tt>SOURCES/ghostscript-N.NN-config.patch</tt></b>
+<li>extract <b><tt>gs.rps</tt></b> and copy to
+<b><tt>SPECS/ghostscript-N.NN.spec</tt></b>
+<li>extract <b><tt>gs-fonts.rps</tt></b> and copy to
+<b><tt>SPECS/ghostscript-fonts-N.NN.spec</tt></b>
+</ul>
+If the contents of these files have become out of date, you
+will need to update the version number N.NN in the spec files,
+and update the patch file.
+<li> Change to the SPECS subdirectory and then execute the commands
+<blockquote><b><tt>
+rpm -ba ghostscript-N.NN.spec<br>
+rpm -ba ghostscript-fonts-N.NN.spec
+</tt></b></blockquote>
+This will create the RPM files
+<blockquote><b><tt>
+RPMS/i386/ghostscript-N.NN-1.i386.rpm<br>
+RPMS/noarch/ghostscript-fonts-N.NN-1.noarch.rpm<br>
+SRPMS/ghostscript-N.NN-1.src.rpm<br>
+SRPMS/ghostscript-fonts-N.NN-1.src.rpm<br>
+</tt></b></blockquote>
+<li> See instructions on how to <a href="Install.htm#Install_Unix">install
+ Ghostscript under Unix</a>.
+</ul>
+
+<p>
+Bruce Babcock
+&lt;<a href="mailto:babcock@math.psu.edu">babcock@math.psu.edu</a>&gt; has
+made available everything needed to build Ghostscript under Linux Slackware
+3.*, Red Hat 4.* and 5.*, and Debian 1.* and 2.0; the files include
+instructions and shell scripts to build and install Ghostscript, as well as
+all the source and font kits and patches needed:
+
+<blockquote>
+<a href="ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10/">ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10/</a><br>
+<a href="ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10-Extra/">ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10-Extra/</a>
+</blockquote>
+
+<h3><a name="NeXTSTEP"></a>NeXTSTEP</h3>
+
+<p><ul>
+<li>If you are using a NeXTSTEP version before 3.3, please get a no-cost
+upgrade (along with Y2K patches) from Apple.
+
+<li>For all NeXTSTEP systems, use <b><tt>unix-gcc.mak</tt></b>. Make the
+following changes:
+
+<ul>
+<li>In <b><tt>unix-aux.mak</tt></b> (and <b><tt>ugcclib.mak</tt></b>, if you
+are using only the library) change the definition of <b><tt>INCLUDE</tt></b>
+to "<b><tt>INCLUDE=/usr/include/bsd</tt></b>";
+
+<li>in <b><tt>unix-gcc.mak</tt></b>, change <b><tt>CC=gcc</tt></b> to
+<b><tt>CC=cc</tt></b>, add <b><tt>-D_POSIX_SOURCE</tt></b> to
+<b><tt>CFLAGS</tt></b> and remove <b><tt>-g</tt></b>, and remove
+<b><tt>-Wstrict-prototypes</tt></b> from <b><tt>GCFLAGS</tt></b>; and
+
+<li>to the end of <b><tt>Fontmap.GS</tt></b> add the line
+"<b><tt>/Ohlfs&nbsp;/Courier&nbsp;;</tt></b>".
+</ul>
+
+<li>If you are running the Pencom co-Xist X server (development version),
+the X headers and libraries are in the default places, so change the
+makefile definitions of <b><tt>XINCLUDE</tt></b> and
+<b><tt>XLIBDIRS</tt></b> to empty strings.
+</ul>
+
+<h3><a name="SCO"></a>SCO Unix/Xenix</h3>
+
+<ul>
+<li>See also "<a href="#386_Unix">386 Unix</a>" and
+"<a href="System V">System V Unix platforms</a>".
+
+<li>The standard cc compiler on SCO OpenServer v5 has optimizer bugs.
+Compile without -O.
+
+<li>The SCO Unix C compiler apparently can't handle the
+<b><tt>P</tt></b><em>n</em> macros in <b><tt>std.h</tt></b>. If you get
+strange compilation errors on SCO Unix, ask SCO for a compiler fix.
+
+<li>Meanwhile, to use gcc with SCO ODT, see <b><tt>unix-gcc.mak</tt></b>
+for the appropriate switch settings.
+
+<li>Because of a bug in SCO's floating point emulator, gcc 2.3.3 produces
+code that causes crashes on machines without hardware floating point. Use
+a different compiler on these machines.
+
+<li>If you aren't using the X11 driver, you must add
+<b><tt>-lsocket</tt></b> to the value of <b><tt>EXTRALIBS</tt></b> to link
+the date and time functions.
+
+<li>If you want to use direct frame buffer addressing instead of X Windows,
+include the relevant frame buffer devices (<b><tt>$(DD)ega.dev</tt></b>,
+<b><tt>$(DD)vga.dev</tt></b>, etc.) and change the definition of
+<b><tt>EGAVGA</tt></b> to <b><tt>$(EGAVGA_SCO)</tt></b> as indicated in
+<b><tt>devs.mak</tt></b>. <b>Note</b>: this works with SuperVGA displays
+only for 800x600x16 mode.
+
+<li>If the display looks "smeared", try recompiling
+<b><tt>gdevpcfb.c</tt></b> with <b><tt>-O0</tt></b>.
+
+<li>If Ghostscript crashes, use the <b><tt>-q</tt></b> switch or redirect
+console output to a file.
+
+<li>If your compiler accepts both the <b><tt>-Xt</tt></b> and
+<b><tt>-Xa</tt></b> switches, use <b><tt>-Xt</tt></b>. Even though this
+causes the compiler to use incorrect rules for computing the result types
+of "<b><tt>&lt;&lt;</tt></b>" and "<b><tt>&gt;&gt;</tt></b>",
+<b><tt>-Xa</tt></b> enables optimizations that produce incorrect code.
+
+<li>For SCO ODT 2.0, in addition to <b><tt>-D__SVR3</tt></b> and
+<b><tt>-DSYSV</tt></b>, you need to specify <b><tt>-Dsco</tt></b>,
+<b><tt>-DUSG</tt></b>, and <b><tt>-DMALLOC_0_RETURNS_NULL</tt></b>. For
+SCO ODT, you need
+"<b><tt>EXTRALIBS=-lX11&nbsp;-lsocket&nbsp;-lmalloc</tt></b>", or maybe
+only <b><tt>-lsocket</tt></b> depending on the version), and for SCO ODT
+2.0, you must also specify <b><tt>-lc_s</tt></b>. For SCO Xenix, you need
+"<b><tt>EXTRALIBS=-lmalloc</tt></b>".
+
+<li>For SCO OpenServer 5.0.5, add <b><tt>-L/usr/local/lib</tt></b> to
+<b><tt>LDFLAGS</tt></b>.
+
+<li>For all SCO systems, set "<b><tt>XINCLUDE=</tt></b>" and
+"<b><tt>XLIBDIRS=</tt></b>".
+</ul>
+
+<h3><a name="SVR4"></a>SVR4 Unix</h3>
+
+<ul>
+<li>You may need to set <b><tt>EXTRALIBS=-lnsl</tt></b>.
+
+<li>Do <b><em>not</em></b> change <b><tt>PLATFORM=unix_</tt></b> to <b><tt>PLATFORM=sysv_</tt></b>.
+
+<li>On SVR4 Unix platforms with dynamic linking, you may need to define
+<b><tt>XLIBDIR</tt></b> as the name of the directory that holds the X
+Windows libraries. Do <b><em>not</em></b> prefix the name with
+"<b><tt>-L</tt></b>".
+
+<li>For SVR4.0 systems, set <b><tt>-DSVR4</tt></b> and
+<b><tt>-DSVR4_0</tt></b> in the makefile; do <b><em>not</em></b> set
+<b><tt>-DSYSV</tt></b>. For SVR4.2 (or later) and Solaris 2.<em>n</em>
+systems, set only <b><tt>-DSVR4</tt></b> (<b><em>not</em></b>
+<b><tt>-DSVR4_0</tt></b> nor <b><tt>-DSYSV</tt></b>).
+</ul>
+
+<h3><a name="System_V"></a>System V Unix platforms</h3>
+
+<ul>
+<li>If you are using a stock System V platform that lacks
+<b><tt>rename</tt></b> and <b><tt>gettimeofday</tt></b>, in the makefile
+change "<b><tt>PLATFORM=unix_</tt></b>" to
+"<b><tt>PLATFORM=sysv_</tt></b>".
+
+<li>You will probably need to change the definition of
+<b><tt>INSTALL</tt></b> from "<b><tt>install</tt></b>" to
+"<b><tt>/usr/ucb/install</tt></b>".
+</ul>
+
+<h3><a name="Unixware"></a>Unixware</h3>
+
+<ul>
+<li>The standard cc compiler has optimizer bugs. Compile without
+<b><tt>-O</tt></b>.
+</ul>
+
+<h2><a name="Hardware_specific_problems"></a>Hardware-specific problems</h2>
+
<h3><a name="Alpha_with_gcc"></a>Alpha with gcc</h3>
<p><ul>
@@ -1538,29 +1947,6 @@ standard distribution):
<b><tt>$(CCC) -oldc gdevm1.c</tt></b>
</ul>
-<h3><a name="Digital_Unix"></a>Digital Unix (Alpha)</h3>
-
-<p><ul>
-
-<li>Use <b><tt>unixansi.mak</tt></b> for all Digital Unix compilers.
-
-<li>For versions of Digital Unix before 4.0, set
-
-<p>
-<b><tt>CFLAGS=-std -migrate -Olimit 1000 -g3 -O2 $(XCFLAGS)<br>
-LDFLAGS=-lots $(XLDFLAGS)</tt></b>
-
-<p>
-You may be able to omit <b><tt>-g3</tt></b>. For later versions of Digital
-Unix, users have reported that the proper flags are
-
-<p>
-<b><tt>CFLAGS=-std1 -Olimit 1000 -g3 -O2 $(XCFLAGS)</tt></b>
-
-<p>
-again, optionally omitting the <b><tt>-g3</tt></b>.
-</ul>
-
<h3><a name="HP_RISC"></a>H-P RISC workstations</h3>
<p><ul>
@@ -1631,95 +2017,6 @@ PLATFORM=sysv_</tt></b><br>&nbsp;
"<b><tt>XLIBS=Xt X11 Xext</tt></b>" to "<b><tt>XLIBS=Xt_s X11_s Xext</tt></b>".
</ul>
-<h3><a name="Linux"></a>Linux</h3>
-
-<p><ul>
-<li>If you build on Linux with X11 R6 or later, you may get link-time error
-messages about undefined references to various functions beginning with
-"SMC" and "ICE". If this happens, make sure that <b><tt>XLIBS</tt></b> in
-the makefile is set to
-"<b><tt>Xt&nbsp;SM&nbsp;ICE&nbsp;Xext&nbsp;X11</tt></b>" rather than
-"<b><tt>Xt&nbsp;Xext&nbsp;X11</tt></b>".
-
-<li>With gcc version 2.6.3 or later, you may encounter an incompatibility
-in object formats (<b><tt>a.out</tt></b> vs. ELF) with the XFree86 library.
-Typically, <b><tt>ld</tt></b> complains that some X library is not found,
-or that many <b><tt>Xlib</tt></b> or <b><tt>Xt</tt></b> functions are not
-found in the library (similar to the messages for omitting
-<b><tt>SM</tt></b> and <b><tt>ICE</tt></b> from <b><tt>XLIBS</tt></b>). Or
-you get a message when you start Ghostscript that the program or the shared
-library is an unrecognized format.
-If this happens, edit <b><tt>unix-gcc.mak</tt></b> to add the switches
-"<b><tt>-b i486-linuxaout</tt></b>" to both <b><tt>CFLAGS</tt></b> and
-<b><tt>LDFLAGS</tt></b>, then "<b><tt>make clean</tt></b>" followed by
-"<b><tt>make</tt></b>"). If this doesn't help, or if other strange things
-happen, contact your Linux supplier or support resource.
-
-<li>A few of Ghostscript's drivers are multi-threaded (currently only
-those whose names begin with "bmpa"). These drivers require
-<b><tt>libc</tt></b> version 6 or higher. Some Linux distributions,
-including Red Hat distributions before 5.0, have <b><tt>libc</tt></b>
-version 5, so these drivers will not compile: the symptom is that the
-compiler will not be able to find the file <b><tt>semaphore.h</tt></b>.
-If this happens, remove these drivers (from the definitions of
-<b><tt>DEVICE_DEVS*</tt></b> in <b><tt>unix-gcc.mak</tt></b>), and, if
-you wish, substitute the corresponding single-threaded drivers,
-whose names don't include the "a".
-</ul>
-
-<p>
-To create <a href="http://www.rpm.org">RPM</a>
-(<b>R</b>ed Hat <b>P</b>ackage <b>M</b>anager)
-files for Ghostscript N.NN:
-
-<ul>
-<li>Change to your source directory (<b><tt>/usr/src/redhat</tt></b> for Red Hat
- Linux 5.1).
-<li>Copy <b><tt>ghostscript-N.NN*.tar.gz</tt></b> (4 source files) to the
-<b><tt>SOURCES</tt></b> subdirectory.
-<li>Copy <b><tt>ghostscript-fonts-5.10a.tar.gz</tt></b> to the
-<b><tt>SOURCES</tt></b> subdirectory.
-<li>From <b><tt>SOURCES/ghostscript-N.NN.tar.gz</tt></b>,
-<ul>
-<li>extract <b><tt>rpm-conf.dif</tt></b> and copy to
-<b><tt>SOURCES/ghostscript-N.NN-config.patch</tt></b>
-<li>extract <b><tt>gs.rps</tt></b> and copy to
-<b><tt>SPECS/ghostscript-N.NN.spec</tt></b>
-<li>extract <b><tt>gs-fonts.rps</tt></b> and copy to
-<b><tt>SPECS/ghostscript-fonts-N.NN.spec</tt></b>
-</ul>
-If the contents of these files have become out of date, you
-will need to update the version number N.NN in the spec files,
-and update the patch file.
-<li> Change to the SPECS subdirectory and then execute the commands
-<blockquote><b><tt>
-rpm -ba ghostscript-N.NN.spec<br>
-rpm -ba ghostscript-fonts-N.NN.spec
-</tt></b></blockquote>
-This will create the RPM files
-<blockquote><b><tt>
-RPMS/i386/ghostscript-N.NN-1.i386.rpm<br>
-RPMS/noarch/ghostscript-fonts-N.NN-1.noarch.rpm<br>
-SRPMS/ghostscript-N.NN-1.src.rpm<br>
-SRPMS/ghostscript-fonts-N.NN-1.src.rpm<br>
-</tt></b></blockquote>
-<li> See instructions on how to <a href="Install.htm#Install_Unix">install
- Ghostscript under Unix</a>.
-</ul>
-
-<p>
-Bruce Babcock
-&lt;<a href="mailto:babcock@math.psu.edu">babcock@math.psu.edu</a>&gt; has
-made available everything needed to build Ghostscript under Linux Slackware
-3.*, Red Hat 4.* and 5.*, and Debian 1.* and 2.0; the files include
-instructions and shell scripts to build and install Ghostscript, as well as
-all the source and font kits and patches needed:
-
-<blockquote>
-<a href="ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10/">ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10/</a><br>
-<a href="ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10-Extra/">ftp://ykbsb2.yk.psu.edu/pub/ghost/GS-5.10-Extra/</a>
-</blockquote>
-
<h3><a name="MIPS"></a>MIPS</h3>
<p><ul>
@@ -1736,35 +2033,6 @@ with "<b><tt>-O2 -mips2</tt></b>" produces good output.
<li>With the NCR C Development Toolkit you must use <b><tt>-O0</tt></b>.
</ul>
-<h3><a name="NeXTSTEP"></a>NeXTSTEP</h3>
-
-<p><ul>
-<li>If you are using a NeXTSTEP version before 3.3, please get a no-cost
-upgrade (along with Y2K patches) from Apple.
-
-<li>For all NeXTSTEP systems, use <b><tt>unix-gcc.mak</tt></b>. Make the
-following changes:
-
-<ul>
-<li>In <b><tt>unix-aux.mak</tt></b> (and <b><tt>ugcclib.mak</tt></b>, if you
-are using only the library) change the definition of <b><tt>INCLUDE</tt></b>
-to "<b><tt>INCLUDE=/usr/include/bsd</tt></b>";
-
-<li>in <b><tt>unix-gcc.mak</tt></b>, change <b><tt>CC=gcc</tt></b> to
-<b><tt>CC=cc</tt></b>, add <b><tt>-D_POSIX_SOURCE</tt></b> to
-<b><tt>CFLAGS</tt></b> and remove <b><tt>-g</tt></b>, and remove
-<b><tt>-Wstrict-prototypes</tt></b> from <b><tt>GCFLAGS</tt></b>; and
-
-<li>to the end of <b><tt>Fontmap.GS</tt></b> add the line
-"<b><tt>/Ohlfs&nbsp;/Courier&nbsp;;</tt></b>".
-</ul>
-
-<li>If you are running the Pencom co-Xist X server (development version),
-the X headers and libraries are in the default places, so change the
-makefile definitions of <b><tt>XINCLUDE</tt></b> and
-<b><tt>XLIBDIRS</tt></b> to empty strings.
-</ul>
-
<h3><a name="Pyramid"></a>Pyramid MIServer-S</h3>
<p>
@@ -1818,120 +2086,66 @@ externals, set
"<b><tt>XLIBDIRS=-L/usr/lpp/X11/lib/R5&nbsp;-L/usr/lpp/X11/lib</tt></b>"
rather than just "<b><tt>XLIBDIRS=-L/usr/lpp/X11/lib</tt></b>".
-<li>If you want to use the GNU readline package with AIX, you must edit
-<b><tt>int.mak</tt></b>, before compiling, to change the mention of
-<b><tt>termcap</tt></b> to <b><tt>curses</tt></b>.
-
</ul>
-<h3><a name="SCO"></a>SCO Unix/Xenix</h3>
+<h3>
+<a NAME="Silicon_Graphics"></a>Silicon Graphics</h3>
<ul>
-<li>See also "<a href="#386_Unix">386 Unix</a>" and
-"<a href="System V">System V Unix platforms</a>".
+<li>
+To make the optimizer allocate enough table space, set
-<li>The standard cc compiler on SCO OpenServer v5 has optimizer bugs.
-Compile without -O.
+<p><b><tt>CFLAGS="-Olimit 2500"</tt></b> (for older compilers)
+<br><b><tt>CFLAGS="-OPT:Olimit=2500"</tt></b> (for newer compilers)
-<li>The SCO Unix C compiler apparently can't handle the
-<b><tt>P</tt></b><em>n</em> macros in <b><tt>std.h</tt></b>. If you get
-strange compilation errors on SCO Unix, ask SCO for a compiler fix.
-
-<li>Meanwhile, to use gcc with SCO ODT, see <b><tt>unix-gcc.mak</tt></b>
-for the appropriate switch settings.
-
-<li>Because of a bug in SCO's floating point emulator, gcc 2.3.3 produces
-code that causes crashes on machines without hardware floating point. Use
-a different compiler on these machines.
-
-<li>If you aren't using the X11 driver, you must add
-<b><tt>-lsocket</tt></b> to the value of <b><tt>EXTRALIBS</tt></b> to link
-the date and time functions.
-
-<li>If you want to use direct frame buffer addressing instead of X Windows,
-include the relevant frame buffer devices (<b><tt>$(DD)ega.dev</tt></b>,
-<b><tt>$(DD)vga.dev</tt></b>, etc.) and change the definition of
-<b><tt>EGAVGA</tt></b> to <b><tt>$(EGAVGA_SCO)</tt></b> as indicated in
-<b><tt>devs.mak</tt></b>. <b>Note</b>: this works with SuperVGA displays
-only for 800x600x16 mode.
-
-<li>If the display looks "smeared", try recompiling
-<b><tt>gdevpcfb.c</tt></b> with <b><tt>-O0</tt></b>.
-
-<li>If Ghostscript crashes, use the <b><tt>-q</tt></b> switch or redirect
-console output to a file.
-
-<li>If your compiler accepts both the <b><tt>-Xt</tt></b> and
-<b><tt>-Xa</tt></b> switches, use <b><tt>-Xt</tt></b>. Even though this
-causes the compiler to use incorrect rules for computing the result types
-of "<b><tt>&lt;&lt;</tt></b>" and "<b><tt>&gt;&gt;</tt></b>",
-<b><tt>-Xa</tt></b> enables optimizations that produce incorrect code.
+<p>
+MIPSpro compiler version 3.19 is "older", and 7.1 is "newer"; we aren't
+sure at what point in between the latter syntax was introduced.
-<li>For SCO ODT 2.0, in addition to <b><tt>-D__SVR3</tt></b> and
-<b><tt>-DSYSV</tt></b>, you need to specify <b><tt>-Dsco</tt></b>,
-<b><tt>-DUSG</tt></b>, and <b><tt>-DMALLOC_0_RETURNS_NULL</tt></b>. For
-SCO ODT, you need
-"<b><tt>EXTRALIBS=-lX11&nbsp;-lsocket&nbsp;-lmalloc</tt></b>", or maybe
-only <b><tt>-lsocket</tt></b> depending on the version), and for SCO ODT
-2.0, you must also specify <b><tt>-lc_s</tt></b>. For SCO Xenix, you need
-"<b><tt>EXTRALIBS=-lmalloc</tt></b>".
+<li>
+With the compiler shipped with Irix 5.2, use the <b><tt>-ansi</tt></b>
+option.
-<li>For SCO OpenServer 5.0.5, add <b><tt>-L/usr/local/lib</tt></b> to
-<b><tt>LDFLAGS</tt></b>.
+<li>
+The SGI C compiler may produce warnings about "Undefined the ANSI standard
+library defined macro stdin/stdout/stderr". To suppress these warnings, add
+"<b><tt>-woff 608</tt></b>" to the definition of <b><tt>CFLAGS</tt></b>.
-<li>For all SCO systems, set "<b><tt>XINCLUDE=</tt></b>" and
-"<b><tt>XLIBDIRS=</tt></b>".
-</ul>
+<li>
+The SGI C compiler shipped with Irix 6.1 and 6.2 will not compile
+<b><tt>zlib/deflate.c</tt></b> properly with optimization. Compile this file
+separately without <b><tt>-O</tt></b>.
-<h3><a name="Silicon_Graphics"></a>Silicon Graphics</h3>
+<li>
+With IRIX 6.5.x and the MIPSpro 7.x compilers there have been reports about
+incorrect output and binaries that cause segmentation faults.&nbsp; Various
+solutions have been suggested and you may want to try them in this order,
+until you get a working binary:
<ul>
-<li>Set
+<li>
+Compile <b><tt>idict.c</tt></b> separately without optimization after
+doing a normal compile; then relink.e.g.:
<p>
-<b><tt>CFLAGS="-Olimit&nbsp;2500"</tt></b>
-
-<p>
-to make the optimizer allocate enough table space.
+<b><tt>cc -OPT:Olimit=2500 -I. -I./obj -o ./obj/idict.o -c ./idict.c</tt></b>
-<li>With the compiler shipped with Irix 5.2, use the <b><tt>-ansi</tt></b>
-option.
-
-<li>The SGI C compiler may produce warnings about "Undefined the ANSI
-standard library defined macro stdin/stdout/stderr". To suppress these
-warnings, add "<b><tt>-woff 608</tt></b>" to the definition of
-<b><tt>CFLAGS</tt></b>.
-
-<li>The SGI C compiler shipped with Irix 6.1 and 6.2 will not compile
-<b><tt>zlib/deflate.c</tt></b> properly with optimization. Compile this
-file separately without <b><tt>-O</tt></b>.
-
-<li>The MIPSpro 7.1 compiler produces incorrect output with
-<b><tt>-O3</tt></b> or "<b><tt>-Ofast=ip32&nbsp;-show</tt></b>". Use only
-<b><tt>-O2</tt></b>.
-
-<li>The MIPSpro 7.2.1.3m compiler produces incorrect output when optimizing.
+<li>
Set <b><tt>CFLAGS=</tt></b> (no optimization).
-<li>Irix 6.5.1 and 6.4.1 with compilers 7.2.1 and 7.2,
-Irix 6.5.2 with MipsPRO compiler 7.2.1.2m, and Iris 6.5 with
-MipsPRO compiler 7.1 (and probably other combinations) compile
-<b><tt>idict.c</tt></b> incorrectly. Compile this file separately without
-optimization, e.g.:
-
-<p>
-<b><tt>cc&nbsp;-OPT:Olimit=2500&nbsp;-I.&nbsp;-I./obj&nbsp;-o&nbsp;./obj/idict.o&nbsp;-c&nbsp;./idict.c</tt></b>
-
-<p>
-after doing a normal compile; then relink.
+<li>
+Use only <b><tt>-O2</tt></b>.&nbsp;&nbsp; Compiler produces incorrect output
+with <b><tt>-O3</tt></b> or "<b><tt>-Ofast=ip32 -show</tt></b>".
-<li>Irix 6.5.1m with MIPSpro compiler 7.2.1.1m, Irix 6.5.3m with MIPSpro
+<li>
+Irix 6.5.1m with MIPSpro compiler 7.2.1.1m, Irix 6.5.3m with MIPSpro
compiler 7.2.1, and probably other 6.5x / 7.2x combinations require
-compiling with the <b><tt>-o32</tt></b> option. Compiling with the
-(default) <b><tt>-n32</tt></b> option produces non-working executables.
+compiling with the <b><tt>-o32</tt></b> option. Compiling with the (default)
+<b><tt>-n32</tt></b> option produces non-working executables.
<b><tt>-O2</tt></b> is OK (possibly except for <b><tt>idict.c</tt></b>), but
not <b><tt>-O3</tt></b>.
</ul>
+</ul>
<h3><a name="Sun"></a>Sun</h3>
@@ -2006,45 +2220,6 @@ become unacceptably inaccurate. You can use <b><tt>-xcg92</tt></b> (SPARC
V8) and <b><tt>-dalign</tt></b> for better performance.
</ul>
-<h3><a name="SVR4"></a>SVR4 Unix</h3>
-
-<ul>
-<li>You may need to set <b><tt>EXTRALIBS=-lnsl</tt></b>.
-
-<li>Do <b><em>not</em></b> change <b><tt>PLATFORM=unix_</tt></b> to <b><tt>PLATFORM=sysv_</tt></b>.
-
-<li>On SVR4 Unix platforms with dynamic linking, you may need to define
-<b><tt>XLIBDIR</tt></b> as the name of the directory that holds the X
-Windows libraries. Do <b><em>not</em></b> prefix the name with
-"<b><tt>-L</tt></b>".
-
-<li>For SVR4.0 systems, set <b><tt>-DSVR4</tt></b> and
-<b><tt>-DSVR4_0</tt></b> in the makefile; do <b><em>not</em></b> set
-<b><tt>-DSYSV</tt></b>. For SVR4.2 (or later) and Solaris 2.<em>n</em>
-systems, set only <b><tt>-DSVR4</tt></b> (<b><em>not</em></b>
-<b><tt>-DSVR4_0</tt></b> nor <b><tt>-DSYSV</tt></b>).
-</ul>
-
-<h3><a name="System_V"></a>System V Unix platforms</h3>
-
-<ul>
-<li>If you are using a stock System V platform that lacks
-<b><tt>rename</tt></b> and <b><tt>gettimeofday</tt></b>, in the makefile
-change "<b><tt>PLATFORM=unix_</tt></b>" to
-"<b><tt>PLATFORM=sysv_</tt></b>".
-
-<li>You will probably need to change the definition of
-<b><tt>INSTALL</tt></b> from "<b><tt>install</tt></b>" to
-"<b><tt>/usr/ucb/install</tt></b>".
-</ul>
-
-<h3><a name="Unixware"></a>Unixware</h3>
-
-<ul>
-<li>The standard cc compiler has optimizer bugs. Compile without
-<b><tt>-O</tt></b>.
-</ul>
-
<h3><a name="VAX_Ultrix"></a>VAX with Ultrix</h3>
<ul>
@@ -2218,6 +2393,17 @@ To download MMK (source code, and VAX and Alpha executables), visit
<h1><a name="Other_environments"></a>Other environments</h1>
+<h2><a name="No_multi_thread"></a>Environments lacking multi-threading</h2>
+
+<p>
+All environments mentioned here by name have multi-threading capability.
+However, if your environment doesn't, you can remove all need for
+multi-threading by setting <b><tt>SYNC=nosync</tt></b> in the top-level
+makefile. Note that you will not be able to use any so-called "async"
+drivers (drivers that overlap interpretation and rasterization) if you do
+this. No such drivers are in the <b><tt>DEVICE_DEVS*</tt></b> lists of any
+makefile that Aladdin distributes.
+
<h2><a name="Plan_9"></a>Plan 9</h2>
<p>
@@ -2375,7 +2561,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/New-user.htm b/gs/doc/New-user.htm
index df6b9baab..d57265dd6 100644
--- a/gs/doc/New-user.htm
+++ b/gs/doc/New-user.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Background information for new users of Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: new-user.txt -->
</head>
@@ -144,15 +144,16 @@ service such as
</blockquote>
<p>
-A general search engine like
+General search engines like
<blockquote>
-<a href="http://altavista.digital.com/">http://altavista.digital.com/</a>
+<a href="http://www.altavista.com/">http://www.altavista.com/</a>
+<br><a href="http://www.google.com/">http://www.google.com/</a>
</blockquote>
<p>
-may also be useful, but in searching for files is likely to provide many
-unusable references mixed in among the useful ones.
+may also be useful, but in searching for files they are likely to provide
+many unusable references mixed in among the useful ones.
<p>
If you haven't convenient access to the Internet, you can order Aladdin
@@ -1013,7 +1014,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/News.htm b/gs/doc/News.htm
index c44847855..9171e4a51 100644
--- a/gs/doc/News.htm
+++ b/gs/doc/News.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Recent changes in Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: NEWS -->
<!--
WARNING: do not use Pete Kaiser's emacs function "gs-toc" alone to
@@ -30,6 +30,49 @@ Changes in the most recent releases of Ghostscript
<h2>Table of contents</h2>
<blockquote><ul>
+<li><a href="#Version5.96">Version 5.96 (beta) (11/12/99)</a>
+<ul>
+<li><a href="#5.96_Incompatible_changes">Incompatible changes</a>,
+ <a href="#5.96_Documentation">Documentation</a>,
+ <a href="#5.96_Procedures">Procedures</a>,
+ <a href="#5.96_Utilities">Utilities</a>,
+ <a href="#5.96_Drivers">Drivers</a>,
+ <a href="#5.96_Platforms">Platforms</a>,
+ <a href="#5.96_PDF_writer">PDF writer</a>,
+ <a href="#5.96_Interpreter_PDF">Interpreter (PDF)</a>,
+ <a href="#5.96_Interpreter">Interpreter</a>,
+ <a href="#5.96_Streams">Streams</a>,
+ <a href="#5.96_Library">Library</a>
+</ul>
+<li><a href="#Version5.95">Version 5.95 (beta) (11/1/99)</a>
+<ul>
+<li><a href="#5.95_Incompatible_changes">Incompatible changes</a>,
+ <a href="#5.95_Documentation">Documentation</a>,
+ <a href="#5.95_Procedures">Procedures</a>,
+ <a href="#5.95_Utilities">Utilities</a>,
+ <a href="#5.95_Drivers">Drivers</a>,
+ <a href="#5.95_Platforms">Platforms</a>,
+ <a href="#5.95_Fonts">Fonts</a>,
+ <a href="#5.95_PDF_writer">PDF writer</a>,
+ <a href="#5.95_Interpreter_PDF">Interpreter (PDF)</a>,
+ <a href="#5.95_Interpreter">Interpreter</a>,
+ <a href="#5.95_Library">Library</a>
+</ul>
+<li><a href="#Version5.94">Version 5.94 (beta) (9/30/99)</a>
+<ul>
+<li><a href="#5.94_Incompatible_changes">Incompatible changes</a>,
+ <a href="#5.94_Documentation">Documentation</a>,
+ <a href="#5.94_Procedures">Procedures</a>,
+ <a href="#5.94_Utilities">Utilities</a>,
+ <a href="#5.94_Drivers">Drivers</a>,
+ <a href="#5.94_Platforms">Platforms</a>,
+ <a href="#5.94_Fonts">Fonts</a>,
+ <a href="#5.94_PDF_writer">PDF writer</a>,
+ <a href="#5.94_Interpreter_PDF">Interpreter (PDF)</a>,
+ <a href="#5.94_Interpreter">Interpreter</a>,
+ <a href="#5.94_Streams">Streams</a>,
+ <a href="#5.94_Library">Library</a>
+</ul>
<li><a href="#Version5.93">Version 5.93 (beta) (9/11/99)</a>
<ul>
<li><a href="#5.93_Incompatible_changes">Incompatible changes</a>,
@@ -56,7 +99,7 @@ Changes in the most recent releases of Ghostscript
</ul>
<li><a href="#Version5.91">Version 5.91 (beta) (8/30/99)</a>
<ul>
-ili><a href="#5.91_Documentation">Documentation</a>,
+<li><a href="#5.91_Documentation">Documentation</a>,
<a href="#5.91_Utilities">Utilities</a>,
<a href="#5.91_Drivers">Drivers</a>,
<a href="#5.91_Platforms">Platforms</a>,
@@ -381,6 +424,880 @@ release.
<hr>
+<h1><a name="Version5.96"></a>Version 5.96 (beta) (11/12/99)</h1>
+
+This is the next beta for 6.0. To meet a need of our commercial licensing
+partner for a PostScript LL3 release, we are releasing this fileset with all
+font handling in the PDF writer disabled, as well as high-level image
+banding. This is a temporary measure: we will reinstate PDF text in 5.97,
+and high-level image banding as soon as we can straighten out its memory
+management problems.
+
+<h2><a name="5.96_Incompatible_changes"></a>Incompatible changes</h2>
+
+(Procedures)
+ - All Unix 'make' programs must now predefine MAKE as the name of
+the program.
+(Interpreter)
+ - zcolor_remap_one now returns o_push_estack rather than 0 in the
+case where it doesn't actually have to sample the procedure.
+(Library)
+ - Multi-plane halftones (when needed) are now used for all CMYK
+devices, not only if setcolorscreen was executed.
+ - Font implementors must now provide a same_font procedure.
+
+<h2><a name="5.96_Documentation"></a>Documentation</h2>
+
+Makes it clear that gsnup.ps is very simple and naive. (doc/Psfiles.htm,
+lib/gsnup.ps)
+
+Documents the new -Z_ switch. (doc/Use.htm)
+
+Documents that SYNC=nosync allows building on systems that don't support
+multi-threading. (doc/Make.htm)
+
+Adds documentation for building on Macintosh Rhapsody systems.
+(doc/Make.htm)
+
+Adds a reference to the new all-arch.mak file. (doc/Helpers.htm,
+doc/Make.htm)
+
+Notes that ps2pdf does preserve the color space for images.
+(doc/Ps2pdf.htm)
+
+Documents the new self-extracting archive for MS Windows. (doc/Install.htm,
+doc/Release.htm)
+
+Further improves the documentation of the PDF text machinery. (gdevpdfx.h)
+
+Reorganizes the build information for Unix. (doc/Make.htm)
+
+Adds information on building Ghostscript under BSDI. (doc/Make.htm)
+
+Notes that versions of zlib before 1.1.3 may cause an error on rare
+occasions. (zlib.mak)
+
+Fixes a few other minor problems. (doc/Current.htm, doc/Devices.htm,
+doc/DLL.htm, doc/Install.htm, doc/Language.htm, doc/Make.htm,
+doc/New-user.htm, doc/Ps2pdf.htm, doc/Source.htm, doc/Use.htm)
+
+<h2><a name="5.96_Procedures"></a>Procedures</h2>
+
+Fixes problems:
+ - dctd.dev and dcte.dev were defined in $(PSD), but referenced in
+$(GLD). (devs.mak, int.mak, lib.mak)
+ - pipe.dev was defined in $(GLD), but referenced in $(PSD).
+(bcwin32.mak, dvx-gcc.mak, msvc32.mak, unix-gcc.mak, unixansi.mak,
+unixtrad.mak)
+ - XLIBDIRS was included in the linker command even if none of the
+X drivers were used. (devs.mak, dvx-tail.mak, ugcclib.mak, unixlink.mak)
+ - The OpenVMS makefile didn't create the obj and bin directories
+properly. (openvms.mak)
+ - 'make debug' and 'make pg' didn't work on Unix systems where the
+make program was named something other than make. (unix-end.mak)
+
+Introduces a new top-level makefile macro, STDLIBS, that is -lm for all
+reasonable platforms but null for Rhapsody. (dvx-gcc.mak, dvx-tail.mak,
+ugcclib.mak, unix-gcc.mak, unixansi.mak, unixlink.mak, unixtrad.mak)
+
+Adds Nelson Beebe's contributed multi-architecture Unix makefile.
+(all-arch.mak)
+
+Makes it theoretically possible in theory to build the new Windows
+install/uninstall program with the Borland compiler. However, since this
+requires Borland C++ 4.52 and we only have 4.5, this is disabled in
+bcwin32.mak. (bcwin32.mak, winint.mak)
+
+<h2><a name="5.96_Utilities"></a>Utilities</h2>
+
+Fixes problems:
+ - The default for gsnup.ps was 3x2 landscape, rather than 2x2
+portrait. (lib/gsnup.ps)
+ - gslp.ps was broken (by the changes made to support gsnup.ps).
+(lib/gslp.ps)
+
+Adds a -link switch to genconf, to allow verbatim copying of commands into
+the linker command line. (genconf.c)
+
+Edits files to add missing $Id lines and module summary comments, and to
+delimit module summary comments from further material. (dwinst.h,
+dwsetup.h, dwuninst.h, bench.c, dwuninst.cpp)
+
+Makes it possible to build the new Windows install/uninstall program with
+the Borland compiler. (dwinst.cpp, dwsetup.cpp, dwsetup.def, dwsetup.rc,
+dwuninst.cpp, dwuninst.def)
+
+<h2><a name="5.96_Drivers"></a>Drivers</h2>
+
+Fixes problems:
+ - Embedded Type 1 fonts lacked some 'def' commands. (gdevpsd1.c)
+ - Multiple Master Font instances weren't written out correctly.
+(gdevpsd1.c)
+
+Edits files to add missing $Id lines and module summary comments, and to
+delimit module summary comments from further material. (gdev8bcm.h,
+gdevht.h, gdevpccm.h, gdevpcl.h, gdevsvga.h, gdevx.h, gdev3852.c,
+gdev8510.c, gdevadmp.c, gdevcd8.c, gdevcif.c, gdevclj.c, gdevhl7x.c,
+gdevifno.c, gdevimgn.c, gdevl31s.c, gdevmeds.c, gdevmswn.c, gdevos2p.c,
+gdevpe.c, gdevpm.c, gdevsj48.c, gdevtknk.c, gdevupd.c, gdevwddb.c,
+gdevwpr2.c, gdevwprn.c)
+
+<h2><a name="5.96_Platforms"></a>Platforms</h2>
+
+Fixes problems:
+ - The pthreads wrapper had a procedure type mismatch. We fixed this
+by making it allocate and free a wrapper object, as the Windows wrapper
+does. (gp_pthr.c)
+
+Edits files to add missing $Id lines and module summary comments, and to
+delimit module summary comments from further material. (dwimg.h, dwmain.h,
+gsdll.h, gp_msio.c, gp_mswin.c)
+
+Removes an unnecessary #include <semaphore.h>. (gp_semon.c)
+
+Adds a module that implements semaphores using the pthreads mutex
+facilities, as an alternative to gp_posem.c. Unfortunately, using this
+module causes immediate crashes on both Linux and BSDI, and we don't know
+why. (Let us know if you figure it out.) (gp_ptsem.c)
+
+<h2><a name="5.96_PDF_writer"></a>PDF writer</h2>
+
+Fixes problems:
+ - The character and word spacing weren't recognized as being reset
+by a PDF grestore. (gdevpdfx.h, gdevpdfu.c)
+ - Fonts that couldn't be embedded were always converted to bitmaps,
+rather than becoming candidates for non-embedded representation (if
+EmbedAllFonts is false and the font doesn't appear on the AlwaysEmbed list).
+(gdevpdfx.h, gdevpdff.c, gdevpdft.c)
+ - Stream-type Cos objects were written with no (0-length) data.
+(gdevpdfm.c)
+ - Reencoded base 14 fonts were not recognized as such, leading to
+excessive font embedding. (gdevpdfx.h, gdevpdf.c, gdevpdff.c, gdevpdft.c)
+ - Fonts were embedded by default even if EmbedAllFonts was false.
+(gdevpdft.c)
+
+Changes MaxSubsetPct to 35 to match Acrobat Distiller. (gdevpsdf.h)
+
+Adds some tracing output (-Z_). (gdevpdff.c, gdevpdft.c)
+
+Temporarily disables font handling in the PDF writer, to meet a need of our
+commercial licensing partner. All text will be converted to code-scrambled
+Type 3 bitmap fonts. (gdevpdf.c)
+
+<h2><a name="5.96_Interpreter_PDF"></a>Interpreter (PDF)</h2>
+
+Fixes problems:
+ - The sh operator caused an invalidaccess error for shadings that
+required a DataSource. (lib/pdf_draw.ps)
+ - The test for whether a Widget appearance was a Form or a
+collection of sub-appearances was incorrect, causing an /undefined error in
+the latter case. (lib/pdf_draw.ps)
+ - If the FontName in a Font descriptor differed from the BaseFont
+name in the Font object, the interpreter used the two inconsistently,
+sometimes causing the wrong font to be used. (lib/pdf_font.ps)
+ - ICCBased color spaces caused an error. (lib/pdf_draw.ps)
+
+Works around the fact that Acrobat Distiller produces files in which a
+Widget's Form appearance lacks Type and Subtype keys. (lib/pdf_draw.ps)
+
+<h2><a name="5.96_Interpreter"></a>Interpreter</h2>
+
+Fixes problems:
+ - Failure in allocating the name table would cause a crash.
+(iname.c)
+ - Shadings with procedure-based filters didn't work.
+(lib/gs_ll3.ps, ifilter.h, zfileio.c, zfproc.c)
+ - Some compilers complained about arithmetic on an enum. (iparam.c)
+ - Setting a transfer or similar function to the identity function
+didn't set the cached values, so the setting didn't consistently take
+effect. (icolor.h, zcolor.c)
+ - If the C library's implementation of sprintf with a %g format ever
+produced a number with an exponent but no decimal point, a crash would
+occur. (iutil.c)
+ - The PageDeviceName page device parameter wasn't supported.
+(lib/gs_lev2.ps, lib/gs_setpd.ps)
+ - A public procedure wasn't declared extern if DEBUG wasn't set.
+(igc.h)
+ - Because of a typo, loading resources automatically from a file
+always failed. (bug introduced in 5.94) (lib/gs_res.ps)
+
+Edits files to add missing $Id lines and module summary comments, and to
+delimit module summary comments from further material. (files.h, iastate.h,
+ibnum.h, ichar.h, ifilter.h, iimage.h, iimage2.h, iparam.h, isave.h,
+iscan.h, isstate.h, istream.h, iutil.h, opcheck.h, scanchar.h)
+
+Adds a font similarity testing procedure for Type 1/2/4 fonts. (zfont1.c)
+
+<h2><a name="5.96_Streams"></a>Streams</h2>
+
+Edits files to add missing $Id lines and module summary comments, and to
+delimit module summary comments from further material. (sbhc.h, sbtx.h,
+sbwbs.h, sdct.h, scfdgen.c, scfdtab.c, shcgen.h, siscale.h, sjpeg.h,
+slzwx.h, smtf.h, spdiffx.h, spngpx.h, srlx.h)
+
+<h2><a name="5.96_Library"></a>Library</h2>
+
+Fixes problems:
+ - Making a transformed font inappropriately copied the font's
+notification list. (gsfont.c)
+ - Some compilers complained about end-of-loop code not being
+reached. (gxpath2.c)
+ - The first two arguments of scale_delta was swapped, causing
+anomalous output for certain Type 1 fonts with curves where the starting and
+ending points had the same X or Y coordinate. (gxhint3.c)
+ - Large smoothness values produced blocky output. (gxshade.c)
+ - When banding, in a region where a CMYK halftone had no K at all,
+the output was likely to be black rather than the correct color. (gxcht.c)
+ - Interpolated images with mirrored X scaling weren't mirrored.
+(gxiscale.c)
+ - Interpolated images were truncated. (gxiscale.c)
+ - Halftone caches could have a dangling pointer to a transfer map in
+the halftone order. (gxht.c)
+ - The next-character code returned for kshow was the same as the
+current character. (bug probably introduced in 5.86) (gstext.c)
+ - The GC didn't know about the pointers to the tables for Indexed
+color spaces when banding, occasionally causing the tables to be written as
+garbage. In the process of investigating this, we discovered that the GC
+didn't know about *any* of the pointers in the structures used to track
+banded images. ****** NOT FIXED, TOO MUCH RISK OF INTRODUCING FURTHER
+BUGS. ****** Instead, we disabled high-level image banding in this fileset.
+(gxclimag.c)
+
+Changes the name of a variable from ppc to ppcr, because an Apple compiler
+inappropriately defines the name ppc when compiling on a PowerPC.
+(gxshade6.c)
+
+Edits files to add missing $Id lines and module summary comments, and to
+delimit module summary comments from further material. (gdevbbox.h,
+gscoord.h, gscpixel.h, gsfname.h, gsfont.h, gsimage.h, gslib.h, gsmdebug.h,
+gspaint.h, gspath.h, gspath2.h, gxalloc.h, gxclipm.h, gxclpage.h,
+gxclpath.h, gxcmap.h, gxcoord.h, gxcpath.h, gxdda.h, gxdevmem.h, gxfcache.h,
+gxfont.h, gximage.h, gxiodev.h, gxpaint.h, gxpath.h, gxpcolor.h, gzacpath.h,
+gzcpath.h, gzht.h, gzpath.h, md5.h, gxdither.c, md5.c)
+
+Adds a prototype for debug_find_pointers. (gxalloc.h)
+
+Adds a font procedure for testing whether two fonts are the same in various
+ways. This is needed so that the PDF writer can do a reasonable job of
+identifying reencoded and renamed versions of the base 14 fonts. (gxfont.h,
+gsfont.c)
+
+Changes a macro to a procedure and improves some commenting. (gxhint3.c)
+
+Changes the halftoning code so that multi-plane halftones are always used on
+CMYK devices, even if only a single halftone is set (setscreen or
+HalftoneType 1). (gxcht.c, gxdither.c)
+
+<hr>
+
+<h1><a name="Version5.95"></a>Version 5.95 (beta) (11/1/99)</h1>
+
+There were several new problems in 5.94, some of them severe. We hope this
+beta candidate fixes them without introducing any new ones. It also fixes
+some minor problems not reported in 5.93.
+
+We think we have finally found the right workarounds for Acrobat and
+specification problems so that pdfwrite output (with CompatibilityLevel
+either 1.2 or 1.3) both conforms as closely as possible to the published PDF
+specification and works with Acrobat Reader (3 or 4 respectively) for both
+displaying and printing.
+
+NOTE: The default level of output from the pdfwrite device (ps2pdf) has been
+changed back to PDF 1.2 (Acrobat 3 compatible), because this is what the
+majority of users want. For PDF 1.3 output, use -dCompatibilityLevel=1.3.
+
+Note: some post-6.0 code is included under an #ifdef POST60.
+
+<h2><a name="5.95_Incompatible_changes"></a>Incompatible changes</h2>
+
+(Drivers)
+ - The default CompatibilityLevel in the pdfwrite device (ps2pdf) is
+now 1.2 rather than 1.3.
+ - pdfwrite now discards information after the last showpage rather
+than producing an additional page.
+(Library)
+ - The is_monotonic procedure of a function now returns a result that
+indicates the direction of monotonicity of each value separately.
+ - The coordinate system used internally by the bbox device is now
+upright (lower left corner = (0,0) rather than upper left corner). (This
+should not make any difference to clients, who should always have been using
+default user space coordinate.)
+
+<h2><a name="5.95_Documentation"></a>Documentation</h2>
+
+Fixes problems:
+ - A couple of URLs were incorrect or out of date. (doc/Readme.htm,
+doc/Use.htm)
+ - There was a typo in a comment. (gxfont.h)
+ - An old bug had been fixed, but the documentation had not been
+updated to reflect this. (doc/Current.htm)
+
+Documents the requirement to change SYNC from posync to fbsdsync on FreeBSD.
+(doc/Make.htm)
+
+Adds references to Adobe's on-line documentation. (doc/Readme.htm)
+
+Updates the release procedure to mention adding .ps files.
+(doc/Release.htm)
+
+Adds documentation for the bbox device. (doc/Use.htm)
+
+Documents the new gsnup.ps utility. (doc/Psfiles.htm)
+
+Modifies the gslp utility for greater page independence and smaller output
+files. (lib/gslp.ps)
+
+Documents the fact that the default output from pdfwrite is PDF 1.2.
+(doc/Ps2pdf.htm)
+
+Adds Inprise (as the new name of the Borland tools) in a few places.
+(doc/Make.htm)
+
+Updates the release documentation slightly. (doc/Release.htm)
+
+<h2><a name="5.95_Procedures"></a>Procedures</h2>
+
+Fixes problems:
+ - FreeBSD uses a different name for the pthreads implementation.
+(lib.mak, unixansi.mak, unix-gcc.mak, unixtrad.mak)
+
+Encapsulates gsnogc.$(OBJ) in a gsnogc.dev module, to make it more sharable.
+(lib.mak)
+
+<h2><a name="5.95_Utilities"></a>Utilities</h2>
+
+Fixes problems:
+ - guilsinglleft and guilsinglright were misspelled.
+(lib/ps2ascii.ps)
+ - The ps2pdf script didn't handle the -I switch correctly. We fixed
+this by including the options twice, both before and after the automatically
+supplied options. (lib/ps2pdf, lib/ps2pdf.bat)
+
+Adds an install/uninstall program for Windows 9x, including optional
+generation of a self-extracting executable, written by Ghostgum Software Pty
+Ltd. This program is not actually used yet. (msvc32.mak, winint.mak,
+dwinst.*, dwsetup.*, dwuninst.*)
+
+Adds a new environment parameter to arch.h, ARCH_DIV_NEG_POS_TRUNCATES.
+(genarch.c)
+
+Adds a utility for N-up printing. (unixinst.mak, lib/gsnup.ps)
+
+Changes ps2pdf so that if showpage has ever been executed, any partial page
+after the last showpage is discarded rather than made into an additional
+page. This is consistent with printers, and correctly handles BeginPage
+procedures that draw backgrounds. (gdevpdf.c)
+
+<h2><a name="5.95_Drivers"></a>Drivers</h2>
+
+Fixes problems:
+ - The TIFF drivers could produce incorrectly sorted tag tables.
+(gdevtifs.c)
+ - The OS/2 PM driver had an incorrect #include. (gdevpm.c)
+ - Embedded Type 1 fonts that used seac didn't automatically include
+the constituent glyphs. (gdevpsd1.c)
+ - Embedded Type 1 fonts wrote the wrong font name in the first
+(comment) line. (gdevpsd1.c)
+ - Deleting elements from the AlwaysEmbed or NeverEmbed list could
+cause a memory access error. (gdevpsdp.c)
+ - The string and string array members of psdf_distiller_params were
+omitted from the GC descriptor, causing memory corruption. (gdevpsdf.h,
+gdevpsdf.c, gdevpsdp.c)
+ - When using "async" printing, the buffer device was destroyed too
+soon. (fix from Artifex) (gdevbmpa.c)
+
+Adds (partial) parsing for the new Acrobat Distiller 4.0 parameters, under
+#ifdef POST60. The put_params code isn't finished. (gdevpsdf.h,
+gdevpsdp.c)
+
+<h2><a name="5.95_Platforms"></a>Platforms</h2>
+
+Changes product to productfamily as the Windows registry key. (gp_wgetv.c)
+
+<h2><a name="5.95_Fonts"></a>Fonts</h2>
+
+Fixes problems:
+ - guilsinglleft and guilsinglright were misspelled in
+MacRomanEncoding and MacGlyphEncoding. (lib/gs_mro_e.ps)
+ - plusminus was misspelled in MacGlyphEncoding. (lib/gs_mgl_e.ps)
+ - braceleftbt was misspelled as bracelefttbt in the Symbol font.
+(fonts/s050000l.pfb) ****** NOT DISTRIBUTED YET ******
+ - euro was incorrectly included at position 240 in the Symbol
+encoding. (lib/gs_sym_e.ps)
+ - Zcaron and zcaron weren't included in WinAnsiEncoding (this is new
+for PDF 1.3). (lib/gs_wan_e.ps)
+ - Euro replaced currency in MacRomanEncoding. We had to change this
+back, even though the Mac does use code 219 for Euro, for compatibility with
+Adobe documentation. (lib/gs_mro_e.ps)
+ - TrueType fonts with more glyphencoding entries than glyphs could
+cause errors. (lib/gs_ttf.ps)
+
+Adds the Adobe Central European encoding. (lib/gs_ce_e.ps, unixinst.mak)
+
+Adds more tracing to the TrueType font loader. (lib/gs_ttf.ps)
+
+Adds the remaining PDF Encodings to the predefined set. (lib/gs_lgo_e.ps,
+lib/gs_lgx_e.ps, lib/gs_mex_e.ps, lib/gs_mgl_e.ps, lib/gs_mro_e.ps)
+
+<h2><a name="5.95_PDF_writer"></a>PDF writer</h2>
+
+Fixes problems:
+ - When printing an error message, a pointer/length string was
+incorrectly treated as a C string. (gdevpdfm.c)
+ - The treatment of text was completely broken by "improvements" made
+in 5.94. We think we've put things back to a state that at least isn't any
+worse than 5.93. (gdevpdfx.h, gdevpdff.c, gdevpdft.c)
+ - The test for whether a glyph was present in a glyph set was wrong,
+possibly causing an infinite loop. (This never happened, because the code
+was masked by other bugs.) (gdevpdft.c)
+ - Testing the PDF compatibility level didn't work correctly, because
+of float/double mismatches. (gdevpdfx.h, gdevpdfp.c)
+ - Embedded TrueType fonts were still written in binary even if
+ASCII85EncodePages was true. (gdevpdff.c)
+ - Embedded TrueType subsets didn't use Flags to indicate that they
+had a non-standard cmap. (gdevpdff.c)
+ - Contrary to the obvious reading of the PDF specification, it
+appears that the default encoding for embedded fonts, if no BaseEncoding is
+specified, is StandardEncoding, *not* the built-in encoding of the font
+itself; and that any differences from StandardEncoding must be listed
+explicitly. (gdevpdft.c)
+
+Adds parsing for the new Acrobat Distiller 4.0 parameters, under #ifdef
+POST60. (lib/gs_pdfwr.ps, gdevpdfx.h, gdevpdfp.c)
+
+Ensures that the Mac encodings are loaded when writing PDF. (devs.mak)
+
+Works around an Acrobat 3 bug: The only cmap table that works in TrueType
+fonts is format 0, which can only reference glyphs up to 255. Consequently,
+a TrueType font whose Encoding references glyphs above 255 cannot be
+embedded (as a font). (gdevpdft.c)
+
+Changes the default CompatibilityLevel from 1.3 to 1.2. The majority of
+users are running Acrobat 3. (gdevpdf.c)
+
+<h2><a name="5.95_Interpreter_PDF"></a>Interpreter (PDF)</h2>
+
+Fixes problems:
+ - The T* operator was changed incorrectly to use the negative of the
+leading value. (lib/pdf_ops.ps)
+ - The Tz value scaled the X offset for Td and TD (which it
+shouldn't), occasionally causing strings to be displaced horizontally.
+(lib/pdf_ops.ps)
+ - sc[n]/SC[N] didn't work with 1-value color spaces, because the
+code incorrectly assumed the operand stack contained only the values on the
+PDF operand stack. (bug introduced by Annotation rendering in 5.94)
+(lib/pdf_base.ps, lib/pdf_draw.ps, lib/pdf_main.ps, lib/pdf_ops.ps)
+ - The HTP key in the graphics state caused an error if the
+interpreter didn't implement sethalftonephase. (lib/pdf_draw.ps)
+ - If there was no Names tree, invalid links (string Dest values)
+caused an error instead of being ignored. (lib/pdf_main.ps)
+ - An annotation with a Thread action caused an error.
+(lib/pdf_main.ps)
+
+Adds table entries, but not implementation, for the op and OPM keys in
+ExtGState dictionaries. (lib/pdf_draw.ps)
+
+Works around a bug in Adobe Acrobat Distiller 4.0 for Windows: it uses the
+value /Default with the BG, UCR, and TR keys in an ExtGState.
+(lib/pdf_draw.ps, lib/pdf_main.ps)
+
+Adds additional tracing for Functions. (lib/pdf_draw.ps)
+
+Implements the BG2, UCR2, and TR2 keys in ExtGStates. (lib/pdf_draw.ps)
+
+<h2><a name="5.95_Interpreter"></a>Interpreter</h2>
+
+Fixes problems:
+ - There was a (harmless) signed/unsigned mismatch. (imainarg.c)
+ - If build_gs_simple_font had to add any elements to the font
+dictionary, a temporary pointer to the CharStrings could become invalid,
+causing crashes or confusion. (zbfont.c)
+ - The check for known Encodings included some pseudo-Encodings.
+(zbfont.c)
+ - The error object wasn't reset to null before each call of the
+interpreter, possibly causing the garbage collector to mark it even if it no
+longer existed. (interp.c)
+
+Adds productfamily as a new predefined name, for the benefit of the Windows
+registry. (iinit.c)
+
+Changes the default color smoothness to 0.02 to match Adobe RIPs.
+(lib/gs_ll3.ps)
+
+Adds using the glyph_info procedure for Type 1 fonts, needed to fix the
+problem with seac and Type 1 embedded fonts. (zfont1.c)
+
+<h2><a name="5.95_Library"></a>Library</h2>
+
+Fixes problems:
+ - Memory devices that may execute RasterOp must be initialized with
+an allocator (for temporary bitmaps), but sometimes they weren't.
+(gdevdrop.c)
+ - The computation of colors_used for images could cause arithmetic
+exceptions and/or produce incorrect results. (fix from Artifex)
+(gxclimag.c)
+ - A dead variable was getting incremented in a loop. (Small
+performance bug only.) (gsfunc0.c)
+ - The cached is_monotonic value in a function head was incorrectly
+declared bool rather than int. (gsfunc.h)
+ - The clip operators didn't always recognize empty clipping regions:
+sometimes they retained a 1-pixel-wide region. (gxcpath.c)
+ - The bbox device could get into a recursion loop if it had a
+non-null target with a non-standard fill_path procedure. (gdevbbox.c)
+ - The procedure u32 was defined in two places. (gsutil.h,
+gdevpsdt.c, gsutil.c, gstype42.c)
+ - The DataSource member of a sampled function wasn't reported to the
+garbage collector. (gsfunc0.h, gsfunc0.c) ****** MUST DO THE SAME FOR
+SHADINGS ******
+ - All name-type parameters (device and other) were converted as
+strings rather than names. (gsparam.c)
+ - Using a mask Pattern with an anti-aliased device could make
+invalid memory accesses and cause a crash. (gxpcmap.c)
+ - math_.h was included unnecessarily. (gxfill.c, gxhint3.c)
+ - In a few places, (fixed-point) coordinates were truncated towards
+zero rather than taking the floor. (It's likely that this had no effect.)
+(gxfill.c, gxpcopy.c)
+ - The join and cap values weren't taken into account when dividing a
+stroked path into bands, possibly causing some caps or joins to be dropped
+if they fell exactly at band boundaries. (gxclpath.c)
+ - An arithmetic overflow in gx_adjust_if_empty could produce
+incorrect output. (gxfill.c)
+ - Because the bbox device used a Y-inverted coordinate system, it
+could produce incorrect results for out-of-bounds coordinates. (gdevbbox.c)
+ - The default font_info procedure didn't compute MISSING_WIDTH if
+IS_FIXED_WIDTH wasn't requested. (gsfont.c)
+ - space_params wasn't managed properly, causing problems if the
+device altered the default values. (fix from Artifex) (gdevprn.c)
+ - The Macintosh cmap table for embedded TrueType fonts was written
+incorrectly. (gdevpsdt.c)
+ - The OS/2 table for embedded TrueType fonts could be inconsistent
+with the cmap table. (gdevpsdt.c)
+ - In embedded subset TrueType fonts, loca entries beyond the last
+occupied glyph contained garbage. (gdevpsdt.c)
+ - Embedded TrueType subsets didn't include the components of
+composite glyphs. (gdevpsdf.h, gdevpsd1.c, gdevpsdf.c, gdevpsdt.c)
+
+Changes the is_monotonic procedure of Functions so that it reports the
+direction of monotonicity of each value independently. This allows a larger
+class of functions to be detected as monotonic. (gsfunc.h, gsfunc0.c,
+gsfunc3.c)
+
+Works around a bug in Fontographer that causes it to produce (or at least
+allow users to produce) Type 1 fonts using seac in which the side bearing of
+the accented character differs from the side bearing of the base glyph. The
+published Type 1 specification and Adobe's engineers agree that such fonts
+are invalid, but the authors of Fontographer don't seem to care (this is the
+4th Fontographer bug that we have had to patch around so far). (gxtype1.h,
+gstype1.c, gxtype1.c)
+
+Adds gs_productfamily, for the benefit of the Windows registry. (gscdefs.h,
+gscdef.c)
+
+Adds a glyph_info procedure for Type 1 fonts, needed to fix the problem with
+seac and Type 1 embedded fonts. (gxfont1.h, gxtype1.c)
+
+Adds a gs_resize_struct_array procedure that either allocates or resizes an
+object. We have wanted this for quite a while. (gsmemory.h, gsmemory.c)
+
+Adds the remaining PDF Encodings to the predefined set. Also adds string
+names for the "real" encodings. (gsccode.h)
+
+Adjusts the format of embedded TrueType fonts to be closer to that produced
+by Acrobat Distiller, in the hope of making Acrobat Reader accept them.
+(gdevpsdf.h, gdevpsdt.c)
+
+<hr>
+
+<h1><a name="Version5.94"></a>Version 5.94 (beta) (9/30/99)</h1>
+
+This is (intended to be) the last beta candidate for the 6.0 release. Most
+changes other than added documentation are bug fixes. In order to address a
+last-minute problem report, we implemented a subset of Annotation rendering
+for PDF files.
+
+At the request of the Free Software Foundation, we removed support for GNU
+readline from the Aladdin Ghostscript fileset. See <a
+href="Make.htm#GNU_readline">here</a> for more information.
+
+We suspect that Acrobat's bugs and limitations still prevent embedded
+TrueType fonts in files created by the pdfwrite device from working
+properly, but we have neither the time nor the means to test this properly.
+
+<h2><a name="5.94_Incompatible_changes"></a>Incompatible changes</h2>
+
+(Procedures)
+ - For OpenVMS with MMK or MMS, the third-party libraries are now
+located in [.<lib>] rather than [-.<lib>].
+ - The OpenVMS makefiles now select the same set of devices as the
+Unix makefiles.
+ - The MS Windows and MS-DOS default installation directory is now
+c:\Aladdin\gs#.# rather than c:\gs.
+ - All top-level makefiles now need a definition of BUILD_TIME_GS.
+(Drivers)
+ - The cljet5 driver is renamed cljet5pr; there is a new cljet5
+driver that doesn't attempt (and fail) to handle page rotation.
+(Interpreter)
+ - .getiodevice may return null.
+(Library)
+ - IODevices may now have a null name.
+
+<h2><a name="5.94_Documentation"></a>Documentation</h2>
+
+Fixes problems:
+ - The documentation of font searching was still wrong in both
+places. (doc/Fonts.htm, doc/Use.htm)
+
+Notes that certain CodeWarrior code generation options produce incorrect
+code. (doc/Make.htm)
+
+Removes an inaccurate and obsolete comment. (lib/pdf_font.ps)
+
+Notes that newer versions of the SGI compiler use a different switch for
+setting the optimization limit. (doc/Make.htm)
+
+Notes that there may be code generation bugs in MSVC5 and later.
+(doc/Make.htm)
+
+Documents the new Fontmap.SGI file. (doc/Use.htm)
+
+Updates the documentation on installing Ghostscript on MS Windows.
+(doc/Install.htm)
+
+Documents the removal of the GNU readline interface. (doc/Current.htm,
+doc/Make.htm)
+
+<h2><a name="5.94_Procedures"></a>Procedures</h2>
+
+Fixes problems:
+ - The instcopy script, supposed to handle incompatibilities between
+Unix `install' commands, didn't work. (instcopy, unixinst.mak)
+ - The Windows makefiles had an extra occurrence of `.' at the
+beginning of the default search path. (bcwin32.mak, msvc32.mak,
+msvclib.mak, watc*.mak)
+ - The OpenVMS makefile didn't automatically create the bin and obj
+directories if needed. (openvms.mak)
+
+Changes the OpenVMS MMK/MMS makefile to expect the third-party libraries in
+a subdirectory of the current directory, rather than a subdirectory of the
+parent. This makes it compatible with all the other makefiles.
+(openvms.mmk)
+
+Changes the OpenVMS makefiles to select the same set of devices as the Unix
+makefiles. (openvms.mak, openvms.mmk, unixansi.mak)
+
+Changes the Windows and OS/2 default search paths to match the new
+convention of installation rooted at c:\Aladdin. (bcwin32.mak, msvc32.mak,
+msvclib.mak, os2.mak, watc.mak, watclib.mak, watcw32.mak)
+
+<h2><a name="5.94_Utilities"></a>Utilities</h2>
+
+Fixes problems:
+ - The Type 1/2 CharString printer didn't handle undefined opcodes
+correctly. (lib/type1ops.ps)
+ - There was no Unix script for pf2afm. (lib/pf2afm)
+ - The Type 1/2 font printing utilities didn't default lenIV to -1
+for Type 2, and didn't handle lenIV = -1 correctly in some places.
+(lib/type1ops.ps)
+ - The font2c utility used the version of font2c.ps from whatever
+existing Ghostscript executable was in the search path. Fixing this
+required adding a new parameter in all top-level makefiles, BUILD_TIME_GS.
+(cfonts.mak, bcwin32.mak, dvx-gcc.mak, msvc32.mak, openvms.mak, openvms.mmk,
+os2.mak, unix-gcc.mak, unixansi.mak, unixtrad.mak, watc.mak, watcw32.mak)
+ - The pfbtopfa usage message was incorrect. (lib/pfbtopfa.ps)
+
+<h2><a name="5.94_Drivers"></a>Drivers</h2>
+
+Fixes problems:
+ - The pswrite driver didn't reset the clipping path when writing
+low-level images, possibly causing output to be clipped incorrectly.
+(gdevps.c)
+ - The PNG drivers implicitly declared png_init_io. Fixing this is
+only possible in libpng versions 1.0.3 and later. (gdevpng.c)
+ - The cljet5 driver (now cljet5pr) set rotated = true if the page
+was rotated, but didn't set it to false if the page wasn't rotated.
+(gdevclj.c)
+ - Embedded Type 1 fonts didn't include any FontInfo elements.
+(gdevpsd1.c)
+ - Specifying the DCTEncode filter for compressing images caused a
+crash. This problem is hard to fix correctly because of the complicated
+initialization requirements of the JPEG encoder. We patched around it by
+substituting FlateEncode (when available) for DCTEncode. (gdevpsdi.c)
+
+Renames the cljet5 driver, which has special (and incorrect) hacks to handle
+page rotation for the PCL interpreter, as cljet5pr; adds a new cljet5 driver
+without the hacks. (gdevclj.c)
+
+<h2><a name="5.94_Platforms"></a>Platforms</h2>
+
+Fixes problems:
+ - On MS Windows and OS/2 systems, the wstdio pseudo-IODevice showed
+up as an instance of the IODevice resource category, causing problems.
+(gp_msio.c, gp_os2.c)
+
+Adds a set of XBM/XPM icons in 4 sizes, contributed by Gintautas Grigelionis
+<eragigr@ki.ericsson.se>. (lib/gs*.xbm, lib/gs*.xpm, unixinst.mak)
+
+Brings the Windows and OS/2 code up to date, fixing some minor problems.
+(gdevpm.c, gp_os2.c, gsos2.rc, gspmdrv.rc, os2.mak, pcwin.mak)
+
+<h2><a name="5.94_Fonts"></a>Fonts</h2>
+
+Fixes problems:
+ - The font directory scanner (FONTPATH) didn't recognize TrueType
+fonts tagged as 'true' rather than 0x00010000. (lib/gs_ttf.ps)
+
+Changes the TrueType font loader to use ISOLatin1Encoding for constructing
+the CharStrings if there is a Microsoft Unicode cmap and no glyph names in
+the post table. This seems like a hack, but we aren't sure what the right
+approach would be. (lib/gs_ttf.ps)
+
+Adds a Fontmap for SGI IRIX. This just comments out those fonts that are
+provided by DPS. (lib/Fontmap.SGI)
+
+<h2><a name="5.94_PDF_writer"></a>PDF writer</h2>
+
+Fixes problems:
+ - Writing Patterns could cause a memory access error. (bug
+introduced recently) (gdevpdfi.c)
+ - Filling with a pattern didn't reset the clipping path, possibly
+causing output to be clipped incorrectly. (gdevpdfi.c)
+ - Patterns weren't scaled correctly. (gdevpdfi.c)
+ - The data for large Patterns could exceed Acrobat Reader's limit on
+the length of a string. (gdevpdfi.c)
+ - copy_color did an extra gsave and concat. (gdevpdfi.c)
+ - Repeated color images weren't detected (performance bug only).
+(gdevpdfi.c)
+ - Names including control characters or spaces produced invalid
+output. (gdevpdfx.h, gdevpdfu.c)
+ - A matrix multiply was in the wrong order, causing fonts with
+non-zero translation in the FontMatrix to render at incorrect coordinates
+(sometimes off the page).
+ - If a font had one of the 14 standard names but had some characters
+defined by PostScript procedures, the output file would be invalid.
+(gdevpdft.c)
+ - The graphics state line parameters were kept in two different
+copies, causing bookkeeping errors. (gdevpdfx.h, gdevpdf.c, gdevpdfd.c,
+gdevpdfu.c)
+ - If a page's BeginPage procedure did anything other than erase the
+page to white, the resulting PDF file was invalid. (gdevpdf.c)
+ - Articles with the same title weren't merged properly.
+(gdevpdfm.c)
+ - The Threads element of the catalog wasn't an indirect object.
+(gdevpdf.c)
+ - Thread actions incorrectly converted the destination (thread
+title) to a name, rather than leaving it as a string. (gdevpdfm.c)
+ - Fonts with the same name as the built-in ones, but not the
+standard definitions, produced possibly incorrect output. (gdevpdff.c)
+ - The writer didn't recognize attempts to use Encodings with the
+standard fonts that mentioned characters not present in the font's glyph
+set. (gdevpdft.c)
+
+Ensures that the WinAnsiEncoding is loaded when writing PDF. (devs.mak)
+
+<h2><a name="5.94_Interpreter_PDF"></a>Interpreter (PDF)</h2>
+
+Fixes problems:
+ - The default (identity) CMap didn't map CID 0 to glyph 0.
+(pdf_fonts.ps)
+ - TrueType fonts with an explicit Encoding didn't work properly.
+(lib/gs_ttf.ps)
+ - If an embedded Type 1 font executed definefont more than once,
+the wrong thing would happen. (lib/pdf_font.ps)
+ - The T* operator used the negative of the leading value.
+(lib/pdf_ops.ps)
+
+Implements a subset of Annotation rendering: only Widget annotations, only
+Normal appearance, only S and D borders, no rounded-corner borders. We did
+this at the very last minute before the release, in order to respond to a
+bug report, and it probably has some bugs. (lib/pdf_draw.ps,
+lib/pdf_main.ps)
+
+<h2><a name="5.94_Interpreter"></a>Interpreter</h2>
+
+Fixes problems:
+ - If an input buffer boundary fell at exactly the wrong place, an
+image whose input was coming from a stream could fail to read the stream EOD
+marker. (This is quite an old bug.) (zimage.c)
+ - On MS Windows and OS/2 systems, the wstdio pseudo-IODevice showed
+up as an instance of the IODevice resource category, causing problems.
+(lib/gs_res.ps, ziodev.c)
+ - errorinfo in $error was undefined, rather than null, initially and
+after errors that didn't set it deliberately. (lib/gs_init.ps)
+ - The InkParams resource category was defined even in systems that
+didn't support in-RIP trapping. (lib/gs_ll3.ps, lib/gs_res.ps,
+lib/gs_trap.ps)
+ - CID fonts with 0-length data caused an error. (lib/gs_cidfn.ps)
+ - Type 10 halftone dictionaries were broken -- perhaps they never
+had worked. (lib/gs_ll3.ps)
+
+Makes FontInfo entries available through the extended font API, needed to
+allow embedded Type 1 fonts to include those entries. (zfont1.c)
+
+Makes it possible to determine whether the current file is a resource file,
+needed to allow distinguishing between built-in and input-embedded fonts.
+(lib/gs_ccfnt.ps, lib/gs_fonts.ps, lib/gs_init.ps, lib/gs_res.ps,
+lib/gs_type1.ps, zfont.c)
+
+Moves support for GNU readline from the main Ghostscript fileset to the
+GNU-specific fileset. (unix-gcc.mak, int.mak, gp_gnrdl.c =>
+src/gnu/gp_gnrdl.c, gnu/src/gnudevs.mak)
+
+<h2><a name="5.94_Streams"></a>Streams</h2>
+
+Fixes problems:
+ - The CCITTFaxDecode filter didn't correctly handle the case where
+the last code of a 1-D row was a black code and occurred less than 7 or 8
+bits before the end of the input stream. (We thought we fixed this in 5.86,
+but we missed one case.) (scfd.c)
+ - If an input buffer boundary fell at exactly the wrong place, an
+image whose input was coming from a stream could fail to read the stream EOD
+marker. (This is quite an old bug.) Fixing this involved a possibly risky
+change to the definition of sbuf_min_left and the already fragile logic in
+sreadbuf: the fix does solve this problem, but we aren't at all certain it
+didn't introduce new ones. (stream.h, stream.c)
+
+<h2><a name="5.94_Library"></a>Library</h2>
+
+Fixes problems:
+ - The default implementation of copy_tile didn't pass the bitmap id
+for complete tiles, missing potential optimizations (performance bug only).
+(gdevdbit.c)
+ - The patch edges of ShadingType 7 shadings were ordered
+incorrectly, producing incorrect output in some cases where the surface
+folds over itself. (gxshade6.c)
+ - Flushing internal buffers when rendering an image didn't clip the
+flushed data, producing incorrect output. (gxidata.c)
+ - Non-zero data_x values for banded images produced incorrect band
+list data. (It's astounding that this problem hasn't shown up before.)
+(gxclimag.c)
+ - Banded images rotated by 90 degrees could produce "seams" or
+garbage if they crossed band boundaries. (This is at least the third time
+we have "fixed" this problem.) (gxclimag.c, gxifast.c)
+ - Circles or ellipses defined by pairs of 180-degree arcs produced
+incorrect output when banding. (gxclpath.c, gxclrast.c)
+ - setgray et al simply cleared the Pattern pointer in the client
+color rather than adjusting its reference count. (gscolor.c, gscolor1.c)
+ - The saved graphics state for bitmap/pixmap patterns contained a
+reference to the Pattern color, causing Patterns to be retained when they
+shouldn't be and causing unwanted recursion when freeing them. (gsptype1.c)
+ - Patterns containing halftoned CMYK colors rendered as all black.
+(bug probably introduced in 5.6x) (gxcht.c)
+ - Because of a typo, CMYK halftoning with only a single plane could
+put too much yellow into the output. This appears to be quite an old bug.
+(gxdither.c)
+ - The error code from running out of band list memory wasn't
+propagated if the condition was detected in cmd_put_drawing_color, causing
+low-memory recovery not to be invoked. (gxclpath.c)
+ - (Same error code problem) in clist_change_tile. (gxclbits.c)
+
+Adds more font attributes to the set available through a standard API.
+(gxfont.h)
+
+Adds more statistics to the filling algorithm. (gxfill.c)
+
+Adds an is_resource flag to fonts, to indicate that they originated from a
+resource rather than being embedded in an input file. (gxfont.h, gsfont.c)
+
<h1><a name="Version5.93"></a>Version 5.93 (beta) (9/11/99)</h1>
This is the next candidate for the 6.0 release. As with 5.92, all changes
@@ -5946,7 +6863,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Ps2pdf.htm b/gs/doc/Ps2pdf.htm
index 0a82b37ae..341b3ea22 100644
--- a/gs/doc/Ps2pdf.htm
+++ b/gs/doc/Ps2pdf.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>ps2pdf: PostScript-to-PDF converter</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: ps2pdf.txt -->
</head>
@@ -107,35 +107,42 @@ set PS2PDFGS=gs386
</tt></b></blockquote>
<p>
-Note that to run <b><tt>ps2pdf</tt></b> on MS Windows, you need the DOS executable: the
-Windows Program Manager's "<b><tt>run</tt></b> command doesn't allow you to run <b><tt>.bat</tt></b> files.
-Alternatively you can run the "console mode" Windows executable by changing
-the line above to
+Note that to run <b><tt>ps2pdf</tt></b> on MS Windows, you need the DOS
+executable: the Windows Program Manager's "<b><tt>run</tt></b>" command
+doesn't allow you to run <b><tt>.bat</tt></b> files. Alternatively you can
+run the "console mode" Windows executable by changing the line above to
<blockquote><b><tt>
set PS2PDFGS=gswin32c
</tt></b></blockquote>
+<p>
+By default, <b><tt>ps2pdf</tt></b> produces PDF 1.2 output (compatible with
+Acrobat 3 and later). To produce PDF 1.3 output (compatible only with
+Acrobat 4 and later), specify <b><tt>-dCompatibilityLevel=1.3</tt></b> in
+the list of options.
+
<hr>
<h1><a name="Limitations"></a>Limitations</h1>
<p>
-In a few situations, <b><tt>ps2pdf</tt></b> will convert text to
+In some situations, <b><tt>ps2pdf</tt></b> will convert text to
high-resolution bitmapped fonts rather than to embedded outline fonts. This
may occur when the PostScript file uses embedded Multiple Master or
CID-keyed fonts, or in some cases if it uses fonts with non-standard
encodings.
<p>
-The PDF output always represents colors and images in DeviceGray or
-DeviceRGB color space. All other color spaces are converted to these.
+The PDF output always represents the colors of text and graphics in
+DeviceGray or DeviceRGB color space; all other color spaces are converted to
+these. However, it correctly retains the original color space for images.
<p>
<b><tt>ps2pdf</tt></b> implements <b><tt>setdistillerparams</tt></b>, and
-recognizes all of the parameters documented in Adobe Technical Note #5151
-except for the <b><tt>ImageDict</tt></b> parameters, but only a subset have
-an effect:
+recognizes all of the Acrobat Distiller 3 parameters documented in Adobe
+Technical Note #5151 except for the <b><tt>ImageDict</tt></b> parameters,
+but only a subset have an effect:
<blockquote><table cellpadding=0 cellspacing=0>
<tr valign=bottom>
@@ -207,6 +214,11 @@ document content structure: <b><tt>StRoleMap</tt></b>,
omitted from the output file, the displayed and printed output are normally
not affected.
+<p>
+<b><tt>ps2pdf</tt></b> does not implement the Acrobat Distiller 4
+parameters. Settings for these parameters will be ignored, except that
+setting the <b><tt>EndPage</tt></b> parameter will cause an error.
+
<hr>
<h1><a name="Problems"></a>Known problems</h1>
@@ -221,8 +233,9 @@ Amber. (Adobe may have fixed this problem by now.)
<p>
There appear to be bugs in all versions of Acrobat Reader that cause them to
-process some embedded TrueType fonts incorrectly. <b><tt>ps2pdf</tt></b>
-does not yet work around these bugs.
+process some embedded fonts incorrectly, especially if the original input
+file contained multiple different fonts with the same name.
+<b><tt>ps2pdf</tt></b> does not yet work around these bugs.
<hr>
@@ -252,7 +265,7 @@ as a post-processor during routine document creation."]
<h1><a name="Acknowledgments"></a>Acknowledgments</h1>
<p>
-Thanks to George N. White III &lt;aa056@chebucto.ns.ca&gt; of the Ocean
+Thanks to George N. White III &lt;<a href="mailto:aa056@chebucto.ns.ca">aa056@chebucto.ns.ca</a>&gt; of the Ocean
Sciences Division of the Bedford Institute of Oceanography in Dartmouth,
Nova Scotia for extensive testing of early versions of
<b><tt>ps2pdf</tt></b>, and for contributing most of this writeup.
@@ -272,7 +285,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Psfiles.htm b/gs/doc/Psfiles.htm
index cf867fa89..1aed1de31 100644
--- a/gs/doc/Psfiles.htm
+++ b/gs/doc/Psfiles.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>.ps files distributed with Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: psfiles.txt -->
</head>
@@ -414,6 +414,14 @@ goes wrong during the processing of your file(s).
</dl>
<dl>
+<dt><b><tt>gsnup.ps</tt></b>
+<dd>A file that you can concatenate in front of (very well-behaved)
+PostScript files to do N-up printing. It is deliberately simple and naive:
+for more generality, use <b><tt>psnup</tt></b> (which, however, requires DSC
+comments).
+</dl>
+
+<dl>
<dt><b><tt>impath.ps</tt></b>
<dd>A utility for reconstructing outlines from bitmap images, used by
<b><tt>bdftops</tt></b>.
@@ -669,7 +677,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Public.htm b/gs/doc/Public.htm
index a8a82ab4b..b29a684aa 100644
--- a/gs/doc/Public.htm
+++ b/gs/doc/Public.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Aladdin Free Public License</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: PUBLIC -->
</head>
diff --git a/gs/doc/Readme b/gs/doc/Readme
index 5f15b2087..5228d9721 100644
--- a/gs/doc/Readme
+++ b/gs/doc/Readme
@@ -32,6 +32,7 @@ Table of contents
* Presence on the World Wide Web
o Ghostscript's home page
o Aladdin's home page
+ o Adobe PostScript and PDF reference documentation
o Other material on the WWW
* Which document contains what?
@@ -39,12 +40,12 @@ Table of contents
C-style.htm History*.htm Psfiles.htm
Commprod.htm Htmstyle.htm Public.htm
Copying.htm Humor.htm Readme.htm
- Current.htm Install.htm Source.htm
- DLL.htm Language.htm Tester.htm
- Devices.htm Lib.htm Unix-lpr.htm
- Drivers.htm Make.htm Use.htm
- Fonts.htm New-user.htm Xfonts.htm
- Helpers.htm News.htm
+ Current.htm Install.htm Release.htm
+ DLL.htm Language.htm Source.htm
+ Devices.htm Lib.htm Tester.htm
+ Drivers.htm Make.htm Unix-lpr.htm
+ Fonts.htm New-user.htm Use.htm
+ Helpers.htm News.htm Xfonts.htm
------------------------------------------------------------------------
@@ -168,6 +169,13 @@ Wide Web site at
http://www.ghostscript.com/
+Adobe PostScript and PDF reference documentation
+
+Adobe makes a wealth of relevant technical documentation available on its
+Web site, including the PostScript Language Reference Manual (Third
+Edition), the PDF 1.3 specification, and the pdfmark and distiller
+parameters documentation.
+
Other material on the WWW
Much other material about Ghostscript is available on the World Wide Web,
@@ -177,7 +185,7 @@ the well-known search engines to find such material.
There is a good manual for Ghostscript available in PDF form, in English and
German (and soon in Japanese), at:
- http://www.ifconnection.de/~tm
+ http://www.pdflib.com/gsmanual
------------------------------------------------------------------------
@@ -297,6 +305,11 @@ Public.htm
Readme.htm
This document.
+Release.htm
+ A description of how to prepare and test a Ghostscript release. Of
+ interest only to developers who want to create new Ghostscript versions
+ for distribution.
+
Source.htm
A guide to the Ghostscript source code, for development and debugging.
@@ -326,4 +339,4 @@ This file is part of Aladdin Ghostscript. See the Aladdin Free Public
License (the "License") for full details of the terms of using, copying,
modifying, and redistributing Aladdin Ghostscript.
-Ghostscript version 5.90, 20 August 1999
+Ghostscript version 5.94, 30 September 1999
diff --git a/gs/doc/Readme.htm b/gs/doc/Readme.htm
index 2344aa3fe..7eba86cdf 100644
--- a/gs/doc/Readme.htm
+++ b/gs/doc/Readme.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Overview of Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: README -->
</head>
@@ -74,6 +74,7 @@ systems).
<ul>
<li><a href="#Web_home_page">Ghostscript's home page</a>
<li><a href="#Aladdin_home_page">Aladdin's home page</a>
+<li><a href="#Adobe_documentation">Adobe PostScript and PDF reference documentation</a>
<li><a href="#Web_other">Other material on the WWW</a>
</ul>
<li><a href="#Ordered_roadmap">Which document contains what?</a>
@@ -304,6 +305,21 @@ Wide Web site at
<a href="http://www.ghostscript.com/">http://www.ghostscript.com/</a>
</blockquote>
+<h2><a name="Adobe_documentation"></a>Adobe PostScript and PDF reference documentation</h2>
+
+<p>
+Adobe makes a wealth of relevant <a
+href="http://partners.adobe.com/asn/developer/technotes.html">technical
+documentation</a> available on its Web site, including the <a
+href="http://partners.adobe.com/asn/developer/PDFS/TN/PLRM.pdf">PostScript
+Language Reference Manual (Third Edition)</a>, the <a
+href="http://partners.adobe.com/asn/developer/acrosdk/DOCS/pdfspec.pdf">PDF
+1.3 specification</a>, and the <a
+href="http://partners.adobe.com/asn/developer/acrosdk/DOCS/pdfmark.pdf">pdfmark</a>
+and <a
+href="http://partners.adobe.com/asn/developer/acrosdk/DOCS/distparm.pdf">distiller
+parameters</a> documentation.
+
<h2><a name="Web_other"></a>Other material on the WWW</h2>
<p>
@@ -316,7 +332,7 @@ There is a good manual for Ghostscript available in PDF form,
in English and German (and soon in Japanese), at:
<blockquote>
-<a href="http://www.ifconnection.de/~tm">http://www.ifconnection.de/~tm</a>
+<a href="http://www.pdflib.com">http://www.pdflib.com/gsmanual</a>
</blockquote>
<hr>
@@ -550,7 +566,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Release.htm b/gs/doc/Release.htm
index dcf7f10f0..389788347 100644
--- a/gs/doc/Release.htm
+++ b/gs/doc/Release.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>How to prepare an Aladdin Ghostscript release</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: make.txt -->
</head>
@@ -65,23 +65,31 @@ Ghostscript distribution. In the course of time, these scripts will become
part of the distribution, probably in a new subdirectory.
<p>
+File names below that don't include an explicit subdirectory name are in the
+<b><tt>src</tt></b> subdirectory.
+
+<p>
Anyone is welcome to prepare and distribute releases, but we would call your
attention to some items you will want to change.
<ul>
-<li>If you make any significant changes, please change the name of the
-program (in <b><tt>gscdef.c</tt></b>) from Aladdin Ghostscript to something
-else, in order to avoid confusion with Aladdin's releases.
+<li>If you make any significant changes, please edit
+<b><tt>gscdef.c</tt></b> to change <b><tt>GS_PRODUCTFAMILY</tt></b> and
+<b><tt>GS_PRODUCT</tt></b> from "Aladdin Ghostscript" to something else, in
+order to avoid confusion with Aladdin's releases.
-<li>You may also want to change the copyright notice (in the same file) to
-add your own copyright (although you must not remove Aladdin's copyright).
+<li>In the same file, you may also want to edit <b><tt>GS_COPYRIGHT</tt></b>
+to add your own copyright notice (although you must not remove Aladdin's
+notice).
-<li>You will almost certainly want to change the release date in
-<b><tt>version.mak</tt></b>.
+<li>You will almost certainly want to edit <b><tt>version.mak</tt></b> to
+change the revision date, <b><tt>GS_REVISIONDATE</tt></b>.
<li>If you want to change the version number, you must change it in both
-<b><tt>version.mak</tt></b> and <b><tt>lib/gs_init.ps</tt></b>.
+<b><tt>version.mak</tt></b> (<b><tt>GS_VERSION_</tt></b>*) and
+<b><tt>lib/gs_init.ps</tt></b> (the integer on a line by itself near the
+beginning of the file).
</ul>
@@ -112,6 +120,9 @@ When adding or changing fonts, update <b><tt>Fontmap.GS</tt></b>,
<p>
When adding or changing filters, update <b><tt>doc/Language.htm</tt></b>.
+<p>
+When adding .ps files, update <b><tt>doc/Psfiles.htm</tt></b>.
+
<h1><a name="Making_distributions"></a>Making distributions</h1>
<p>
@@ -132,19 +143,29 @@ You will need the following tools:
<h2><a name="General_procedure"></a>General procedure</h2>
<p>
+Make sure the release date and version number are up to date in
+<b><tt>version.mak</tt></b> and <b><tt>lib/gs_init.ps</tt></b>.
+
+<p>
Edit the makefile (presumably <b><tt>unix-gcc.mak</tt></b>) to set
FEATURE_DEVS=$(FEATURE_DEVS_ALL), to help catch compilation problems.
<p>
-Run <b><tt>make -j2</tt></b> (not <b><tt>tmake</tt></b>, and without
-<b><tt>debug</tt></b>).
+Run
+<blockquote><pre>
+rm obj/*
+make -j2 >& t.log
+</pre></blockquote>
+
+<p>
+and look for warnings and errors in the log file.
<p>
Do a smoke test:
<blockquote><pre>
-gs @b master/smoke.ps
+bin/gs @b master/smoke.ps
export TEMP=/gs/tmp
-gs @b -sDEVICE=bitcmyk -sOutputFile=/dev/null -r600 -dMaxBitmap=1000000 master/smoke.ps
+bin/gs @b -sDEVICE=bitcmyk -sOutputFile=/dev/null -r600 -dMaxBitmap=1000000 master/smoke.ps
</pre></blockquote>
<p>
@@ -154,9 +175,9 @@ Undo the FEATURE_DEVS edit.
Update the release date in <b><tt>doc/News.htm</tt></b>.
<p>
-Check that the appropriate one of "TESTER RELEASE", "BETA RELEASE", or
-neither is included in the definition of GS_PRODUCT in
-<b><tt>gscdef.c</tt></b>.
+Check in <b><tt>gscdef.c</tt></b> that the definition of
+<b><tt>GS_PRODUCT</tt></b> includes the appropriate one of "TESTER RELEASE",
+"BETA RELEASE", or neither.
<p>
Check for patched configuration parameters, #define TESTs, version/date
@@ -205,7 +226,7 @@ put-gs-c
<p>
Clean up the directories with
<blockquote><pre>
-rm -f src/*~ doc/*~ lib/*~ man/*~ examples/*~ src/*.bak src/*.orig src/*.mak.tcl
+rm -f src/*~ src/*.bak src/*.orig src/*.mak.tcl doc/*~ doc/*.orig lib/*~ man/*~ examples/*~ gnu/src/*~ gnu/src/*.bak gnu/src/*.orig
</pre></blockquote>
<p>
@@ -219,9 +240,6 @@ where #.## is the release number (e.g., 5.90). This creates the files
<blockquote>
<b><tt>ghostscript-#.##.tar.gz</tt></b> (main archive)<br>
<b><tt>ghostscript-#.##.tar.bz2</tt></b> (main archive)<br>
-</blockquote>
-It should, but doesn't, create
-<blockquote>
<b><tt>ghostscript-#.##gnu.tar.gz</tt></b> (GPL'ed files)<br>
</blockquote>
@@ -265,17 +283,14 @@ Boot back into Linux. If testing in Windows revealed problems, edit the
source files as necessary, and go back to "Check the consistency of the
source code." If everything was OK, make the PC executable archive with
<blockquote><pre>
-master/makeset --exe #.##
+master/makeset --win #.##
</pre></blockquote>
<p>
-This creates the file
-<blockquote>
- <b><tt>gs###run.zip</tt></b> (MS Windows run-time archive)
-</blockquote>
-It should, but doesn't, create
+This creates the files
<blockquote>
- <b><tt>ghostscript-#.##pc.tar.gz</tt></b> (main archive - sources + PC executables)
+ <b><tt>gs###w32.zip</tt></b> (MS Windows run-time archive, including fonts and documentation)
+ <b><tt>gs###src.zip</tt></b> (src and man directories)
</blockquote>
<p>
@@ -292,7 +307,7 @@ to it.
Do the steps for distributions in general.
<p>
-FTP <b><tt>ghostscript-#.##.tar.*</tt></b> and <b><tt>gs###run.zip</tt></b>
+FTP <b><tt>ghostscript-#.##.tar.*</tt></b> and <b><tt>gs###*.zip</tt></b>
to the Wisconsin server (aladdin/test directory).
<p>
@@ -318,11 +333,11 @@ and "new features" and "known problems" lists in
<b><tt>doc/Current.htm</tt></b>.
<p>
-Do the steps for distributions in general. Remake the PC archive after
-doing the PC compilations, so it contains the real executables.
+Do the steps for distributions in general.
<p>
-FTP the GNU and PC archives to the Wisconsin server.
+FTP the archives, including the GNU archive if relevant, to the Wisconsin
+server.
<p>
Unpack the distribution on a Sun at Wisconsin and run 'make' to make sure
@@ -379,7 +394,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Source.htm b/gs/doc/Source.htm
index 08286ab58..552e5a574 100644
--- a/gs/doc/Source.htm
+++ b/gs/doc/Source.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Guide to Ghostscript source code</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: source.txt -->
</head>
@@ -110,10 +110,10 @@ of <b><tt>gs.c</tt></b>.
<p>
Files named <b><tt>z</tt></b>*<b><tt>.c</tt></b> are Ghostscript operator
files. The names of the files generally follow the section headings of the
-operator summary in section 6.2 of the PostScript Language Reference
-Manual. Each operator XXX is implemented by a procedure named
-<b><tt>z</tt></b>XXX, for example, <b><tt>zfill</tt></b> and
-<b><tt>zarray</tt></b>.
+operator summary in section 6.2 (Second Edition) or 8.2 (Third Edition) of
+the PostScript Language Reference Manual. Each operator XXX is implemented
+by a procedure named <b><tt>z</tt></b>XXX, for example,
+<b><tt>zfill</tt></b> and <b><tt>zarray</tt></b>.
<p>
Files named <b><tt>i</tt></b>*<b><tt>.c</tt></b>, and *<b><tt>.h</tt></b>
@@ -389,7 +389,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Tester.htm b/gs/doc/Tester.htm
index 27e76d182..0d9eee0ea 100644
--- a/gs/doc/Tester.htm
+++ b/gs/doc/Tester.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Signup form for notification of Ghostscript test releases</title>
-
+<!-- $RCSfile$ $Revision$ -->
</head>
<body>
@@ -112,7 +112,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Unix-lpr.htm b/gs/doc/Unix-lpr.htm
index d420de1b0..eb9a48034 100644
--- a/gs/doc/Unix-lpr.htm
+++ b/gs/doc/Unix-lpr.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Setting up a Unix lpr filter for Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: unix-lpr.txt -->
</head>
@@ -255,7 +255,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/Use.htm b/gs/doc/Use.htm
index d6fa2d908..eb0dcb3c3 100644
--- a/gs/doc/Use.htm
+++ b/gs/doc/Use.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>How to use Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: use.txt -->
</head>
@@ -36,6 +36,7 @@ How to use Ghostscript
<li><a href="#One_page_per_file">One page per file</a>
<li><a href="#Pipe_output">Output to a pipe</a>
<li><a href="#Output_to_graphics">Output to graphics file formats</a>
+<li><a href="#Bounding_box_output">Bounding box output</a>
</ul>
<li><a href="#Paper_size">Choosing paper size</a>
<li><a href="#Change_default_size">Changing the installed default paper size</a>
@@ -146,9 +147,9 @@ Ghostscript on Unix:
<td>&nbsp;<td><b><tt>gs</tt></b>
<tr> <td>DOS &amp; MS Windows 3
<td>&nbsp;<td><b><tt>gs386</tt></b>
-<tr> <td>MS Windows 95
+<tr> <td>MS Windows 95/98
<td>&nbsp;<td><b><tt>gswin32</tt></b>
-<tr> <td>MS Windows 95 command line
+<tr> <td>MS Windows 95/98 command line
<td>&nbsp;<td><b><tt>gswin32c</tt></b>
<tr> <td>OS/2
<td>&nbsp;<td><b><tt>gsos2</tt></b>
@@ -394,7 +395,7 @@ gs -sOutputFile=ABC.xyz
<p>
The file name follows the PostScript convention that if a name begins with
<b><tt>%</tt></b>, the name must be in the form <b><tt>%</tt></b>filedevice
-or <b><tt>%</tt></b>filedevice<tt><b>%</tt></b>file. The legal values of
+or <b><tt>%</tt></b>filedevice<b><tt>%</tt></b>file. The legal values of
filedevice are system-dependent, but the following have consistent meanings
across systems:
@@ -506,12 +507,47 @@ Here, as with printable files, you can use "<b><tt>%d</tt></b>"
("<b><tt>%%d</tt></b>" on DOS and MS Windows) to specify <a
href="#One_page_per_file">one page per output file</a>.
+<h3><a name="Bounding_box_output"></a>Bounding box output</h3>
+
+<p>
+There is a special <b><tt>bbox</tt></b> "device" that just prints the
+bounding box of each page. You select it in the usual way:
+
+<blockquote><b><tt>
+gs -dNOPAUSE -dBATCH -sDEVICE=bbox
+</tt></b></blockquote>
+
+<p>
+It prints the output in a format like this:
+
+<blockquote>
+<pre><b><tt>%%BoundingBox: 14 37 570 719
+%%HiResBoundingBox: 14.308066 37.547999 569.495061 718.319158
+</tt></b></pre></blockquote>
+
+<p>
+Currently, it always prints the bounding box on <b><tt>stderr</tt></b>;
+eventually, it should also recognize <b><tt>-sOutputFile=</tt></b>.
+
+<p>
+Note that this device, like other devices, has a resolution and a (maximum)
+page size. As for other devices, the product (resolution x page size) is
+limited to approximately 500K pixels. By default, the resolution is 4000
+DPI and the maximum page size is approximately 125", or approximately 9000
+default (1/72") user coordinate units. If you need to measure larger pages
+than this, you must reset <em>both</em> the resolution and the page size in
+pixels, e.g.,
+
+<blockquote><b><tt>
+gs -dNOPAUSE -dBATCH -sDEVICE=bbox -r100 -g500000x500000
+</tt></b></blockquote>
+
<h2><a name="Paper_size"></a>Choosing paper size</h2>
<p>
Ghostscript is distributed configured to use U.S. letter paper as its
default page size, but it knows about many others, listed by name and size
-in the section on <a href="#Paper sizes">paper sizes known to
+in the section on <a href="#Known_paper_sizes">paper sizes known to
Ghostscript</a>. To select one of these as the default paper size for a
single invocation of Ghostscript, you can use the
<b><tt>-sPAPERSIZE=</tt></b> switch, for instance
@@ -552,7 +588,7 @@ this to
<p>
For <b><tt>a4</tt></b> you can substitute any
-<a href="#Paper sizes">paper size Ghostscript knows</a>.
+<a href="#Known_paper_sizes">paper size Ghostscript knows</a>.
<h1><a name="Finding_files"></a>How Ghostscript finds files</h1>
@@ -658,9 +694,8 @@ next section</a>, it concatenates together
<p>
Note that even though the system parameters are named "somethingDir", they
-are not just plain directory names: they have
-"<b><tt>/</tt></b>" on the end, so that they can be
-concatenated with the category name or font name.
+are not just plain directory names: they have "<b><tt>/</tt></b>" on the
+end, so that they can be concatenated with the category name or font name.
<h2><a name="Font_lookup"></a>Font lookup</h2>
@@ -675,20 +710,50 @@ additional list of directories which is the value of the
with the <b><tt>-sFONTPATH=</tt></b> switch, if present).
<p>
-When Ghostscript needs to find a font that isn't already loaded into
-memory, it begins by looking for <b><tt>Fontmap</tt></b>
-files in every directory on the search path: these files are catalogs of
-fonts and the files that contain them. (See
-<a href="Fonts.htm#Fontmap">the documentation of fonts</a> for details.)
-If it can't find a font in any Fontmap file in the search path (or in the
-list provided with the <b><tt>-sFONTMAP=</tt></b> switch, if
-present), it looks at the <b><tt>GS_FONTPATH</tt></b>
+At startup time, Ghostscript reads in the <b><tt>Fontmap</tt></b> files in
+every directory on the search path (or in the list provided with the
+<b><tt>-sFONTMAP=</tt></b> switch, if present): these files are catalogs of
+fonts and the files that contain them. (See <a href="Fonts.htm#Fontmap">the
+documentation of fonts</a> for details.) Then, when Ghostscript needs to
+find a font that isn't already loaded into memory, it goes through a series
+of steps.
+
+<ul>
+
+<li>
+First, it looks up the font name in the combined Fontmaps. If there is an
+entry for the desired font name, and the file named in the entry can be
+found in some directory on the general search path (defined by
+<b><tt>-I</tt></b>, <b><tt>GS_LIB</tt></b>, and
+<b><tt>GS_LIB_DEFAULT</tt></b>), and the file is loaded successfully, and
+loading it defines a font of the desired name, that is the end of the
+process.
+
+<li>
+If this process fails at any step, Ghostscript then looks for a file on the
+general search path whose name is the desired font name, with no extension.
+If such a file exists, can be loaded, and defines a font of the desired
+name, that again is the end.
+
+<li>
+If that too fails, Ghostscript looks at the <b><tt>GS_FONTPATH</tt></b>
environment variable (or the value provided with the
-<b><tt>-sFONTPATH=</tt></b> switch, if present), which is
-also a list of directories. It goes to those directories one by one
-looking for all files that appear to contain PostScript fonts; it then
-effectively adds all those files and fonts to its internal copy of the
-Fontmap.
+<b><tt>-sFONTPATH=</tt></b> switch, if present), which is also a list of
+directories. It goes to the first directory on the list, looking for all
+files that appear to contain PostScript fonts; it then adds all those files
+and fonts to the combined Fontmaps, and starts over.
+
+<li>
+If scanning the first FONTPATH directory doesn't produce a file that
+provides the desired font, it adds the next directory on the FONTPATH list,
+and so on until either the font is defined successfully or the list is
+exhausted.
+
+<li>
+Finally, if all else fails, it will try to find a substitute for the font
+from among the standard 35 fonts.
+
+</ul>
<blockquote><table cellpadding=0 cellspacing=0>
<tr><th colspan=3 bgcolor="#CCCC00"><hr><font size="+1">Differences between search path and font path</font><hr>
@@ -703,8 +768,7 @@ Fontmap.
<tr> <td><b><tt>GS_LIB</tt></b> and <b><tt>GS_LIB_DEFAULT</tt></b>
environment variables
<td>&nbsp;
- <td><b><tt>-sFONTPATH=</tt></b> and the <b><tt>GS_FONTPATH</tt></b>
- environment variable
+ <td><b><tt>GS_FONTPATH</tt></b> environment variable
<tr> <td>&nbsp;
<tr> <td valign=top>Consulted first
<td>&nbsp;
@@ -768,7 +832,7 @@ notes on systems marked with "*"):
<td valign=top>NeXT
<td>&nbsp;
<td><b><tt>/NextLibrary/Fonts/outline</tt></b>
-<tr> <td>&nbsp;
+<tr> <td>*
<td>&nbsp;
<td valign=top>SGI IRIX
<td>&nbsp;
@@ -779,12 +843,12 @@ notes on systems marked with "*"):
<td valign=top>SunOS 4.x<br>(NeWSprint only)
<td>&nbsp;
<td valign=top><b><tt>newsprint_2.5/SUNWsteNP/reloc/$BASEDIR/NeWSprint/<br>&nbsp;&nbsp;&nbsp;&nbsp;small_openwin/lib/fonts</tt></b>
-<tr> <td>*
+<tr> <td>**
<td>&nbsp;
<td valign=top>SunOS 4.x
<td>&nbsp;
<td><b><tt>/usr/openwin/lib/X11/fonts/Type1/outline</tt></b>
-<tr> <td>*
+<tr> <td>**
<td>&nbsp;
<td valign=top>Solaris 2.x
<td>&nbsp;
@@ -796,10 +860,18 @@ notes on systems marked with "*"):
<td><b><tt>SYS$COMMON:[SYSFONT.XDPS.OUTLINE]</tt></b>
</table>
-<hr align=left width="25%"><b>*</b> On Solaris systems simply setting
-<b><tt>GS_FONTPATH</tt></b> or using <b><tt>-sFONTPATH=</tt></b> may not
-work, because for some reason some versions of Ghostscript can't seem to
-find any of the Type1 fonts in
+<hr align=left width="25%">
+
+<p>
+<b>*</b> On SGI IRIX systems, you must use <b><tt>Fontmap.SGI</tt></b> in
+place of <b><tt>Fontmap</tt></b> or <b><tt>Fontmap.GS</tt></b>, because
+otherwise the entries in <b><tt>Fontmap</tt></b> will take precedence over
+the fonts in the FONTPATH directories.
+
+<p>
+<b>**</b> On Solaris systems simply setting <b><tt>GS_FONTPATH</tt></b> or
+using <b><tt>-sFONTPATH=</tt></b> may not work, because for some reason some
+versions of Ghostscript can't seem to find any of the Type1 fonts in
<b><tt>/usr/openwin/lib/X11/fonts/Type1/outline</tt></b>. (It says: "15
files, 15 scanned, 0 new fonts". We think this problem has been fixed in
Ghostscript version 6.0, but we aren't sure because we've never been able to
@@ -828,12 +900,12 @@ to find these fonts.
<p>
Adobe Acrobat comes with a set of fourteen Type 1 fonts, on Unix typically
in a directory called ...<b><tt>/Acrobat3/Fonts</tt></b>. There is no
-particular reason to use these instead of the corresponding professional
-fonts in the Ghostscript distribution, except to save about a megabyte of
-disk space, but the installation documentation explains how to do it
-<a href="Install.htm#Use_Acrobat_fonts_Unix">on Unix</a> and
-<a href="Install.htm#Use_platform_fonts_DOS">on DOS</a> (where you can also
-use Adobe Type Manager fonts).
+particular reason to use these instead of the corresponding fonts in the
+Ghostscript distribution (which are of just as good quality), except to save
+about a megabyte of disk space, but the installation documentation explains
+how to do it <a href="Install.htm#Use_Acrobat_fonts_Unix">on Unix</a> and <a
+href="Install.htm#Use_platform_fonts_DOS">on DOS</a> (where you can also use
+Adobe Type Manager fonts).
<h2><a name="Temp_files"></a>Temporary files</h2>
@@ -2284,6 +2356,7 @@ usage.
<dt><b><tt>'</tt></b><dd>contexts, create/destroy
<dt>&nbsp;&nbsp;&nbsp;<b><tt>"</tt></b><dd>contexts, every operation
<dt><b><tt>^</tt></b><dd>reference counting
+<dt><b><tt>_</tt></b><dd>high-level output
<dt><b><tt>|</tt></b><dd>(reserved for experimental code)
</dl>
@@ -2592,7 +2665,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/fonts.htm b/gs/doc/fonts.htm
index fcc230312..4f6b3facc 100644
--- a/gs/doc/fonts.htm
+++ b/gs/doc/fonts.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Fonts and font facilities supplied with Ghostscript</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: fonts.txt -->
</head>
@@ -345,6 +345,10 @@ Then to produce a sampler of a particular font XYZ, invoke
/Times-Roman DoFont
</b></tt></blockquote>
+<p>
+For more information about how Ghostscript loads fonts during execution,
+see <a href="Use.htm#Font_lookup">here</a>.
+
<hr>
<h2><a name="Platform_fonts"></a>Platform fonts</h2>
@@ -1118,7 +1122,7 @@ that we are actually distributing.
<font size=2>
-<p>Copyright &copy; 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
+<p>Copyright &copy; 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
<p>This file is part of Aladdin Ghostscript. See the
<a href="Public.htm">Aladdin Free Public License</a> (the "License") for
@@ -1126,7 +1130,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/doc/xfonts.htm b/gs/doc/xfonts.htm
index 884c31103..19f925eee 100644
--- a/gs/doc/xfonts.htm
+++ b/gs/doc/xfonts.htm
@@ -1,7 +1,7 @@
<html>
<head>
<title>Ghostscript's external font and text interface</title>
-
+<!-- $RCSfile$ $Revision$ -->
<!-- Originally: xfonts.txt -->
</head>
@@ -258,7 +258,7 @@ full details of the terms of using, copying, modifying, and redistributing
Aladdin Ghostscript.
<p>
-Ghostscript version 5.91, 30 August 1999
+Ghostscript version 5.96, 12 November 1999
</font>
diff --git a/gs/examples/alphabet.ps b/gs/examples/alphabet.ps
index 80dc25e8a..21b602991 100644
--- a/gs/examples/alphabet.ps
+++ b/gs/examples/alphabet.ps
@@ -1,3 +1,4 @@
+%!
% Check for command line parameters:
% Name, FirstSize, Ratio, NumSizes, UseOutline.
diff --git a/gs/examples/waterfal.ps b/gs/examples/waterfal.ps
index bb01323ce..7f7826195 100644
--- a/gs/examples/waterfal.ps
+++ b/gs/examples/waterfal.ps
@@ -1,3 +1,4 @@
+%!
% Copyright (C) 1992, 1993, 1996 Aladdin Enterprises. All rights reserved.
%
% This file is part of Aladdin Ghostscript.
@@ -15,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% waterfal.ps
% This file produces a 'waterfall' printout of fonts at various sizes.
diff --git a/gs/lib/Fontmap b/gs/lib/Fontmap
deleted file mode 100644
index 003342215..000000000
--- a/gs/lib/Fontmap
+++ /dev/null
@@ -1,3 +0,0 @@
-%!
-% See Fontmap.GS for the syntax of real Fontmap files.
-(Fontmap.GS) .runlibfile
diff --git a/gs/lib/Fontmap.ATB b/gs/lib/Fontmap.ATB
deleted file mode 100644
index b5e9b02f7..000000000
--- a/gs/lib/Fontmap.ATB
+++ /dev/null
@@ -1,170 +0,0 @@
-% Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
-
-% Fontmap.ATB - an alternative Fontmap for Ghostscript,
-% suitable for use with the 65 Adobe Type Manager fonts
-% supplied with Adobe Type Basics.
-
-% Before you use ATM fonts with Ghostscript, please read carefully
-% the license that accompanies the ATM fonts; neither Aladdin Enterprises
-% nor any other distributor of Ghostscript takes any responsibility for
-% any possible violations of such licenses.
-
-% The 65 Adobe Type Basics ATM fonts
-
-%disk 1
-/Bookman-Light (bkl_____.pfb) ;
-/Bookman-Demi (bkd_____.pfb) ;
-/Bookman-DemiItalic (bkdi____.pfb) ;
-/Bookman-LightItalic (bkli____.pfb) ;
-/Courier (com_____.pfb) ;
-/Courier-Bold (cob_____.pfb) ;
-/Courier-BoldOblique (cobo____.pfb) ;
-/Courier-Oblique (coo_____.pfb) ;
-/Helvetica (hv______.pfb) ;
-/Helvetica-Bold (hvb_____.pfb) ;
-/Helvetica-BoldOblique (hvbo____.pfb) ;
-/Helvetica-Oblique (hvo_____.pfb) ;
-/Helvetica-Narrow (hvn_____.pfb) ;
-/Helvetica-Narrow-Bold (hvnb____.pfb) ;
-/Helvetica-Narrow-BoldOblique (hvnbo___.pfb) ;
-/Helvetica-Narrow-Oblique (hvno____.pfb) ;
-/Palatino-Roman (por_____.pfb) ;
-/Palatino-Bold (pob_____.pfb) ;
-/Palatino-BoldItalic (pobi____.pfb) ;
-/Palatino-Italic (poi_____.pfb) ;
-/Symbol (sy______.pfb) ;
-/Times-Roman (tir_____.pfb) ;
-/Times-Bold (tib_____.pfb) ;
-/Times-BoldItalic (tibi____.pfb) ;
-/Times-Italic (tii_____.pfb) ;
-
-% disk2
-/AGaramond-Regular (gdrg____.pfb) ;
-/AGaramond-Italic (gdi_____.pfb) ;
-/AGaramond-Bold (gdb_____.pfb) ;
-/AGaramond-BoldItalic (gdbi____.pfb) ;
-/Americana (am______.pfb) ;
-/Americana-ExtraBold (ameb____.pfb) ;
-/AvantGarde-Book (agw_____.pfb) ;
-/AvantGarde-Demi (agd_____.pfb) ;
-/AvantGarde-DemiOblique (agdo____.pfb) ;
-/AvantGarde-BookOblique (agwo____.pfb) ;
-/Carta (cr______.pfb) ;
-/Kaufmann (kf______.pfb) ;
-/Lithos-Regular (lorg____.pfb) ;
-/Lithos-Black (lobl____.pfb) ;
-/NewCenturySchlbk-Roman (ncr_____.pfb) ;
-/NewCenturySchlbk-Bold (ncb_____.pfb) ;
-/NewCenturySchlbk-BoldItalic (ncbi____.pfb) ;
-/NewCenturySchlbk-Italic (nci_____.pfb) ;
-/Parisian (pn______.pfb) ;
-/ParkAvenue (pa______.pfb) ;
-/Tekton (tkrg____.pfb) ;
-/Tekton-Bold (tkb_____.pfb) ;
-/Trajan-Bold (tjb_____.pfb) ;
-/ZapfChancery-MediumItalic (zcmi____.pfb) ;
-/ZapfDingbats (zd______.pfb) ;
-
-%disk 3
-/ACaslon-Regular (awrg____.pfb) ;
-/ACaslon-Semibold (awsb____.pfb) ;
-/ACaslon-SemiboldItalic (awsbi___.pfb) ;
-/ACaslon-Italic (awi_____.pfb) ;
-/Barmeno-Regular (bfrg____.pfb) ;
-/Barmeno-Medium (bfm_____.pfb) ;
-/Barmeno-Bold (bfb_____.pfb) ;
-/Barmeno-ExtraBold (bfeb____.pfb) ;
-/Blackoak (bo______.pfb) ;
-/Formata-Regular (fmrg____.pfb) ;
-/Formata-Medium (fmm_____.pfb) ;
-/Formata-MediumItalic (fmmi____.pfb) ;
-/Formata-Italic (fmi_____.pfb) ;
-/Poetica-SuppOrnaments (pvor____.pfb) ;
-/WoodtypeOrnaments-Two (woor2___.pfb) ;
-
-
-% Fonts converted from bitmaps.
-
-/Charter-Roman (bchr.gsf) ;
-/Charter-Italic (bchri.gsf) ;
-/Charter-Bold (bchb.gsf) ;
-/Charter-BoldItalic (bchbi.gsf) ;
-
-/ZapfChancery (zcr.gsf) ;
-/ZapfChancery-Oblique (zcro.gsf) ;
-/ZapfChancery-Bold (zcb.gsf) ;
-
-% Fonts from the X11R5 distribution.
-
-/Utopia-Regular (putr.gsf) ;
-/Utopia-Italic (putri.gsf) ;
-/Utopia-Bold (putb.gsf) ;
-/Utopia-BoldItalic (putbi.gsf) ;
-
-% Shareware fonts. See FONTMAP.GS for the copyright statements.
-
-/Shareware-Cyrillic-Regular (fcyr.gsf) ;
-/Shareware-Cyrillic-Italic (fcyri.gsf) ;
-% Aliases
-/Cyrillic /Cyrillic-Regular ;
-/Cyrillic-Regular /Shareware-Cyrillic-Regular ;
-/Cyrillic-Italic /Shareware-Cyrillic-Italic ;
-
-/Calligraphic-Hiragana (fhirw.gsf) ;
-/Calligraphic-Katakana (fkarw.gsf) ;
-
-% Fonts converted from Hershey outlines.
-
-/Hershey-Gothic-English (hrge_r.gsf) 4290000 ;
-/Hershey-Gothic-English-Bold (hrge_rb.gsf) 4290030 ;
-/Hershey-Gothic-English-Oblique (hrge_ro.gsf) 4290010 ;
-
-/Hershey-Gothic-German (hrgr_r.gsf) 4291000 ;
-/Hershey-Gothic-German-Bold (hrgr_rb.gsf) 4291030 ;
-/Hershey-Gothic-German-Oblique (hrgr_ro.gsf) 4291010 ;
-
-/Hershey-Gothic-Italian (hrit_r.gsf) 4292000 ;
-/Hershey-Gothic-Italian-Bold (hrit_rb.gsf) 4292030 ;
-/Hershey-Gothic-Italian-Oblique (hrit_ro.gsf) 4292010 ;
-
-/Hershey-Greek-Complex (hrgk_c.gsf) 4293200 ;
-/Hershey-Greek-Simplex (hrgk_s.gsf) 4293100 ;
-
-/Hershey-Plain (hrpl_r.gsf) 4294000 ;
-/Hershey-Plain-Bold (hrpl_rb.gsf) 4294030 ;
-/Hershey-Plain-Oblique (hrpl_ro.gsf) 4294010 ;
-/Hershey-Plain-Simplex (hrpl_s.gsf) 4294100 ;
-/Hershey-Plain-Simplex-Bold (hrpl_sb.gsf) 4294130 ;
-/Hershey-Plain-Simplex-Bold-Oblique (hrpl_sbo.gsf) 4294140 ;
-/Hershey-Plain-Simplex-Oblique (hrpl_so.gsf) 4294110 ;
-/Hershey-Plain-Triplex (hrpl_t.gsf) 4294300 ;
-/Hershey-Plain-Triplex-Italic (hrpl_ti.gsf) 4294320 ;
-/Hershey-Plain-Triplex-Bold (hrpl_tb.gsf) 4294330 ;
-/Hershey-Plain-Triplex-Bold-Italic (hrpl_tbi.gsf) 4294350 ;
-
-/Hershey-Script-Complex (hrsc_c.gsf) 4295200 ;
-/Hershey-Script-Complex-Bold (hrsc_cb.gsf) 4295230 ;
-/Hershey-Script-Complex-Oblique (hrsc_co.gsf) 4295210 ;
-/Hershey-Script-Simplex (hrsc_s.gsf) 4295100 ;
-/Hershey-Script-Simplex-Bold (hrsc_sb.gsf) 4295130 ;
-/Hershey-Script-Simplex-Oblique (hrsc_so.gsf) 4295110 ;
-
-% This font, and only this font among the Hershey fonts, uses
-% the SymbolEncoding.
-/Hershey-Symbol (hrsy_r.gsf) 4296000 ;
diff --git a/gs/lib/Fontmap.ATM b/gs/lib/Fontmap.ATM
deleted file mode 100644
index 7849219dd..000000000
--- a/gs/lib/Fontmap.ATM
+++ /dev/null
@@ -1,187 +0,0 @@
-% Copyright (C) 1990, 1992, 1994, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
-
-% Fontmap.ATM - an alternative Fontmap for Ghostscript,
-% suitable for use with Adobe Type Manager fonts.
-
-% Before you use ATM fonts with Ghostscript, please read carefully
-% the license that accompanies the ATM fonts; neither Aladdin Enterprises
-% nor any other distributor of Ghostscript takes any responsibility for
-% any possible violations of such licenses.
-
-%
-%
-% Fonts contributed by:
-% URW++ Design and Development Incorporated
-% Poppenbuetteler Bogen 29A
-% D-22399 Hamburg
-% Germany
-% tel. +49 (40) 60 60 50
-% fax +49 (40) 60 60 51 11
-% http://www.urwpp.de
-% for distribution under the GNU License and Aladdin Free Public License.
-% See the notice at the head of this Fontmap file for licensing terms.
-% Each of these fonts is individually covered by the license:
-% for licensing purposes, they are not "part of" any larger entity.
-% The following notice applies to these fonts:
-%
-% Copyright URW Software, Copyright 1994 by URW.
-%
-
-% Actual fonts
-
-/URWBookmanL-DemiBold (b018015l.pfb) ;
-/URWBookmanL-DemiBoldItal (b018035l.pfb) ;
-/URWBookmanL-Ligh (b018012l.pfb) ;
-/URWBookmanL-LighItal (b018032l.pfb) ;
-
-/NimbusMonL-Regu (n022003l.pfb) ;
-/NimbusMonL-ReguObli (n022023l.pfb) ;
-/NimbusMonL-Bold (n022004l.pfb) ;
-/NimbusMonL-BoldObli (n022024l.pfb) ;
-
-/URWGothicL-Book (a010013l.pfb) ;
-/URWGothicL-BookObli (a010033l.pfb) ;
-/URWGothicL-Demi (a010015l.pfb) ;
-/URWGothicL-DemiObli (a010035l.pfb) ;
-
-/NimbusSanL-Regu (n019003l.pfb) ;
-/NimbusSanL-ReguItal (n019023l.pfb) ;
-/NimbusSanL-Bold (n019004l.pfb) ;
-/NimbusSanL-BoldItal (n019024l.pfb) ;
-
-/NimbusSanL-ReguCond (n019043l.pfb) ;
-/NimbusSanL-ReguCondItal (n019063l.pfb) ;
-/NimbusSanL-BoldCond (n019044l.pfb) ;
-/NimbusSanL-BoldCondItal (n019064l.pfb) ;
-
-/URWPalladioL-Roma (p052003l.pfb) ;
-/URWPalladioL-Ital (p052023l.pfb) ;
-/URWPalladioL-Bold (p052004l.pfb) ;
-/URWPalladioL-BoldItal (p052024l.pfb) ;
-
-/CenturySchL-Roma (c059013l.pfb) ;
-/CenturySchL-Ital (c059033l.pfb) ;
-/CenturySchL-Bold (c059016l.pfb) ;
-/CenturySchL-BoldItal (c059036l.pfb) ;
-
-/NimbusRomNo9L-Regu (n021003l.pfb) ;
-/NimbusRomNo9L-ReguItal (n021023l.pfb) ;
-/NimbusRomNo9L-Medi (n021004l.pfb) ;
-/NimbusRomNo9L-MediItal (n021024l.pfb) ;
-
-/StandardSymL (s050000l.pfb) ;
-
-/URWChanceryL-MediItal (z003034l.pfb) ;
-
-/Dingbats (d050000l.pfb) ;
-
-% Aliases
-
-/Bookman-Demi /URWBookmanL-DemiBold ;
-/Bookman-DemiItalic /URWBookmanL-DemiBoldItal ;
-/Bookman-Light /URWBookmanL-Ligh ;
-/Bookman-LightItalic /URWBookmanL-LighItal ;
-
-/Courier /NimbusMonL-Regu ;
-/Courier-Oblique /NimbusMonL-ReguObli ;
-/Courier-Bold /NimbusMonL-Bold ;
-/Courier-BoldOblique /NimbusMonL-BoldObli ;
-
-/AvantGarde-Book /URWGothicL-Book ;
-/AvantGarde-BookOblique /URWGothicL-BookObli ;
-/AvantGarde-Demi /URWGothicL-Demi ;
-/AvantGarde-DemiOblique /URWGothicL-DemiObli ;
-
-/Helvetica /NimbusSanL-Regu ;
-/Helvetica-Oblique /NimbusSanL-ReguItal ;
-/Helvetica-Bold /NimbusSanL-Bold ;
-/Helvetica-BoldOblique /NimbusSanL-BoldItal ;
-
-/Helvetica-Narrow /NimbusSanL-ReguCond ;
-/Helvetica-Narrow-Oblique /NimbusSanL-ReguCondItal ;
-/Helvetica-Narrow-Bold /NimbusSanL-BoldCond ;
-/Helvetica-Narrow-BoldOblique /NimbusSanL-BoldCondItal ;
-
-/Palatino-Roman /URWPalladioL-Roma ;
-/Palatino-Italic /URWPalladioL-Ital ;
-/Palatino-Bold /URWPalladioL-Bold ;
-/Palatino-BoldItalic /URWPalladioL-BoldItal ;
-
-/NewCenturySchlbk-Roman /CenturySchL-Roma ;
-/NewCenturySchlbk-Italic /CenturySchL-Ital ;
-/NewCenturySchlbk-Bold /CenturySchL-Bold ;
-/NewCenturySchlbk-BoldItalic /CenturySchL-BoldItal ;
-
-/Times-Roman /NimbusRomNo9L-Regu ;
-/Times-Italic /NimbusRomNo9L-ReguItal ;
-/Times-Bold /NimbusRomNo9L-Medi ;
-/Times-BoldItalic /NimbusRomNo9L-MediItal ;
-
-/Symbol /StandardSymL ;
-
-/ZapfChancery-MediumItalic /URWChanceryL-MediItal ;
-
-/ZapfDingbats /Dingbats ;
-
-
-% ATM fonts.
-
-/Courier (com_____.pfb) ;
-/Courier-Oblique (coo_____.pfb) ;
-/Courier-Bold (cob_____.pfb) ;
-/Courier-BoldOblique (cobo____.pfb) ;
-
-/Helvetica (hv______.pfb) ;
-/Helvetica-Oblique (hvo_____.pfb) ;
-/Helvetica-Bold (hvb_____.pfb) ;
-/Helvetica-BoldOblique (hvbo____.pfb) ;
-
-/Symbol (sy______.pfb) ;
-
-/Times-Roman (tir_____.pfb) ;
-/Times-Italic (tii_____.pfb) ;
-/Times-Bold (tib_____.pfb) ;
-/Times-BoldItalic (tibi____.pfb) ;
-
-
-% More fonts from Adobe Type Manager for MS Windows.
-
-/TektonMM (zjrg____.pfb) ;
-
-/Boulevard (qtrg____.pfb) ;
-/Anna (iarg____.pfb) ;
-
-/PopplLaudatio-Regular (pyrg____.pfb) ;
-/PopplLaudatio-Medium (pym_____.pfb) ;
-/PopplLaudatio-Italic (pyi_____.pfb) ;
-/PopplLaudatio-MediumItalic (pymi____.pfb) ;
-
-/Boton-Regular (tnr_____.pfb) ;
-/Boton-Medium (tnm_____.pfb) ;
-/Boton-Italic (tni_____.pfb) ;
-/Boton-MediumItalic (tnmi____.pfb) ;
-
-/BaskervilleBE-Regular (virg____.pfb) ;
-/BaskervilleBE-Medium (vim_____.pfb) ;
-/BaskervilleBE-Italic (vii_____.pfb) ;
-/BaskervilleBE-MediumItalic (vimi____.pfb) ;
-
-/Giddyup (wg______.pfb) ;
-/Giddyup-Thangs (wgtha___.pfb) ;
-
diff --git a/gs/lib/Fontmap.GS b/gs/lib/Fontmap.GS
deleted file mode 100644
index 39b48f9e8..000000000
--- a/gs/lib/Fontmap.GS
+++ /dev/null
@@ -1,405 +0,0 @@
-% Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
-
-% Fontmap - standard font catalog for Ghostscript.
-
-% ----------------------------------------------------------------
-
-% This file is a catalog of fonts known to Ghostscript. Any font
-% that is to be loaded automatically when named must be in this catalog,
-% except for fonts that Ghostscript finds automatically in directories
-% named in the GS_FONTPATH environment variable.
-
-% Each font has an entry consisting of three items:
-%
-% - The name by which the font is known inside Ghostscript
-% (a Ghostscript name preceded by a `/', or a string enclosed
-% in parentheses). This is used to find the file from which
-% a font of a given name should be loaded.
-%
-% - Information depending on whether this is a real font or a
-% font alias:
-%
-% - For real fonts, the name of the Ghostscript font
-% file (a Ghostscript string, enclosed in parentheses).
-% The filename should include the extension, which (by
-% convention) is `.gsf'. `.pfa' and `.pfb' files are
-% also usable as fonts for Ghostscript.
-%
-% - For font aliases, the name of the font which should
-% be used when this one is requested, preceded by a
-% `/'. See the entry for Charter below for an example.
-% Note that an alias name cannot be enclosed in parentheses.
-%
-% - At least one space or tab, and a terminating semicolon.
-
-% Because of limitations in the MS-DOS environment, Ghostscript font
-% file names must be no more than 8 characters long, must consist only
-% of LOWER CASE letters, digits, and underscores, and must start with a
-% letter. Font names, on the other hand, need only obey the syntax of
-% names in the Ghostscript language, which is much more liberal.
-
-% The following table is actually a Ghostscript data structure.
-% If you add new entries, be sure to copy the punctuation accurately;
-% in particular, you must leave at least one space or tab between each
-% field in the entry. Also, please read fonts.doc for important information
-% about font names.
-
-% Note that .pfa and .pfb fonts are compatible with Adobe Type Manager
-% and other programs that don't include full PostScript interpreters,
-% as well as with PostScript interpreters; .gsf fonts are compatible with
-% PostScript interpreters, but not with ATM or similar programs.
-
-%
-%
-% Fonts contributed by:
-% URW++ Design and Development Incorporated
-% Poppenbuetteler Bogen 29A
-% D-22399 Hamburg
-% Germany
-% tel. +49 (40) 60 60 50
-% fax +49 (40) 60 60 51 11
-% http://www.urwpp.de
-% for distribution under the GNU License and Aladdin Free Public License.
-% See the notice at the head of this Fontmap file for licensing terms.
-% Each of these fonts is individually covered by the license:
-% for licensing purposes, they are not "part of" any larger entity.
-% The following notice applies to these fonts:
-%
-% Copyright URW Software, Copyright 1994 by URW.
-%
-
-% Actual fonts
-
-/URWBookmanL-DemiBold (b018015l.pfb) ;
-/URWBookmanL-DemiBoldItal (b018035l.pfb) ;
-/URWBookmanL-Ligh (b018012l.pfb) ;
-/URWBookmanL-LighItal (b018032l.pfb) ;
-
-/NimbusMonL-Regu (n022003l.pfb) ;
-/NimbusMonL-ReguObli (n022023l.pfb) ;
-/NimbusMonL-Bold (n022004l.pfb) ;
-/NimbusMonL-BoldObli (n022024l.pfb) ;
-
-/URWGothicL-Book (a010013l.pfb) ;
-/URWGothicL-BookObli (a010033l.pfb) ;
-/URWGothicL-Demi (a010015l.pfb) ;
-/URWGothicL-DemiObli (a010035l.pfb) ;
-
-/NimbusSanL-Regu (n019003l.pfb) ;
-/NimbusSanL-ReguItal (n019023l.pfb) ;
-/NimbusSanL-Bold (n019004l.pfb) ;
-/NimbusSanL-BoldItal (n019024l.pfb) ;
-
-/NimbusSanL-ReguCond (n019043l.pfb) ;
-/NimbusSanL-ReguCondItal (n019063l.pfb) ;
-/NimbusSanL-BoldCond (n019044l.pfb) ;
-/NimbusSanL-BoldCondItal (n019064l.pfb) ;
-
-/URWPalladioL-Roma (p052003l.pfb) ;
-/URWPalladioL-Ital (p052023l.pfb) ;
-/URWPalladioL-Bold (p052004l.pfb) ;
-/URWPalladioL-BoldItal (p052024l.pfb) ;
-
-/CenturySchL-Roma (c059013l.pfb) ;
-/CenturySchL-Ital (c059033l.pfb) ;
-/CenturySchL-Bold (c059016l.pfb) ;
-/CenturySchL-BoldItal (c059036l.pfb) ;
-
-/NimbusRomNo9L-Regu (n021003l.pfb) ;
-/NimbusRomNo9L-ReguItal (n021023l.pfb) ;
-/NimbusRomNo9L-Medi (n021004l.pfb) ;
-/NimbusRomNo9L-MediItal (n021024l.pfb) ;
-
-/StandardSymL (s050000l.pfb) ;
-
-/URWChanceryL-MediItal (z003034l.pfb) ;
-
-/Dingbats (d050000l.pfb) ;
-
-% Aliases
-
-/Bookman-Demi /URWBookmanL-DemiBold ;
-/Bookman-DemiItalic /URWBookmanL-DemiBoldItal ;
-/Bookman-Light /URWBookmanL-Ligh ;
-/Bookman-LightItalic /URWBookmanL-LighItal ;
-
-/Courier /NimbusMonL-Regu ;
-/Courier-Oblique /NimbusMonL-ReguObli ;
-/Courier-Bold /NimbusMonL-Bold ;
-/Courier-BoldOblique /NimbusMonL-BoldObli ;
-
-/AvantGarde-Book /URWGothicL-Book ;
-/AvantGarde-BookOblique /URWGothicL-BookObli ;
-/AvantGarde-Demi /URWGothicL-Demi ;
-/AvantGarde-DemiOblique /URWGothicL-DemiObli ;
-
-/Helvetica /NimbusSanL-Regu ;
-/Helvetica-Oblique /NimbusSanL-ReguItal ;
-/Helvetica-Bold /NimbusSanL-Bold ;
-/Helvetica-BoldOblique /NimbusSanL-BoldItal ;
-
-/Helvetica-Narrow /NimbusSanL-ReguCond ;
-/Helvetica-Narrow-Oblique /NimbusSanL-ReguCondItal ;
-/Helvetica-Narrow-Bold /NimbusSanL-BoldCond ;
-/Helvetica-Narrow-BoldOblique /NimbusSanL-BoldCondItal ;
-
-/Palatino-Roman /URWPalladioL-Roma ;
-/Palatino-Italic /URWPalladioL-Ital ;
-/Palatino-Bold /URWPalladioL-Bold ;
-/Palatino-BoldItalic /URWPalladioL-BoldItal ;
-
-/NewCenturySchlbk-Roman /CenturySchL-Roma ;
-/NewCenturySchlbk-Italic /CenturySchL-Ital ;
-/NewCenturySchlbk-Bold /CenturySchL-Bold ;
-/NewCenturySchlbk-BoldItalic /CenturySchL-BoldItal ;
-
-/Times-Roman /NimbusRomNo9L-Regu ;
-/Times-Italic /NimbusRomNo9L-ReguItal ;
-/Times-Bold /NimbusRomNo9L-Medi ;
-/Times-BoldItalic /NimbusRomNo9L-MediItal ;
-
-/Symbol /StandardSymL ;
-
-/ZapfChancery-MediumItalic /URWChanceryL-MediItal ;
-
-/ZapfDingbats /Dingbats ;
-
-%
-%
-% Type 1 fonts contributed to the X11R5 distribution.
-%
-
-% The following notice accompanied the Charter fonts.
-%
-% (c) Copyright 1989-1992, Bitstream Inc., Cambridge, MA.
-%
-% You are hereby granted permission under all Bitstream propriety rights
-% to use, copy, modify, sublicense, sell, and redistribute the 4 Bitstream
-% Charter (r) Type 1 outline fonts and the 4 Courier Type 1 outline fonts
-% for any purpose and without restriction; provided, that this notice is
-% left intact on all copies of such fonts and that Bitstream's trademark
-% is acknowledged as shown below on all unmodified copies of the 4 Charter
-% Type 1 fonts.
-%
-% BITSTREAM CHARTER is a registered trademark of Bitstream Inc.
-
-/CharterBT-Roman (bchr.pfa) ;
-/CharterBT-Italic (bchri.pfa) ;
-/CharterBT-Bold (bchb.pfa) ;
-/CharterBT-BoldItalic (bchbi.pfa) ;
-
-% Aliases
-
-/Charter-Roman /CharterBT-Roman ;
-/Charter-Italic /CharterBT-Italic ;
-/Charter-Bold /CharterBT-Bold ;
-/Charter-BoldItalic /CharterBT-BoldItalic ;
-
-% The following notice accompanied the Utopia font:
-%
-% Permission to use, reproduce, display and distribute the listed
-% typefaces is hereby granted, provided that the Adobe Copyright notice
-% appears in all whole and partial copies of the software and that the
-% following trademark symbol and attribution appear in all unmodified
-% copies of the software:
-%
-% Copyright (c) 1989 Adobe Systems Incorporated
-% Utopia (R)
-% Utopia is a registered trademark of Adobe Systems Incorporated
-%
-% The Adobe typefaces (Type 1 font program, bitmaps and Adobe Font
-% Metric files) donated are:
-%
-% Utopia Regular
-% Utopia Italic
-% Utopia Bold
-% Utopia Bold Italic
-
-/Utopia-Regular (putr.pfa) ;
-/Utopia-Italic (putri.pfa) ;
-/Utopia-Bold (putb.pfa) ;
-/Utopia-BoldItalic (putbi.pfa) ;
-
-%
-%
-% Fonts contributed by URW GmbH for distribution under the GNU License.
-% The following notice accompanied these fonts:
-%
-% U004006T URW Grotesk 2031 Bold PostScript Type 1 Font Program
-% U003043T URW Antiqua 2051 Regular Condensed PostScript Type 1 Font Program
-%
-% Copyright (c) 1992 URW GmbH, Hamburg, Germany
-%
-% This program is free software; you can redistribute it and/or modify
-% it under the terms of the GNU General Public License as published by
-% the Free Software Foundation; either version 2 of the License, or
-% (at your option) later version.
-%
-% This program is distributed in the hope that it will be useful,
-% but WITHOUT ANY WARRANTY; wihtout even the implied warranty of
-% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-% See the GNU General Public License for more details.
-%
-% You should have received a copy of the GNU General Public License
-% along with this program; if not, write to the Free Software
-% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 U.S.A.
-%
-% Address:
-% URW GmbH
-% PC Support
-% Harksheider Strasse 102
-% 2000 Hamburg 65
-% Germany
-% Phone: +49 40 60 60 50 (Reception)
-% Phone: +49 40 60 60 52 30 (PC Support)
-% Fax : +49 40 60 60 52 52
-%
-
-/URWAntiquaT-RegularCondensed (u003043t.gsf) ;
-/URWGroteskT-Bold (u004006t.gsf) ;
-
-%
-%
-% Shareware Kana fonts. These are subject to the following notice:
-%
-% These copyrighted fonts were developed by Kevin Hartig. Permission is
-% granted to freely distribute them in entirety along with this statement.
-% This is shareware. If you decide to use these fonts please contribute
-% $10 US to help support further freeware and shareware software development.
-% Questions and comments may be sent to:
-%
-% hartig@fsl.noaa.gov
-% khartig@nyx.cs.du.edu
-%
-% Kevin Hartig
-% 1126 Collyer Street
-% Longmont, CO 80501 USA
-%
-% copyright 1993.
-
-% Hiragana and Katakana fonts. The character names are inappropriate,
-% and the encoding is probably not related to any known standard.
-
-/Calligraphic-Hiragana (fhirw.gsf) ;
-/Calligraphic-Katakana (fkarw.gsf) ;
-
-%
-%
-% Public-domain fonts. These have no copyright, and are of unknown quality.
-
-% Cyrillic fonts. The character names are inappropriate,
-% and the encoding is probably not related to any known standard.
-
-/Shareware-Cyrillic-Regular (fcyr.gsf) ;
-/Shareware-Cyrillic-Italic (fcyri.gsf) ;
-
-% Aliases
-/Cyrillic /Cyrillic-Regular ;
-/Cyrillic-Regular /Shareware-Cyrillic-Regular ;
-/Cyrillic-Italic /Shareware-Cyrillic-Italic ;
-
-%
-%
-% Fonts converted from Hershey outlines. These are constructed and
-% maintained manually. These are also in the public domain.
-%
-% The suggested UniqueID's and filenames are constructed differently for
-% these than for the ones above, because of the strange way that the Hershey
-% fonts were constructed. The scheme for these looks like:
-%
-% 42TTXY0
-%
-% TT = typeface, X = ``class'', Y = variation
-%
-% The typeface names and numbers are listed in fonts.mak.
-%
-% class:
-% 0 = normal = r
-% 1 = simplex = s
-% 2 = complex = c
-% 3 = triplex = t
-% 4 = duplex = d
-%
-% variation:
-% 0 = normal (omitted)
-% 1 = oblique = o
-% 2 = italic = i
-% 3 = bold = b
-% 4 = bold oblique = bo
-% 5 = bold italic = bi
-%
-
-% Fonts created by Thomas Wolff <wolff@inf.fu-berlin.de>, by adding
-% accents, accented characters, and various other non-alphabetics
-% to the original Hershey fonts. These are "freeware", not to be sold.
-
-/Hershey-Gothic-English (hrger.pfa) ; % 5066533
-/Hershey-Gothic-German (hrgrr.pfa) ;
-/Hershey-Gothic-Italian (hritr.pfa) ;
-
-/Hershey-Plain-Duplex (hrpld.pfa) ;
-/Hershey-Plain-Duplex-Italic (hrpldi.pfa) ;
-/Hershey-Plain-Triplex (hrplt.pfa) ;
-/Hershey-Plain-Triplex-Italic (hrplti.pfa) ;
-
-/Hershey-Script-Complex (hrscc.pfa) ;
-/Hershey-Script-Simplex (hrscs.pfa) ; % 5066541
-
-% Fonts created algorithmically from the above.
-
-/Hershey-Gothic-English-Bold (hrgerb.gsf) ; % 5066542
-/Hershey-Gothic-English-Oblique (hrgero.gsf) ;
-/Hershey-Gothic-English-SemiBold (hrgerd.gsf) ;
-/Hershey-Gothic-German-Bold (hrgrrb.gsf) ;
-/Hershey-Gothic-German-Oblique (hrgrro.gsf) ;
-/Hershey-Gothic-Italian-Bold (hritrb.gsf) ;
-/Hershey-Gothic-Italian-Oblique (hritro.gsf) ;
-
-/Hershey-Plain-Duplex-Bold (hrpldb.gsf) ;
-/Hershey-Plain-Duplex-Bold-Italic (hrpldbi.gsf) ;
-/Hershey-Plain-Triplex-Bold (hrpltb.gsf) ;
-/Hershey-Plain-Triplex-Bold-Italic (hrpltbi.gsf) ;
-
-/Hershey-Script-Complex-Bold (hrsccb.gsf) ;
-/Hershey-Script-Complex-Oblique (hrscco.gsf) ;
-/Hershey-Script-Simplex-Bold (hrscsb.gsf) ;
-/Hershey-Script-Simplex-Oblique (hrscso.gsf) ; % 5066556
-
-% Fonts consisting only of characters from the original Hershey
-% distribution. These are Type 3 fonts.
-
-/Hershey-Greek-Complex (hrgkc.gsf) ; % 5066557
-/Hershey-Greek-Simplex (hrgks.gsf) ;
-
-/Hershey-Plain (hrplr.gsf) ;
-/Hershey-Plain-Simplex (hrpls.gsf) ; % 5066560
-
-% Fonts created algorithmically from the above.
-
-/Hershey-Plain-Bold (hrplrb.gsf) ; % 5066561
-/Hershey-Plain-Bold-Oblique (hrplrbo.gsf) ;
-/Hershey-Plain-Oblique (hrplro.gsf) ;
-/Hershey-Plain-Simplex-Bold (hrplsb.gsf) ;
-/Hershey-Plain-Simplex-Bold-Oblique (hrplsbo.gsf) ;
-/Hershey-Plain-Simplex-Oblique (hrplso.gsf) ; % 5066566
-
-% This font, and only this font among the Hershey fonts, uses
-% the SymbolEncoding.
-
-/Hershey-Symbol (hrsyr.gsf) ; % 5066567
diff --git a/gs/lib/Fontmap.OS2 b/gs/lib/Fontmap.OS2
deleted file mode 100644
index 6c89f82ba..000000000
--- a/gs/lib/Fontmap.OS2
+++ /dev/null
@@ -1,216 +0,0 @@
-% Copyright (C) 1990, 1992, 1993, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
-
-% fontmap.os2 aka Fontmap.OS2 - OS/2 font catalog for Ghostscript.
-
-% ----------------------------------------------------------------
-
-% This file is a catalog of fonts known to Ghostscript. Any font
-% that is to be loaded automatically when named must be in this catalog,
-% except for fonts that Ghostscript finds automatically in directories
-% named in the GS_FONTPATH environment variable.
-
-% Each font has an entry consisting of three items:
-%
-% - The name by which the font is known inside Ghostscript
-% (a Ghostscript name preceded by a `/', or a string enclosed
-% in parentheses). This is used to find the file from which
-% a font of a given name should be loaded.
-%
-% - Information depending on whether this is a real font or a
-% font alias:
-%
-% - For real fonts, the name of the Ghostscript font
-% file (a Ghostscript string, enclosed in parentheses).
-% The filename should include the extension, which (by
-% convention) is `.gsf'. `.pfa' and `.pfb' files are
-% also usable as fonts for Ghostscript.
-%
-% - For font aliases, the name of the font which should
-% be used when this one is requested, preceded by a
-% `/'. See the entry for Charter below for an example.
-%
-% - A terminating semicolon.
-
-% Because of limitations in the MS-DOS environment, Ghostscript font
-% file names must be no more than 8 characters long, must consist only
-% of LOWER CASE letters, digits, and underscores, and must start with a
-% letter. Font names, on the other hand, need only obey the syntax of
-% names in the Ghostscript language, which is much more liberal.
-
-% Most of the Ghostscript fonts were created automatically from freely
-% available bitmaps. There is a makefile (fonts.mak) that specifies
-% how this conversion was done. fonts.mak also specifies, for each such
-% converted font, its uniqueID (an integer used to identify distinct fonts
-% within the Ghostscript font machinery), and its encoding (the mapping
-% from character codes in a string to character names). For more detailed
-% information, read fonts.mak.
-
-% The following table is actually a Ghostscript data structure.
-% If you add new entries, be sure to copy the punctuation accurately;
-% in particular, you must leave at least one space or tab between each
-% field in the entry. Also, please read fonts.doc for important information
-% about font names.
-
-
-%
-%
-% Fonts contributed by:
-% URW++ Design and Development Incorporated
-% Poppenbuetteler Bogen 29A
-% D-22399 Hamburg
-% Germany
-% tel. +49 (40) 60 60 50
-% fax +49 (40) 60 60 51 11
-% http://www.urwpp.de
-% for distribution under the GNU License and Aladdin Free Public License.
-% See the notice at the head of this Fontmap file for licensing terms.
-% Each of these fonts is individually covered by the license:
-% for licensing purposes, they are not "part of" any larger entity.
-% The following notice applies to these fonts:
-%
-% Copyright URW Software, Copyright 1994 by URW.
-%
-
-% Actual fonts
-
-/URWBookmanL-DemiBold (b018015l.pfb) ;
-/URWBookmanL-DemiBoldItal (b018035l.pfb) ;
-/URWBookmanL-Ligh (b018012l.pfb) ;
-/URWBookmanL-LighItal (b018032l.pfb) ;
-
-/NimbusMonL-Regu (n022003l.pfb) ;
-/NimbusMonL-ReguObli (n022023l.pfb) ;
-/NimbusMonL-Bold (n022004l.pfb) ;
-/NimbusMonL-BoldObli (n022024l.pfb) ;
-
-/URWGothicL-Book (a010013l.pfb) ;
-/URWGothicL-BookObli (a010033l.pfb) ;
-/URWGothicL-Demi (a010015l.pfb) ;
-/URWGothicL-DemiObli (a010035l.pfb) ;
-
-/NimbusSanL-Regu (n019003l.pfb) ;
-/NimbusSanL-ReguItal (n019023l.pfb) ;
-/NimbusSanL-Bold (n019004l.pfb) ;
-/NimbusSanL-BoldItal (n019024l.pfb) ;
-
-/NimbusSanL-ReguCond (n019043l.pfb) ;
-/NimbusSanL-ReguCondItal (n019063l.pfb) ;
-/NimbusSanL-BoldCond (n019044l.pfb) ;
-/NimbusSanL-BoldCondItal (n019064l.pfb) ;
-
-/URWPalladioL-Roma (p052003l.pfb) ;
-/URWPalladioL-Ital (p052023l.pfb) ;
-/URWPalladioL-Bold (p052004l.pfb) ;
-/URWPalladioL-BoldItal (p052024l.pfb) ;
-
-/CenturySchL-Roma (c059013l.pfb) ;
-/CenturySchL-Ital (c059033l.pfb) ;
-/CenturySchL-Bold (c059016l.pfb) ;
-/CenturySchL-BoldItal (c059036l.pfb) ;
-
-/NimbusRomNo9L-Regu (n021003l.pfb) ;
-/NimbusRomNo9L-ReguItal (n021023l.pfb) ;
-/NimbusRomNo9L-Medi (n021004l.pfb) ;
-/NimbusRomNo9L-MediItal (n021024l.pfb) ;
-
-/StandardSymL (s050000l.pfb) ;
-
-/URWChanceryL-MediItal (z003034l.pfb) ;
-
-/Dingbats (d050000l.pfb) ;
-
-% Aliases
-
-/Bookman-Demi /URWBookmanL-DemiBold ;
-/Bookman-DemiItalic /URWBookmanL-DemiBoldItal ;
-/Bookman-Light /URWBookmanL-Ligh ;
-/Bookman-LightItalic /URWBookmanL-LighItal ;
-
-/Courier /NimbusMonL-Regu ;
-/Courier-Oblique /NimbusMonL-ReguObli ;
-/Courier-Bold /NimbusMonL-Bold ;
-/Courier-BoldOblique /NimbusMonL-BoldObli ;
-
-/AvantGarde-Book /URWGothicL-Book ;
-/AvantGarde-BookOblique /URWGothicL-BookObli ;
-/AvantGarde-Demi /URWGothicL-Demi ;
-/AvantGarde-DemiOblique /URWGothicL-DemiObli ;
-
-/Helvetica /NimbusSanL-Regu ;
-/Helvetica-Oblique /NimbusSanL-ReguItal ;
-/Helvetica-Bold /NimbusSanL-Bold ;
-/Helvetica-BoldOblique /NimbusSanL-BoldItal ;
-
-/Helvetica-Narrow /NimbusSanL-ReguCond ;
-/Helvetica-Narrow-Oblique /NimbusSanL-ReguCondItal ;
-/Helvetica-Narrow-Bold /NimbusSanL-BoldCond ;
-/Helvetica-Narrow-BoldOblique /NimbusSanL-BoldCondItal ;
-
-/Palatino-Roman /URWPalladioL-Roma ;
-/Palatino-Italic /URWPalladioL-Ital ;
-/Palatino-Bold /URWPalladioL-Bold ;
-/Palatino-BoldItalic /URWPalladioL-BoldItal ;
-
-/NewCenturySchlbk-Roman /CenturySchL-Roma ;
-/NewCenturySchlbk-Italic /CenturySchL-Ital ;
-/NewCenturySchlbk-Bold /CenturySchL-Bold ;
-/NewCenturySchlbk-BoldItalic /CenturySchL-BoldItal ;
-
-/Times-Roman /NimbusRomNo9L-Regu ;
-/Times-Italic /NimbusRomNo9L-ReguItal ;
-/Times-Bold /NimbusRomNo9L-Medi ;
-/Times-BoldItalic /NimbusRomNo9L-MediItal ;
-
-/Symbol /StandardSymL ;
-
-/ZapfChancery-MediumItalic /URWChanceryL-MediItal ;
-
-/ZapfDingbats /Dingbats ;
-
-
-%
-% ATM fonts that come with OS/2.
-
-/Courier (cour.pfb) ;
-/Courier-Oblique /Courier-Italic ;
-/Courier-Italic (couri.pfb) ;
-/Courier-Bold (courb.pfb) ;
-/Courier-BoldOblique /Courier-BoldItalic ;
-/Courier-BoldItalic (courbi.pfb) ;
-
-/Helvetica (helv.pfb) ;
-/Helvetica-Oblique /Helvetica-Italic ;
-/Helvetica-Italic (helvi.pfb) ;
-/Helvetica-Bold (helvb.pfb) ;
-/Helvetica-BoldOblique /Helvetica-BoldItalic ;
-/Helvetica-BoldItalic (helvbi.pfb) ;
-
-/Symbol /SymbolSet ;
-/SymbolSet (symb.pfb) ;
-
-/Times-Roman /TimesNewRoman ;
-/TimesNewRoman (tnr.pfb) ;
-/Times-Italic /TimesNewRoman-Italic ;
-/TimesNewRoman-Italic (tnri.pfb) ;
-/Times-Bold /TimesNewRoman-Bold ;
-/TimesNewRoman-Bold (tnrb.pfb) ;
-/Times-BoldItalic /TimesNewRoman-BoldItalic ;
-/TimesNewRoman-BoldItalic (tnrbi.pfb) ;
-
-
diff --git a/gs/lib/Fontmap.VMS b/gs/lib/Fontmap.VMS
deleted file mode 100644
index 4348b104b..000000000
--- a/gs/lib/Fontmap.VMS
+++ /dev/null
@@ -1,120 +0,0 @@
-% fontmap.vms - Ghostscript fontmap for VAX/VMS systems with DECwindows/Motif.
-%
-%Uses all the XDPS Outline fonts (Type 1 fonts) provided with Motif (with the
-%exception of Courier which already comes with GhostScript in Type 1 form).
-%
-%XDPS on VAX/VMS does not have Bookman, Palatino and ZapfChancery fonts, so
-%we still have to use the dreaded bitmaps for those. Helvetica-Narrow is also
-%missing. But then you get the LubalinGraph and Souvenir fonts which are just
-%beautiful!
-%
-%Note: this file omits the Hershey fonts (Hershey ?? YOU MUST BE JOKING)
-% but retains the Cyrillic and Kana fonts.
-
-/AvantGarde-Book
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]AVANTGARDE-BOOK.XDPS$OUTLINE) ;
-/AvantGarde-BookOblique
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]AVANTGARDE-BOOKOBLIQUE.XDPS$OUTLINE) ;
-/AvantGarde-Demi
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]AVANTGARDE-DEMI.XDPS$OUTLINE) ;
-/AvantGarde-DemiOblique
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]AVANTGARDE-DEMIOBLIQUE.XDPS$OUTLINE) ;
-/Helvetica-Bold
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]HELVETICA-BOLD.XDPS$OUTLINE) ;
-/Helvetica-BoldOblique
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]HELVETICA-BOLDOBLIQUE.XDPS$OUTLINE) ;
-/Helvetica-Oblique
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]HELVETICA-OBLIQUE.XDPS$OUTLINE) ;
-/Helvetica
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]HELVETICA.XDPS$OUTLINE) ;
-/LubalinGraph-Book
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]LUBALINGRAPH-BOOK.XDPS$OUTLINE) ;
-/LubalinGraph-BookOblique
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]LUBALINGRAPH-BOOKOBLIQUE.XDPS$OUTLINE) ;
-/LubalinGraph-Demi
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]LUBALINGRAPH-DEMI.XDPS$OUTLINE) ;
-/LubalinGraph-DemiOblique
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]LUBALINGRAPH-DEMIOBLIQUE.XDPS$OUTLINE) ;
-/NewCenturySchlbk-Roman
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]NEWCENTURYSCHLBK-ROMAN.XDPS$OUTLINE) ;
-/NewCenturySchlbk-Italic
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]NEWCENTURYSCHLBK-ITALIC.XDPS$OUTLINE) ;
-/NewCenturySchlbk-Bold
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]NEWCENTURYSCHLBK-BOLD.XDPS$OUTLINE) ;
-/NewCenturySchlbk-BoldItalic
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]NEWCENTURYSCHLBK-BOLDITALIC.XDPS$OUTLINE) ;
-/Souvenir-Light
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]SOUVENIR-LIGHT.XDPS$OUTLINE) ;
-/Souvenir-LightItalic
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]SOUVENIR-LIGHTITALIC.XDPS$OUTLINE) ;
-/Souvenir-Demi
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]SOUVENIR-DEMI.XDPS$OUTLINE) ;
-/Souvenir-DemiItalic
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]SOUVENIR-DEMIITALIC.XDPS$OUTLINE) ;
-%If you want the Apple symbol (SIC!) then remove the comment (%)
-%in front of character 240 in the following file (he he he)
-/Symbol
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]SYMBOL.XDPS$OUTLINE) ;
-/Times-Roman
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]TIMES-ROMAN.XDPS$OUTLINE) ;
-/Times-Italic
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]TIMES-ITALIC.XDPS$OUTLINE) ;
-/Times-Bold
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]TIMES-BOLD.XDPS$OUTLINE) ;
-/Times-BoldItalic
- (SYS$COMMON:[SYSFONT.XDPS.OUTLINE]TIMES-BOLDITALIC.XDPS$OUTLINE) ;
-
-% Fonts converted from bitmaps (Not in the XDPS set)
-/Bookman-Light (pbkl.gsf) ;
-/Bookman-LightItalic (pbkli.gsf) ;
-/Bookman-Demi (pbkd.gsf) ;
-/Bookman-DemiItalic (pbkdi.gsf) ;
-/Palatino-Roman (pplr.gsf) ;
-/Palatino-Italic (pplri.gsf) ;
-/Palatino-Bold (pplb.gsf) ;
-/Palatino-BoldItalic (pplbi.gsf) ;
-/ZapfChancery (zcr.gsf) ;
-/ZapfChancery-Oblique (zcro.gsf) ;
-/ZapfChancery-Bold (zcb.gsf) ;
-%MediumItalic font to Oblique aliasing
-/ZapfChancery-MediumItalic /ZapfChancery-Oblique ;
-/ZapfDingbats (pzdr.gsf) ;
-
-% BITSTREAM CHARTER is a registered trademark of Bitstream Inc.
-/CharterBT-Roman (bchr.pfa) ;
-/CharterBT-Italic (bchri.pfa) ;
-/CharterBT-Bold (bchb.pfa) ;
-/CharterBT-BoldItalic (bchbi.pfa) ;
-%Charter to CharterBT aliasing
-/Charter-Roman /CharterBT-Roman ;
-/Charter-Italic /CharterBT-Italic ;
-/Charter-Bold /CharterBT-Bold ;
-/Charter-BoldItalic /CharterBT-BoldItalic ;
-
-% IBM Courier - Copyright (c) IBM Corporation 1990, 1991
-/Courier (ncrr.pfa) ;
-/Courier-Italic (ncrri.pfa) ;
-/Courier-Bold (ncrb.pfa) ;
-/Courier-BoldItalic (ncrbi.pfa) ;
-%Oblique to Italic aliasing
-/Courier-Oblique /Courier-Italic ;
-/Courier-BoldOblique /Courier-BoldItalic ;
-
-% Utopia is a registered trademark of Adobe Systems Incorporated
-/Utopia-Regular (putr.gsf) ;
-/Utopia-Italic (putri.gsf) ;
-/Utopia-Bold (putb.gsf) ;
-/Utopia-BoldItalic (putbi.gsf) ;
-
-% Shareware fonts. These have no copyright, and are of unknown quality.
-/Shareware-Cyrillic-Regular (fcyr.gsf) ;
-/Shareware-Cyrillic-Italic (fcyri.gsf) ;
-% Aliases
-/Cyrillic /Cyrillic-Regular ;
-/Cyrillic-Regular /Shareware-Cyrillic-Regular ;
-/Cyrillic-Italic /Shareware-Cyrillic-Italic ;
-
-% Copyrighted shareware fonts.
-% See FONTMAP.GS for the full copyright statement.
-/Calligraphic-Hiragana (fhirw.gsf) ;
-/Calligraphic-Katakana (fkarw.gsf) ;
diff --git a/gs/lib/align.ps b/gs/lib/align.ps
index aa0dd4587..f63581a22 100644
--- a/gs/lib/align.ps
+++ b/gs/lib/align.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1989, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Print a page that indicates the proper settings of Margins and HWMargins
% for a given device. Requires a Level 2 system.
diff --git a/gs/lib/bdftops b/gs/lib/bdftops
index 1c8d9da3a..101e61a77 100755
--- a/gs/lib/bdftops
+++ b/gs/lib/bdftops
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -dNODISPLAY -- bdftops.ps "$@"
diff --git a/gs/lib/bdftops.bat b/gs/lib/bdftops.bat
index 7769ec491..714c06c7d 100755
--- a/gs/lib/bdftops.bat
+++ b/gs/lib/bdftops.bat
@@ -1,2 +1,2 @@
@gs -q -dNODISPLAY -- bdftops.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/bdftops.ps b/gs/lib/bdftops.ps
index a0a21c060..6e892c5ef 100644
--- a/gs/lib/bdftops.ps
+++ b/gs/lib/bdftops.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1990, 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% bdftops.ps
% Convert a BDF file (possibly with (an) associated AFM file(s))
% to a PostScript Type 1 font (without eexec encryption).
diff --git a/gs/lib/caption.ps b/gs/lib/caption.ps
index 4d1f4260c..cb639c8d4 100644
--- a/gs/lib/caption.ps
+++ b/gs/lib/caption.ps
@@ -16,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% Add a "caption" to the bottom of each page.
/captionsize 20 def
/caption
diff --git a/gs/lib/cid2code.ps b/gs/lib/cid2code.ps
index fc851536b..9503c3f63 100644
--- a/gs/lib/cid2code.ps
+++ b/gs/lib/cid2code.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Construct an inverse map from CIDs to codes.
% Create an inverse map from CIDs to code values.
diff --git a/gs/lib/docie.ps b/gs/lib/docie.ps
index 8f02fd37a..12bede14b 100644
--- a/gs/lib/docie.ps
+++ b/gs/lib/docie.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% docie.ps
% Emulate CIE algorithms in PostScript.
diff --git a/gs/lib/dvipdf b/gs/lib/dvipdf
index f60ff5c42..155f799be 100755
--- a/gs/lib/dvipdf
+++ b/gs/lib/dvipdf
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Convert DVI to PDF.
#
# Please contact Andrew Ford <A.Ford@ford-mason.co.uk> with any questions
diff --git a/gs/lib/errpage.ps b/gs/lib/errpage.ps
index a1034d2cb..67c2a2915 100644
--- a/gs/lib/errpage.ps
+++ b/gs/lib/errpage.ps
@@ -16,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% Print an informative error page if an error occurs.
% Inspired by Adobe's `ehandler.ps' and David Holzgang's PinPoint.
diff --git a/gs/lib/fixmswrd.pl b/gs/lib/fixmswrd.pl
index df0fd2cf4..83041aa33 100755
--- a/gs/lib/fixmswrd.pl
+++ b/gs/lib/fixmswrd.pl
@@ -1,7 +1,7 @@
#!/usr/bin/perl
+# $RCSfile$ $Revision$
-
-
+# $Id$
# (C) 1997 Anthony Shipman
#
diff --git a/gs/lib/font2c b/gs/lib/font2c
index 274bc53ef..2a85bb265 100755
--- a/gs/lib/font2c
+++ b/gs/lib/font2c
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -dNODISPLAY -dWRITESYSTEMDICT -- font2c.ps "$@"
diff --git a/gs/lib/font2c.bat b/gs/lib/font2c.bat
index 0742f75c3..f7c3d6775 100755
--- a/gs/lib/font2c.bat
+++ b/gs/lib/font2c.bat
@@ -1,2 +1,2 @@
@gs -q -dNODISPLAY -dWRITESYSTEMDICT -- font2c.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/font2c.ps b/gs/lib/font2c.ps
index 85359e1f7..a59cb230c 100644
--- a/gs/lib/font2c.ps
+++ b/gs/lib/font2c.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1992, 1993, 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% font2c.ps
% Write out a PostScript Type 0 or Type 1 font as C code
% that can be linked with the interpreter.
diff --git a/gs/lib/font2pcl.ps b/gs/lib/font2pcl.ps
index a91e25df6..e73b2249c 100644
--- a/gs/lib/font2pcl.ps
+++ b/gs/lib/font2pcl.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993, 1994, 1995, 1997 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% font2pcl.ps
% Write out a font as a PCL bitmap font.
diff --git a/gs/lib/gs_btokn.ps b/gs/lib/gs_btokn.ps
index fb9ffc3ad..5309a9b87 100644
--- a/gs/lib/gs_btokn.ps
+++ b/gs/lib/gs_btokn.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for binary tokens.
% When this is run, systemdict is still writable,
% but everything defined here goes into level2dict.
diff --git a/gs/lib/gs_ccfnt.ps b/gs/lib/gs_ccfnt.ps
index 6460cd918..27b0c8616 100644
--- a/gs/lib/gs_ccfnt.ps
+++ b/gs/lib/gs_ccfnt.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Find and register all the precompiled font operators in systemdict.
/registerfont % <fontname> <fontdict> registerfont <font>
@@ -63,9 +50,12 @@
/ccfonts mark
0 1 null .getccfont 1 sub { .getccfont dup /FontName get exch } for
.dicttomark def
- ccfonts
- { .FontDirectory 2 index known { pop pop } { registerfont pop } ifelse }
- forall
+ % Make sure these fonts are registered as "resources".
+ currentfile {
+ pop ccfonts
+ { .FontDirectory 2 index known { pop pop } { registerfont pop } ifelse }
+ forall
+ } .execasresource
currentdict /ccfonts .undef
} bind def
diff --git a/gs/lib/gs_ce_e.ps b/gs/lib/gs_ce_e.ps
new file mode 100644
index 000000000..01facdf75
--- /dev/null
+++ b/gs/lib/gs_ce_e.ps
@@ -0,0 +1,36 @@
+% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+
+% $RCSfile$ $Revision$
+% Define the Adobe CE (Central European) encoding vector.
+% We define it by differences from the ISOLatin1Encoding vector.
+/CEEncoding
+ISOLatin1Encoding 0 39 getinterval aload pop
+% 047
+ /quotesingle
+ISOLatin1Encoding 40 56 getinterval aload pop
+% 140
+ /grave
+ISOLatin1Encoding 97 31 getinterval aload pop
+% 20x
+ /.notdef /.notdef /quotesinglbase /.notdef /quotedblbase /ellipsis /dagger /daggerdbl
+ /.notdef /perthousand /Scaron /guilsinglleft /Sacute /Tcaron /Zcaron /Zacute
+ /.notdef /grave /acute /circumflex /tilde /bullet /endash /emdash
+ /.notdef /trademark /scaron /guilsinglright /sacute /tcaron /zcaron /zacute
+% 24x
+ /space /caron /breve /Lslash /currency /Aogonek /brokenbar /section
+ /dieresis /copyright /Scommaaccent /guillemotleft /logicalnot /hyphen /registered /Zdotaccent
+ /degree /plusminus /ogonek /lslash /acute /mu /paragraph /periodcentered
+ /cedilla /aogonek /scommaaccent /guillemotright /Lcaron /hungarumlaut /lcaron /zdotaccent
+% 30x
+ /Racute /Aacute /Acircumflex /Abreve /Adieresis /Lacute /Cacute /Ccedilla
+ /Ccaron /Eacute /Eogonek /Edieresis /Ecaron /Iacute /Icircumflex /Dcaron
+ /Dcroat /Nacute /Ncaron /Oacute /Ocircumflex /Ohungarumlaut /Odieresis /multiply
+ /Rcaron /Uring /Uacute /Uhungarumlaut /Udieresis /Yacute /Tcommaaccent /germandbls
+% 34x
+ /racute /aacute /acircumflex /abreve /adieresis /lacute /cacute /ccedilla
+ /ccaron /eacute /eogonek /edieresis /ecaron /iacute /icircumflex /dcaron
+ /dcroat /nacute /ncaron /oacute /ocircumflex /ohungarumlaut /odieresis /divide
+ /rcaron /uring /uacute /uhungarumlaut /udieresis /yacute /tcommaaccent /dotaccent
+256 packedarray .defineencoding
diff --git a/gs/lib/gs_cff.ps b/gs/lib/gs_cff.ps
index 7ad262d04..0630634fa 100644
--- a/gs/lib/gs_cff.ps
+++ b/gs/lib/gs_cff.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Loader for CFF (compressed) fonts.
% The following are not implemented yet:
% Deleted entries in the Name Index
diff --git a/gs/lib/gs_cidfn.ps b/gs/lib/gs_cidfn.ps
index e8fa0cfee..64dcf88e6 100644
--- a/gs/lib/gs_cidfn.ps
+++ b/gs/lib/gs_cidfn.ps
@@ -1,21 +1,8 @@
-% Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% ProcSet for implementing CIDFont and CIDMap resources.
% When this is run, systemdict is still writable.
@@ -118,17 +105,18 @@ end % .cidfonttypes
{ { currentfile exch readhexstring pop } }
{ { currentfile exch readstring pop } }
ifelse /ReadString exch def
- dup 65535 le
- { string ReadString
- }
- { mark exch
+ dup 65535 le {
+ % readstring with a 0-length string causes a rangecheck,
+ % but a data length of 0 is allowed.
+ string dup () ne { ReadString } if
+ } {
+ mark exch
{ dup 0 eq { pop exit } if
dup 65535 min dup string ReadString
3 1 roll sub
}
loop ]
- }
- ifelse
+ } ifelse
/GlyphData exch def
% If we were reading hex data, skip past the >.
/ReadString load 2 get { readhexstring } 0 get eq {
diff --git a/gs/lib/gs_cmap.ps b/gs/lib/gs_cmap.ps
index 81c77f887..8bad160cb 100644
--- a/gs/lib/gs_cmap.ps
+++ b/gs/lib/gs_cmap.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% ProcSet for implementing CMap resources.
% When this is run, systemdict is still writable.
diff --git a/gs/lib/gs_cmdl.ps b/gs/lib/gs_cmdl.ps
index b2aef8986..7b378113c 100644
--- a/gs/lib/gs_cmdl.ps
+++ b/gs/lib/gs_cmdl.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Parse and execute the command line.
% C code handles the following switches: -h/-? -I -M -v
diff --git a/gs/lib/gs_dbt_e.ps b/gs/lib/gs_dbt_e.ps
index 54994e057..159bf3774 100644
--- a/gs/lib/gs_dbt_e.ps
+++ b/gs/lib/gs_dbt_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993, 1994 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Dingbats encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
diff --git a/gs/lib/gs_diskf.ps b/gs/lib/gs_diskf.ps
index f61238715..e738b5e90 100644
--- a/gs/lib/gs_diskf.ps
+++ b/gs/lib/gs_diskf.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Support for converting Type 1 fonts without eexec encryption to
% Type 4 fonts that load individual character outlines on demand.
diff --git a/gs/lib/gs_dpnxt.ps b/gs/lib/gs_dpnxt.ps
index 8f629129c..64d9aea1c 100644
--- a/gs/lib/gs_dpnxt.ps
+++ b/gs/lib/gs_dpnxt.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% gs_dpnxt.ps
% NeXT Display PostScript extensions
diff --git a/gs/lib/gs_dps.ps b/gs/lib/gs_dps.ps
index 9028f140e..d284557a1 100644
--- a/gs/lib/gs_dps.ps
+++ b/gs/lib/gs_dps.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for Display PostScript functions.
% ------ Contexts ------ %
diff --git a/gs/lib/gs_dps1.ps b/gs/lib/gs_dps1.ps
index bad11e9be..f08edbbdb 100644
--- a/gs/lib/gs_dps1.ps
+++ b/gs/lib/gs_dps1.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for most of the Display PostScript functions
% that are also included in Level 2.
diff --git a/gs/lib/gs_dps2.ps b/gs/lib/gs_dps2.ps
index 51fb6e2ce..dc59911a3 100644
--- a/gs/lib/gs_dps2.ps
+++ b/gs/lib/gs_dps2.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1990, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for basic Display PostScript functions
% that are also included in Level 2.
diff --git a/gs/lib/gs_epsf.ps b/gs/lib/gs_epsf.ps
index c872ceaa2..37fda76bf 100644
--- a/gs/lib/gs_epsf.ps
+++ b/gs/lib/gs_epsf.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1989, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Allow the interpreter to recognize MS-DOS EPSF file headers, and skip to
% the PostScript section of the file.
diff --git a/gs/lib/gs_fform.ps b/gs/lib/gs_fform.ps
index 73e90dcaa..231fe992d 100644
--- a/gs/lib/gs_fform.ps
+++ b/gs/lib/gs_fform.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Form caching implemented in PostScript.
% This implementation doesn't do the right thing about halftone or
diff --git a/gs/lib/gs_fonts.ps b/gs/lib/gs_fonts.ps
index 2bc4c5f18..b2f3b29a0 100644
--- a/gs/lib/gs_fonts.ps
+++ b/gs/lib/gs_fonts.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1990, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Font initialization and management code.
% Define the default font.
@@ -400,6 +387,8 @@ buildfontdict 3 /.buildfont3 cvx put
}
if
dup .FontDirectory 4 -2 roll .growput
+ % If the font originated as a resource, register it.
+ currentfile .currentresourcefile eq { dup .registerfont } if
} odef
% Define a procedure for defining aliased fonts.
@@ -441,7 +430,7 @@ buildfontdict 3 /.buildfont3 cvx put
{ % Some buggy fonts leave extra junk on the stack,
% so we have to make a closure that records the stack depth
% in a fail-safe way.
- /.loadfontfile cvx count 1 sub 2 packedarray cvx exec
+ {{.loadfontfile} .execasresource} count 1 sub 2 .execn
count exch sub { pop } repeat
} bind def
diff --git a/gs/lib/gs_il1_e.ps b/gs/lib/gs_il1_e.ps
index 81d132a58..c8b24a8da 100644
--- a/gs/lib/gs_il1_e.ps
+++ b/gs/lib/gs_il1_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993, 1994, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the ISO Latin-1 encoding vector.
% The first half is the same as the standard encoding,
% except for minus instead of hyphen at code 055.
diff --git a/gs/lib/gs_il2_e.ps b/gs/lib/gs_il2_e.ps
index cf3a9892c..45d0cf19b 100644
--- a/gs/lib/gs_il2_e.ps
+++ b/gs/lib/gs_il2_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the ISO Latin-2 (8859-2) encoding vector.
% The original version of this encoding vector used Unicode names, rather
diff --git a/gs/lib/gs_init.ps b/gs/lib/gs_init.ps
index 03663bbd2..5fd44dee0 100644
--- a/gs/lib/gs_init.ps
+++ b/gs/lib/gs_init.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for the interpreter.
% When this is run, systemdict is still writable.
@@ -31,7 +18,7 @@
% Check the interpreter revision. NOTE: the interpreter code requires
% that the first non-comment token in this file be an integer.
-593
+610
dup revision ne
{ (gs: Interpreter revision \() print revision 10 string cvs print
(\) does not match gs_init.ps revision \() print 10 string cvs print
@@ -326,13 +313,15 @@ userdict /#copies 1 put
/.echo /echo load def
userdict /.echo.mode true put
/echo {dup /.echo.mode exch store .echo} odef
-/eexec
- { 55665 //filterdict /eexecDecode get exec
- cvx //systemdict begin exec
- % Only pop systemdict if it is still the top element,
- % because this is apparently what Adobe interpreters do.
- currentdict //systemdict eq { end } if
- } odef
+/eexec {
+ % Rebind .currentresourcefile if it is the source for the eexec.
+ dup 55665 //filterdict /eexecDecode get exec
+ cvx exch .currentresourcefile eq
+ //systemdict begin { {exec} .execasresource } { exec } ifelse
+ % Only pop systemdict if it is still the top element,
+ % because this is apparently what Adobe interpreters do.
+ currentdict //systemdict eq { end } if
+} odef
% .endpage is redefined if setpagedevice is present.
/.endpage { 2 ne } odef
% erasepage mustn't use gsave/grestore, because we call it before
@@ -560,6 +549,22 @@ currentdict /superexec .knownget {
% Temporarily define == as = for the sake of runlibfile0.
/== /= load def
+% Run a resource file. This allows us to distinguish resource objects
+% from objects coming from input files.
+userdict /.currentresourcefile null put
+/.execasresource { % <file> <proc|runfile> .execasresource -
+ /stopped .systemvar
+ /.currentresourcefile .uservar
+ % Stack: file proc -stopped- currfile
+ .userdict /.currentresourcefile 5 index cvlit put
+ 2 .execn % stopped <file>
+ .userdict /.currentresourcefile 3 -1 roll put
+ { stop } if
+} bind def
+/.runresource { % <file> .runresource -
+ { /run .systemvar exec } .execasresource
+} bind def
+
% Define procedures for getting and setting the current device resolution.
/gsgetdeviceprop % <device> <propname> gsgetdeviceprop <value>
@@ -741,20 +746,24 @@ currentdict /superexec .knownget {
/command load errorname SHORTERRORS
{ (%%[ Error: ) print =only flush
(; OffendingCommand: ) print =only
- currentdict /errorinfo .knownget
- { (;\nErrorInfo:) print
- dup type /arraytype eq
+ errorinfo dup null eq {
+ pop
+ } {
+ (;\nErrorInfo:) print
+ dup type /arraytype eq
{ { ( ) print =only } forall }
{ ( ) print =only }
- ifelse
- } if
+ ifelse
+ } ifelse
( ]%%\n) print flush
}
{ (Error: ) print ==only flush
( in ) print ==only flush
- currentdict /errorinfo .knownget
- { (\nAdditional information: ) print ==only flush
- } if
+ errorinfo dup null eq {
+ pop
+ } {
+ (\nAdditional information: ) print ==only flush
+ } ifelse
.printerror_long
}
ifelse
@@ -843,7 +852,7 @@ currentdict /superexec .knownget {
/.clearerror
{ $error /newerror false put
$error /errorname null put
- $error /errorinfo .undef
+ $error /errorinfo null put
0 .setoserrno
} bind def
diff --git a/gs/lib/gs_kanji.ps b/gs/lib/gs_kanji.ps
index 588890574..b62449b54 100644
--- a/gs/lib/gs_kanji.ps
+++ b/gs/lib/gs_kanji.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Scaffolding for Kanji fonts. This is based on the Wadalab free font
% from the University of Tokyo; it may not be appropriate for other
% Kanji fonts.
diff --git a/gs/lib/gs_ksb_e.ps b/gs/lib/gs_ksb_e.ps
index f3c0d551b..36bcff4ec 100644
--- a/gs/lib/gs_ksb_e.ps
+++ b/gs/lib/gs_ksb_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the KanjiSub encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
diff --git a/gs/lib/gs_l.xbm b/gs/lib/gs_l.xbm
new file mode 100644
index 000000000..6583d4a30
--- /dev/null
+++ b/gs/lib/gs_l.xbm
@@ -0,0 +1,29 @@
+#define gs_l.xbm_width 48
+#define gs_l.xbm_height 48
+#define gs_l.xbm_x_hot 0
+#define gs_l.xbm_y_hot 0
+static unsigned char gs_l.xbm_bits[] = {
+ 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0xd0, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0xa0, 0x01, 0x00, 0x00, 0x00, 0x00, 0x20, 0x03, 0x00,
+ 0x00, 0x00, 0x00, 0x3e, 0x03, 0x00, 0x00, 0x00, 0xff, 0x1f, 0x07, 0x00,
+ 0x00, 0xe0, 0xff, 0x0f, 0x07, 0x00, 0x00, 0xf8, 0xff, 0x81, 0x07, 0x00,
+ 0x00, 0xfc, 0x1f, 0xc0, 0x0f, 0x00, 0x00, 0xfe, 0x07, 0xf0, 0x1f, 0x00,
+ 0x00, 0xff, 0x01, 0xf8, 0x1f, 0x00, 0x00, 0xff, 0x41, 0xfc, 0x3f, 0x00,
+ 0x80, 0xff, 0xc8, 0xfc, 0x3f, 0x00, 0x80, 0xff, 0xd8, 0xf8, 0x3f, 0x00,
+ 0x80, 0xff, 0x98, 0xf0, 0x3f, 0x00, 0x80, 0xff, 0x10, 0xe0, 0x3f, 0x00,
+ 0x00, 0xff, 0x01, 0xc0, 0x3f, 0x00, 0x00, 0xff, 0x81, 0x81, 0x1f, 0x00,
+ 0x00, 0xfe, 0x83, 0x83, 0x1f, 0x00, 0x00, 0xfc, 0x0f, 0x83, 0x0f, 0x00,
+ 0x00, 0xf8, 0x1f, 0xc3, 0x03, 0x00, 0x00, 0xe0, 0x1f, 0xe0, 0x01, 0x00,
+ 0x00, 0xf0, 0x1f, 0x38, 0x00, 0x00, 0x00, 0xfc, 0x0f, 0x00, 0x00, 0x00,
+ 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x80, 0x7f, 0x00, 0x00, 0x00, 0x00,
+ 0xc0, 0xff, 0x00, 0x00, 0x00, 0x00, 0xc0, 0xff, 0xff, 0x00, 0x00, 0x00,
+ 0xc0, 0xff, 0xff, 0xff, 0x01, 0x00, 0xc0, 0xff, 0xff, 0xff, 0x0f, 0x00,
+ 0x80, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00,
+ 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x03,
+ 0x00, 0xc0, 0xff, 0xff, 0xff, 0x03, 0x00, 0x00, 0x00, 0xf0, 0xff, 0x03,
+ 0xc0, 0x3f, 0x00, 0x00, 0xff, 0x03, 0xe0, 0x0f, 0x00, 0x00, 0xfe, 0x03,
+ 0xf0, 0x07, 0xfc, 0x00, 0xfc, 0x01, 0xf0, 0x07, 0x0e, 0x00, 0xff, 0x04,
+ 0xf0, 0x07, 0x7e, 0xe0, 0x7f, 0x02, 0xf0, 0x0f, 0xfc, 0xff, 0x1f, 0x01,
+ 0xe0, 0x1f, 0xf0, 0xff, 0xc3, 0x00, 0xc0, 0xff, 0x00, 0x00, 0x78, 0x00,
+ 0x80, 0xff, 0x0f, 0xf8, 0x3f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x07, 0x00,
+ 0x00, 0xe0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/gs/lib/gs_l.xpm b/gs/lib/gs_l.xpm
new file mode 100644
index 000000000..dccf2e477
--- /dev/null
+++ b/gs/lib/gs_l.xpm
@@ -0,0 +1,58 @@
+/* XPM */
+static char * gs_l_xpm[] = {
+/* width height ncolors cpp [x_hot y_hot] */
+"48 48 4 1 0 0",
+/* colors */
+" s none m none c none",
+". s iconColor1 m black c black",
+"X s iconColor2 m white c white",
+"o s iconColor5 m black c blue",
+/* pixels */
+" . ",
+" .X.. ",
+" .X.. ",
+" .XX.. ",
+" .....XX.. ",
+" .............XXX... ",
+" ...............XXXX... ",
+" ..............XXXXXX.... ",
+" ...........XXXXXXXXX...... ",
+" ..........XXXXXXXXX......... ",
+" .........XXXXXXXXXX.......... ",
+" .........XXXXXoXXX............ ",
+" .........XXXoXXooXX............ ",
+" .........XXXooXooXXX........... ",
+" .........XXXooXXoXXXX.......... ",
+" .........XXXXoXXXXXXXX......... ",
+" .........XXXXXXXXXXXXX........ ",
+" .........XXXXXXooXXXXXX...... ",
+" .........XXXXXoooXXXXX...... ",
+" ..........XXXXooXXXXX..... ",
+" ..........XXXooXXXX.... ",
+" ........XXXXXXXX.... ",
+" .........XXXXXX... ",
+" ..........XXXXXXX ",
+" ........XXXXXXXXXXXX ",
+" ........XXXXXXXXXXXXXX ",
+" ..........XXXXXXXXXXXXXXX ",
+" ..................XXXXXXXXX ",
+" ...........................X ",
+" .............................. ",
+" ................................ ",
+" ................................. ",
+" ................................. ",
+" ................................ ",
+" ............................ ",
+" XXXXXXXXXXXXX.............. ",
+" ........XXXXXXXXXXXXXXXXXX.......... ",
+" .......XXXXXXXXXXXXXXXXXXXXX......... ",
+" .......XXXXXXX......XXXXXXXXXX.......X ",
+" .......XXXXXX...XXXXXXXXXXXX........XX. ",
+" .......XXXXXX......XXXXXX..........XX. ",
+" ........XXXXXX...................XXX. ",
+" ........XXXXXXX..............XXXX.. ",
+" ..........XXXXXXXXXXXXXXXXXXX.... ",
+" .............XXXXXXX........... ",
+" .......................... ",
+" ................... ",
+" "};
diff --git a/gs/lib/gs_l2img.ps b/gs/lib/gs_l2img.ps
index e7aaadef9..c8bfd5126 100644
--- a/gs/lib/gs_l2img.ps
+++ b/gs/lib/gs_l2img.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Emulate the Level 2 dictionary-based image operator in Level 1,
% except for Interpolate (ignored) and MultipleDataSources = true;
% also, we require that the data source be either a procedure of a
diff --git a/gs/lib/gs_l_m.xbm b/gs/lib/gs_l_m.xbm
new file mode 100644
index 000000000..686025317
--- /dev/null
+++ b/gs/lib/gs_l_m.xbm
@@ -0,0 +1,29 @@
+#define gs_l_m.xbm_width 48
+#define gs_l_m.xbm_height 48
+#define gs_l_m.xbm_x_hot 0
+#define gs_l_m.xbm_y_hot 0
+static unsigned char gs_l_m.xbm_bits[] = {
+ 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x03, 0x00,
+ 0x00, 0x00, 0x00, 0xfe, 0x03, 0x00, 0x00, 0x00, 0xff, 0xff, 0x07, 0x00,
+ 0x00, 0xe0, 0xff, 0xff, 0x07, 0x00, 0x00, 0xf8, 0xff, 0xff, 0x07, 0x00,
+ 0x00, 0xfc, 0xff, 0xff, 0x0f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x1f, 0x00,
+ 0x00, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xff, 0xff, 0xff, 0x3f, 0x00,
+ 0x80, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0x3f, 0x00,
+ 0x80, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x80, 0xff, 0xff, 0xff, 0x3f, 0x00,
+ 0x00, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xff, 0x1f, 0x00,
+ 0x00, 0xfe, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xfc, 0xff, 0xff, 0x0f, 0x00,
+ 0x00, 0xf8, 0xff, 0xff, 0x03, 0x00, 0x00, 0xe0, 0xff, 0xff, 0x01, 0x00,
+ 0x00, 0xf0, 0xff, 0x3f, 0x00, 0x00, 0x00, 0xfc, 0xff, 0x07, 0x00, 0x00,
+ 0x00, 0xff, 0xff, 0x0f, 0x00, 0x00, 0x80, 0xff, 0xff, 0x1f, 0x00, 0x00,
+ 0xc0, 0xff, 0xff, 0x7f, 0x00, 0x00, 0xc0, 0xff, 0xff, 0xff, 0x01, 0x00,
+ 0xc0, 0xff, 0xff, 0xff, 0x03, 0x00, 0xc0, 0xff, 0xff, 0xff, 0x0f, 0x00,
+ 0x80, 0xff, 0xff, 0xff, 0x7f, 0x00, 0x80, 0xff, 0xff, 0xff, 0xff, 0x00,
+ 0x00, 0xff, 0xff, 0xff, 0xff, 0x01, 0x00, 0xfc, 0xff, 0xff, 0xff, 0x03,
+ 0x00, 0xc0, 0xff, 0xff, 0xff, 0x03, 0x00, 0x80, 0xff, 0xff, 0xff, 0x03,
+ 0xc0, 0xff, 0xff, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0xff, 0xff, 0x03,
+ 0xf0, 0xff, 0xff, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x07,
+ 0xf0, 0xff, 0xff, 0xff, 0xff, 0x03, 0xf0, 0xff, 0xff, 0xff, 0xff, 0x01,
+ 0xe0, 0xff, 0xff, 0xff, 0xff, 0x00, 0xc0, 0xff, 0xff, 0xff, 0x7f, 0x00,
+ 0x80, 0xff, 0xff, 0xff, 0x3f, 0x00, 0x00, 0xfe, 0xff, 0xff, 0x07, 0x00,
+ 0x00, 0xe0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/gs/lib/gs_lev2.ps b/gs/lib/gs_lev2.ps
index 3d3c90527..84f5f6a48 100644
--- a/gs/lib/gs_lev2.ps
+++ b/gs/lib/gs_lev2.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1990, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for Level 2 functions.
% When this is run, systemdict is still writable,
% but (almost) everything defined here goes into level2dict.
@@ -582,7 +569,7 @@ currentdict /.devcs .undef
/GetPageDeviceName { % - GetPageDeviceName <name>
currentpagedevice dup /PageDeviceName .knownget {
- exch pop
+ exch pop dup null eq { pop /none } if
} {
pop /none
} ifelse
diff --git a/gs/lib/gs_lgo_e.ps b/gs/lib/gs_lgo_e.ps
index 77a3f2f2a..07eb40688 100644
--- a/gs/lib/gs_lgo_e.ps
+++ b/gs/lib/gs_lgo_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Adobe "original" Latin glyph set.
% This is not an Encoding strictly speaking, but we treat it like one.
/currentglobal where
@@ -87,6 +74,6 @@ ifelse
/z /zcaron /zero
counttomark packedarray exch pop
-6 1 index .registerencoding
+8 1 index .registerencoding
.defineencoding
exec
diff --git a/gs/lib/gs_lgx_e.ps b/gs/lib/gs_lgx_e.ps
index 63399d134..94451a97c 100644
--- a/gs/lib/gs_lgx_e.ps
+++ b/gs/lib/gs_lgx_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Adobe "extension" Latin glyph set.
% This is not an Encoding strictly speaking, but we treat it like one.
/currentglobal where
@@ -57,6 +44,6 @@ ifelse
/zacute /zdotaccent
counttomark packedarray exch pop
-7 1 index .registerencoding
+9 1 index .registerencoding
.defineencoding
exec
diff --git a/gs/lib/gs_ll3.ps b/gs/lib/gs_ll3.ps
index 80ae53b9a..c861c636f 100644
--- a/gs/lib/gs_ll3.ps
+++ b/gs/lib/gs_ll3.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for PostScript LanguageLevel 3 functions.
% This file must be loaded after gs_lev2.ps and gs_res.ps.
% These definitions go into ll3dict or various ProcSets.
@@ -96,14 +83,14 @@ currentdict /.bindscratch .undef
/Height 1 index def
/Width 2 index def
mul add BitsPerSample 8 idiv mul .bigstring
- % Stack: dict source str
+ % Stack: dict dict source str
dup type /stringtype eq { readstring } { .readbytestring } ifelse
not { /sethalftone load /rangecheck signalerror exit } if
readonly /Thresholds exch def
/TransferFunction .knownget { /TransferFunction exch def } if
% If the original Thresholds was a file, replace it with
% a new one.
- 1 index /Thresholds get type /filetype eq {
+ dup /Thresholds get type /filetype eq {
dup /Thresholds [ Thresholds ] cvx 0 () .subfiledecode put
} if
mark /HalftoneType 5 /Default currentdict end .dicttomark
@@ -205,12 +192,35 @@ systemdict /.shadingtypes mark % not ll3dict
7 /.buildshading7 load
.dicttomark put
+systemdict /.reuseparamdict mark
+ /Intent 2
+ /AsyncRead false
+ /CloseSource true
+.dicttomark readonly put
/.buildshading { % <shadingdict> .buildshading <shading>
+ % The current implementation of shadings can't deal with
+ % procedure-based DataSource.
+ dup /DataSource .knownget {
+ dup type /filetype eq {
+ dup .isprocfilter {
+ //.reuseparamdict /ReusableStreamDecode filter
+ .currentglobal 1 index gcheck .setglobal
+ % Stack: shdict rsdfile saveglobal
+ 2 index dup length dict copy exch .setglobal
+ dup /DataSource 4 -1 roll put exch pop
+ } {
+ pop
+ } ifelse
+ } {
+ pop
+ } ifelse
+ } if
% The .buildshading operators use the current color space
% for ColorSpace.
dup /ShadingType get //.shadingtypes exch get
1 index /ColorSpace get setcolorspace exec
} bind def
+systemdict /.reuseparamdict undef
/.buildpattern2 { % <template> <matrix> .buildpattern2
% <template> <pattern>
@@ -237,8 +247,8 @@ systemdict /.shadingtypes mark % not ll3dict
pop
} odef
-% Establish an arbitrary initial smoothness value.
-1 64 div setsmoothness
+% Establish an initial smoothness value that matches Adobe RIPs.
+0.02 setsmoothness
% ------ ReusableStreamDecode filter ------ %
@@ -407,8 +417,8 @@ pssystemparams begin % read-only, so use .forcedef
/MaxDisplayAndSourceList 160000 .forcedef
end
-% Define the IdiomSet and InkParams resource categories.
-{ /IdiomSet /InkParams } {
+% Define the IdiomSet resource category.
+{ /IdiomSet } {
/Generic /Category findresource dup maxlength 3 add dict .copydict begin
/InstanceType /dicttype def
currentdict end /Category defineresource pop
diff --git a/gs/lib/gs_m.xbm b/gs/lib/gs_m.xbm
new file mode 100644
index 000000000..9c245cece
--- /dev/null
+++ b/gs/lib/gs_m.xbm
@@ -0,0 +1,16 @@
+#define gs_m.xbm_width 32
+#define gs_m.xbm_height 32
+#define gs_m.xbm_x_hot 0
+#define gs_m.xbm_y_hot 0
+static unsigned char gs.m.bm_bits[] = {
+ 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00, 0x48, 0x00,
+ 0x00, 0xf8, 0xc7, 0x00, 0x00, 0xff, 0xc1, 0x00, 0x80, 0x3f, 0xf0, 0x00,
+ 0xc0, 0x0f, 0xf8, 0x01, 0xc0, 0x87, 0xfc, 0x03, 0xe0, 0xa7, 0xfc, 0x03,
+ 0xe0, 0x27, 0xf8, 0x03, 0xe0, 0x07, 0xf0, 0x03, 0xc0, 0x0f, 0xe3, 0x01,
+ 0x80, 0x1f, 0xe3, 0x00, 0x00, 0x3f, 0x60, 0x00, 0x00, 0x7c, 0x10, 0x00,
+ 0xc0, 0x3f, 0x00, 0x00, 0xe0, 0x03, 0x00, 0x00, 0xf0, 0x07, 0x00, 0x00,
+ 0xf0, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x07,
+ 0xc0, 0xff, 0xff, 0x0f, 0x00, 0xff, 0xff, 0x1f, 0x00, 0x00, 0xe0, 0x1f,
+ 0xf0, 0x00, 0x80, 0x0f, 0x78, 0x10, 0x80, 0x07, 0x78, 0x10, 0xc0, 0x13,
+ 0x70, 0xe0, 0xff, 0x08, 0xf0, 0x00, 0x00, 0x06, 0xc0, 0x03, 0xe0, 0x01,
+ 0x00, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/gs/lib/gs_m.xpm b/gs/lib/gs_m.xpm
new file mode 100644
index 000000000..629b6d1c6
--- /dev/null
+++ b/gs/lib/gs_m.xpm
@@ -0,0 +1,44 @@
+/* XPM */
+static char * gs_m_xpm[] = {
+/* width height ncolors cpp [x_hot y_hot] */
+"32 32 6 1 0 0",
+/* colors */
+" s none m none c none",
+". s iconColor1 m black c black",
+"X s iconColor2 m white c white",
+"o c #C0C0C0C0C0C0",
+"O c #808080808080",
+"+ c #00000000FFFF",
+/* pixels */
+" .X ",
+" .X. ",
+" .XX. ",
+" ........XXX.. ",
+" .........oXXXo.. ",
+" .......XXXXXXO... ",
+" ......XXXXXXX...... ",
+" .....XXXX+XX........ ",
+" ......XX+X+XX........ ",
+" ......XX+XXXXX....... ",
+" ......XXXXXXXXX...... ",
+" ......XXXX++XXX.... ",
+" .....OXXX++XXX... ",
+" ......XXXXXXX.. ",
+" .....XXXXX. ",
+" ........XXXXXXX ",
+" .....XXXXXXXXXXXX ",
+" .......XXXXXXXXXXXX ",
+" ...................X ",
+" ...................... ",
+" ...................... ",
+" ...................... ",
+" ..................... ",
+" XXXXXXXXXXXX........ ",
+" ....XXXXXXXXXXXXXXX.....X ",
+" ....XXXXX.XXXXXXXXXX....XX ",
+" ....XXXXX.XXXXXXXXX....XX. ",
+" ...XXXXXX...........XXX. ",
+" ....XXXXXXXXXXXXXXXXX.. ",
+" ....XXXXXXXXXXX.... ",
+" ............. ",
+" "};
diff --git a/gs/lib/gs_m_m.xbm b/gs/lib/gs_m_m.xbm
new file mode 100644
index 000000000..55c010b88
--- /dev/null
+++ b/gs/lib/gs_m_m.xbm
@@ -0,0 +1,16 @@
+#define gs_m_m.xbm_width 32
+#define gs_m_m.xbm_height 32
+#define gs_m_m.xbm_x_hot 0
+#define gs_m_m.xbm_y_hot 0
+static unsigned char gs.m_m.bm_bits[] = {
+ 0x00, 0x00, 0x30, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x78, 0x00,
+ 0x00, 0xf8, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x80, 0xff, 0xff, 0x00,
+ 0xc0, 0xff, 0xff, 0x01, 0xc0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x03,
+ 0xe0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x03, 0xc0, 0xff, 0xff, 0x01,
+ 0x80, 0xff, 0xff, 0x00, 0x00, 0xff, 0x7f, 0x00, 0x00, 0xfc, 0x1f, 0x00,
+ 0xc0, 0xff, 0x1f, 0x00, 0xe0, 0xff, 0x3f, 0x00, 0xf0, 0xff, 0x7f, 0x00,
+ 0xf0, 0xff, 0xff, 0x00, 0xf0, 0xff, 0xff, 0x03, 0xe0, 0xff, 0xff, 0x07,
+ 0xc0, 0xff, 0xff, 0x0f, 0x00, 0xff, 0xff, 0x1f, 0x00, 0xfe, 0xff, 0x1f,
+ 0xf0, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f, 0xf8, 0xff, 0xff, 0x1f,
+ 0xf0, 0xff, 0xff, 0x0f, 0xf0, 0xff, 0xff, 0x07, 0xc0, 0xff, 0xff, 0x01,
+ 0x00, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00};
diff --git a/gs/lib/gs_mex_e.ps b/gs/lib/gs_mex_e.ps
index 1b3e0df85..c14efd554 100644
--- a/gs/lib/gs_mex_e.ps
+++ b/gs/lib/gs_mex_e.ps
@@ -1,21 +1,8 @@
-% Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the MacExpert encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
@@ -62,5 +49,7 @@ ifelse
/.notdef /isuperior /ssuperior /dsuperior /.notdef /.notdef /.notdef /.notdef
/.notdef /lsuperior /Ogoneksmall /Brevesmall /Macronsmall /bsuperior /nsuperior /msuperior
/commasuperior /periodsuperior /Dotaccentsmall /Ringsmall /.notdef /.notdef /.notdef /.notdef
-256 packedarray .defineencoding
+256 packedarray
+6 1 index .registerencoding
+.defineencoding
exec
diff --git a/gs/lib/gs_mgl_e.ps b/gs/lib/gs_mgl_e.ps
index 2b4d2667f..36980d3fd 100644
--- a/gs/lib/gs_mgl_e.ps
+++ b/gs/lib/gs_mgl_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Macintosh standard glyph encoding vector.
% This is not an Encoding strictly speaking, but we treat it like one.
/currentglobal where
@@ -31,7 +18,7 @@ ifelse
99 index 128 45 getinterval aload pop
% 143
/notequal /AE
- /Oslash /infinity /plusinus /lessequal /greaterequal
+ /Oslash /infinity /plusminus /lessequal /greaterequal
/yen /mu1 /partialdiff /summation /product
/pi /integral /ordfeminine /ordmasculine /Ohm
/ae /oslash /questiondown /exclamdown /logicalnot
@@ -58,6 +45,6 @@ ifelse
/Ccaron /ccaron /dmacron
260 -1 roll pop % delete MacRomanEncoding
258 packedarray
-5 1 index .registerencoding
+7 1 index .registerencoding
.defineencoding
exec
diff --git a/gs/lib/gs_mro_e.ps b/gs/lib/gs_mro_e.ps
index f5d931e31..489b65a70 100644
--- a/gs/lib/gs_mro_e.ps
+++ b/gs/lib/gs_mro_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the MacRoman encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
@@ -45,8 +32,10 @@ StandardEncoding 97 31 getinterval aload pop
/guillemotright /ellipsis /space /Agrave /Atilde /Otilde /OE /oe
/endash /emdash /quotedblleft /quotedblright
/quoteleft /quoteright /divide /.notdef
- /ydieresis /Ydieresis /fraction /Euro % Euro replaces currency
- /guilsingleft /guilsingright /fi /fl
+ % NOTE: Euro should replace currency, but the PDF 1.3 documentation
+ % explicitly says it does not.
+ /ydieresis /Ydieresis /fraction /currency
+ /guilsinglleft /guilsinglright /fi /fl
% \34x
/daggerdbl /periodcentered /quotesinglbase /quotedblbase
/perthousand /Acircumflex /Ecircumflex /Aacute
@@ -55,5 +44,7 @@ StandardEncoding 97 31 getinterval aload pop
/.notdef /Ograve /Uacute /Ucircumflex
/Ugrave /dotlessi /circumflex /tilde
/macron /breve /dotaccent /ring /cedilla /hungarumlaut /ogonek /caron
-256 packedarray .defineencoding
+256 packedarray
+5 1 index .registerencoding
+.defineencoding
exec
diff --git a/gs/lib/gs_pdf_e.ps b/gs/lib/gs_pdf_e.ps
index cd562a80d..9eb175b9c 100644
--- a/gs/lib/gs_pdf_e.ps
+++ b/gs/lib/gs_pdf_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the PDFDoc encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
diff --git a/gs/lib/gs_pdfwr.ps b/gs/lib/gs_pdfwr.ps
index 462075bbf..71ed30ef6 100644
--- a/gs/lib/gs_pdfwr.ps
+++ b/gs/lib/gs_pdfwr.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% PDF writer additions to systemdict.
% This file should be included iff the pdfwrite "device" is included
@@ -126,20 +113,40 @@ currentdict /.pdfmarkparams .undef
% Define setdistillerparams / currentdistillerparams.
% Distiller parameters are currently treated as device parameters.
/.distillerparamkeys mark
- % General parameters
+ % General parameters -- all distillers
+ % ****** NOTE: StartPage and EndPage are disabled because
+ % ****** EndPage clashes with a page device parameter.
/ASCII85EncodePages { }
/AutoRotatePages { }
- /CompatibilityLevel { }
+ /Binding { }
/CompressPages { }
- /CoreDistVersion { }
+ /DefaultRenderingIntent { }
+ /DetectBlends { }
+ /DoThumbnails { }
+% /EndPage { }
/ImageMemory { }
+ /LockDistillerParams { }
/LZWEncodePages { }
+ /OPM { }
/PreserveHalftoneInfo { }
/PreserveOPIComments { }
/PreserveOverprintSettings { }
+% /StartPage { }
/TransferFunctionInfo { }
/UCRandBGInfo { }
/UseFlateCompression { }
+ % General parameters -- PDF writer
+ /CoreDistVersion { }
+ /CompatibilityLevel { }
+ /Optimize { }
+ /ParseDSCCommentsForDocInfo { }
+ /ParseDSCComments { }
+ /EmitDSCWarnings { }
+ /CreateJobTicket { }
+ /PreserveEPSInfo { }
+ /AutoPositionEPSFile { }
+ /PreserveCopyPage { }
+ /UsePrologue { }
% Color sampled image parameters
/ColorACSDict { }
/AntiAliasColorImages { }
@@ -147,10 +154,16 @@ currentdict /.pdfmarkparams .undef
/ColorImageDepth { }
/ColorImageDict { }
/DownsampleColorImages { }
+ /ColorImageDownsampleThreshold { }
/ColorImageDownsampleType { }
/EncodeColorImages { }
/ColorImageFilter { }
/ColorImageResolution { }
+ % Color processing parameters
+ /CalCMYKProfile { }
+ /CalGrayProfile { }
+ /CalRGBProfile { }
+ /sRGBProfile { }
/ColorConversionStrategy { }
/ConvertCMYKImagesToRGB { }
/ConvertImagesToIndexed { }
@@ -161,6 +174,7 @@ currentdict /.pdfmarkparams .undef
/GrayImageDepth { }
/GrayImageDict { }
/DownsampleGrayImages { }
+ /GrayImageDownsampleThreshold { }
/GrayImageDownsampleType { }
/EncodeGrayImages { }
/GrayImageFilter { }
@@ -170,6 +184,7 @@ currentdict /.pdfmarkparams .undef
/MonoImageDepth { }
/MonoImageDict { }
/DownsampleMonoImages { }
+ /MonoImageDownsampleThreshold { }
/MonoImageDownsampleType { }
/EncodeMonoImages { }
/MonoImageFilter { }
@@ -189,9 +204,10 @@ currentdict /.pdfmarkparams .undef
} if
} if
}
+ /CannotEmbedFontPolicy { }
/EmbedAllFonts { }
- /SubsetFonts { }
/MaxSubsetPct { }
+ /SubsetFonts { }
.dicttomark readonly def
/.distillerdevice
{ currentdevice .devicename /pdfwrite eq
diff --git a/gs/lib/gs_pfile.ps b/gs/lib/gs_pfile.ps
index 090d7c704..594a5b4f3 100644
--- a/gs/lib/gs_pfile.ps
+++ b/gs/lib/gs_pfile.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1995 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Runtime support for minimum-space fonts and packed files.
% ****** NOTE: This file must be kept consistent with
diff --git a/gs/lib/gs_rdlin.ps b/gs/lib/gs_rdlin.ps
index d94111652..41525574f 100644
--- a/gs/lib/gs_rdlin.ps
+++ b/gs/lib/gs_rdlin.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Patch for systems with readline support in the interpreter.
% Disable the prompt message, since readline will generate it.
diff --git a/gs/lib/gs_res.ps b/gs/lib/gs_res.ps
index bf9e6faad..28bc9fcbb 100644
--- a/gs/lib/gs_res.ps
+++ b/gs/lib/gs_res.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for Level 2 resource machinery.
% When this is run, systemdict is still writable,
% but (almost) everything defined here goes into level2dict.
@@ -388,8 +375,8 @@ end
/.LoadResource
{ dup .ResourceFile
{ exch pop currentglobal
- { run }
- { true setglobal { run } stopped false setglobal { stop } if }
+ { .runresource }
+ { true setglobal { .runresource } stopped false setglobal { stop } if }
ifelse
}
{ dup /undefinedresource signalerror
@@ -440,7 +427,9 @@ mark
% Loop until the .getiodevice gets a rangecheck.
errordict /rangecheck 2 copy get
errordict /rangecheck { pop stop } put % pop the command
- mark 0 { {dup .getiodevice exch 1 add} loop} .internalstopped
+ mark 0 { {
+ dup .getiodevice dup null eq { pop } { exch } ifelse 1 add
+ } loop} .internalstopped
pop pop pop .packtomark
4 1 roll put
.clearerror
@@ -535,7 +524,8 @@ counttomark 2 idiv
/PDL mark /InstanceType /dicttype .definecategory
% CIDFont, CIDMap, and CMap are defined in gs_cidfn.ps
% FontSet is defined in gs_cff.ps
-% IdiomSet, InkParams, and TrapParams are defined in gs_ll3.ps
+% IdiomSet is defined in gs_ll3.ps
+% InkParams and TrapParams are defined in gs_trap.ps
(END MISC) VMDEBUG
@@ -662,8 +652,10 @@ setglobal
/.loadfont
{ dup vmstatus pop exch pop exch
- //findfont exec exch % findfont is a procedure....
- vmstatus pop exch pop exch sub
+ % Hack: rebind .currentresourcefile so that all calls of
+ % definefont will know these are built-in fonts.
+ currentfile {pop //findfont exec} .execasresource % (findfont is a procedure)
+ exch vmstatus pop exch pop exch sub
% stack: name font vmused
% findfont has the prerogative of not calling definefont
% in certain obscure cases of font substitution.
diff --git a/gs/lib/gs_s.xbm b/gs/lib/gs_s.xbm
new file mode 100644
index 000000000..b1e11048f
--- /dev/null
+++ b/gs/lib/gs_s.xbm
@@ -0,0 +1,11 @@
+#define gs_s.xbm_width 24
+#define gs_s.xbm_height 24
+#define gs_s.xbm_x_hot 0
+#define gs_s.xbm_y_hot 0
+static unsigned char gs.s.bm_bits[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x80, 0x08, 0x00, 0x00, 0x13,
+ 0x00, 0x00, 0x33, 0x00, 0xfe, 0x31, 0xe0, 0xff, 0x38, 0xf0, 0x3f, 0x38,
+ 0xf8, 0x07, 0x7e, 0xfc, 0x01, 0x7f, 0xfe, 0x90, 0x7f, 0x7e, 0x94, 0x7f,
+ 0x7e, 0x84, 0x7f, 0x7e, 0x00, 0x7f, 0x7e, 0x00, 0x7e, 0xfc, 0x60, 0x7c,
+ 0xfc, 0x61, 0x38, 0xf8, 0x03, 0x38, 0xf8, 0x03, 0x18, 0xf0, 0x07, 0x0c,
+ 0xc0, 0x0f, 0x06, 0xc0, 0x07, 0x03, 0xf0, 0x01, 0x00, 0x00, 0x00, 0x00};
diff --git a/gs/lib/gs_s.xpm b/gs/lib/gs_s.xpm
new file mode 100644
index 000000000..859b601b6
--- /dev/null
+++ b/gs/lib/gs_s.xpm
@@ -0,0 +1,36 @@
+/* XPM */
+static char * gs_s_xpm[] = {
+/* width height ncolors cpp [x_hot y_hot] */
+"24 24 6 1 0 0",
+/* colors */
+" s none m none c none",
+". c #808080808080",
+"X s iconColor1 m black c black",
+"o c #C0C0C0C0C0C0",
+"O s iconColor2 m white c white",
+"+ c #00000000FFFF",
+/* pixels */
+" ",
+" .. ",
+" XoOo. ",
+" X.OoX ",
+" X.OoX. ",
+" .XXXXXX.oOoXX ",
+" ..XXXXXXXX.oOO.XX ",
+" XXXXXXXX..oOOOo.XX ",
+" XXXXXXX.OOOOOo.XXXX. ",
+" XXXXXX.OOOOOOOXXXXXXX ",
+" .XXXXX.OOOO+OOXXXXXXXX ",
+" XXXXXXOOO+O+OOXXXXXXXX ",
+" XXXXXXOOO+OOOOXXXXXXXX ",
+" XXXXXXOOOOOOOOOXXXXXXX ",
+" .XXXXXOOOOOOOOOO.XXXXX ",
+" XXXXXXOOOOO++OOO.XXXX ",
+" .XXXXX.OOOO++OOOoXXX ",
+" XXXXXX.OOOOOOOOOXXX ",
+" .XXXXXXoOOOOOOOoXX ",
+" .XXXXXXoOOOOOo.X ",
+" .XXXXXOOOOO.X ",
+" .XXXXOOOOO.. ",
+" XXXXXOOOOOOOO ",
+" "};
diff --git a/gs/lib/gs_s_m.xbm b/gs/lib/gs_s_m.xbm
new file mode 100644
index 000000000..9675725d7
--- /dev/null
+++ b/gs/lib/gs_s_m.xbm
@@ -0,0 +1,11 @@
+#define gs_s_m.xbm_width 24
+#define gs_s_m.xbm_height 24
+#define gs_s_m.xbm_x_hot 0
+#define gs_s_m.xbm_y_hot 0
+static unsigned char gs.s_m.bm_bits[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x80, 0x0f, 0x00, 0x00, 0x1f,
+ 0x00, 0x00, 0x3f, 0x00, 0xfe, 0x3f, 0xe0, 0xff, 0x3f, 0xf0, 0xff, 0x3f,
+ 0xf8, 0xff, 0x7f, 0xfc, 0xff, 0x7f, 0xfe, 0xff, 0x7f, 0xfe, 0xff, 0x7f,
+ 0xfe, 0xff, 0x7f, 0xfe, 0xff, 0x7f, 0xfe, 0xff, 0x7f, 0xfc, 0xff, 0x7f,
+ 0xfc, 0xff, 0x3f, 0xf8, 0xff, 0x3f, 0xf8, 0xff, 0x1f, 0xf0, 0xff, 0x0f,
+ 0xc0, 0xff, 0x07, 0xc0, 0xff, 0x03, 0xf0, 0xff, 0x01, 0x00, 0x00, 0x00};
diff --git a/gs/lib/gs_setpd.ps b/gs/lib/gs_setpd.ps
index 94a3972d2..53d37d7d7 100644
--- a/gs/lib/gs_setpd.ps
+++ b/gs/lib/gs_setpd.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% The current implementation of setpagedevice has the following limitations:
% - It doesn't attempt to "interact with the user" for Policy = 2.
@@ -167,6 +154,7 @@ level2dict begin
.dicttomark readonly def
% Note that the values of .requiredattrs are executed, not just fetched.
/.requiredattrs mark
+ /PageDeviceName null
/PageOffset [0 0] readonly
% We define InputAttributes and OutputAttributes with a single
% dummy media type that handles pages of any size.
@@ -348,6 +336,7 @@ level2dict begin
/.MediaSize false
/Name false
/OutputDevice false
+ /PageDeviceName false
/PageOffset false
/PageSize false % obsolete alias for .MediaSize
/InputAttributes false
diff --git a/gs/lib/gs_statd.ps b/gs/lib/gs_statd.ps
index 91529487e..4c3e038ce 100644
--- a/gs/lib/gs_statd.ps
+++ b/gs/lib/gs_statd.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1989, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% This file provides statusdict, serverdict, and assorted LaserWriter
% operators, mostly for the benefit of poorly designed PostScript programs
% that 'know' they are running on a LaserWriter.
diff --git a/gs/lib/gs_std_e.ps b/gs/lib/gs_std_e.ps
index 827cff364..6117e23a5 100644
--- a/gs/lib/gs_std_e.ps
+++ b/gs/lib/gs_std_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993, 1994 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the standard encoding vector.
/StandardEncoding
% \00x
diff --git a/gs/lib/gs_sym_e.ps b/gs/lib/gs_sym_e.ps
index 0f2215fb9..37aaf28d6 100644
--- a/gs/lib/gs_sym_e.ps
+++ b/gs/lib/gs_sym_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1991, 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Symbol encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
@@ -76,7 +63,7 @@ ifelse
/trademarksans /summation /parenlefttp /parenleftex
/parenleftbt /bracketlefttp /bracketleftex /bracketleftbt
/bracelefttp /braceleftmid /braceleftbt /braceex
- /euro /angleright /integral /integraltp
+ /.notdef /angleright /integral /integraltp
/integralex /integralbt /parenrighttp /parenrightex
/parenrightbt /bracketrighttp /bracketrightex /bracketrightbt
/bracerighttp /bracerightmid /bracerightbt /.notdef
diff --git a/gs/lib/gs_t.xbm b/gs/lib/gs_t.xbm
new file mode 100644
index 000000000..fa3bee489
--- /dev/null
+++ b/gs/lib/gs_t.xbm
@@ -0,0 +1,8 @@
+#define gs_t.xbm_width 16
+#define gs_t.xbm_height 16
+#define gs_t.xbm_x_hot 0
+#define gs_t.xbm_y_hot 0
+static unsigned char gs.t.bm_bits[] = {
+ 0x00, 0x10, 0x00, 0x20, 0x00, 0x68, 0xf0, 0x67, 0xfc, 0x61, 0x7e, 0x70,
+ 0x1f, 0xf9, 0x4f, 0xfd, 0x4f, 0xfc, 0x0f, 0xf8, 0x1f, 0xf3, 0x1e, 0xe3,
+ 0x3e, 0x60, 0x7c, 0x30, 0x70, 0x0c, 0x1e, 0x00};
diff --git a/gs/lib/gs_t.xpm b/gs/lib/gs_t.xpm
new file mode 100644
index 000000000..19f773d20
--- /dev/null
+++ b/gs/lib/gs_t.xpm
@@ -0,0 +1,28 @@
+/* XPM */
+static char * gs_t_xpm[] = {
+/* width height ncolors cpp [x_hot y_hot] */
+"16 16 6 1 0 0",
+/* colors */
+" s none m none c none",
+". s iconColor1 m black c black",
+"X s iconColor2 m white c white",
+"o c #808080808080",
+"O c #C0C0C0C0C0C0",
+"+ c #00000000FFFF",
+/* pixels */
+" . ",
+" X. ",
+" .X.o ",
+" o......XX.. ",
+" .......OXXX.. ",
+" ......XXXXXo.. ",
+"o....XXX+XX.....",
+"....XX+X+Xo.....",
+"....XX+XXXo.....",
+"....XXXXXXX.....",
+"o...oXXX++XX....",
+" ....XXX++XXX..o",
+" ....oXXXXXXX.. ",
+" .....XXXXX.. ",
+" ...XXXoo ",
+" o...XXXXXXX "};
diff --git a/gs/lib/gs_t_m.xbm b/gs/lib/gs_t_m.xbm
new file mode 100644
index 000000000..55f3f3539
--- /dev/null
+++ b/gs/lib/gs_t_m.xbm
@@ -0,0 +1,8 @@
+#define gs_t_m.xbm_width 16
+#define gs_t_m.xbm_height 16
+#define gs_t_m.xbm_x_hot 0
+#define gs_t_m.xbm_y_hot 0
+static unsigned char gs.t_m.bm_bits[] = {
+ 0x00, 0x10, 0x00, 0x30, 0x00, 0x78, 0xf0, 0x7f, 0xfc, 0x7f, 0xfe, 0x7f,
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0xff,
+ 0xfe, 0x7f, 0xfc, 0x3f, 0xf0, 0x0f, 0xfe, 0x0f};
diff --git a/gs/lib/gs_trap.ps b/gs/lib/gs_trap.ps
index c268fd6af..73740c244 100644
--- a/gs/lib/gs_trap.ps
+++ b/gs/lib/gs_trap.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% PostScript LanguageLevel 3 in-RIP trapping support.
ll3dict begin
@@ -85,8 +72,8 @@ userdict /.trapparams mark
.dicttomark /ProcSet defineresource pop
-% Define the TrapParams resource category
-{ /TrapParams } {
+% Define the InkParams and TrapParams resource categories.
+{ /InkParams /TrapParams } {
/Generic /Category findresource dup maxlength 3 add dict .copydict begin
/InstanceType /dicttype def
currentdict end /Category defineresource pop
diff --git a/gs/lib/gs_ttf.ps b/gs/lib/gs_ttf.ps
index 0255a0184..de9d29fd0 100644
--- a/gs/lib/gs_ttf.ps
+++ b/gs/lib/gs_ttf.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Support code for direct use of TrueType fonts.
% (Not needed for Type 42 fonts.)
@@ -26,7 +13,7 @@
% Augment the FONTPATH machinery so it recognizes TrueType fonts.
-/.scanfontheaders where { % only defined if DISKFONTS is recognized
+/.scanfontheaders where {
pop /.scanfontheaders [
.scanfontheaders aload pop (\000\001\000\000*) (true*)
] def
@@ -37,7 +24,8 @@
% Closes the file in either case.
/.findnonttfontvalue /.findfontvalue load def
/.findfontvalue {
- 1 index read pop 2 index 1 index unread 0 eq {
+ 1 index read pop 2 index 1 index unread
+ dup 0 eq exch (t) 0 get eq or {
% If this is a font at all, it's a TrueType font.
dup /FontType eq {
pop closefile 42 true
@@ -248,7 +236,9 @@
% <cmaptab> cmaparray -mark- <glyphs> ...
/cmaparray {
mark exch dup 0 getu16 cmapformats exch .knownget {
- exec
+ DEBUG {
+ (cmap: format ) print 1 index 0 getu16 = flush
+ } if exec
} {
(Can't handle format ) print 0 getu16 = flush
0 1 255 { } for
@@ -464,20 +454,23 @@
% - .getcmap -
% Defines cmapsub, cmaptab
/.getcmap {
- tabdict /cmap get
+ tabdict /cmap get
% The Apple cmap format is no help in determining the encoding.
% Look for a Microsoft table. If we can't find one,
% just use the first table, whatever it is.
- dup 4 8 getinterval exch % the default
- 0 1 2 index 2 getu16 1 sub
- { 8 mul 4 add 1 index exch 8 getinterval
- dup 0 getu16 3 eq { exch 3 -1 roll pop exit } if pop
- }
- for
+ dup 4 8 getinterval exch % the default
+ 0 1 2 index 2 getu16 1 sub {
+ 8 mul 4 add 1 index exch 8 getinterval
+ DEBUG {
+ (cmap: platform ) print dup 0 getu16 =only
+ ( encoding ) print dup 2 getu16 = flush
+ } if
+ dup 0 getu16 3 eq { exch 3 -1 roll pop exit } if pop
+ } for
% Stack: subentry table
- /cmapsub 2 index def
- exch 4 getu32 1 index length 1 index sub getinterval
- /cmaptab exch def
+ /cmapsub 2 index def
+ exch 4 getu32 1 index length 1 index sub getinterval
+ /cmaptab exch def
} bind def
% <glyfs> .dividesfnts <glyfs'>
@@ -587,38 +580,51 @@
/.definettfont {
/FontType 42
/PaintType 0
+ % Choose a cmap.
+ /cmapglyphs cmaptab cmaparray ] def
% See if we have PostScript glyph name information.
/glyphencoding post null eq {
- [ ]
+ [ ]
} {
postformats post 0 getu32 .knownget {
+ DEBUG {
+ (post: format ) print
+ post 0 getu16 =only (,) print post 2 getu16 = flush
+ } if
post exch exec
} {
[ ]
} ifelse
- } ifelse
- % If necessary, fabricate additional glyphencoding entries
- % to cover all of loca.
- dup length numloca lt {
- [ exch aload pop
- counttomark 1 numloca 1 sub {
- =string cvs (_) exch concatstrings cvn
- } for ]
- } if def
+ } ifelse def
DEBUG {
(numloca=) print numloca =
(glyphencoding: length=) print glyphencoding dup length = === flush
} if
+ % Hack: if there is no usable post table but the cmap uses
+ % the Microsoft Unicode encoding, use ISOLatin1Encoding.
+ /addiso
+ glyphencoding length 0 eq cmapsub 0 4 getinterval <00030001> eq and
+ def
+ % If necessary, fabricate additional glyphencoding entries
+ % to cover all of loca, or truncate glyphencoding.
+ glyphencoding length numloca lt {
+ /glyphencoding [ glyphencoding aload pop
+ counttomark 1 numloca 1 sub {
+ =string cvs (_) exch concatstrings cvn
+ } for ] def
+ } {
+ /glyphencoding glyphencoding 0 numloca getinterval def
+ } ifelse
/Encoding
- cmaptab cmaparray
- counttomark array astore
- { glyphencoding exch get } forall
+ [ cmapglyphs { glyphencoding exch get } forall
counttomark 256 sub dup 0 ge {
{ pop } repeat
- } { neg { /.notdef } repeat
+ } {
+ neg { /.notdef } repeat
} ifelse ]
% Until we can compute the MD5 fingerprint,
% just use the precomputed checksum.
+ DEBUG { (Encoding: ) print dup === flush } if
/CharStrings glyphencoding dup length dict
0 1 3 index length 1 sub {
% Stack: glyphencoding dict index
@@ -627,7 +633,19 @@
} {
2 index exch 3 -1 roll put
} ifelse
- } for exch pop readonly
+ } for exch pop
+ addiso {
+ 0 1 4 index length 256 min 1 sub {
+ % Stack: /Encoding encoding /CharStrings charstrings code
+ 3 index 1 index get 2 index exch .knownget {
+ dup 0 ne {
+ 2 index ISOLatin1Encoding 3 index get 3 -1 roll put
+ } {
+ pop
+ } ifelse
+ } if pop
+ } for
+ } if readonly
.dicttomark
end end dup /FontName get exch definefont
} bind def
diff --git a/gs/lib/gs_typ32.ps b/gs/lib/gs_typ32.ps
index 7fce6d89e..cb37ab2e4 100644
--- a/gs/lib/gs_typ32.ps
+++ b/gs/lib/gs_typ32.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Initialization file for Type 32 fonts.
% ------ Type 32 fonts ------ %
diff --git a/gs/lib/gs_typ42.ps b/gs/lib/gs_typ42.ps
index 6fd6a4523..5451b57f8 100644
--- a/gs/lib/gs_typ42.ps
+++ b/gs/lib/gs_typ42.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Type 42 font support code.
% Here are the BuildChar and BuildGlyph implementation for Type 42 fonts.
diff --git a/gs/lib/gs_type1.ps b/gs/lib/gs_type1.ps
index c64be1ab4..90d0832ce 100644
--- a/gs/lib/gs_type1.ps
+++ b/gs/lib/gs_type1.ps
@@ -1,21 +1,8 @@
-% Copyright (C) 1994, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Type 1 font support code.
% The standard representation for PostScript compatible fonts is described
@@ -87,21 +74,23 @@ ifelse
% Since the file might leave garbage on the operand stack,
% we have to create a procedure to close the file reliably.
{ dup read not { -1 } if
- 2 copy unread 16#80 eq
- { [ exch dup true /PFBDecode filter cvx exch cvlit
- /closefile .systemvar ]
- }
- if cvx exec
+ 2 copy unread 16#80 eq {
+ dup true /PFBDecode filter cvx
+ exch .currentresourcefile eq {
+ dup /.execasresource .systemvar
+ } {
+ {exec}
+ } ifelse
+ 2 index cvlit
+ /closefile .systemvar 3 .execn
+ } {
+ cvx exec
+ } ifelse
} stopped
$error /newerror get and dup { .clearerror } if
} bind def
-% The CharStrings are a dictionary in which the key is the character name,
-% and the value is a compressed and encrypted representation of a path.
-% For detailed information, see the book "Adobe Type 1 Font Format",
-% published by Adobe Systems Inc.
-
% Here are the BuildChar and BuildGlyph implementation for Type 1 fonts.
% The names %Type1BuildChar and %Type1BuildGlyph are known to the interpreter.
% The real work is done in an operator:
diff --git a/gs/lib/gs_wan_e.ps b/gs/lib/gs_wan_e.ps
index 4e1424131..8784dc330 100644
--- a/gs/lib/gs_wan_e.ps
+++ b/gs/lib/gs_wan_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the WinAnsi encoding vector.
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
@@ -31,14 +18,16 @@ ISOLatin1Encoding 46 50 getinterval aload pop
ISOLatin1Encoding 97 30 getinterval aload pop
/bullet
% \20x
+ % NOTE: /Euro, /Zcaron, and /zcaron are new for PDF 1.3.
+ % We may have to take them out for backward compatibility.
/Euro /bullet /quotesinglbase /florin
/quotedblbase /ellipsis /dagger /daggerdbl
/circumflex /perthousand /Scaron /guilsinglleft
- /OE /bullet /bullet /bullet
+ /OE /bullet /Zcaron /bullet
/bullet /quoteleft /quoteright /quotedblleft
/quotedblright /bullet /endash /emdash
/tilde /trademark /scaron /guilsinglright
- /oe /bullet /bullet /Ydieresis
+ /oe /bullet /zcaron /Ydieresis
ISOLatin1Encoding 160 96 getinterval aload pop
256 packedarray
4 1 index .registerencoding
diff --git a/gs/lib/gs_wl1_e.ps b/gs/lib/gs_wl1_e.ps
index 03712c5dc..3ef1a566b 100644
--- a/gs/lib/gs_wl1_e.ps
+++ b/gs/lib/gs_wl1_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Windows 3.1 Latin 1 encoding vector (H-P Symbol set 19U).
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
diff --git a/gs/lib/gs_wl2_e.ps b/gs/lib/gs_wl2_e.ps
index b4a5f0ce7..1ca63268b 100644
--- a/gs/lib/gs_wl2_e.ps
+++ b/gs/lib/gs_wl2_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Windows 3.1 Latin 2 encoding vector (H-P Symbol set 9E).
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
diff --git a/gs/lib/gs_wl5_e.ps b/gs/lib/gs_wl5_e.ps
index 14055a463..89613a440 100644
--- a/gs/lib/gs_wl5_e.ps
+++ b/gs/lib/gs_wl5_e.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Define the Windows 3.1 Latin 5 encoding vector (H-P Symbol set 5T).
/currentglobal where
{ pop currentglobal { setglobal } true setglobal }
diff --git a/gs/lib/gsbj b/gs/lib/gsbj
index 4b676843a..c2f4eef5f 100755
--- a/gs/lib/gsbj
+++ b/gs/lib/gsbj
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -sDEVICE=bj10e -r180 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
diff --git a/gs/lib/gsbj.bat b/gs/lib/gsbj.bat
index e373986ee..04d387bae 100755
--- a/gs/lib/gsbj.bat
+++ b/gs/lib/gsbj.bat
@@ -1,2 +1,2 @@
@gs -q -sDEVICE=bj10e -r180 -dNOPAUSE -sPROGNAME=gsbj -- gslp.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gsdj b/gs/lib/gsdj
index e18411126..47e84f42c 100755
--- a/gs/lib/gsdj
+++ b/gs/lib/gsdj
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -sDEVICE=deskjet -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
diff --git a/gs/lib/gsdj.bat b/gs/lib/gsdj.bat
index a37ac4e3d..d69f1a188 100755
--- a/gs/lib/gsdj.bat
+++ b/gs/lib/gsdj.bat
@@ -1,2 +1,2 @@
@gs -q -sDEVICE=deskjet -r300 -dNOPAUSE -sPROGNAME=gsdj -- gslp.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gsdj500 b/gs/lib/gsdj500
index 253097df9..c921dc518 100755
--- a/gs/lib/gsdj500
+++ b/gs/lib/gsdj500
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -sDEVICE=djet500 -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
diff --git a/gs/lib/gsdj500.bat b/gs/lib/gsdj500.bat
index 42c198f1d..1522bdf5e 100755
--- a/gs/lib/gsdj500.bat
+++ b/gs/lib/gsdj500.bat
@@ -1,2 +1,2 @@
@gs -q -sDEVICE#djet500 -r300 -dNOPAUSE -sPROGNAME=gsdj500 -- gslp.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gslj b/gs/lib/gslj
index 684e778cd..59b33c8b0 100755
--- a/gs/lib/gslj
+++ b/gs/lib/gslj
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
diff --git a/gs/lib/gslj.bat b/gs/lib/gslj.bat
index e28726c50..dd1228f84 100755
--- a/gs/lib/gslj.bat
+++ b/gs/lib/gslj.bat
@@ -1,2 +1,2 @@
@gs -q -sDEVICE=laserjet -r300 -dNOPAUSE -sPROGNAME=gslj -- gslp.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gslp b/gs/lib/gslp
index 8c9d67d97..970cc8d9a 100755
--- a/gs/lib/gslp
+++ b/gs/lib/gslp
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -sDEVICE=epson -r180 -dNOPAUSE -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$@"
diff --git a/gs/lib/gslp.bat b/gs/lib/gslp.bat
index 9004409e2..8ae219623 100755
--- a/gs/lib/gslp.bat
+++ b/gs/lib/gslp.bat
@@ -1,2 +1,2 @@
@gs -q -sDEVICE=epson -r180 -dNOPAUSE -sPROGNAME=gslp -- gslp.ps %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gslp.ps b/gs/lib/gslp.ps
index e59eced98..eb80d45a5 100644
--- a/gs/lib/gslp.ps
+++ b/gs/lib/gslp.ps
@@ -1,21 +1,8 @@
-% Copyright (C) 1991, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% gslp.ps - format and print text
% This utility provides functionality approximately equivalent to the Unix
@@ -78,8 +65,12 @@ lpdict begin
/AddToSpace 0 def
/AddToWidth 0 def
/BodyFont null def % use default
+ /defaultBodyFontPortrait
+ /Courier find-latin-font 10 scalefont def
+ /defaultBodyFontLandscape
+ /Courier find-latin-font 7 scalefont def
/defaultBodyFont
- { /Courier find-latin-font Landscape { 7 } { 10 } ifelse scalefont } def
+ { Landscape { defaultBodyFontLandscape } { defaultBodyFontPortrait } ifelse } def
/Columns 1 def
/DetectFileType false def
/EjectEOF true def
@@ -94,7 +85,7 @@ lpdict begin
/HeadingRight (page ) PageNumberString concatstrings def
/HeadingFont null def % use default
/defaultHeadingFont
- { /Courier-Bold find-latin-font 10 scalefont } def
+ /Courier-Bold find-latin-font 10 scalefont def
/Kern 0 dict def % no kerning
/Landscape false def
/MarginBottom 36 def % 1/2"
@@ -116,46 +107,53 @@ lpdict begin
% lpexec provides for all this.
/lpdef { % <name> <value> lpdef -
- OutFile null ne {
- 1 index wosp dup wosp OutFile ( def\n) writestring
- } if def
+ /def 2 true lpexec
} def
-/lpexec % <arg1> ... <argn> </op> <n> <do_always> lpexec -
- { OutFile null eq
- { pop 1 add true
- }
- { /t exch def 1 add /n exch def cvx
- n { n -1 roll dup wosp } repeat
- OutFile (\n) writestring
- n t
- }
- ifelse
+/lpexec { % <arg1> ... <argn> </op> <n> <do_always> lpexec -
+ OutFile null eq {
+ pop 1 add true
+ } {
+ /t exch def 1 add /n exch def cvx
+ n -1 roll dup wo
+ n 1 sub { n -1 roll dup wosp } repeat
+ (\n) ws n t
+ } ifelse
{ pop load exec }
{ { pop } repeat }
- ifelse
- } def
+ ifelse
+} def
-/lpmoveto {
- /moveto 2 true lpexec
+/lpmoveto { % <x> <y> lpmoveto -
+ % Round the coordinates for smaller output.
+ 2 {
+ exch 100 mul round 100 div
+ dup dup cvi eq { cvi } if
+ } repeat
+ 1 index X eq { neg exch pop /V 1 } { neg /M 2 } ifelse true lpexec
} def
-/lpshow {
+/lpshow { % <string> lpshow -
dup length 0 ne {
addspace 0 ne {
addspace 0 32
addwidth 0 ne {
- addwidth 0 6 -1 roll /awidthshow 6
+ addwidth 0 6 -1 roll /awidthshow 6 true lpexec
} {
- 4 -1 roll /widthshow 4
+ 4 -1 roll /widthshow 4 true lpexec
} ifelse
} {
addwidth 0 ne {
- addwidth 0 3 -1 roll /ashow 3
+ addwidth 0 3 -1 roll /ashow 3 true lpexec
} {
- /show 1
+ OutFile null ne {
+ dup dup length =string length gt {
+ /show 1 false lpexec
+ } {
+ (S ) ws ws (\n) ws
+ } ifelse
+ } if show
} ifelse
} ifelse
- true lpexec
} {
pop
} ifelse
@@ -192,28 +190,34 @@ lpdict begin
/beginpage
{ /lindex 0 def
/skipping pindex PageFirst ge pindex PageLast le and not def
- /save 0 true lpexec /pagesave exch def
+ pagex pagey Landscape {/BL} {/B} ifelse 2 true lpexec
+ /pagesave exch def
skipping { nulldevice /OutFile null def } if
Headers
{ lheight hdescent add
HeadingLeft HeadingCenter HeadingRight banner
} if
/BFont lpsetmyfont
- /addspace AddToSpace lpdef /addwidth AddToWidth lpdef
/pairkern Kern def
+ /addspace AddToSpace def /addwidth AddToWidth def
+ pairkern length 0 ne {
+ /addspace AddToSpace lpdef /addwidth AddToWidth lpdef
+ } if
} def
-/endpage
- { lindex 0 ne
- { Footers
- { topskip plength sub hdescent add
- FootingLeft FootingCenter FootingRight banner
- } if
- /showpage 0 false lpexec
+/endpage {
+ lindex 0 ne {
+ Footers {
+ topskip plength sub hdescent add
+ FootingLeft FootingCenter FootingRight banner
} if
- pagesave /restore 0 true lpexec
- /pindex pindex 1 add def
- } def
+ /E
+ } {
+ /restore
+ } ifelse
+ pagesave exch 0 true lpexec
+ /pindex pindex 1 add def
+} def
/endcolumn
{ lindex colines 1 sub add colines idiv colines mul
@@ -232,32 +236,25 @@ lpdict begin
dup length wosp ( dict\n) ws
{ (dup) ws exch wosp wosp ( put\n) ws } forall
} def
-/wosp {
- ( ) ws
+/wosp { ( ) ws wo } def
+/wo {
dup type /dicttype eq { wdict } { OutFile exch write==only } ifelse
} def
/ws {
OutFile exch writestring
} def
-/outfont % name font ->
- { OutFile null ne
- { exch wosp
- dup /FontName get
- dup wosp OutFile ( findfont) writestring
- %% reencode for iso latin1; from the 2nd edition red book, sec 5.6.1
- OutFile (
- dup length dict begin {1 index /FID ne {def} {pop pop} ifelse} forall
- /Encoding ISOLatin1Encoding def currentdict end
- ) writestring
- wosp OutFile (-ISOLatin1 exch definefont) writestring
- /FontMatrix get 0 get 1000 mul round cvi wosp
- OutFile ( scalefont def\n) writestring
- }
- { pop pop
- }
- ifelse
- } def
+/outfont { % <name> <font> outfont -
+ OutFile null ne {
+ exch wo
+ dup /FontName get
+ dup wosp (-ISOLatin1) ws wosp ( RE) ws
+ /FontMatrix get 0 get 1000 mul round cvi wosp
+ ( scalefont def\n) ws
+ } {
+ pop pop
+ }ifelse
+} def
/StringFF (\f) def
/CharFF StringFF 0 get def
@@ -282,33 +279,41 @@ lpdict begin
/lindex lindex 1 add def
} def
-/showline2 % string x y xlimit -> leftover_string (handles tabs)
- { 2 index exch 5 2 roll lpmoveto % xinit xlimit string
- { showline3 dup length 0 eq { exit } if
- dup 0 get CharTAB ne { exit } if
- currentpoint exch 4 index sub tabwx div
- 0.05 add ceiling tabwx mul 4 index add exch lpmoveto
- skip1
- currentpoint pop 2 index ge { exit } if
- }
- loop exch pop exch pop
- } def
+/setxy {
+ /ty exch def /tx exch def
+} def
-/showline3 % xlimit string -> xlimit leftover_string
+/showline2 { % string x y xlimit -> leftover_string (handles tabs)
+ 2 index exch 5 2 roll setxy {
+ % Stack: xinit xlimit string
+ showline3 dup length 0 eq { exit } if
+ dup 0 get CharTAB ne { exit } if
+ tx 3 index sub tabwx div
+ 0.05 add ceiling tabwx mul 3 index add ty setxy
+ skip1
+ tx 2 index ge { exit } if
+ } loop exch pop exch pop
+} def
+
+/showline3 { % xlimit string -> xlimit leftover_string
% (finds line break / tab / formfeed)
- { currentpoint pop 2 index exch sub
- cwx div 0.1 add cvi 0 max 1 index length min
- 1 index 0 3 -1 roll getinterval
+ 1 index tx sub
+ cwx div 0.1 add cvi 0 max 1 index length min
+ 1 index 0 3 -1 roll getinterval
% look for \f or \t
- StringFF search { exch pop exch pop } if
- StringTAB search { exch pop exch pop } if
- dup pairkern length 0 eq {
- lpshow
- } {
- { kproc } exch /kshow 2 true lpexec
- } ifelse
- length dup 2 index length exch sub getinterval
- } def
+ StringFF search { exch pop exch pop } if
+ StringTAB search { exch pop exch pop } if
+ dup length 0 ne {
+ tx ty lpmoveto
+ dup pairkern length 0 eq {
+ lpshow
+ } {
+ { kproc } exch /kshow 2 true lpexec
+ } ifelse
+ currentpoint setxy
+ } if
+ length dup 2 index length exch sub getinterval
+} def
/kproc { % <char1> <char2> kproc -
pairkern currentfont /Encoding get 3 index get
@@ -372,25 +377,54 @@ lpdict begin
% The main printing procedure
-/lp % file initial_chars ->
- { /lpline exch def
- /lpfile exch def
- /save 0 true lpexec
+/doFirst true def
+/prevBFont null def
+/prevHFont null def
+
+/lpfirst { % - lpfirst -
+% Define some abbreviating procedures.
+ /B {save 3 1 roll translate /X 0 def} lpdef
+ /BL {save 3 1 roll 90 rotate translate /X 0 def} lpdef
+ /E {showpage restore} lpdef
+ /V {neg X exch moveto} lpdef
+ /M {/X 2 index def neg moveto} lpdef
+ /S {currentfile =string readline pop show} lpdef
+ /RE { % <isoname> <fontname> RE <font>
+ findfont
+ %% reencode for iso latin1; from the 2nd edition red book, sec 5.6.1
+ dup length dict begin {1 index /FID ne {def} {pop pop} ifelse} forall
+ /Encoding ISOLatin1Encoding def currentdict end
+ definefont
+ } lpdef
+} def
+
+/lp { % file initial_chars ->
+ /lpline exch def
+ /lpfile exch def
+
+ doFirst { lpfirst /doFirst false def } if
% Initialize the device and fonts.
- /BFont
- BodyFont null eq { defaultBodyFont } { BodyFont } ifelse def
- /BFont BFont outfont
- Headers Footers or
- { /HFont
- HeadingFont null eq { defaultHeadingFont } { HeadingFont } ifelse def
+ /BFont
+ BodyFont null eq { defaultBodyFont } { BodyFont } ifelse def
+ BFont prevBFont ne {
+ /BFont BFont outfont
+ /prevBFont BFont def
+ } if
+ Headers Footers or {
+ /HFont
+ HeadingFont null eq { defaultHeadingFont } { HeadingFont } ifelse def
+ HFont prevHFont ne {
/HFont HFont outfont
- }
- if
+ /prevHFont HFont def
+ } if
+ } if
+ save
% Get the layout parameters.
clippath
- Landscape { 90 /rotate 1 true lpexec } if
+ gsave % for possible rotation
+ Landscape { 90 rotate } if
BFont setfont ( ) stringwidth pop /cwx exch def
cwx Tab mul /tabwx exch def
BFont fontheight /fheight exch def /fascent exch def
@@ -411,10 +445,11 @@ lpdict begin
pwidth Columns div /cowidth exch def
exch MarginLeft add
exch MarginBottom add plength add topskip sub
- /translate 2 true lpexec
+ /pagey exch def /pagex exch def
plength pskip sub lheight div cvi MaxLines min
dup /colines exch def
Columns mul /llength exch def
+ grestore
OutFile null ne { nulldevice } if
% Print layout
@@ -462,9 +497,9 @@ lpdict begin
%**************** WHY IS THIS COMMENTED OUT? ****************
% EjectEOF { endpage } { endcolumn } ifelse
endpage
- /restore 0 true lpexec
+ restore
- } def
+} def
end
diff --git a/gs/lib/gsnd b/gs/lib/gsnd
index dea98db62..9c8d20237 100755
--- a/gs/lib/gsnd
+++ b/gs/lib/gsnd
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -DNODISPLAY "$@"
diff --git a/gs/lib/gsnd.bat b/gs/lib/gsnd.bat
index 523cf2819..88b215071 100755
--- a/gs/lib/gsnd.bat
+++ b/gs/lib/gsnd.bat
@@ -1,2 +1,2 @@
@gs -DNODISPLAY %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gsndt.bat b/gs/lib/gsndt.bat
index 6be1a9bda..b13f4419f 100755
--- a/gs/lib/gsndt.bat
+++ b/gs/lib/gsndt.bat
@@ -1,2 +1,2 @@
@gst -DNODISPLAY %1 %2 %3 %4 %5 %6 %7 %8 %9
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gsnup.ps b/gs/lib/gsnup.ps
new file mode 100644
index 000000000..6dcb27aa5
--- /dev/null
+++ b/gs/lib/gsnup.ps
@@ -0,0 +1,90 @@
+%!
+% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
+%
+% This file is part of Aladdin Ghostscript.
+%
+% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
+% or distributor accepts any responsibility for the consequences of using it,
+% or for whether it serves any particular purpose or works at all, unless he
+% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+% License (the "License") for full details.
+%
+% Every copy of Aladdin Ghostscript must include a copy of the License,
+% normally in a plain ASCII text file named PUBLIC. The License grants you
+% the right to copy, modify and redistribute Aladdin Ghostscript, but only
+% under certain conditions described in the License. Among other things, the
+% License requires that the copyright notice and this notice be preserved on
+% all copies.
+
+% $RCSfile$ $Revision$
+% Prefix this to very well-behaved PostScript files for n-up printing.
+
+/cdef { 1 index where { pop pop } { def } ifelse } def
+
+%%%%%%%%%%%%%%%% Begin parameters %%%%%%%%%%%%%%%%
+
+% All parameters are also settable from the command line with -d, e.g.,
+% -d.Nx=3
+
+/.Nx 2 cdef % # of pages across the physical page
+/.Ny 2 cdef % # of pages down the physical page
+/.Landscape false cdef % if true, rotate page by 90 degrees
+
+%%%%%%%%%%%%%%%% End parameters %%%%%%%%%%%%%%%%
+
+vmstatus pop pop 0 eq { save pop } if
+.Landscape {
+ currentpagedevice /PageSize get aload pop
+ exch 2 array astore
+ 1 dict dup /PageSize 4 -1 roll put
+ setpagedevice
+} if
+/.BP currentpagedevice /BeginPage get def
+/.EP currentpagedevice /EndPage get def
+/.Ps 1 string def % survive save/restore
+/.Pn { .Ps 0 get } def
+true setglobal % protect from restore
+/.ELevel [0] def
+/.Rmat matrix def
+false setglobal
+/.max { 2 copy lt { exch } if pop } cdef
+% Work around the common save ... showpage ... restore locution.
+/restore {
+ .Rmat currentmatrix pop restore
+ vmstatus pop pop .ELevel 0 get lt { .Rmat setmatrix } if
+} bind def
+<<
+ /BeginPage {
+ .BP .Nx .Ny .max
+ gsave
+ initclip clippath pathbbox exch 4 -1 roll sub 3 1 roll exch sub
+ grestore
+ 2 copy exch .Nx div exch .Ny div
+ .Pn dup .Nx mod exch .Nx idiv .Ny 1 sub exch sub
+ % Stack: nmax pw ph pw/nx ph/ny ix iy
+ exch 3 index mul exch 2 index mul
+ translate
+ % Stack: nmax pw ph pw/nx ph/ny
+ 4 -1 roll 4 index div 4 -1 roll 4 index div
+ % Stack: nmax pw/nx ph/ny pw/nmax ph/nmax
+ exch 4 -1 roll exch sub 2 div
+ 3 1 roll sub 2 div
+ translate
+ % Stack: nmax
+ 1 exch div dup scale
+ }
+ /EndPage {
+ .ELevel 0 vmstatus pop pop put
+ .Ps 0 .Pn 1 add .Nx .Ny mul mod put
+ .Pn 0 eq {
+ .EP
+ } {
+ pop pop false
+ } ifelse
+ }
+>> setpagedevice
+/.EOJ {
+ { .Pn 0 eq { exit } if showpage } loop
+} def
+
+{ currentfile cvx exec .EOJ } exec
diff --git a/gs/lib/gst.bat b/gs/lib/gst.bat
index 0ba864ca1..86921b3e2 100755
--- a/gs/lib/gst.bat
+++ b/gs/lib/gst.bat
@@ -1,2 +1,2 @@
@gs %1 %2 %3 %4 %5 %6 %7 %8 %9 >t
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/gstt.bat b/gs/lib/gstt.bat
index 8f24f4f4f..9ee8ec610 100755
--- a/gs/lib/gstt.bat
+++ b/gs/lib/gstt.bat
@@ -1,2 +1,2 @@
@gs %1 %2 %3 %4 %5 %6 %7 %8 %9 >>t
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/lib/impath.ps b/gs/lib/impath.ps
index f549e07b2..3ccd8ee42 100644
--- a/gs/lib/impath.ps
+++ b/gs/lib/impath.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1992, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% impath.ps
% Reverse-rasterize a bitmap to produce a Type 1 outline.
% (This was formerly a Ghostscript operator implemented in C.)
diff --git a/gs/lib/lines.ps b/gs/lib/lines.ps
index f45b0522e..15623d4d4 100644
--- a/gs/lib/lines.ps
+++ b/gs/lib/lines.ps
@@ -16,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% Test line rendering (stroke).
% Exercise the miter limit. The left column of lines should bevel at
diff --git a/gs/lib/lp386.bat b/gs/lib/lp386.bat
index f300095fc..ce42a0665 100755
--- a/gs/lib/lp386.bat
+++ b/gs/lib/lp386.bat
@@ -1,2 +1,2 @@
-
+@rem $RCSfile$ $Revision$
@gs386 -sDEVICE=djet500 -dNOPAUSE -- gslp.ps -fCourier9 %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/gs/lib/lp386r2.bat b/gs/lib/lp386r2.bat
index 5c403ba8e..4c5813989 100755
--- a/gs/lib/lp386r2.bat
+++ b/gs/lib/lp386r2.bat
@@ -1,2 +1,2 @@
-
+@rem $RCSfile$ $Revision$
@gs386 -sDEVICE=djet500 -dNOPAUSE -- gslp.ps -2r %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/gs/lib/lpgs.bat b/gs/lib/lpgs.bat
index ef6b1c5ff..70624cb24 100755
--- a/gs/lib/lpgs.bat
+++ b/gs/lib/lpgs.bat
@@ -1,2 +1,2 @@
-
+@rem $RCSfile$ $Revision$
@gs -sDEVICE#djet500 -dNOPAUSE -sPROGNAME=lpgs -- gslp.ps -fCourier9 %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/gs/lib/lpr2.bat b/gs/lib/lpr2.bat
index bef670f75..12c8f5611 100755
--- a/gs/lib/lpr2.bat
+++ b/gs/lib/lpr2.bat
@@ -1,2 +1,2 @@
-
+@rem $RCSfile$ $Revision$
@gs -sDEVICE#djet500 -dNOPAUSE -sPROGNAME=lpr2 -- gslp.ps -2r %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/gs/lib/lprsetup.sh b/gs/lib/lprsetup.sh
index ca3d4856e..7a688a9cd 100755
--- a/gs/lib/lprsetup.sh
+++ b/gs/lib/lprsetup.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
#
# BSD PRINT FILTER SETUP utility for Ghostscript - used and tested on
# SunOS 4.1.3, but I hope it will be useful on other BSD systems
diff --git a/gs/lib/markhint.ps b/gs/lib/markhint.ps
index 3fad26a7c..b959720af 100644
--- a/gs/lib/markhint.ps
+++ b/gs/lib/markhint.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% markhint.ps
% Draw the hints for a Type 1 font.
diff --git a/gs/lib/markpath.ps b/gs/lib/markpath.ps
index 75187bdb2..da696bbd4 100644
--- a/gs/lib/markpath.ps
+++ b/gs/lib/markpath.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% markpath.ps
% Mark the corners of a path, drawing it slowly if desired.
diff --git a/gs/lib/packfile.ps b/gs/lib/packfile.ps
index f63d29299..3630f3a83 100644
--- a/gs/lib/packfile.ps
+++ b/gs/lib/packfile.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% packfile.ps
% Pack groups of files together, with compression, for use in
% storage-scarce environments.
diff --git a/gs/lib/pcharstr.ps b/gs/lib/pcharstr.ps
index d910e3fff..609fa7527 100644
--- a/gs/lib/pcharstr.ps
+++ b/gs/lib/pcharstr.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1990, 1992, 1997, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pcharstr.ps
% Print the CharStrings and Subrs (if present) from a Type 1 font,
% in either a PostScript-like or a C-compatible form,
diff --git a/gs/lib/pdf2dsc b/gs/lib/pdf2dsc
index 256b8c78f..becd5c9b3 100755
--- a/gs/lib/pdf2dsc
+++ b/gs/lib/pdf2dsc
@@ -1,5 +1,5 @@
#! /bin/sh
-
+# $RCSfile$ $Revision$
# psf2dsc: generates an index of a PDF file.
#
diff --git a/gs/lib/pdf2dsc.ps b/gs/lib/pdf2dsc.ps
index 3925d7d44..5d8bc0abf 100644
--- a/gs/lib/pdf2dsc.ps
+++ b/gs/lib/pdf2dsc.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pdf2dsc.ps
% read pdf file and produce DSC "index" file.
%
diff --git a/gs/lib/pdf2ps b/gs/lib/pdf2ps
index a5d27960f..de7fc39b6 100755
--- a/gs/lib/pdf2ps
+++ b/gs/lib/pdf2ps
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Convert PDF to PostScript.
OPTIONS=""
diff --git a/gs/lib/pdf2ps.bat b/gs/lib/pdf2ps.bat
index 11442cb59..69c347575 100755
--- a/gs/lib/pdf2ps.bat
+++ b/gs/lib/pdf2ps.bat
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
@rem Convert PDF to PostScript.
if "%1"=="" goto usage
diff --git a/gs/lib/pdf_base.ps b/gs/lib/pdf_base.ps
index 4d8ae3c0e..1ea80abe7 100644
--- a/gs/lib/pdf_base.ps
+++ b/gs/lib/pdf_base.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pdf_base.ps
% Basic parser for PDF reader.
@@ -145,6 +132,12 @@ pdfdict begin
/LocalResources 8 -1 roll store 4 .execn
} bind def
+% Get the depth of the PDF operand stack. The main program (pdf_main.ps)
+% sets pdfemptycount before calling .pdfrun.
+/.pdfcount { % - .pdfcount <count>
+ count pdfemptycount sub
+} bind def
+
% ------ File reading ------ %
% Read the cross-reference entry for an (unresolved) object.
@@ -326,10 +319,10 @@ pdfdict begin
% PDF 1.1 defines a 'foreign file reference', but not its meaning.
% Per the specification, we convert these to nulls.
-/F % <file#> <object#> <generation#> F <object>
- { % Some PDF 1.1 files use F as a synonym for f!
- count 3 lt { f } { pop pop pop null } ifelse
- } bind def
+/F { % <file#> <object#> <generation#> F <object>
+ % Some PDF 1.1 files use F as a synonym for f!
+ .pdfcount 3 lt { f } { pop pop pop null } ifelse
+} bind def
/checkgeneration { % <object#> <generation#> checkgeneration <object#> <OK>
Generations 2 index lget 1 sub 1 index eq {
diff --git a/gs/lib/pdf_draw.ps b/gs/lib/pdf_draw.ps
index ba53c0518..16d41d3fb 100644
--- a/gs/lib/pdf_draw.ps
+++ b/gs/lib/pdf_draw.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pdf_draw.ps
% PDF drawing operations (graphics, text, and images).
@@ -40,6 +27,11 @@ pdfdict begin
4 { .resolvefn4 }
.dicttomark readonly def
+/.pdfbuildfunction {
+ DEBUG { (%Function: ) print dup === flush } if
+ .buildfunction
+} bdef
+
/.resolvefn0 {
% Don't lose our place in PDFfile.
PDFfile fileposition exch
@@ -53,7 +45,7 @@ pdfdict begin
% Stack: filepos fndict data
exch dup length 1 add dict .copydict
dup /DataSource 4 -1 roll put
- .buildfunction
+ .pdfbuildfunction
exch PDFfile exch setfileposition
} bdef
@@ -85,7 +77,7 @@ pdfdict begin
% Use tfopdict to bind true and false.
//tfopdict begin .bind end
1 index /Function 3 -1 roll put
- .buildfunction
+ .pdfbuildfunction
exch PDFfile exch setfileposition
} bdef
currentdict /tfopdict undef
@@ -98,6 +90,10 @@ currentdict /tfopdict undef
dup /Identity eq { pop { } } { resolvefunction } ifelse
} bdef
+/resolvedefaultfunction { % <fndict> <default> resolved'f'n <function>
+ 1 index /Default eq { exch pop } { pop resolveidfunction } ifelse
+} bdef
+
% ---------------- Shadings ---------------- %
/shrdict mark
@@ -119,7 +115,7 @@ currentdict /tfopdict undef
oforce //shrdict 2 index .knownget { exec } if
} forall .dicttomark
dup /ShadingType get 4 ge {
- dup dup true resolvestream /DataSource exch def
+ dup dup true resolvestream /DataSource exch put
} if
} {
null
@@ -230,24 +226,49 @@ drawopdict begin
/gs { gs } def
end
+% Each entry in this dictionary is
+% <gsres> <value> -proc- <gsres>
+/gsbg { /BGDefault load resolvedefaultfunction setblackgeneration } bdef
+/gsucr { /UCRDefault load resolvedefaultfunction setundercolorremoval } bdef
+ %****** DOESN'T IMPLEMENT THE ARRAY (colortransfer) CASE YET ******
+/gstr { /TRDefault load resolvedefaultfunction settransfer } bdef
/gsparamdict mark
- /Type { pop }
/SA { setstrokeadjust }
+ /op {
+ %****** STROKE OVERPRINT, NOT IMPLEMENTED YET ******
+ pop
+ }
/OP { setoverprint }
- /BG { resolveidfunction setblackgeneration }
- /UCR { resolveidfunction setundercolorremoval }
- /TR { resolveidfunction settransfer }
+ /OPM {
+ %****** OVERPRINT MODE, NOT IMPLEMENTED YET ******
+ pop
+ }
+ % The PDF 1.3 specification says that the name /Default is only
+ % recognized for {BG,UCR,TR}2. However, PDF 1.3 files produced
+ % by Adobe Acrobat Distiller 4.0 for Windows use the name /Default
+ % with the older keys, so we have to implement this.
+ /BG { 1 index /BG2 known { pop } { gsbg } ifelse }
+ /BG2 { gsbg }
+ /UCR { 1 index /UCR2 known { pop } { gsucr } ifelse }
+ /UCR2 { gsucr }
+ /TR { 1 index /TR2 known { pop } { gstr } ifelse }
+ /TR2 { gstr }
/HT {
dup /Default eq {
pop .setdefaultscreen
} {
- %****** NOT FINISHED ******
+ %****** DOESN'T IMPLEMENT THE STREAM CASE YET ******
resolvehalftone sethalftone
} ifelse
}
- /HTP { aload pop sethalftonephase }
+ % HTP may be present even if this isn't a DPS interpreter.
+ /HTP {
+ /sethalftonephase where { pop aload pop sethalftonephase } { pop } ifelse
+ }
% SM may be present even if this is only a Level 2 interpreter.
- /SM { /setsmoothness where { pop setsmoothness } { pop } ifelse }
+ /SM {
+ /setsmoothness where { pop setsmoothness } { pop } ifelse
+ }
/Font { aload pop Tf }
/LW { setlinewidth }
/LC { setlinecap }
@@ -259,8 +280,11 @@ end
.dicttomark readonly def
/gs { % <gsres> gs -
Page /ExtGState rget {
- { oforce exch gsparamdict exch .knownget { exec } { pop } ifelse }
- forall
+ % We keep the dictionary on the stack during the forall so that
+ % keys that interact with each other have access to it.
+ dup {
+ oforce exch gsparamdict exch .knownget { exec } { pop } ifelse
+ } forall pop
} if
} bdef
@@ -340,7 +364,7 @@ end
/ICCBased {
% Since the PostScript interpreter doesn't support these yet,
% always substitute an alternate space.
- dup /Alternate knownoget {
+ 1 oget dup /Alternate knownoget {
exch pop
} {
/N get { null /DeviceGray null /DeviceRGB /DeviceCMYK } exch get
@@ -438,7 +462,7 @@ end
% Check the PaintType
dup /PaintType get 2 eq
} {
- count 1 gt
+ .pdfcount 1 gt
} ifelse
} bdef
@@ -727,6 +751,95 @@ drawopdict begin
/TJ { TJ } def
end
+% ============================== Annotations ============================== %
+
+
+
+% Get and normalize an annotation's rectangle.
+/annotrect { % <annot> annotrect <x> <y> <w> <h>
+ /Rect get aload pop
+ exch 3 index sub dup 0 lt { dup 5 -1 roll add 4 1 roll neg } if
+ exch 2 index sub dup 0 lt { dup 4 -1 roll add 3 1 roll neg } if
+} bdef
+
+% Set an annotation color.
+/annotsetcolor { % <annot> annotsetcolor -
+ /C knownoget { setrgbcolor } { 0 setgray } ifelse
+} bdef
+
+% Draw the border. Currently, we ignore requests for beveling, and we
+% don't round the corners of rectangles.
+/strokeborder { % <annot> <width> <dash> strokeborder -
+ gsave
+ 2 index annotsetcolor
+ 0 setdash dup setlinewidth
+ exch annotrect
+ 2 { 4 index sub 4 1 roll } repeat
+ 2 { 4 index 0.5 mul add 4 1 roll } repeat
+ rectstroke pop
+ grestore
+} bdef
+
+% Draw an annotation border.
+/drawborder { % <annot> drawborder -
+ gsave
+ dup /BS knownoget {
+ dup /W knownoget not { 1 } if
+ [] 2 index /S knownoget {
+ /D eq { 2 index /D knownoget not { [3] } if exch pop } if
+ } if 3 -1 roll pop strokeborder
+ } {
+ dup /Border knownoget {
+ dup 2 get
+ exch dup length 3 gt { 3 get } { pop [] } ifelse
+ strokeborder
+ } {
+ pop
+ } ifelse
+ } ifelse
+ grestore
+} bdef
+
+% Draw an annotation.
+/drawannot { % <annot> drawannot -
+ gsave
+ dup /Subtype get /Widget eq
+ 1 index /F knownoget not { 0 } if 2 and 0 eq and {
+ dup drawborder
+ dup /AP knownoget {
+ % Always use the Normal appearance.
+ /N oget
+ % Acrobat Distiller produces files in which this Form
+ % XObject lacks Type and Subtype keys. This is illegal,
+ % but Acrobat Reader accepts it. The only way we can
+ % tell whether this is a Form or a set of sub-appearances
+ % is by testing for the stream Length key.
+ dup /Length known not {
+ 1 index /AS knownoget not { () } if
+ % Stack: annot Ndict AS
+ 2 copy knownoget {
+ exch pop exch pop
+ } {
+ % Pick any one.
+ pop { exch pop oforce exit } forall
+ } ifelse
+ } if
+ % Acrobat Distiller produces files in which this Form
+ % XObject lack FormType and Matrix keys. This is illegal,
+ % but Acrobat Reader accepts it. Patch this up now.
+ dup /FormType known not {
+ dup length 1 add dict copy dup /FormType 1 put
+ } if
+ dup /Matrix known not {
+ dup length 1 add dict copy dup /Matrix matrix put
+ } if
+ gsave 1 index annotrect pop pop translate
+ DoForm
+ } if
+ } if pop
+ grestore
+} bdef
+
end % pdfdict
end % GS_PDF_ProcSet
.setglobal
diff --git a/gs/lib/pdf_font.ps b/gs/lib/pdf_font.ps
index cd284680e..bb78a8b9d 100644
--- a/gs/lib/pdf_font.ps
+++ b/gs/lib/pdf_font.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pdf_font.ps
% PDF font operations.
@@ -256,20 +243,24 @@ pdfdict begin
% When the procedure is executing, this dictionary is current.
% leftstr and sectionstr are strings so that we can change their values
% reliably in case the font executes a restore!
+% We also have to do something special about embedded fonts that
+% execute definefont more than once -- that is the function of topFontDict.
% Read an embedded Type 1 font.
-/readfontfilter % <proc> readfontfilter <filter>
- { % We make this a separate procedure so that we can
- % redefine it when we're writing PostScript.
- 0 () /SubFileDecode filter
- } bdef
+/readfontfilter { % <proc> readfontfilter <filter>
+ 0 () /SubFileDecode filter
+} bdef
/readtype1dict 5 dict dup begin
/definefont {
- dup wcheck not { dup length dict copy } if
- exch pop savedFontName exch
+ dup topFontDict eq topFontDict null eq or {
+ dup wcheck not { dup length dict copy } if
+ exch pop savedFontName exch
+ } if
//systemdict /definefont get exec
} bdef
/eexec {
+ % Assume the font dictionary is on the top of the stack.
+ count 0 gt { /topFontDict 1 index cvlit store } if
55665 /eexecDecode filter
//systemdict begin readtype1dictcopy begin cvx stopped
currentdict readtype1dictcopy eq { end } if
@@ -297,16 +288,20 @@ end readonly def
% so we have to make a closure that records the stack depth
% in a fail-safe way.
//systemdict begin
- % Rebind definefont so we can substitute the FontName
- % from the descriptor.
- //readtype1dict dup length 2 add dict copy begin
- 1 index /FontDescriptor oget /FontName oget /savedFontName exch def
+ % The PDF specification is somewhat muddy about whether
+ % an embedded font's name is supposed to be the BaseFont
+ % from the Font object or the FontName from the descriptor.
+ % Acrobat Distiller requires the former. Save away the
+ % name so we can substitute it at definefont time.
+ //readtype1dict dup length 3 add dict copy begin
+ 1 index /BaseFont oget /savedFontName exch def
+ /topFontDict null def
/readtype1dictcopy currentdict def
{ run } aload pop count 1 sub 2 packedarray cvx exec
end end
count exch sub { pop } repeat
PDFfile 3 -1 roll setfileposition
- /FontDescriptor oget /FontName oget findfont
+ /BaseFont oget findfont
} bdef
% Execute the appropriate reading procedure.
@@ -470,13 +465,15 @@ readonly def
/CMapVersion 1 def
/CMapType 1 def
%/WMode ... def
+ % The PDF documentation says that these CMaps map CIDs
+ % "1 to 65,536". We think this is a misprint for 0 to 65,535.
2 begincodespacerange
- <0001> <00ff>
- <0100> <ffff>
+ % <0001> <00ff> <0100> <ffff>
+ <0000> <ffff>
endcodespacerange
2 begincidrange
- <0001> <00ff> 1
- <0100> <ffff> 256
+ % <0001> <00ff> 1 <0100> <ffff> 256
+ <0000> <ffff> 0
endcidrange
endcmap
CMapName currentdict /CMap defineresource
diff --git a/gs/lib/pdf_main.ps b/gs/lib/pdf_main.ps
index a46f12c3f..aa783b942 100644
--- a/gs/lib/pdf_main.ps
+++ b/gs/lib/pdf_main.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pdf_main.ps
% PDF file- and page-level operations.
@@ -180,6 +167,7 @@ pdfdict begin
}
repeat PDFfile exch setfileposition pop
} loop
+ count /pdfemptycount exch def
PDFfile traileropdict .pdfrun
} bind def
@@ -381,8 +369,12 @@ pdfdict begin
} ifelse
} {
dup type /stringtype eq {
- Trailer /Root oget /Names oget /Dests knownoget {
- exch nameoget
+ Trailer /Root oget /Names knownoget {
+ /Dests knownoget {
+ exch nameoget
+ } {
+ pop null
+ } ifelse
} {
pop null
} ifelse
@@ -393,7 +385,7 @@ pdfdict begin
% ([/Page <n>] /View <view> | ) <link|outline>
dup /Dest knownoget
{ resolvedest
- dup type /dicttype eq { /D get } if
+ dup type /dicttype eq { /D knownoget not { null } if } if
dup null eq
{ pop }
{ dup 0 oget
@@ -517,12 +509,19 @@ end readonly def
if
% Display the actual page contents.
- 2 dict begin
+ 6 dict begin
/BXlevel 0 def
+ /BGDefault currentblackgeneration def
+ /UCRDefault currentundercolorremoval def
+ %****** DOESN'T HANDLE COLOR TRANSFER YET ******
+ /TRDefault currenttransfer def
matrix currentmatrix beginpage setmatrix
- /Contents knownoget not { 0 array } if
+ dup /Contents knownoget not { 0 array } if
dup type /arraytype ne { 1 array astore } if
- { oforce false resolvestream pdfopdict .pdfrun } forall
+ { count 1 sub /pdfemptycount exch store
+ oforce false resolvestream pdfopdict .pdfrun
+ } forall
+ /Annots knownoget { { oforce drawannot } forall } if
endpage
end % scratch dict
} bind def
diff --git a/gs/lib/pdf_ops.ps b/gs/lib/pdf_ops.ps
index 1159dfaac..e78ddf950 100644
--- a/gs/lib/pdf_ops.ps
+++ b/gs/lib/pdf_ops.ps
@@ -1,22 +1,8 @@
% Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
-
-% pdf_ops.ps
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+
+% $RCSfile$ $Revision$
% Definitions for most of the PDF operators.
.currentglobal true .setglobal
@@ -42,7 +28,6 @@ userdict /GS_PDF_ProcSet 127 dict dup begin
% The keys in this dictionary are as follows:
% self % identifies the dictionary as one of ours
% Show
-% TextOrigin % origin of current line, in text space
% TextSaveMatrix % matrix at time of BT
% (The following correspond directly to PDF state parameters.)
% FillColor
@@ -53,6 +38,7 @@ userdict /GS_PDF_ProcSet 127 dict dup begin
% TextHScaling
% Leading
% TextFont
+% TextLineMatrix
% TextMatrix
% TextRise
% TextRenderingMode
@@ -111,9 +97,9 @@ nodict readonly pop
% Each entry in the color space dictionary is a procedure of the form
% <cspace> -proc- <cspace> <initial-color>
/CSdict mark
- /DeviceGray { 0 } bind
- /DeviceRGB { [0 0 0] cvx } bind
- /DeviceCMYK { [0 0 0 1] cvx } bind
+ /DeviceGray { pop //csdevgray 0 } bind
+ /DeviceRGB { pop //csdevrgb [0 0 0] cvx } bind
+ /DeviceCMYK { pop //csdevcmyk [0 0 0 1] cvx } bind
/CIEBasedA { 0 } bind
/CIEBasedABC { [0 0 0] cvx } bind
/Separation { 1 } bind
@@ -233,44 +219,40 @@ end readonly def
% the text state is saved and restored like the rest of the extended
% graphics state.
-/settextmatrix
- { TextMatrix concat
- TextHScaling 1 ne { TextHScaling 1 scale } if
- TextRise 0 ne { 0 TextRise translate } if
- } bdef
+/settextmatrix {
+ TextMatrix concat
+ TextHScaling 1 ne { TextHScaling 1 scale } if
+ TextRise 0 ne { 0 TextRise translate } if
+ TextFont dup null eq { pop } { setfont } ifelse
+} bdef
/settextstate { TextSaveMatrix setmatrix settextmatrix } bdef
-/BT
- { currentdict /TextMatrix .knownget
- { identmatrix pop }
- { matrix /TextMatrix gput }
- ifelse
- currentdict /TextOrigin .knownget
- { dup 0 0 put 1 0 put }
- { [0 0] cvx /TextOrigin gput }
- ifelse
+/BT {
+ currentdict /TextLineMatrix .knownget
+ { identmatrix pop TextMatrix identmatrix pop }
+ { matrix /TextLineMatrix gput matrix /TextMatrix gput }
+ ifelse
{ showfirst } /Show gput
- currentdict /TextSaveMatrix .knownget not
+ currentdict /TextSaveMatrix .knownget not
{ matrix dup /TextSaveMatrix gput }
- if currentmatrix pop settextmatrix 0 0 moveto
- TextFont dup null eq { pop } { setfont } ifelse
- } bdef
-/ET
- { TextSaveMatrix setmatrix
- } bdef
+ if currentmatrix pop settextmatrix 0 0 moveto
+} bdef
+/ET {
+ TextSaveMatrix setmatrix
+} bdef
/Tc { /TextSpacing gput { showfirst } /Show gput } bdef
/TL { /TextLeading gput } bdef
/Tr { /TextRenderingMode gput { showfirst } /Show gput } bdef
/Ts { /TextRise gput settextstate } bdef
/Tw { /WordSpacing gput { showfirst } /Show gput } bdef
-/Tz { 100 div /TextHScaling gput settextstate } bdef
+/Tz { 100 div /TextHScaling gput settextstate} bdef
% ---------------- Font control ---------------- %
-/Tf % <font> <scale> Tf -
- { dup 1 eq { pop } { scalefont } ifelse
- dup setfont /TextFont gput
- } bdef
+/Tf { % <font> <scale> Tf -
+ dup 1 eq { pop } { scalefont } ifelse
+ /TextFont gput settextstate
+} bdef
% Read a CFF font.
/FRD % <resdict> <file> FRD -
@@ -299,32 +281,36 @@ end readonly def
% Insert a new Encoding or Metrics into a font if necessary.
% Return a possibly updated font, and a flag to indicate whether
% the font was actually copied.
-/.updatefont % <font> <Encoding|null> <Metrics|null> .updatefont
+/.updatefont { % <font> <Encoding|null> <Metrics|null> .updatefont
% <font'> <copied>
- { 2 index 4 1 roll
- dup null ne
- { 3 -1 roll true .copyfontdict dup /Metrics 4 -1 roll put exch }
- { pop }
- ifelse
- dup null ne { 1 index 3 index /Encoding get ne } { false } ifelse
- { exch false .copyfontdict dup /Encoding 4 -1 roll put }
- { pop }
- ifelse exch 1 index ne
- } bdef
+ 2 index 4 1 roll
+ dup null ne {
+ 3 -1 roll true .copyfontdict dup /Metrics 4 -1 roll put exch
+ } {
+ pop
+ } ifelse
+ dup null ne { 1 index 3 index /Encoding get ne } { false } ifelse {
+ exch false .copyfontdict
+ % Stack: Encoding font'
+ dup /Encoding 4 -1 roll put
+ } {
+ pop
+ } ifelse exch 1 index ne
+} bdef
% ---------------- Text positioning ---------------- %
-/Td
- { TextOrigin exch 4 -1 roll add 3 1 roll add
- 2 copy /TextOrigin load astore pop moveto
- } bdef
+/Td {
+ TextLineMatrix transform TextLineMatrix 4 2 getinterval astore pop
+ TextLineMatrix TextMatrix copy pop settextstate
+ 0 0 moveto
+} bdef
/TD { dup neg /TextLeading gput Td } bdef
/T* { 0 TextLeading neg Td } bdef
-/Tm
- { TextMatrix astore pop settextstate
- 0 0 /TextOrigin load astore pop
- 0 0 moveto
- } bdef
+/Tm {
+ TextLineMatrix astore TextMatrix copy pop settextstate
+ 0 0 moveto
+} bdef
% ---------------- Text painting ---------------- %
@@ -369,12 +355,18 @@ end readonly def
} bdef
/showfirst { setshowstate Show } def
-/Tj { Show } bdef
-/' { T* Show } bdef
-/" { exch Tc exch Tw T* Show } bdef
+/Tj {
+ Show
+ % Update the TextMatrix translation.
+ gsave TextSaveMatrix setmatrix
+ currentpoint TextMatrix 4 2 getinterval astore pop
+ grestore
+} bdef
+/' { T* Tj } bdef
+/" { exch Tc exch Tw T* Tj } bdef
/TJ
{ { dup type /stringtype eq
- { Show
+ { Tj
}
{ -1000 div
currentfont /ScaleMatrix .knownget { 0 get mul } if
diff --git a/gs/lib/pdf_sec.ps b/gs/lib/pdf_sec.ps
index 62b0cc2f9..faf1585d1 100644
--- a/gs/lib/pdf_sec.ps
+++ b/gs/lib/pdf_sec.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996, 1997 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pdf_sec.ps
% Security hooks for PDF reader.
diff --git a/gs/lib/pf2afm b/gs/lib/pf2afm
new file mode 100644
index 000000000..f16528e60
--- /dev/null
+++ b/gs/lib/pf2afm
@@ -0,0 +1,8 @@
+#!/bin/sh
+# $RCSfile$ $Revision$
+# Make an AFM file from PFB / PFA and (optionally) PFM files. Usage:
+# pf2afm fontfilename
+# Output goes to fontfilename.afm, which must not already exist.
+# See pf2afm.ps for more details.
+
+exec gs -q -dNODISPLAY -- pf2afm.ps "$@"
diff --git a/gs/lib/pfbtopfa b/gs/lib/pfbtopfa
index 0e08436ae..a797f1125 100755
--- a/gs/lib/pfbtopfa
+++ b/gs/lib/pfbtopfa
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Convert .pfb fonts to .pfa format
exec gs -q -dNODISPLAY -- pfbtopfa.ps $1 $2
diff --git a/gs/lib/pfbtopfa.ps b/gs/lib/pfbtopfa.ps
index 4beff17e9..f974fba25 100644
--- a/gs/lib/pfbtopfa.ps
+++ b/gs/lib/pfbtopfa.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% pfbtopfa.ps
% Convert a .pfb font to .pfa format.
@@ -29,7 +16,7 @@
out closefile in closefile in1 closefile
quit
} {
- cleartomark (Usage: pfbtopfa input.pfb output.pfb) = flush
+ cleartomark (Usage: pfbtopfa input.pfb output.pfa) = flush
} ifelse
} {
pop
diff --git a/gs/lib/pftogsf.bat b/gs/lib/pftogsf.bat
index 34a2a009b..0aa172400 100755
--- a/gs/lib/pftogsf.bat
+++ b/gs/lib/pftogsf.bat
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
rem
rem ******************************
rem * Convert .pf? files to .gsf *
diff --git a/gs/lib/pj-gs.sh b/gs/lib/pj-gs.sh
index ec0c57a36..aa5d309cf 100755
--- a/gs/lib/pj-gs.sh
+++ b/gs/lib/pj-gs.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# PaintJet driver script for Ghostscript,
# created by Philippe-Andre Prindeville <philipp@res.enst.fr>
diff --git a/gs/lib/ppath.ps b/gs/lib/ppath.ps
index 84ce6ce02..bfb57a7e7 100644
--- a/gs/lib/ppath.ps
+++ b/gs/lib/ppath.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1989, 1995, 1997 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Redefine pathforall for tracing.
% Can't be used recursively.
diff --git a/gs/lib/printafm b/gs/lib/printafm
index 45fa1e67e..61f4bfee3 100755
--- a/gs/lib/printafm
+++ b/gs/lib/printafm
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Print the metrics from a font in AFM format. Usage:
# printafm fontname
# Output goes to stdout.
diff --git a/gs/lib/ps2ai.ps b/gs/lib/ps2ai.ps
index b802bb7fc..81d5681c1 100644
--- a/gs/lib/ps2ai.ps
+++ b/gs/lib/ps2ai.ps
@@ -16,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
%
% ps2ai.ps - a postscript to editable adobe illustrator file filter
diff --git a/gs/lib/ps2ascii b/gs/lib/ps2ascii
index 7a8358549..e1ec3dfd6 100755
--- a/gs/lib/ps2ascii
+++ b/gs/lib/ps2ascii
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Extract ASCII text from a PostScript file. Usage:
# ps2ascii [infile.ps [outfile.txt]]
# If outfile is omitted, output goes to stdout.
diff --git a/gs/lib/ps2ascii.bat b/gs/lib/ps2ascii.bat
index 453178e17..273ed6690 100755
--- a/gs/lib/ps2ascii.bat
+++ b/gs/lib/ps2ascii.bat
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
if '%1'=='' goto a0
if '%2'=='' goto a1
gs -q -dNODISPLAY -dNOBIND -dWRITESYSTEMDICT -dSIMPLE ps2ascii.ps %1 -c quit >%2
diff --git a/gs/lib/ps2ascii.ps b/gs/lib/ps2ascii.ps
index f124a2953..162a1142d 100644
--- a/gs/lib/ps2ascii.ps
+++ b/gs/lib/ps2ascii.ps
@@ -1,21 +1,8 @@
-% Copyright (C) 1991, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% Copyright (C) 1991, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Extract the ASCII text from a PostScript file. Nothing is displayed.
% Instead, ASCII information is written to stdout. The idea is similar to
% Glenn Reid's `distillery', only a lot more simple-minded, and less robust.
@@ -739,7 +726,7 @@ mark
/ellipsis (...) /emdash (--) /endash (-) /exclamdown (!)
/florin (f) /fraction (/)
/guillemotleft (<<) /guillemotright (>>)
- /guilsingleft (<) /guilsingright (>) /hungarumlaut ("") /logicalnot (~)
+ /guilsinglleft (<) /guilsinglright (>) /hungarumlaut ("") /logicalnot (~)
/macron (_) /minus (-) /mu (u) /multiply (*)
/ogonek (,) /onehalf (1/2) /onequarter (1/4) /onesuperior (1)
/ordfeminine (-a) /ordmasculine (-o)
diff --git a/gs/lib/ps2epsi b/gs/lib/ps2epsi
index 69b20cd8e..acf3cfbd6 100755
--- a/gs/lib/ps2epsi
+++ b/gs/lib/ps2epsi
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
tmpfile=/tmp/ps2epsi$$
diff --git a/gs/lib/ps2epsi.bat b/gs/lib/ps2epsi.bat
index c389156b7..fd6437c5c 100755
--- a/gs/lib/ps2epsi.bat
+++ b/gs/lib/ps2epsi.bat
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
if "%1"=="" goto usage
if "%2"=="" goto usage
diff --git a/gs/lib/ps2epsi.ps b/gs/lib/ps2epsi.ps
index 52c38e683..affc05ba8 100644
--- a/gs/lib/ps2epsi.ps
+++ b/gs/lib/ps2epsi.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1990, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Convert an arbitrary PostScript file to an EPSI file.
%
% Please do not contact these users if you have questions. They no longer
diff --git a/gs/lib/ps2pdf b/gs/lib/ps2pdf
index 797d09b0a..a623b1963 100755
--- a/gs/lib/ps2pdf
+++ b/gs/lib/ps2pdf
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Convert PostScript to PDF.
OPTIONS=""
@@ -31,4 +31,6 @@ else
fi
# Doing an initial 'save' helps keep fonts from being flushed between pages.
-exec gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$outfile $OPTIONS -c save pop -f $infile
+# We have to include the options twice because -I only takes effect if it
+# appears before other options.
+exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$outfile $OPTIONS -c save pop -f $infile
diff --git a/gs/lib/ps2pdf.bat b/gs/lib/ps2pdf.bat
index 41af49c01..5dbd34bd4 100644
--- a/gs/lib/ps2pdf.bat
+++ b/gs/lib/ps2pdf.bat
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
rem Convert PostScript to PDF.
rem NOTE: for questions about using this file on Windows NT, please
@@ -25,7 +25,9 @@ goto opt
:exec
rem Watcom C deletes = signs, so use # instead.
rem Doing an initial 'save' helps keep fonts from being flushed between pages.
-%PS2PDFGS% %PS2PDFPARAMS% %PS2PDFOPT% -sOutputFile#%2 -c save pop -f %1
+rem We have to include the options twice because -I only takes effect if it
+rem appears before other options.
+%PS2PDFGS% %PS2PDFOPT% %PS2PDFPARAMS% -sOutputFile#%2 %PS2PDFOPT% -c save pop -f %1
goto end
:usage
@@ -42,7 +44,7 @@ if "%2"=="" goto nooutfile
if not "%3"=="" goto opt
rem Watcom C deletes = signs, so use # instead.
-%PS2PDFGS% %PS2PDFPARAMS% -sOutputFile#%2 -c save pop -f %1
+%PS2PDFGS% %PS2PDFOPT% %PS2PDFPARAMS% -sOutputFile#%2 %PS2PDFOPT% -c save pop -f %1
goto end
:ntusage
@@ -53,7 +55,7 @@ goto end
:nooutfile
set PS2PDF=%1
set PS2PDF=%PS2PDF:.PS=.PDF%
-%PS2PDFGS% %PS2PDFPARAMS% -sOutputFile#%PS2PDF% -c save pop -f %1
+%PS2PDFGS% %PS2PDFOPT% %PS2PDFPARAMS% -sOutputFile#%PS2PDF% %PS2PDFOPT% -c save pop -f %1
:end
rem Clean up.
diff --git a/gs/lib/ps2ps b/gs/lib/ps2ps
index 7c767b9b9..b1bd06c13 100755
--- a/gs/lib/ps2ps
+++ b/gs/lib/ps2ps
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# "Distill" PostScript.
OPTIONS=""
diff --git a/gs/lib/ps2ps.bat b/gs/lib/ps2ps.bat
index fa21c8f4f..1a0324bff 100644
--- a/gs/lib/ps2ps.bat
+++ b/gs/lib/ps2ps.bat
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
@rem "Distill" PostScript.
if "%1"=="" goto usage
diff --git a/gs/lib/pv.sh b/gs/lib/pv.sh
index 02e9828e7..4118ff7c0 100755
--- a/gs/lib/pv.sh
+++ b/gs/lib/pv.sh
@@ -1,5 +1,5 @@
#!/bin/sh -f
-
+# $RCSfile$ $Revision$
#
# pv - preview a specified page of a dvi file in a Ghostscript window
# usage: pv page file
diff --git a/gs/lib/rollconv.ps b/gs/lib/rollconv.ps
index 6e15f7e54..d90a2bdad 100644
--- a/gs/lib/rollconv.ps
+++ b/gs/lib/rollconv.ps
@@ -1,7 +1,7 @@
%!
% Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
+% $RCSfile$ $Revision$
% Utility program for converting Japanese fonts produced by Macromedia's
% Rollup program to Type 0 fonts suitable for use with Ghostscript.
%
diff --git a/gs/lib/showchar.ps b/gs/lib/showchar.ps
index 30a24c451..bba09fc22 100644
--- a/gs/lib/showchar.ps
+++ b/gs/lib/showchar.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993, 1994, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% showchar.ps
% Show the outline and rasterized forms of a character.
diff --git a/gs/lib/stcinfo.ps b/gs/lib/stcinfo.ps
index dbb45f757..fe88d9c74 100644
--- a/gs/lib/stcinfo.ps
+++ b/gs/lib/stcinfo.ps
@@ -15,7 +15,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% stcinfo.ps
% Epson Stylus-Color Printer-Driver
diff --git a/gs/lib/stcolor.ps b/gs/lib/stcolor.ps
index ace57a912..74d2c1045 100644
--- a/gs/lib/stcolor.ps
+++ b/gs/lib/stcolor.ps
@@ -15,7 +15,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% stcolor.ps
% Epson Stylus-Color Printer-Driver
diff --git a/gs/lib/sysvlp.sh b/gs/lib/sysvlp.sh
index 14e665204..44651543b 100755
--- a/gs/lib/sysvlp.sh
+++ b/gs/lib/sysvlp.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# System V 3.2 lp interface for parallel, postscript printer
# with ghostscript 2.5.n.
diff --git a/gs/lib/traceimg.ps b/gs/lib/traceimg.ps
index c31d8518e..2394ad466 100644
--- a/gs/lib/traceimg.ps
+++ b/gs/lib/traceimg.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% traceimg.ps
% Trace the data supplied to the 'image' operator.
diff --git a/gs/lib/traceop.ps b/gs/lib/traceop.ps
index 7fb2df042..948ea6620 100644
--- a/gs/lib/traceop.ps
+++ b/gs/lib/traceop.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1992, 1993, 1994, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Trace individual operators or procedures.
% <opref> is <opname> or <opname> <dict>
% (dict defaults to dict where op is currently defined, if writable;
diff --git a/gs/lib/type1enc.ps b/gs/lib/type1enc.ps
index e4bdde0ab..1e004e9dd 100644
--- a/gs/lib/type1enc.ps
+++ b/gs/lib/type1enc.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% type1enc.ps
% PostScript language versions of the Type 1 encryption/decryption algorithms.
diff --git a/gs/lib/type1ops.ps b/gs/lib/type1ops.ps
index 3e0ad180c..e12ae8271 100644
--- a/gs/lib/type1ops.ps
+++ b/gs/lib/type1ops.ps
@@ -1,27 +1,15 @@
-% Copyright (C) 1992, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% Copyright (C) 1992, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% type1ops.ps
% Define the Type 1 and Type 2 font opcodes for use by Ghostscript utilities.
% Define the default value of lenIV.
+% Note that this expects the current font to be on the dictionary stack.
-/lenIV 4 def
+/lenIV { FontType 2 eq { -1 } { 4 } ifelse } def
% ---------------- Encoding ---------------- %
@@ -212,12 +200,16 @@ readonly def
mark exch aload pop charstack_string
} bind def
/charstack_string { % <charstack> charstack_string <string>
- charstack_length lenIV add string
- dup dup length lenIV sub lenIV exch getinterval % skip lenIV
+ charstack_length lenIV 0 gt {
+ lenIV add string
+ dup dup length lenIV sub lenIV exch getinterval % skip lenIV
+ } {
+ string
+ } ifelse
/NullEncode filter
exch 1 index counttomark 1 add 2 roll
charstack_write closefile
-% 4330 exch dup .type1encrypt exch pop readonly
+% lenIV 0 ge { 4330 exch dup .type1encrypt exch pop readonly } if
} bind def
% ------ Decoding ------ %
@@ -225,10 +217,10 @@ readonly def
% Decode a CharString (unencrypted).
/charstack_read { % <file> charstack_read <no-mark-charstack>
{ dup read not { pop exit } if
- Type1decode exch get dup null eq {
+ Type1decode 1 index get dup null eq {
pop 1 string dup 0 4 -1 roll put
} {
- exec
+ exch pop exec
} ifelse exch
} loop
} bind def
diff --git a/gs/lib/uninfo.ps b/gs/lib/uninfo.ps
index 55ac950ed..16e064f67 100644
--- a/gs/lib/uninfo.ps
+++ b/gs/lib/uninfo.ps
@@ -16,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% uninfo.ps: Utilities for "printing" PostScript items, especially dictionaries
% Usage:
% (prefix-string) dict unprint
diff --git a/gs/lib/unix-lpr.sh b/gs/lib/unix-lpr.sh
index 1baa10b92..887339544 100755
--- a/gs/lib/unix-lpr.sh
+++ b/gs/lib/unix-lpr.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
#
# Unix lpr filter. The default setup sends output directly to a pipe,
# which requires the Ghostscript process to fork, and thus may cause
diff --git a/gs/lib/unprot.ps b/gs/lib/unprot.ps
index 57921862b..89af363ce 100644
--- a/gs/lib/unprot.ps
+++ b/gs/lib/unprot.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1991, 1992, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Disable all access checks. This is useful for printing out
% eexec-encrypted Type 1 fonts, and similar purposes.
diff --git a/gs/lib/viewcmyk.ps b/gs/lib/viewcmyk.ps
index 88820af67..4318a1761 100644
--- a/gs/lib/viewcmyk.ps
+++ b/gs/lib/viewcmyk.ps
@@ -1,22 +1,8 @@
% Copyright (C) 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Ghostscript.
-%
-% Ghostscript is distributed in the hope that it will be useful, but
-% WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
-% to anyone for the consequences of using it or for whether it serves any
-% particular purpose or works at all, unless he says so in writing. Refer
-% to the Ghostscript General Public License for full details.
-%
-% Everyone is granted permission to copy, modify and redistribute
-% Ghostscript, but only under the conditions described in the Ghostscript
-% General Public License. A copy of this license is supposed to have been
-% given to you along with Ghostscript so you can know your rights and
-% responsibilities. It should be in a file named COPYING. Among other
-% things, the copyright notice and this notice must be preserved on all
-% copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% viewcmyk.ps
% Display a raw CMYK file.
% Requires the colorimage operator.
diff --git a/gs/lib/viewgif.ps b/gs/lib/viewgif.ps
index b034daeff..1d2e31aa5 100644
--- a/gs/lib/viewgif.ps
+++ b/gs/lib/viewgif.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1989, 1992, 1993, 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% viewgif.ps
% Display a GIF file.
diff --git a/gs/lib/viewmiff.ps b/gs/lib/viewmiff.ps
index 6ee748bba..3c472128d 100644
--- a/gs/lib/viewmiff.ps
+++ b/gs/lib/viewmiff.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% viewmiff.ps
% Display a MIFF file. You would think the 'display' command would do this,
% but many versions of 'display' either core-dump or require unacceptably
diff --git a/gs/lib/viewpbm.ps b/gs/lib/viewpbm.ps
index 469cbd930..c9703bf65 100644
--- a/gs/lib/viewpbm.ps
+++ b/gs/lib/viewpbm.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1992, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% viewpbm.ps
% Display a PBM/PGM/PPM file.
% Requires the Level 2 `image' operator (to handle variable pixel widths).
diff --git a/gs/lib/viewpcx.ps b/gs/lib/viewpcx.ps
index cfaa894ee..fc5580984 100644
--- a/gs/lib/viewpcx.ps
+++ b/gs/lib/viewpcx.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% viewpcx.ps
% Display a PCX file.
% Requires the Level 2 `image' operator (to handle variable pixel widths).
diff --git a/gs/lib/viewps2a.ps b/gs/lib/viewps2a.ps
index bc1b1efd8..202375527 100644
--- a/gs/lib/viewps2a.ps
+++ b/gs/lib/viewps2a.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% Display a file produced by ps2ascii with no switch or with -dCOMPLEX.
% This is just a procset to read in before the file to display.
diff --git a/gs/lib/wftopfa b/gs/lib/wftopfa
index b05d0f11e..05aed1152 100755
--- a/gs/lib/wftopfa
+++ b/gs/lib/wftopfa
@@ -1,3 +1,3 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
exec gs -q -dNODISPLAY -- wftopfa.ps "$@"
diff --git a/gs/lib/wftopfa.ps b/gs/lib/wftopfa.ps
index 1a626e7be..489b67593 100644
--- a/gs/lib/wftopfa.ps
+++ b/gs/lib/wftopfa.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% wftopfa.ps
% Convert a Wadalab base font to .PFA (or .PFB) format.
diff --git a/gs/lib/winmaps.ps b/gs/lib/winmaps.ps
index 5f2a3f0af..793d627dd 100644
--- a/gs/lib/winmaps.ps
+++ b/gs/lib/winmaps.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% winmaps.ps - make maps between PostScript encodings and Windows
% character sets.
diff --git a/gs/lib/wmakebat.bat b/gs/lib/wmakebat.bat
index d2f2322c3..d4cf41f35 100644
--- a/gs/lib/wmakebat.bat
+++ b/gs/lib/wmakebat.bat
@@ -1,4 +1,4 @@
@rem Execute this script with echo on, so we can see what's happening.
-
+@rem $RCSfile$ $Revision$
wmakel -u -n -h %1 %2 %3 %4 %5 %6 %7 %8 %9 >_wm_temp.bat
_wm_temp.bat
diff --git a/gs/lib/wrfont.ps b/gs/lib/wrfont.ps
index 4e7716bc0..dda2aa9bf 100644
--- a/gs/lib/wrfont.ps
+++ b/gs/lib/wrfont.ps
@@ -1,21 +1,8 @@
% Copyright (C) 1991, 1995, 1996 Aladdin Enterprises. All rights reserved.
-%
-% This file is part of Aladdin Ghostscript.
-%
-% Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-% or distributor accepts any responsibility for the consequences of using it,
-% or for whether it serves any particular purpose or works at all, unless he
-% or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-% License (the "License") for full details.
-%
-% Every copy of Aladdin Ghostscript must include a copy of the License,
-% normally in a plain ASCII text file named PUBLIC. The License grants you
-% the right to copy, modify and redistribute Aladdin Ghostscript, but only
-% under certain conditions described in the License. Among other things, the
-% License requires that the copyright notice and this notice be preserved on
-% all copies.
-
+% This software is licensed to a single customer by Artifex Software Inc.
+% under the terms of a specific OEM agreement.
+% $RCSfile$ $Revision$
% wrfont.ps
% Write out a Type 1 font in readable, reloadable form.
% Note that this does NOT work on protected fonts, such as Adobe fonts
diff --git a/gs/lib/zeroline.ps b/gs/lib/zeroline.ps
index 371397b73..5331a7d3e 100644
--- a/gs/lib/zeroline.ps
+++ b/gs/lib/zeroline.ps
@@ -16,7 +16,7 @@
% License requires that the copyright notice and this notice be preserved on
% all copies.
-
+% $RCSfile$ $Revision$
% zeroline.ps
% Test file to determine how other PostScript implementations handle
% filling zero-width lines under a variety of conditions.
diff --git a/gs/man/ansi2knr.1 b/gs/man/ansi2knr.1
index 73bc047be..c350c5e32 100644
--- a/gs/man/ansi2knr.1
+++ b/gs/man/ansi2knr.1
@@ -1,4 +1,4 @@
-
+.\" $RCSfile$ $Revision$
.TH ANSI2KNR 1 "9 September 1998" \" -*- nroff -*-
.SH NAME
ansi2knr \- convert ANSI C to Kernighan & Ritchie C
diff --git a/gs/man/gs.1 b/gs/man/gs.1
index 0327b5d86..4ffc6a6bb 100644
--- a/gs/man/gs.1
+++ b/gs/man/gs.1
@@ -1,5 +1,5 @@
-
-.TH GS 1 "30 August 1999" 5.91 Ghostscript \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH GS 1 "12 November 1999" 5.96 Ghostscript \" -*- nroff -*-
.SH NAME
gs \- Ghostscript (PostScript and PDF language interpreter and previewer)
.SH SYNOPSIS
@@ -454,7 +454,7 @@ The various Ghostscript document files (above), especially \fBUse.htm\fR.
.SH BUGS
See the Usenet news group comp.lang.postscript.
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
.SH AUTHOR
L. Peter Deutsch <ghost@aladdin.com> is the principal author of Ghostscript.
Russell J. Lang <rjl@aladdin.com> is the author of most of the MS Windows
diff --git a/gs/man/pdf2dsc.1 b/gs/man/pdf2dsc.1
index ee7d01824..23f090208 100644
--- a/gs/man/pdf2dsc.1
+++ b/gs/man/pdf2dsc.1
@@ -1,5 +1,5 @@
-
-.TH PDF2DSC 1 "30 August 1999" 5.91 "Ghostscript Tools" \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH PDF2DSC 1 "12 November 1999" 5.96 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
pdf2dsc \- generate a PostScript page list of a PDF document
.SH SYNOPSIS
@@ -29,6 +29,6 @@ Ghostscript since release 3.53.
.SH SEE ALSO
gs(1), ghostview(1)
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
.SH AUTHOR
Yves Arrouye <yves.arrouye@usa.net> and Russell Lang <rjl@aladdin.com>
diff --git a/gs/man/pdf2ps.1 b/gs/man/pdf2ps.1
index e7b30c71e..1f23a2cf1 100644
--- a/gs/man/pdf2ps.1
+++ b/gs/man/pdf2ps.1
@@ -1,5 +1,5 @@
-
-.TH PDF2PS 1 "30 August 1999" 5.91 "Ghostscript Tools" \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH PDF2PS 1 "12 November 1999" 5.96 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
pdf2ps \- Ghostscript PDF to PostScript translator
.SH SYNOPSIS
@@ -12,6 +12,6 @@ Format\fR (PDF) file "input.pdf" to Level 2 \fBPostScript\fR(tm) in
Run "\fBgs -h\fR" to find the location of Ghostscript documentation on your
system, from which you can get more details.
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
.SH AUTHOR
L. Peter Deutsch <ghost@aladdin.com>
diff --git a/gs/man/ps2ascii.1 b/gs/man/ps2ascii.1
index c23c69c54..5fc125abc 100644
--- a/gs/man/ps2ascii.1
+++ b/gs/man/ps2ascii.1
@@ -1,5 +1,5 @@
-
-.TH PS2ASCII 1 "30 August 1999" 5.91 "Ghostscript Tools" \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH PS2ASCII 1 "12 November 1999" 5.96 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2ascii \- Ghostscript translator from PostScript or PDF to ASCII
.SH SYNOPSIS
@@ -23,7 +23,7 @@ system, from which you can get more details.
.SH SEE ALSO
pstotext(1), http://www.research.digital.com/SRC/virtualpaper/pstotext.html
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
.SH AUTHOR
L. Peter Deutsch <ghost@aladdin.com> was the original author. The current
version has substantial improvements by David M. Jones
diff --git a/gs/man/ps2epsi.1 b/gs/man/ps2epsi.1
index a0f3bc24f..89b7ad8d9 100644
--- a/gs/man/ps2epsi.1
+++ b/gs/man/ps2epsi.1
@@ -1,5 +1,5 @@
-
-.TH PS2EPSI 1 "30 August 1999" 5.91 "Ghostscript Tools" \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH PS2EPSI 1 "12 November 1999" 5.96 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2epsi \- generate conforming Encapsulated PostScript
.SH SYNOPSIS
@@ -60,7 +60,7 @@ ps2epsi.ps>the Ghostscript program which does the work
.SH SEE ALSO
gs (1)
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
However, the content may be obsolete, or inconsistent with ps2epsi.txt.
.SH AUTHOR
George Cameron
diff --git a/gs/man/ps2pdf.1 b/gs/man/ps2pdf.1
index de1dded24..abbeaf39c 100644
--- a/gs/man/ps2pdf.1
+++ b/gs/man/ps2pdf.1
@@ -1,5 +1,5 @@
-
-.TH PS2PDF 1 "30 August 1999" 5.91 "Ghostscript Tools" \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH PS2PDF 1 "12 November 1999" 5.96 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2pdf \- Ghostscript PostScript to PDF translator
.SH SYNOPSIS
@@ -28,6 +28,6 @@ mostly fix this by the end of 1998.
Run "\fBgs -h\fR" to find the location of Ghostscript documentation on your
system, from which you can get more details.
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
.SH AUTHOR
L. Peter Deutsch <ghost@aladdin.com>
diff --git a/gs/man/ps2ps.1 b/gs/man/ps2ps.1
index 2055fdece..74c5e9b02 100644
--- a/gs/man/ps2ps.1
+++ b/gs/man/ps2ps.1
@@ -1,5 +1,5 @@
-
-.TH PS2PS 1 "30 August 1999" 5.91 "Ghostscript Tools" \" -*- nroff -*-
+.\" $RCSfile$ $Revision$
+.TH PS2PS 1 "12 November 1999" 5.96 "Ghostscript Tools" \" -*- nroff -*-
.SH NAME
ps2ps \- Ghostscript PostScript "distiller"
.SH SYNOPSIS
@@ -14,6 +14,6 @@ Level 1.
Run "\fBgs -h\fR" to find the location of Ghostscript documentation on your
system, from which you can get more details.
.SH VERSION
-This document was last revised for Ghostscript version 5.91.
+This document was last revised for Ghostscript version 5.96.
.SH AUTHOR
L. Peter Deutsch <ghost@aladdin.com>
diff --git a/gs/src/all-arch.mak b/gs/src/all-arch.mak
new file mode 100644
index 000000000..ca88a7eef
--- /dev/null
+++ b/gs/src/all-arch.mak
@@ -0,0 +1,745 @@
+# Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+
+# $RCSfile$ $Revision$
+#
+# Author:
+# Nelson H. F. Beebe
+# Center for Scientific Computing
+# University of Utah
+# Department of Mathematics, 322 INSCC
+# 155 S 1400 E RM 233
+# Salt Lake City, UT 84112-0090
+# USA
+# Email: beebe@math.utah.edu, beebe@acm.org, beebe@ieee.org (Internet)
+# WWW URL: http://www.math.utah.edu/~beebe
+# Telephone: +1 801 581 5254
+# FAX: +1 801 585 1640, +1 801 581 4148
+#=======================================================================
+# This Makefile is an interface to the UNMODIFIED unix*.mak files for
+# building gs, so as to avoid the need for customizing Makefiles for
+# multiple architectures with each new release of ghostscript.
+#
+# Usage:
+# make <arch-name> TARGETS='...'
+#
+# or, for convenience at Utah,
+#
+# make `hostname`
+#
+# HINT: for parallel GNU make runs, add -jnnn to TARGETS, e.g.
+# TARGETS=-j6.
+# WARNING: this does not produce successful builds on at least SGI IRIX 6.
+#
+# Current target list:
+# all
+# clean
+# mostlyclean
+# clobber
+# distclean
+# maintainer-clean
+# init
+# install
+# install-gnu-readline
+# install-binary
+# install-binary-gnu-readline
+# install-fontmap
+# install-pdfsec
+# dec-alpha-osf
+# dec-alpha-osf-gnu-readline
+# dec-mips-ultrix
+# hp-parisc-hpux
+# hp-parisc-hpux-gnu-readline
+# ibm-rs6000-aix
+# ibm-rs6000-aix-c89
+# ibm-rs6000-aix-4-1-c89
+# ibm-rs6000-aix-3-2-5-gcc
+# ibm-rs6000-aix-gcc
+# ibm-rs6000-aix-4.2
+# ibm-rs6000-aix-4.2-gnu-readline
+# linux
+# linux-gnu-readline
+# next-m68K-mach
+# next-m68K-mach-gnu-readline
+# next-m68K-mach-cc
+# sgi-mips-irix5
+# sgi-mips-irix5-gnu-readline
+# sgi-mips-irix6.1
+# sgi-mips-irix6.3
+# sgi-mips-irix6.3-gnu-readline
+# sgi-mips-irix6.4
+# sgi-mips-irix6.4-gnu-readline
+# sun-sparc-solaris
+# sun-sparc-solaris-gnu-readline
+# sun-sparc-solaris-gcc
+# sun-sparc-solaris-opt-gnu-readline
+# sun-sparc-solaris-newsprint
+# sun-sparc-solaris-pg
+# sun-sparc-sunos-gcc
+# sun-sparc-sunos-gcc-gnu-readline
+#
+# Machine-specific targets (for "make `hostname`"):
+# XXXXXXXX.math.utah.edu [obscurred]
+#
+# [29-Apr-1999] -- update for gs-5.82: Add XLIBDIRSALL list for
+# install target, and add hostnames as convenience
+# targets, duplicating information in the
+# ../BUILD-GS.sh script, but allowing easier restarts
+# after build failures. Update install-fontmap target
+# to reflect new location of installed Fontmap files.
+# [20-Mar-1999] -- update for gs-5.73. Alphabetize most definitions.
+# Add more comments. Add common macros to eliminate
+# duplication. Set the SHARE_* variables to use
+# installed versions of support libraries, instead of
+# always having to duplicate their source trees as we
+# did with older releases.
+# [19-Mar-1999] -- change SGI IRIX 6.x targets to use -n32 -mips3,
+# since -n32 is the default when no memory model
+# is selected
+# [09-Feb-1999] -- add install-pdfsec target
+# [03-Nov-1998] -- update for gs-5.60 and later
+# [10-Aug-1998] -- add ibm-rs6000-aix-3-2-5-gcc and
+# ibm-rs6000-aix-4-1-c89 targets
+# [04-Aug-1998] -- add linux and ibm-rs6000-aix-c89 target, and
+# dependencies on init target so that I do not need
+# to remember to create the obj subdirectory manually
+# [19-Mar-1998] -- add -32 -mips2 flag to SGI IRIX 6.x targets, so that
+# the executables run on every SGI that can run that
+# O?S. Otherwise, when building on XXXXXXXX.math.utah.edu,
+# the compiler chooses a default of -mips4, which won't
+# run on Indy and R4400 machines.
+# [23-Feb-1998] -- add -jnnn hint above, and COMMON_DEVICES below
+# [28-Nov-1997]
+#=======================================================================
+
+# Definitions needed from src/*.mak files:
+DD = $(GLD)
+GLD = $(GLGENDIR)/
+GLGENDIR = ./obj
+GLOBJ = ./obj/
+PSD = $(PSGENDIR)/
+PSGENDIR = ./obj
+
+# Definition(s) for this file:
+SRCDIR = /usr/local/src
+
+# Define local modifications of search paths:
+TF = /usr/local/lib/tex/fonts
+GS_LIB_DEFAULT = $$(gsdatadir)/lib:$$(gsdatadir)/fonts:$$(gsdatadir)/examples:$$(gsdir)/fonts:/usr/local/share/sys/fonts/postscript:$(TF)/lucida:$(TF)/mathtime:$(TF)/postscript/bakoma/pfb:$(TF)/vf
+
+# Define local paths for install targets:
+GS_SHARE_DIR = /usr/local/share/ghostscript
+GS_SRC_DIR = $(SRCDIR)/ghostscript
+
+# Arguments for make with cc (or other), and gcc:
+ARGS = -f src/unixansi.mak $(COMMON_ARGS)
+
+ARGSGCC = -f src/unix-gcc.mak $(COMMON_ARGS)
+
+COMMON_ARGS = DEVICE_DEVS_EXTRA='$(DEVICE_DEVS_EXTRA)' \
+ GS_LIB_DEFAULT='$(GS_LIB_DEFAULT)' \
+ JSRCDIR='$(JSRCDIR)' \
+ PNGSRCDIR='$(PNGSRCDIR)' \
+ SHARE_LIBPNG='$(SHARE_LIBPNG)' \
+ SHARE_ZLIB='$(SHARE_ZLIB)' \
+ XCFLAGS='$(XCFLAGS)' \
+ ZSRCDIR='$(ZSRCDIR)' \
+ $(TARGETS)
+
+# Additional gcc-specific compilation flags
+GCFLAGS =
+
+# Name of the installed binary executable (it will also be called gs-x.yy):
+GS = ngs
+GS = gs
+
+# Here is a list of additional output devices that we need to support at
+# the University of Utah Math, Physics, and INSCC installations;
+# effective with gs-5.60, Each must have a $(DD) prefix:
+DEVICE_DEVS_EXTRA = $(DD)st800.dev $(DD)stcolor.dev
+
+# [20-Mar-1999] Set FEATURE_DEVS_EXTRA to include gnrdline.dev, to
+# support input line editing in gs when compiled with gcc. Addition of
+# this module also requires adding EXTRALIBS='-ltermcap' for each system
+# below that uses gcc for the build.
+FEATURE_DEVS_EXTRA = $(PSD)gnrdline.dev
+
+GNU_READLINE_ARGS = EXTRALIBS='-ltermcap' \
+ FEATURE_DEVS_EXTRA='$(FEATURE_DEVS_EXTRA)' \
+ XCFLAGS='-I. -I$(JSRCDIR)'
+
+# Additions to CFLAGS for all compilers
+XCFLAGS = -I/usr/local/include
+
+# This variable contains a list of all X library locations, for
+# use in the install target
+XLIBDIRSALL=' \
+ -L/usr/X11R6/lib \
+ -L/usr/lib/X11 \
+ -L/usr/lib/X11R5 \
+ -L/usr/openwin/lib \
+ -L/usr/lpp/X11/lib/R5 \
+ -L/usr/lpp/X11/lib \
+ -L/usr/local/$(SGIARCHLIB) \
+ -L/usr/local/X11R5/lib \
+ -L/usr/local/lib \
+ -L/usr/local/lib32 \
+'
+
+# Compilation flags and load library for SGI IRIX 6.x builds:
+SGIARCHFLAGS = -n32 -mips3
+SGIARCHLIB = libn32
+
+# [20-Mar-1999]: New from gs-5.73: use png and zlib libraries already
+# installed on the system.
+
+SHARE_LIBPNG = 1
+SHARE_ZLIB = 1
+
+# Use of the shared libraries still requires reference to source code in
+# these directories:
+JSRCDIR = $(SRCDIR)/jpeg/jpeg-6b
+PNGSRCDIR = $(SRCDIR)/libpng/libpng-1.0.3
+ZSRCDIR = $(SRCDIR)/zlib/zlib-1.1.3
+
+# Use this to provide alternate targets to make, instead of the default
+# all. It can also be used to pass additional arguments to child makes,
+# e.g., -j12 for 12 parallel jobs with GNU make.
+TARGETS =
+
+#=======================================================================
+
+BINDIR = /usr/local/bin
+
+CHMOD = chmod
+
+CP = /bin/cp -p
+CP = rcp -p
+
+MV = /bin/mv
+
+RM = /bin/rm -f
+
+SHELL = /bin/sh
+
+#=======================================================================
+
+all:
+ $(MAKE) $(ARGS)
+
+# Convenience targets to make standard targets available
+clean mostlyclean clobber distclean maintainer-clean:
+ $(MAKE) $(ARGS) $@
+
+init:
+ -if test ! -d obj ; then mkdir obj ; fi
+
+install: install-binary install-fontmap install-pdfsec
+
+install-gnu-readline: install-binary-gnu-readline install-fontmap install-pdfsec
+
+# Remove the old gs binary first, so as to preserve the previous
+# gs-x.yy version, if any.
+install-binary:
+ -$(RM) $(BINDIR)/$(GS)
+ @$(MAKE) $(ARGS) install GS=$(GS) XLIBDIRS=$(XLIBDIRSALL) ; \
+ d=`pwd` ; \
+ d=`basename $$d` ; \
+ d=`echo $$d | sed -e s/gs/gs-/` ; \
+ $(RM) $(BINDIR)/$$d ; \
+ ln $(BINDIR)/$(GS) $(BINDIR)/$$d ; \
+ ls -l $(BINDIR)/$(GS) $(BINDIR)/$$d
+
+install-binary-gnu-readline:
+ -$(RM) $(BINDIR)/$(GS)
+ @$(MAKE) $(ARGS) install GS=$(GS) XLIBDIRS=$(XLIBDIRSALL) $(GNU_READLINE_ARGS) ; \
+ d=`pwd` ; \
+ d=`basename $$d` ; \
+ d=`echo $$d | sed -e s/gs/gs-/` ; \
+ $(RM) $(BINDIR)/$$d ; \
+ ln $(BINDIR)/$(GS) $(BINDIR)/$$d ; \
+ ls -l $(BINDIR)/$(GS) $(BINDIR)/$$d
+
+install-fontmap:
+ @d=`pwd` ; \
+ d=`basename $$d` ; \
+ d=`echo $$d | sed -e s/gs//` ; \
+ if test -f $(GS_SRC_DIR)/Fontmap.new ; \
+ then \
+ if test -f $(GS_SHARE_DIR)/$$d/lib/Fontmap.org ; \
+ then \
+ true ; \
+ else \
+ mv $(GS_SHARE_DIR)/$$d/lib/Fontmap $(GS_SHARE_DIR)/$$d/lib/Fontmap.org ; \
+ fi ; \
+ $(CP) $(GS_SRC_DIR)/Fontmap.new $(GS_SHARE_DIR)/$$d/lib/Fontmap ; \
+ ls -l $(GS_SHARE_DIR)/$$d/lib/Fontmap* ; \
+ fi
+
+install-pdfsec:
+ @d=`pwd` ; \
+ d=`basename $$d` ; \
+ d=`echo $$d | sed -e s/gs//` ; \
+ if test -f $(GS_SRC_DIR)/lib/pdf_sec.ps ; \
+ then \
+ $(MV) $(GS_SHARE_DIR)/$$d/lib/pdf_sec.ps $(GS_SHARE_DIR)/$$d/lib/pdf_sec.ps.org ; \
+ $(CP) lib/pdf_sec.ps $(GS_SHARE_DIR)/$$d/lib/pdf_sec.ps ; \
+ $(CHMOD) 664 $(GS_SHARE_DIR)/$$d/lib/pdf_sec.ps ; \
+ fi
+
+#=======================================================================
+# Architecture-specific targets:
+#
+# NB: gcc 2.7.x produces bad code in zfont2.c:zregisterencoding(), and possibly
+# elsewhere, so we must use native compilers for now.
+
+# Apple Macintosh PowerPC running Rhapsody 5.5 (a NeXTStep 5 derivative,
+# with no X Window System support):
+apple-powermac-rhapsody5.5 apple-powerpc-rhapsody5.5:
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc' \
+ GCFLAGS=$(GCFLAGS) \
+ FEATURE_DEVS_EXTRA= \
+ DEVICE_DEVS= \
+ SYNC=nosync \
+ STDLIBS= \
+ XLIBDIRS= \
+ EXTRALIBS=
+
+dec-alpha-osf: init
+ $(MAKE) $(ARGS) \
+ CC='c89 -O4 -Olimit 1500' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11'
+
+dec-alpha-osf-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='c89 -O4 -Olimit 1500' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11' \
+ $(GNU_READLINE_ARGS)
+
+# NB: Need -Dconst= for gcc 2.7.2 (unless gcc patch in make.doc is installed)
+dec-mips-ultrix: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc -Dconst= -O3' \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11' \
+ EXTRALIBS='-ltermcap'
+
+hp-parisc-hpux: init
+ $(MAKE) $(ARGS) \
+ CC='c89 -O -D_HPUX_SOURCE +Onolimit' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11R5 \
+ XLIBDIRS='-L/usr/lib/X11R5 -L/usr/local/lib' \
+ $(GLOBJ)gdevupd.o $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='c89 -O -D_HPUX_SOURCE' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11R5 \
+ XLIBDIRS='-L/usr/lib/X11R5 -L/usr/local/lib'
+
+hp-parisc-hpux-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='c89 -O -D_HPUX_SOURCE +Onolimit' \
+ XINCLUDE=-I/usr/include/X11R5 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11R5 -L/usr/local/lib' \
+ $(GLOBJ)gdevupd.o $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='c89 -O -D_HPUX_SOURCE' \
+ XINCLUDE=-I/usr/include/X11R5 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11R5 -L/usr/local/lib' \
+ $(GNU_READLINE_ARGS)
+
+# NB: gs3.68 executable core dumps with this compiler
+ibm-rs6000-aix: init
+ $(MAKE) $(ARGS) \
+ CC='cc -O -D_POSIX_SOURCE' \
+ CP='cp -p' \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE=-I/usr/lpp/X11/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib'
+
+# This works on our local AIX 3.2.5 systems: additional header files
+# and libraries are needed, because IBM does not supply the Athena
+# widgets in /usr/lpp/X11.
+ibm-rs6000-aix-c89: init
+ $(MAKE) $(ARGS) \
+ CC='c89 -O -D_POSIX_SOURCE' \
+ CP='cp -p' \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE='-I/usr/lpp/X11/include -I/usr/local/X11R5/include' \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib -L/usr/local/X11R5/lib'
+
+ibm-rs6000-aix-4-1-c89: init
+ $(MAKE) $(ARGS) \
+ CC='c89 -O -D_POSIX_SOURCE' \
+ CP='cp -p' \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE='-I/usr/lpp/X11/include' \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib'
+
+# NB: Need -Dconst= for gcc 2.7.1 (unless gcc patch in make.doc is installed)
+ibm-rs6000-aix-3-2-5-gcc: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc -Dconst= -O -D_POSIX_SOURCE' \
+ CP='cp -p' \
+ GCFLAGS=$(GCFLAGS) \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE='-I/usr/lpp/X11/include -I/usr/local/X11R5/include'\
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib -L/usr/local/X11R5/lib' \
+ EXTRALIBS='-ltermcap'
+
+# NB: Need -Dconst= for gcc 2.7.1 (unless gcc patch in make.doc is installed)
+ibm-rs6000-aix-gcc: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc -Dconst= -O -D_POSIX_SOURCE' \
+ CP='cp -p' \
+ GCFLAGS=$(GCFLAGS) \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE=-I/usr/lpp/X11/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib' \
+ EXTRALIBS='-ltermcap'
+
+# gp_unix.o must be compiled outside POSIX environment to make
+# struct timeval and struct timezone visible
+ibm-rs6000-aix-4.2: init
+ $(MAKE) $(ARGS) \
+ CC='cc -O -DMAXMEM=4096' \
+ CP='cp -p' \
+ FEATURE_DEVS_EXTRA= \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE=-I/usr/lpp/X11/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib' \
+ $(GLOBJ)gp_unix.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc -O -D_POSIX_SOURCE -DMAXMEM=4096' \
+ CP='cp -p' \
+ FEATURE_DEVS_EXTRA= \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE=-I/usr/lpp/X11/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib'
+
+ibm-rs6000-aix-4.2-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='cc -O -DMAXMEM=4096' \
+ CP='cp -p' \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE=-I/usr/lpp/X11/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib' \
+ $(GLOBJ)gp_unix.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc -O -D_POSIX_SOURCE -DMAXMEM=4096' \
+ CP='cp -p' \
+ INSTALL='/usr/ucb/install -c' \
+ XINCLUDE=-I/usr/lpp/X11/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/local/lib -L/usr/lpp/X11/lib/R5 -L/usr/lpp/X11/lib' \
+ $(GNU_READLINE_ARGS)
+
+linux: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc' \
+ GCFLAGS=$(GCFLAGS) \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/X11R6/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/X11R6/lib' \
+ EXTRALIBS='-ltermcap'
+
+linux-gnu-readline: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc' \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/X11R6/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/X11R6/lib' \
+ EXTRALIBS='-ltermcap' \
+ $(GNU_READLINE_ARGS)
+
+next-m68K-mach: init
+ $(MAKE) $(ARGS) \
+ CC='gcc -Dconst= -O3 -D_POSIX_SOURCE' \
+ FEATURE_DEVS_EXTRA= \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/local/X11R5/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/local/X11R5/lib' \
+ INCLUDE=/usr/include/bsd \
+ EXTRALIBS='-ltermcap'
+
+next-m68K-mach-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='gcc -Dconst= -O3 -D_POSIX_SOURCE' \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/local/X11R5/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/local/X11R5/lib' \
+ INCLUDE=/usr/include/bsd \
+ $(GNU_READLINE_ARGS)
+
+next-m68K-mach-cc: init
+ $(MAKE) $(ARGS) \
+ CC='cc -Dconst= -O3 -D_POSIX_SOURCE' \
+ XINCLUDE=-I/usr/local/X11R5/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/local/X11R5/lib' \
+ INCLUDE=/usr/include/bsd
+
+# NB: Need the -Dxxx settings to get certain system types defined for
+# at least gp_unifs.c and zdevcal.c
+sgi-mips-irix5: init
+ $(MAKE) $(ARGS) \
+ CC='cc -D_POSIX_4SOURCE -woff 608' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gdevpdf.o \
+ $(GLOBJ)gdevps.o \
+ $(GLOBJ)gdevtifs.o \
+ $(GLOBJ)gp_unix.o \
+ $(GLOBJ)zdevcal.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc -ansi -D_POSIX_4SOURCE -woff 608 -Olimit 1100' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc -ansi -D_POSIX_4SOURCE -woff 608' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11'
+
+sgi-mips-irix5-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='cc -D_POSIX_4SOURCE -woff 608' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gdevpdf.o \
+ $(GLOBJ)gdevps.o \
+ $(GLOBJ)gdevtifs.o \
+ $(GLOBJ)gp_unix.o \
+ $(GLOBJ)zdevcal.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc -ansi -D_POSIX_4SOURCE -woff 608 -Olimit 1100' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc -ansi -D_POSIX_4SOURCE -woff 608' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11' \
+ $(GNU_READLINE_ARGS)
+
+# NB: Need the -Dxxx settings to get certain system types defined for
+# at least gp_unifs.c and zdevcal.c
+sgi-mips-irix6.1: init
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/lib -L/usr/lib/X11'
+
+sgi-mips-irix6.3: init
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -D_POSIX_4SOURCE ' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gdevpdf.o \
+ $(GLOBJ)gdevps.o \
+ $(GLOBJ)gdevtifs.o \
+ $(GLOBJ)gp_unix.o \
+ $(GLOBJ)zdevcal.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429 -Olimit 1100' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/$(SGIARCHLIB) -L/usr/local/lib -L/usr/lib/X11'
+
+sgi-mips-irix6.3-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -D_POSIX_4SOURCE ' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gdevpdf.o \
+ $(GLOBJ)gdevps.o \
+ $(GLOBJ)gdevtifs.o \
+ $(GLOBJ)gp_unix.o \
+ $(GLOBJ)zdevcal.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429 -Olimit 1100' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/$(SGIARCHLIB) -L/usr/local/lib -L/usr/lib/X11' \
+ $(GNU_READLINE_ARGS)
+
+sgi-mips-irix6.4: init
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -D_POSIX_4SOURCE' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gdevpdf.o \
+ $(GLOBJ)gdevps.o \
+ $(GLOBJ)gdevtifs.o \
+ $(GLOBJ)gp_unix.o \
+ $(GLOBJ)zdevcal.o
+#
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429 -OPT:Olimit=2500' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/$(SGIARCHLIB) -L/usr/local/lib -L/usr/lib/X11'
+
+sgi-mips-irix6.4-gcc: init
+ $(MAKE) $(ARGS) \
+ CC='gcc -D_POSIX_4SOURCE' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/$(SGIARCHLIB) -L/usr/local/lib -L/usr/lib/X11'
+
+sgi-mips-irix6.4-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -D_POSIX_4SOURCE' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gdevpdf.o \
+ $(GLOBJ)gdevps.o \
+ $(GLOBJ)gdevtifs.o \
+ $(GLOBJ)gp_unix.o \
+ $(GLOBJ)zdevcal.o
+#
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429 -OPT:Olimit=2500' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/lib/X11 -L/usr/local/lib' \
+ $(GLOBJ)gxclread.o
+
+ $(MAKE) $(ARGS) \
+ CC='cc $(SGIARCHFLAGS) -ansi -D_POSIX_4SOURCE -woff 1185,1429' \
+ XINCLUDE=-I/usr/include/X11 \
+ XLIBDIRS='-L/usr/local/$(SGIARCHLIB) -L/usr/local/lib -L/usr/lib/X11' \
+ $(GNU_READLINE_ARGS) \
+ XCFLAGS='-I. -I$(JSRCDIR) -I/usr/local/include -L/usr/local/lib32 -L/usr/local/lib'
+
+sun-sparc-solaris: init
+ $(MAKE) $(ARGS) \
+ CC='cc -Xc' \
+ FEATURE_DEVS_EXTRA= \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib'
+
+sun-sparc-solaris-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='cc -Xc' \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib' \
+ $(GNU_READLINE_ARGS)
+
+sun-sparc-solaris-gcc: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc' \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib' \
+ EXTRALIBS='-ltermcap'
+
+# For ps2pdf FullBook.ps, these optimization options only reduced the time by 3%!
+sun-sparc-solaris-opt-gnu-readline: init
+ $(MAKE) $(ARGS) \
+ CC='cc -Xc -xO5 -dalign -xlibmil -xcg92 -xtarget=ultra1/2170' \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib' \
+ $(GNU_READLINE_ARGS)
+
+# [21-Dec-1998] Add missing $(DD) prefix to sparc.dev
+sun-sparc-solaris-newsprint: init
+ $(MAKE) $(ARGS) \
+ CC='cc -Xc' \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib' \
+ DEVICE_DEVS2=$(DD)sparc.dev
+
+sun-sparc-solaris-pg: init
+ $(MAKE) $(ARGS) \
+ CC='cc -Xc -xO5 -dalign -xlibmil -fsimple=2 -fns -xsafe=mem -xtarget=ultra1/170 -xpg' \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib -ldl'
+
+# [21-Dec-1998] Add missing $(DD) prefix to sparc.dev
+# [28-Nov-1997] Extra device(s) to be compiled into gs to support
+# local needs Neither unixansi.mak nor unix-gcc.mak currently sets
+# DEVICE_DEVS2, so we are free to list only our extra ones here:
+
+# NB: Need -Dconst= for gcc 2.7.1 (unless gcc patch in make.doc is installed)
+sun-sparc-sunos-gcc: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc -Dconst=' \
+ FEATURE_DEVS_EXTRA= \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib' \
+ DEVICE_DEVS2=$(DD)sparc.dev \
+ EXTRALIBS='-ltermcap'
+
+sun-sparc-sunos-gcc-gnu-readline: init
+ $(MAKE) $(ARGSGCC) \
+ CC='gcc -Dconst=' \
+ GCFLAGS=$(GCFLAGS) \
+ XINCLUDE=-I/usr/openwin/include \
+ XLIBDIRS='-L/usr/local/lib -L/usr/openwin/lib' \
+ DEVICE_DEVS2=$(DD)sparc.dev \
+ $(GNU_READLINE_ARGS)
+
+# Convenience targets: build by hostname, using settings from
+# /usr/local/src/ghostscript/BUILD-GS.sh
+
+# [02-Oct-1999]: remove -gnu-readline from these: I still have not
+# yet had time to debug the problems it creates interfacing
+# to ps2pk et al
+GNUREADLINE=-gnu-readline
+GNUREADLINE=
+
+# [Hostnames at Utah intentionally obscurred:]
+XXXXXXXX.math.utah.edu: dec-alpha-osf$(GNUREADLINE)
+XXXXXXXX.physics.utah.edu: ibm-rs6000-aix-4.2$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: sgi-mips-irix6.4$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: hp-parisc-hpux$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: sgi-mips-irix6.3$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: next-m68K-mach$(GNUREADLINE)
+XXXXXXXX: apple-powerpc-rhapsody5.5$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: apple-powerpc-rhapsody5.5$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: dec-alpha-osf$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: linux$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: sun-sparc-sunos-gcc$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: sun-sparc-solaris$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: sun-sparc-solaris$(GNUREADLINE)
+XXXXXXXX.math.utah.edu: sgi-mips-irix5$(GNUREADLINE)
diff --git a/gs/src/ansi2knr.c b/gs/src/ansi2knr.c
index d32587cf0..295998854 100644
--- a/gs/src/ansi2knr.c
+++ b/gs/src/ansi2knr.c
@@ -1,6 +1,6 @@
/* Copyright (C) 1989, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved. */
-
+/*$RCSfile$ $Revision$*/
/* Convert ANSI C function definitions to K&R ("traditional C") syntax */
/*
diff --git a/gs/src/bcwin32.mak b/gs/src/bcwin32.mak
index 19da27fff..569a6a9e5 100644
--- a/gs/src/bcwin32.mak
+++ b/gs/src/bcwin32.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1989-1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for (MS-Windows 3.1/Win32s / Windows 95 / Windows NT) +
# Borland C++ 4.5 platform.
@@ -25,15 +12,33 @@
# ------ Generic options ------ #
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+BINDIR=bin
+GLSRCDIR=src
+GLGENDIR=obj
+GLOBJDIR=obj
+PSSRCDIR=src
+PSLIBDIR=lib
+PSGENDIR=obj
+PSOBJDIR=obj
+
+# Define the root directory for Ghostscript installation.
+
+AROOTDIR=c:/Aladdin
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+
# Define the directory that will hold documentation at runtime.
-GS_DOCDIR=c:/gs
+GS_DOCDIR=$(GSROOTDIR)/doc
# Define the default directory/ies for the runtime
# initialization and font files. Separate multiple directories with \;.
# Use / to indicate directories, not a single \.
-GS_LIB_DEFAULT=.;c:/gs/lib\;c:/gs/fonts
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib\;$(AROOTDIR)/fonts
# Define whether or not searching for initialization files should always
# look in the current directory first. This leads to well-known security
@@ -74,6 +79,16 @@ GS=gswin32
GSCONSOLE=gswin32c
GSDLL=gsdll32
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gswin32c
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)\$(GS) -I$(PSLIBDIR)
+
# To build two small executables and a large DLL, use MAKEDLL=1.
# To build two large executables, use MAKEDLL=0.
@@ -86,19 +101,6 @@ MAKEDLL=1
MULTITHREAD=1
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-BINDIR=bin
-GLSRCDIR=src
-GLGENDIR=obj
-GLOBJDIR=obj
-PSSRCDIR=src
-PSLIBDIR=lib
-PSGENDIR=obj
-PSOBJDIR=obj
-
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
@@ -199,12 +201,12 @@ SYNC=winsync
# Choose the language feature(s) to include. See gs.mak for details.
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)mshandle.dev $(PSD)pipe.dev
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)mshandle.dev $(GLD)pipe.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
@@ -435,6 +437,10 @@ $(LIBCTR): $(TOP_MAKEFILES) $(ECHOGS_XE)
!if $(MAKEDLL)
# The graphical small EXE loader
+# **************** Borland C++ 4.5 will not compile the setup program,
+# **************** since a later Windows header file is required.
+# **************** The following dependency list should include
+# **************** $(SETUP_XE) $(UNINSTALL_XE)
$(GS_XE): $(GSDLL_DLL) $(DWOBJ) $(GSCONSOLE_XE)\
$(GS_OBJ).res $(GLSRCDIR)\dwmain32.def
$(LINK) /Tpe $(LCT) @&&!
@@ -508,4 +514,38 @@ $(GLSRCDIR)\gs16spl.def
!
$(COMPDIR)\rlink -t $(GLOBJ)gs16spl.res $(GSSPL_XE)
+# ---------------------- Setup and uninstall programs ---------------------- #
+
+!if $(MAKEDLL)
+
+$(SETUP_XE): $(GLOBJ)dwsetup.obj $(GLOBJ)dwinst.obj $(GLOBJ)dwsetup.res $(GLSRC)dwsetup.def
+ $(LINK) /Tpe /ap $(LCT) $(DEBUGLINK) @&&!
+$(LIBDIR)\c0w32 +
+$(GLOBJ)dwsetup.obj $(GLOBJ)dwinst.obj +
+,$(SETUP_XE),$(GLOBJ)$(dwsetup), +
+$(LIBDIR)\import32 +
+$(LIBDIR)\ole2w32 +
+$(LIBDIR)\cw32, +
+$(GLSRCDIR)\dwsetup.def, +
+$(GLOBJ)dwsetup.res
+!
+
+$(UNINSTALL_XE): $(GLOBJ)dwuninst.obj $(GLOBJ)dwuninst.res $(GLSRC)dwuninst.def
+ $(LINK) /Tpe /ap $(LCT) $(DEBUGLINK) @&&!
+$(LIBDIR)\c0w32 +
+$(GLOBJ)dwuninst.obj +
+,$(UNINSTALL_XE),$(GLOBJ)$(dwuninst), +
+$(LIBDIR)\import32 +
+$(LIBDIR)\ole2w32 +
+$(LIBDIR)\cw32, +
+$(GLSRCDIR)\dwuninst.def, +
+$(GLOBJ)dwuninst.res
+!
+ rem echo $(LIBDIR)\ole32.lib >> $(GLGEN)dwuninst.tr
+ rem echo $(LIBDIR)\uuid.lib >> $(GLGEN)dwuninst.tr
+
+
+!endif
+
+
# end of makefile
diff --git a/gs/src/bench.c b/gs/src/bench.c
index 7906c8736..29397a876 100644
--- a/gs/src/bench.c
+++ b/gs/src/bench.c
@@ -1,5 +1,6 @@
-/* pop (%!) .skipeof */
-/* Copyright (C) 1989, 1995 Aladdin Enterprises. All rights reserved.
+/* pop (%!) .skipeof
+
+ Copyright (C) 1989, 1995 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
@@ -17,7 +18,7 @@
all copies.
*/
-
+/*$RCSfile$ $Revision$ */
/* Simple hardware benchmarking suite (C and PostScript) */
#include <stdio.h>
#include <stdlib.h>
diff --git a/gs/src/bfont.h b/gs/src/bfont.h
index 3a79f941c..ede9a58ac 100644
--- a/gs/src/bfont.h
+++ b/gs/src/bfont.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter internal routines and data needed for building fonts */
/* Requires gxfont.h */
diff --git a/gs/src/btoken.h b/gs/src/btoken.h
index 635dcddfb..fc71a0616 100644
--- a/gs/src/btoken.h
+++ b/gs/src/btoken.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for Level 2 binary tokens */
#ifndef btoken_INCLUDED
diff --git a/gs/src/bughunt.sh b/gs/src/bughunt.sh
index b5c808acc..8ec4f4084 100755
--- a/gs/src/bughunt.sh
+++ b/gs/src/bughunt.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-
+# $RCSfile$ $Revision$
# NB: If your sh does not support functions, then try
# /usr/local/bin/bash or /bin/ksh, if you have them.
#
diff --git a/gs/src/catmake b/gs/src/catmake
index 61435abe1..e52e70fb1 100755
--- a/gs/src/catmake
+++ b/gs/src/catmake
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Expand 'includes' in makefiles. Usage:
# catmake orig.mak > makefile
diff --git a/gs/src/ccfont.h b/gs/src/ccfont.h
index d8003a692..9ed8eddb9 100644
--- a/gs/src/ccfont.h
+++ b/gs/src/ccfont.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Header for fonts compiled into C. */
#ifndef ccfont_INCLUDED
diff --git a/gs/src/ccgs b/gs/src/ccgs
index 115930351..7ce2e5222 100644
--- a/gs/src/ccgs
+++ b/gs/src/ccgs
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# Pre-process ANSI C files with ansi2knr before compiling.
# Usage: ccgs ansi2knr "cc switches..." ...switches... -c inputfile ... -o outputfile
diff --git a/gs/src/cfonts.mak b/gs/src/cfonts.mak
index 1b3a55216..df410a06e 100644
--- a/gs/src/cfonts.mak
+++ b/gs/src/cfonts.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1992, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Makefile for compiling PostScript Type 1 fonts into C.
# For more information about fonts, consult the Fontmap file,
# and also Fonts.htm.
@@ -24,8 +11,8 @@
# PSGENDIR - the directory for files generated during building
# PSOBJDIR - the object code directory
-# Define the name for invoking the font2c program.
-FONT2C=font2c
+# Define the name of this makefile.
+CFONTS_MAK=$(PSSRC)cfonts.mak
# ---------------- End of editable definitions ---------------- #
@@ -40,6 +27,16 @@ CFOBJ=$(CFOBJDIR)$(D)
CFCC=$(CC_) $(I_)$(PSSRCDIR)$(_I)
CFO_=$(O_)$(CFOBJ)
+# Define how to invoke the font2c program.
+F2CTMP=$(PSGEN)font2c.tmp
+F2CDEP=$(MAKEFILE) $(F2CTMP)
+
+$(F2CTMP) : $(MAKEFILE) $(CFONTS_MAK) $(ECHOGS_XE)
+ $(EXP)$(ECHOGS_XE) -w $(F2CTMP) - -q -dNODISPLAY -dWRITESYSTEMDICT
+ $(EXP)$(ECHOGS_XE) -a $(F2CTMP) - -- $(PSLIBDIR)$(D)font2c.ps
+
+FONT2C=$(BUILD_TIME_GS) @$(F2CTMP)
+
# ---------------------------------------------------------------- #
# This file supports two slightly different font sets:
@@ -81,16 +78,16 @@ CharterBT_c Cyrillic_c Kana_c Utopia_c
AvantGarde_c : $(CFGEN)0agk.c $(CFGEN)0agko.c $(CFGEN)0agd.c $(CFGEN)0agdo.c
$(NO_OP)
-$(CFGEN)0agk.c :
+$(CFGEN)0agk.c : $(F2CDEP)
$(FONT2C) AvantGarde-Book $(CFGEN)0agk.c agk
-$(CFGEN)0agko.c :
+$(CFGEN)0agko.c : $(F2CDEP)
$(FONT2C) AvantGarde-BookOblique $(CFGEN)0agko.c agko
-$(CFGEN)0agd.c :
+$(CFGEN)0agd.c : $(F2CDEP)
$(FONT2C) AvantGarde-Demi $(CFGEN)0agd.c agd
-$(CFGEN)0agdo.c :
+$(CFGEN)0agdo.c : $(F2CDEP)
$(FONT2C) AvantGarde-DemiOblique $(CFGEN)0agdo.c agdo
AvantGarde_o : $(CFOBJ)0agk.$(OBJ) $(CFOBJ)0agko.$(OBJ) $(CFOBJ)0agd.$(OBJ) $(CFOBJ)0agdo.$(OBJ)
@@ -113,16 +110,16 @@ $(CFOBJ)0agdo.$(OBJ) : $(CFGEN)0agdo.c $(CCFONT)
Bookman_c : $(CFGEN)0bkl.c $(CFGEN)0bkli.c $(CFGEN)0bkd.c $(CFGEN)0bkdi.c
$(NO_OP)
-$(CFGEN)0bkl.c :
+$(CFGEN)0bkl.c : $(F2CDEP)
$(FONT2C) Bookman-Light $(CFGEN)0bkl.c bkl
-$(CFGEN)0bkli.c :
+$(CFGEN)0bkli.c : $(F2CDEP)
$(FONT2C) Bookman-LightItalic $(CFGEN)0bkli.c bkli
-$(CFGEN)0bkd.c :
+$(CFGEN)0bkd.c : $(F2CDEP)
$(FONT2C) Bookman-Demi $(CFGEN)0bkd.c bkd
-$(CFGEN)0bkdi.c :
+$(CFGEN)0bkdi.c : $(F2CDEP)
$(FONT2C) Bookman-DemiItalic $(CFGEN)0bkdi.c bkdi
Bookman_o : $(CFOBJ)0bkl.$(OBJ) $(CFOBJ)0bkli.$(OBJ) $(CFOBJ)0bkd.$(OBJ) $(CFOBJ)0bkdi.$(OBJ)
@@ -145,16 +142,16 @@ $(CFOBJ)0bkdi.$(OBJ) : $(CFGEN)0bkdi.c $(CCFONT)
Courier_c : $(CFGEN)0crr.c $(CFGEN)0cri.c $(CFGEN)0crb.c $(CFGEN)0crbi.c
$(NO_OP)
-$(CFGEN)0crr.c :
+$(CFGEN)0crr.c : $(F2CDEP)
$(FONT2C) Courier $(CFGEN)0crr.c crr
-$(CFGEN)0cri.c :
+$(CFGEN)0cri.c : $(F2CDEP)
$(FONT2C) Courier-Italic $(CFGEN)0cri.c cri
-$(CFGEN)0crb.c :
+$(CFGEN)0crb.c : $(F2CDEP)
$(FONT2C) Courier-Bold $(CFGEN)0crb.c crb
-$(CFGEN)0crbi.c :
+$(CFGEN)0crbi.c : $(F2CDEP)
$(FONT2C) Courier-BoldItalic $(CFGEN)0crbi.c crbi
Courier_o : $(CFOBJ)0crr.$(OBJ) $(CFOBJ)0cri.$(OBJ) $(CFOBJ)0crb.$(OBJ) $(CFOBJ)0crbi.$(OBJ)
@@ -179,28 +176,28 @@ $(CFGEN)0hvb.c $(CFGEN)0hvbo.c $(CFGEN)0hvrrn.c \
$(CFGEN)0hvrorn.c $(CFGEN)0hvbrn.c $(CFGEN)0hvborn.c
$(NO_OP)
-$(CFGEN)0hvr.c :
+$(CFGEN)0hvr.c : $(F2CDEP)
$(FONT2C) Helvetica $(CFGEN)0hvr.c hvr
-$(CFGEN)0hvro.c :
+$(CFGEN)0hvro.c : $(F2CDEP)
$(FONT2C) Helvetica-Oblique $(CFGEN)0hvro.c hvro
-$(CFGEN)0hvb.c :
+$(CFGEN)0hvb.c : $(F2CDEP)
$(FONT2C) Helvetica-Bold $(CFGEN)0hvb.c hvb
-$(CFGEN)0hvbo.c :
+$(CFGEN)0hvbo.c : $(F2CDEP)
$(FONT2C) Helvetica-BoldOblique $(CFGEN)0hvbo.c hvbo
-$(CFGEN)0hvrrn.c :
+$(CFGEN)0hvrrn.c : $(F2CDEP)
$(FONT2C) Helvetica-Narrow $(CFGEN)0hvrrn.c hvrrn
-$(CFGEN)0hvrorn.c :
+$(CFGEN)0hvrorn.c : $(F2CDEP)
$(FONT2C) Helvetica-Narrow-Oblique $(CFGEN)0hvrorn.c hvrorn
-$(CFGEN)0hvbrn.c :
+$(CFGEN)0hvbrn.c : $(F2CDEP)
$(FONT2C) Helvetica-Narrow-Bold $(CFGEN)0hvbrn.c hvbrn
-$(CFGEN)0hvborn.c :
+$(CFGEN)0hvborn.c : $(F2CDEP)
$(FONT2C) Helvetica-Narrow-BoldOblique $(CFGEN)0hvborn.c hvborn
Helvetica_o : $(CFOBJ)0hvr.$(OBJ) $(CFOBJ)0hvro.$(OBJ) $(CFOBJ)0hvb.$(OBJ) $(CFOBJ)0hvbo.$(OBJ) \
@@ -237,16 +234,16 @@ NewCenturySchlbk_c : $(CFGEN)0ncr.c $(CFGEN)0ncri.c $(CFGEN)0ncb.c \
$(CFGEN)0ncbi.c
$(NO_OP)
-$(CFGEN)0ncr.c :
+$(CFGEN)0ncr.c : $(F2CDEP)
$(FONT2C) NewCenturySchlbk-Roman $(CFGEN)0ncr.c ncr
-$(CFGEN)0ncri.c :
+$(CFGEN)0ncri.c : $(F2CDEP)
$(FONT2C) NewCenturySchlbk-Italic $(CFGEN)0ncri.c ncri
-$(CFGEN)0ncb.c :
+$(CFGEN)0ncb.c : $(F2CDEP)
$(FONT2C) NewCenturySchlbk-Bold $(CFGEN)0ncb.c ncb
-$(CFGEN)0ncbi.c :
+$(CFGEN)0ncbi.c : $(F2CDEP)
$(FONT2C) NewCenturySchlbk-BoldItalic $(CFGEN)0ncbi.c ncbi
NewCenturySchlbk_o : $(CFOBJ)0ncr.$(OBJ) $(CFOBJ)0ncri.$(OBJ) $(CFOBJ)0ncb.$(OBJ) $(CFOBJ)0ncbi.$(OBJ)
@@ -269,16 +266,16 @@ $(CFOBJ)0ncbi.$(OBJ) : $(CFGEN)0ncbi.c $(CCFONT)
Palatino_c : $(CFGEN)0plr.c $(CFGEN)0plri.c $(CFGEN)0plb.c $(CFGEN)0plbi.c
$(NO_OP)
-$(CFGEN)0plr.c :
+$(CFGEN)0plr.c : $(F2CDEP)
$(FONT2C) Palatino-Roman $(CFGEN)0plr.c plr
-$(CFGEN)0plri.c :
+$(CFGEN)0plri.c : $(F2CDEP)
$(FONT2C) Palatino-Italic $(CFGEN)0plri.c plri
-$(CFGEN)0plb.c :
+$(CFGEN)0plb.c : $(F2CDEP)
$(FONT2C) Palatino-Bold $(CFGEN)0plb.c plb
-$(CFGEN)0plbi.c :
+$(CFGEN)0plbi.c : $(F2CDEP)
$(FONT2C) Palatino-BoldItalic $(CFGEN)0plbi.c plbi
Palatino_o : $(CFOBJ)0plr.$(OBJ) $(CFOBJ)0plri.$(OBJ) $(CFOBJ)0plb.$(OBJ) $(CFOBJ)0plbi.$(OBJ)
@@ -301,16 +298,16 @@ $(CFOBJ)0plbi.$(OBJ) : $(CFGEN)0plbi.c $(CCFONT)
TimesRoman_c : $(CFGEN)0tmr.c $(CFGEN)0tmri.c $(CFGEN)0tmb.c $(CFGEN)0tmbi.c
$(NO_OP)
-$(CFGEN)0tmr.c :
+$(CFGEN)0tmr.c : $(F2CDEP)
$(FONT2C) Times-Roman $(CFGEN)0tmr.c tmr
-$(CFGEN)0tmri.c :
+$(CFGEN)0tmri.c : $(F2CDEP)
$(FONT2C) Times-Italic $(CFGEN)0tmri.c tmri
-$(CFGEN)0tmb.c :
+$(CFGEN)0tmb.c : $(F2CDEP)
$(FONT2C) Times-Bold $(CFGEN)0tmb.c tmb
-$(CFGEN)0tmbi.c :
+$(CFGEN)0tmbi.c : $(F2CDEP)
$(FONT2C) Times-BoldItalic $(CFGEN)0tmbi.c tmbi
TimesRoman_o : $(CFOBJ)0tmr.$(OBJ) $(CFOBJ)0tmri.$(OBJ) $(CFOBJ)0tmb.$(OBJ) $(CFOBJ)0tmbi.$(OBJ)
@@ -333,7 +330,7 @@ $(CFOBJ)0tmbi.$(OBJ) : $(CFGEN)0tmbi.c $(CCFONT)
Symbol_c : $(CFGEN)0syr.c
$(NO_OP)
-$(CFGEN)0syr.c :
+$(CFGEN)0syr.c : $(F2CDEP)
$(FONT2C) Symbol $(CFGEN)0syr.c syr
Symbol_o : $(CFOBJ)0syr.$(OBJ)
@@ -347,7 +344,7 @@ $(CFOBJ)0syr.$(OBJ) : $(CFGEN)0syr.c $(CCFONT)
ZapfChancery_c : $(CFGEN)0zcmi.c
$(NO_OP)
-$(CFGEN)0zcmi.c :
+$(CFGEN)0zcmi.c : $(F2CDEP)
$(FONT2C) ZapfChancery-MediumItalic $(CFGEN)0zcmi.c zcmi
ZapfChancery_o : $(CFOBJ)0zcmi.$(OBJ)
@@ -361,7 +358,7 @@ $(CFOBJ)0zcmi.$(OBJ) : $(CFGEN)0zcmi.c $(CCFONT)
ZapfDingbats_c : $(CFGEN)0zdr.c
$(NO_OP)
-$(CFGEN)0zdr.c :
+$(CFGEN)0zdr.c : $(F2CDEP)
$(FONT2C) ZapfDingbats $(CFGEN)0zdr.c zdr
ZapfDingbats_o : $(CFOBJ)0zdr.$(OBJ)
@@ -381,16 +378,16 @@ $(CFOBJ)0zdr.$(OBJ) : $(CFGEN)0zdr.c $(CCFONT)
CharterBT_c : $(CFGEN)bchr.c $(CFGEN)bchri.c $(CFGEN)bchb.c $(CFGEN)bchbi.c
$(NO_OP)
-$(CFGEN)bchr.c :
+$(CFGEN)bchr.c : $(F2CDEP)
$(FONT2C) Charter-Roman $(CFGEN)bchr.c chr
-$(CFGEN)bchri.c :
+$(CFGEN)bchri.c : $(F2CDEP)
$(FONT2C) Charter-Italic $(CFGEN)bchri.c chri
-$(CFGEN)bchb.c :
+$(CFGEN)bchb.c : $(F2CDEP)
$(FONT2C) Charter-Bold $(CFGEN)bchb.c chb
-$(CFGEN)bchbi.c :
+$(CFGEN)bchbi.c : $(F2CDEP)
$(FONT2C) Charter-BoldItalic $(CFGEN)bchbi.c chbi
CharterBT_o : $(CFOBJ)bchr.$(OBJ) $(CFOBJ)bchri.$(OBJ) $(CFOBJ)bchb.$(OBJ) $(CFOBJ)bchbi.$(OBJ)
@@ -413,10 +410,10 @@ $(CFOBJ)bchbi.$(OBJ) : $(CFGEN)bchbi.c $(CCFONT)
Cyrillic_c : $(CFGEN)fcyr.c $(CFGEN)fcyri.c
$(NO_OP)
-$(CFGEN)fcyr.c :
+$(CFGEN)fcyr.c : $(F2CDEP)
$(FONT2C) Cyrillic $(CFGEN)fcyr.c fcyr
-$(CFGEN)fcyri.c :
+$(CFGEN)fcyri.c : $(F2CDEP)
$(FONT2C) Cyrillic-Italic $(CFGEN)fcyri.c fcyri
Cyrillic_o : $(CFOBJ)fcyr.$(OBJ) $(CFOBJ)fcyri.$(OBJ)
@@ -433,10 +430,10 @@ $(CFOBJ)fcyri.$(OBJ) : $(CFGEN)fcyri.c $(CCFONT)
Kana_c : $(CFGEN)fhirw.c $(CFGEN)fkarw.c
$(NO_OP)
-$(CFGEN)fhirw.c :
+$(CFGEN)fhirw.c : $(F2CDEP)
$(FONT2C) Calligraphic-Hiragana $(CFGEN)fhirw.c fhirw
-$(CFGEN)fkarw.c :
+$(CFGEN)fkarw.c : $(F2CDEP)
$(FONT2C) Calligraphic-Katakana $(CFGEN)fkarw.c fkarw
Kana_o : $(CFOBJ)fhirw.$(OBJ) $(CFOBJ)fkarw.$(OBJ)
@@ -453,16 +450,16 @@ $(CFOBJ)fkarw.$(OBJ) : $(CFGEN)fkarw.c $(CCFONT)
Utopia_c : $(CFGEN)putr.c $(CFGEN)putri.c $(CFGEN)putb.c $(CFGEN)putbi.c
$(NO_OP)
-$(CFGEN)putr.c :
+$(CFGEN)putr.c : $(F2CDEP)
$(FONT2C) Utopia-Regular $(CFGEN)putr.c utr
-$(CFGEN)putri.c :
+$(CFGEN)putri.c : $(F2CDEP)
$(FONT2C) Utopia-Italic $(CFGEN)putri.c utri
-$(CFGEN)putb.c :
+$(CFGEN)putb.c : $(F2CDEP)
$(FONT2C) Utopia-Bold $(CFGEN)putb.c utb
-$(CFGEN)putbi.c :
+$(CFGEN)putbi.c : $(F2CDEP)
$(FONT2C) Utopia-BoldItalic $(CFGEN)putbi.c utbi
Utopia_o : $(CFOBJ)putr.$(OBJ) $(CFOBJ)putri.$(OBJ) $(CFOBJ)putb.$(OBJ) $(CFOBJ)putbi.$(OBJ)
diff --git a/gs/src/contrib.mak b/gs/src/contrib.mak
index c9818b5cf..7c0002a63 100644
--- a/gs/src/contrib.mak
+++ b/gs/src/contrib.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for contributed device drivers.
# Define the name of this makefile.
diff --git a/gs/src/cp.bat b/gs/src/cp.bat
index 3d60b63af..dfc2f0759 100755
--- a/gs/src/cp.bat
+++ b/gs/src/cp.bat
@@ -1,4 +1,4 @@
-
+@rem $RCSfile$ $Revision$
@echo off
if "%2"=="." goto ne
if exist _.tmp erase _.tmp
diff --git a/gs/src/cp.cmd b/gs/src/cp.cmd
index c77ba9175..ec3d18f95 100755
--- a/gs/src/cp.cmd
+++ b/gs/src/cp.cmd
@@ -1,3 +1,3 @@
@copy /B %1 %2
-
+@rem $RCSfile$ $Revision$
@if not "%2"=="." touch %2
diff --git a/gs/src/ctype_.h b/gs/src/ctype_.h
index b6467bf12..78012f3b8 100644
--- a/gs/src/ctype_.h
+++ b/gs/src/ctype_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Wrapper for ctype.h */
#ifndef ctype__INCLUDED
diff --git a/gs/src/devs.mak b/gs/src/devs.mak
index 7bd91f12a..cf06a43f3 100644
--- a/gs/src/devs.mak
+++ b/gs/src/devs.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Aladdin's device drivers.
# Define the name of this makefile.
@@ -396,12 +383,13 @@ x__h=$(GLSRC)x_.h
gdevxcmp_h=$(GLSRC)gdevxcmp.h
gdevx_h=$(GLSRC)gdevx.h $(gdevbbox_h) $(gdevxcmp_h)
-# See the main makefile for the definition of XLIBS.
+# See the main makefile for the definition of XLIBDIRS and XLIBS.
x11_=$(GLOBJ)gdevx.$(OBJ) $(GLOBJ)gdevxcmp.$(OBJ) $(GLOBJ)gdevxini.$(OBJ)\
$(GLOBJ)gdevxres.$(OBJ) $(GLOBJ)gdevxxf.$(OBJ)\
$(GLOBJ)gdevemap.$(OBJ) $(GLOBJ)gsparamx.$(OBJ)
$(DD)x11_.dev : $(DEVS_MAK) $(x11_) $(GLD)bbox.dev
$(SETMOD) $(DD)x11_ $(x11_)
+ $(ADDMOD) $(DD)x11_ -link $(XLIBDIRS)
$(ADDMOD) $(DD)x11_ -lib $(XLIBS)
$(ADDMOD) $(DD)x11_ -include $(GLD)bbox
@@ -552,9 +540,16 @@ $(DD)oce9050.dev : $(DEVS_MAK) $(HPMONO) $(GLD)page.dev
### Henry Stiles <henrys@meerkat.dimensional.com>
cljet5_=$(GLOBJ)gdevclj.$(OBJ) $(HPPCL)
+
+# The cljet5 driver is well-behaved.
$(DD)cljet5.dev : $(DEVS_MAK) $(cljet5_) $(GLD)page.dev
$(SETPDEV) $(DD)cljet5 $(cljet5_)
+# The cljet5pr driver has hacks for trying to handle page rotation.
+# The hacks only work with one special PCL interpreter. Don't use it!
+$(DD)cljet5pr.dev : $(DEVS_MAK) $(cljet5_) $(GLD)page.dev
+ $(SETPDEV) $(DD)cljet5pr $(cljet5_)
+
$(GLOBJ)gdevclj.$(OBJ) : $(GLSRC)gdevclj.c $(math__h) $(PDEVH)\
$(gx_h) $(gsparam_h) $(gdevpcl_h)
$(GLCC) $(GLO_)gdevclj.$(OBJ) $(C_) $(GLSRC)gdevclj.c
@@ -668,9 +663,7 @@ $(GLOBJ)gdevps.$(OBJ) : $(GLSRC)gdevps.c $(GDEV)\
# PDF writer
# Note that gs_pdfwr.ps will only actually be loaded if the configuration
-# includes a PostScript interpreter. gs_mgl_e requires gs_mro_e and should
-# always be loaded: guaranteeing this will require moving the Encodings
-# into C code.
+# includes a PostScript interpreter.
pdfwrite1_=$(GLOBJ)gdevpdf.$(OBJ) $(GLOBJ)gdevpdfd.$(OBJ)
pdfwrite2_=$(GLOBJ)gdevpdff.$(OBJ) $(GLOBJ)gdevpdfi.$(OBJ) $(GLOBJ)gdevpdfm.$(OBJ)
@@ -680,8 +673,8 @@ pdfwrite5_=$(GLOBJ)gsflip.$(OBJ) $(GLOBJ)gsparamx.$(OBJ)
pdfwrite6_=$(GLOBJ)scantab.$(OBJ) $(GLOBJ)sfilter2.$(OBJ) $(GLOBJ)sstring.$(OBJ)
pdfwrite_=$(pdfwrite1_) $(pdfwrite2_) $(pdfwrite3_) $(pdfwrite4_) $(pdfwrite5_)
$(DD)pdfwrite.dev : $(DEVS_MAK) $(ECHOGS_XE) $(pdfwrite_)\
- $(GLD)cmyklib.dev $(GLD)cfe.dev $(GLD)dcte.dev $(GLD)lzwe.dev\
- $(GLD)rle.dev $(GLD)szlibe.dev $(GLD)psdf.dev
+ $(GLD)cmyklib.dev $(GLD)cfe.dev $(GLD)lzwe.dev $(GLD)rle.dev\
+ $(GLD)sdcte.dev $(GLD)sdeparam.dev $(GLD)szlibe.dev $(GLD)psdf.dev
$(SETDEV2) $(DD)pdfwrite $(pdfwrite1_)
$(ADDMOD) $(DD)pdfwrite $(pdfwrite2_)
$(ADDMOD) $(DD)pdfwrite $(pdfwrite3_)
@@ -689,10 +682,11 @@ $(DD)pdfwrite.dev : $(DEVS_MAK) $(ECHOGS_XE) $(pdfwrite_)\
$(ADDMOD) $(DD)pdfwrite $(pdfwrite5_)
$(ADDMOD) $(DD)pdfwrite $(pdfwrite6_)
$(ADDMOD) $(DD)pdfwrite -ps gs_pdfwr
- $(ADDMOD) $(DD)pdfwrite -ps gs_lgo_e gs_lgx_e gs_mgl_e gs_mro_e
- $(ADDMOD) $(DD)pdfwrite -include $(GLD)cmyklib $(GLD)cfe $(GLD)dcte
- $(ADDMOD) $(DD)pdfwrite -include $(GLD)lzwe $(GLD)rle $(GLD)szlibe
- $(ADDMOD) $(DD)pdfwrite -include $(GLD)psdf
+ $(ADDMOD) $(DD)pdfwrite -ps gs_lgo_e gs_lgx_e gs_mex_e
+ $(ADDMOD) $(DD)pdfwrite -ps gs_mgl_e gs_mro_e gs_wan_e
+ $(ADDMOD) $(DD)pdfwrite -include $(GLD)cmyklib $(GLD)cfe $(GLD)lzwe
+ $(ADDMOD) $(DD)pdfwrite -include $(GLD)rle $(GLD)sdcte $(GLD)sdeparam
+ $(ADDMOD) $(DD)pdfwrite -include $(GLD)szlibe $(GLD)psdf
gdevpdfo_h=$(GLSRC)gdevpdfo.h
gdevpdfx_h=$(GLSRC)gdevpdfx.h\
@@ -738,7 +732,7 @@ $(GLOBJ)gdevpdfo.$(OBJ) : $(GLSRC)gdevpdfo.c $(memory__h) $(string__h)\
$(sstring_h) $(strimpl_h)
$(GLCC) $(GLO_)gdevpdfo.$(OBJ) $(C_) $(GLSRC)gdevpdfo.c
-$(GLOBJ)gdevpdfp.$(OBJ) : $(GLSRC)gdevpdfp.c $(gx_h)\
+$(GLOBJ)gdevpdfp.$(OBJ) : $(GLSRC)gdevpdfp.c $(memory__h) $(gx_h)\
$(gdevpdfx_h) $(gserrors_h) $(gsparamx_h)
$(GLCC) $(GLO_)gdevpdfp.$(OBJ) $(C_) $(GLSRC)gdevpdfp.c
diff --git a/gs/src/dirent_.h b/gs/src/dirent_.h
index 423d3ee2c..65bf7cd0d 100644
--- a/gs/src/dirent_.h
+++ b/gs/src/dirent_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix dirent.h */
#ifndef dirent__INCLUDED
diff --git a/gs/src/dos_.h b/gs/src/dos_.h
index 872bfb8e6..a6ed1a41b 100644
--- a/gs/src/dos_.h
+++ b/gs/src/dos_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic MS-DOS interface */
#ifndef dos__INCLUDED
diff --git a/gs/src/dpmainc.c b/gs/src/dpmainc.c
index 2203078c1..85e0a2e53 100644
--- a/gs/src/dpmainc.c
+++ b/gs/src/dpmainc.c
@@ -17,7 +17,7 @@
*/
-
+/*$RCSfile$ $Revision$ */
/* Ghostscript DLL loader for OS/2 */
/* For WINDOWCOMPAT (console mode) application */
diff --git a/gs/src/dstack.h b/gs/src/dstack.h
index 1f089e128..2b3004b08 100644
--- a/gs/src/dstack.h
+++ b/gs/src/dstack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for the interpreter's dictionary stack */
#ifndef dstack_INCLUDED
diff --git a/gs/src/dvx-gcc.mak b/gs/src/dvx-gcc.mak
index 3fb200eba..f4acb0e94 100755
--- a/gs/src/dvx-gcc.mak
+++ b/gs/src/dvx-gcc.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for DesqView/X/gcc/X11 configuration.
#include $(COMMONDIR)/gccdefs.mak
@@ -29,6 +16,19 @@ include $(GLSRCDIR)/version.mak
# ------ Generic options ------ #
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+BINDIR=bin
+GLSRCDIR=src
+GLGENDIR=obj
+GLOBJDIR=obj
+PSSRCDIR=src
+PSLIBDIR=lib
+PSGENDIR=obj
+PSOBJDIR=obj
+
# Define the installation commands and target directories for
# executables and files. The commands are only relevant to `make install';
# the directories also define the default search path for the
@@ -83,18 +83,15 @@ GENOPT=
GS=gs
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-BINDIR=bin
-GLSRCDIR=src
-GLGENDIR=obj
-GLOBJDIR=obj
-PSSRCDIR=src
-PSLIBDIR=lib
-PSGENDIR=obj
-PSOBJDIR=obj
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gs
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
@@ -177,6 +174,12 @@ LDFLAGS=$(XLDFLAGS)
EXTRALIBS=-lsys -lc
+# Define the standard libraries to search at the end of linking.
+# All reasonable platforms require -lm, but Rhapsody and perhaps one or
+# two others fold libm into libc and require STDLIBS to be empty.
+
+STDLIBS=-lm
+
# Define the include switch(es) for the X11 header files.
# This can be null if handled in some other way (e.g., the files are
# in /usr/include, or the directory is supplied by an environment variable);
@@ -229,12 +232,12 @@ SYNC=posync
# Choose the language feature(s) to include. See gs.mak for details.
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)pipe.dev
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(GLD)pipe.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
diff --git a/gs/src/dvx-head.mak b/gs/src/dvx-head.mak
index 9faabe091..339ba5a75 100644
--- a/gs/src/dvx-head.mak
+++ b/gs/src/dvx-head.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1994, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile, common to all Desqview/X configurations.
# This part of the makefile gets inserted after the compiler-specific part
diff --git a/gs/src/dvx-tail.mak b/gs/src/dvx-tail.mak
index a0038e2df..3b1d509c1 100644
--- a/gs/src/dvx-tail.mak
+++ b/gs/src/dvx-tail.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile, common to all Desqview/X configurations.
# This is the last part of the makefile for Desqview/X configurations.
@@ -91,8 +78,8 @@ $(gconfig__h): $(GLSRCDIR)/dvx-tail.mak $(ECHOGS_XE)
$(GS_XE): ld.tr gs.$(OBJ) $(INT_ALL) $(LIB_ALL) $(DEVS_ALL)
$(CP_) ld.tr _temp_
- echo $(EXTRALIBS) -lm >>_temp_
- $(CC) $(LDFLAGS) $(XLIBDIRS) -o $(GS) gs.$(OBJ) @_temp_
+ echo $(EXTRALIBS) $(STDLIBS) >>_temp_
+ $(CC) $(LDFLAGS) -o $(GS) gs.$(OBJ) @_temp_
strip $(GS)
coff2exe $(GS)
del $(GS)
diff --git a/gs/src/dwdll.cpp b/gs/src/dwdll.cpp
index 943f9eb40..8bd39cc82 100644
--- a/gs/src/dwdll.cpp
+++ b/gs/src/dwdll.cpp
@@ -17,7 +17,7 @@
*/
-
+// $RCSfile$ $Revision$
// gsdll class for MS-Windows
diff --git a/gs/src/dwdll.h b/gs/src/dwdll.h
index 3fd0083bb..935c5bdad 100644
--- a/gs/src/dwdll.h
+++ b/gs/src/dwdll.h
@@ -18,7 +18,7 @@
*/
-
+// $RCSfile$ $Revision$
// gsdll_class for MS-Windows
diff --git a/gs/src/dwimg.cpp b/gs/src/dwimg.cpp
index 052c41191..91de4ae9e 100644
--- a/gs/src/dwimg.cpp
+++ b/gs/src/dwimg.cpp
@@ -16,7 +16,7 @@
all copies.
*/
-
+// $RCSfile$ $Revision$
#define STRICT
diff --git a/gs/src/dwimg.h b/gs/src/dwimg.h
index 271d7a6d8..c6124d5ab 100644
--- a/gs/src/dwimg.h
+++ b/gs/src/dwimg.h
@@ -17,7 +17,9 @@
*/
+// $RCSfile$ $Revision$
+// Image Window class
class ImageWindow {
static ImageWindow *first;
diff --git a/gs/src/dwinst.cpp b/gs/src/dwinst.cpp
new file mode 100644
index 000000000..d065222f6
--- /dev/null
+++ b/gs/src/dwinst.cpp
@@ -0,0 +1,937 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+// $RCSfile$ $Revision$
+
+#define STRICT
+#include <windows.h>
+#include <objbase.h>
+#include <shlobj.h>
+#include <stdio.h>
+#include <io.h>
+#include <direct.h>
+
+#include "dwinst.h"
+
+#define UNINSTALLKEY TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
+#define UNINSTALLSTRINGKEY TEXT("UninstallString")
+#define DISPLAYNAMEKEY TEXT("DisplayName")
+#define UNINSTALL_FILE "uninstal.txt"
+char szSection[] = "////////////////////////////////\n";
+
+#ifdef _MSC_VER
+#define mktemp(x) _mktemp(x)
+#define chdir(x) _chdir(x)
+#define mkdir(x) _mkdir(x)
+#endif
+
+
+
+//////////////////////////////////////////////////////////////////////
+// Construction/Destruction
+//////////////////////////////////////////////////////////////////////
+
+CInstall::CInstall()
+{
+ CoInitialize(NULL);
+
+ m_szTargetDir[0] = '\0';
+ m_szTargetGroup[0] = '\0';
+ m_szPrograms[0] = '\0';
+ m_szMainDir[0] = '\0';
+ AddMessageFn = NULL;
+ SetAllUsers(FALSE);
+}
+
+CInstall::~CInstall()
+{
+ CoUninitialize();
+}
+
+void CInstall::CleanUp(void)
+{
+ // delete all temporary files
+ if (m_fLogNew)
+ fclose(m_fLogNew);
+ m_fLogNew = NULL;
+ if (m_fLogOld)
+ fclose(m_fLogOld);
+ m_fLogOld = NULL;
+
+ if (strlen(m_szRegistryNew))
+ DeleteFile(m_szRegistryNew);
+ m_szRegistryNew[0] = '\0';
+
+ if (strlen(m_szRegistryOld))
+ DeleteFile(m_szRegistryOld);
+ m_szRegistryOld[0] = '\0';
+
+ if (strlen(m_szShellNew))
+ DeleteFile(m_szShellNew);
+ m_szShellNew[0] = '\0';
+
+ if (strlen(m_szShellOld))
+ DeleteFile(m_szShellOld);
+ m_szShellOld[0] = '\0';
+
+ if (strlen(m_szFileNew))
+ DeleteFile(m_szFileNew);
+ m_szFileNew[0] = '\0';
+}
+
+
+void CInstall::SetMessageFunction(void(*fn)(const char *))
+{
+ AddMessageFn = fn;
+}
+
+void CInstall::AddMessage(const char *message)
+{
+ if (AddMessageFn)
+ (*AddMessageFn)(message);
+}
+
+void CInstall::SetTargetDir(const char *szTargetDir)
+{
+ strcpy(m_szTargetDir, szTargetDir);
+ // remove trailing backslash
+ char *p;
+ p = m_szTargetDir + strlen(m_szTargetDir) - 1;
+ if (*p == '\\')
+ *p = '\0';
+}
+
+void CInstall::SetTargetGroup(const char *szTargetGroup)
+{
+ strcpy(m_szTargetGroup, szTargetGroup);
+ // remove trailing backslash
+ char *p;
+ p = m_szTargetGroup + strlen(m_szTargetGroup) - 1;
+ if (*p == '\\')
+ *p = '\0';
+}
+
+const char *CInstall::GetMainDir()
+{
+ return m_szMainDir;
+}
+
+const char *CInstall::GetUninstallName()
+{
+ return m_szUninstallName;
+}
+
+BOOL CInstall::Init(const char *szSourceDir, const char *szFileList)
+{
+ FILE *f;
+
+ strcpy(m_szSourceDir, szSourceDir);
+ // remove trailing backslash
+ char *p;
+ p = m_szSourceDir + strlen(m_szSourceDir) - 1;
+ if (*p == '\\')
+ *p = '\0';
+ strcpy(m_szFileList, szFileList);
+
+ m_szRegistryNew[0] = m_szRegistryOld[0] =
+ m_szShellNew[0] = m_szShellOld[0] =
+ m_szFileNew[0] = '\0';
+
+ // Open list of files
+ SetCurrentDirectory(m_szSourceDir);
+ f = fopen(m_szFileList, "r");
+ if (f == (FILE *)NULL) {
+ char buf[MAXSTR];
+ wsprintf(buf, "Failed to open \042%s\042\n", m_szFileList);
+ AddMessage(buf);
+ return FALSE;
+ }
+
+ // get application and directory name
+ m_szUninstallName[0] = '\0';
+ if (!fgets(m_szUninstallName, sizeof(m_szUninstallName), f)) {
+ AddMessage("Invalid file list\n");
+ fclose(f);
+ return FALSE;
+ }
+ if (*m_szUninstallName )
+ m_szUninstallName[strlen(m_szUninstallName)-1] = '\0';
+
+ m_szMainDir[0] = '\0';
+ if (!fgets(m_szMainDir, sizeof(m_szMainDir), f)) {
+ AddMessage("Invalid file list\n");
+ fclose(f);
+ return FALSE;
+ }
+ if (*m_szMainDir )
+ m_szMainDir[strlen(m_szMainDir)-1] = '\0';
+ fclose(f);
+
+ // Create log directory
+ strcpy(m_szLogDir, m_szTargetDir);
+ strcat(m_szLogDir, "\\");
+ strcat(m_szLogDir, m_szMainDir);
+ MakeDir(m_szLogDir);
+
+ return TRUE;
+}
+
+
+//////////////////////////////////////////
+// File installation methods
+
+BOOL CInstall::InstallFiles(BOOL bNoCopy, BOOL *pbQuit)
+{
+ char szLogNew[MAXSTR];
+
+ AddMessage(bNoCopy ? "Checking" : "Copying");
+ AddMessage(" files listed in ");
+ AddMessage(m_szFileList);
+ AddMessage("\n");
+
+ // Open list of files
+ SetCurrentDirectory(m_szSourceDir);
+ FILE *f = fopen(m_szFileList, "r");
+ if (f == (FILE *)NULL) {
+ AddMessage("Failed to open \042");
+ AddMessage(m_szFileList);
+ AddMessage("\042\n");
+ return FALSE;
+ }
+
+ // skip application and directory name
+ fgets(szLogNew, sizeof(szLogNew), f);
+ fgets(szLogNew, sizeof(szLogNew), f);
+
+ // Create target log
+
+ m_fLogNew = MakeTemp(m_szFileNew);
+ if (!m_fLogNew) {
+ AddMessage("Failed to create FileNew temporary file\n");
+ return FALSE;
+ }
+
+ // Copy files
+ char line[MAXSTR];
+ while (fgets(line, sizeof(line), f) != (char *)NULL) {
+ if (*pbQuit)
+ return FALSE;
+ if (*line)
+ line[strlen(line)-1] = '\0';
+ if (!InstallFile(line, bNoCopy)) {
+ fclose(f);
+ fclose(m_fLogNew);
+ return FALSE;
+ }
+ }
+ fclose(f);
+ fclose(m_fLogNew);
+ m_fLogNew = NULL;
+ return TRUE;
+}
+
+
+
+// recursive mkdir
+// requires a full path to be specified, so ignores root \
+// apart from root \, must not contain trailing \
+// Examples:
+// c:\ (OK, but useless)
+// c:\gstools (OK)
+// c:\gstools\ (incorrect)
+// c:gstools (incorrect)
+// gstools (incorrect)
+// The following UNC names should work,
+// but didn't under Win3.1 because gs_chdir wouldn't accept UNC names
+// Needs to be tested under Windows 95.
+// \\server\sharename\gstools (OK)
+// \\server\sharename\ (OK, but useless)
+//
+
+BOOL CInstall::MakeDir(const char *dirname)
+{
+ char newdir[MAXSTR];
+ const char *p;
+ if (strlen(dirname) < 3)
+ return -1;
+
+ if (isalpha(dirname[0]) && dirname[1]==':' && dirname[2]=='\\') {
+ // drive mapped path
+ p = dirname+3;
+ }
+ else if (dirname[1]=='\\' && dirname[1]=='\\') {
+ // UNC path
+ p = strchr(dirname+2, '\\'); // skip servername
+ if (p == NULL)
+ return -1;
+ p++;
+ p = strchr(p, '\\'); // skip sharename
+ if (p == NULL)
+ return -1;
+ }
+ else {
+ // not full path so error
+ return -1;
+ }
+
+ while (1) {
+ strncpy(newdir, dirname, (int)(p-dirname));
+ newdir[(int)(p-dirname)] = '\0';
+ if (chdir(newdir)) {
+ if (mkdir(newdir))
+ return -1;
+ }
+ p++;
+ if (p >= dirname + strlen(dirname))
+ break; // all done
+ p = strchr(p, '\\');
+ if (p == NULL)
+ p = dirname + strlen(dirname);
+ }
+
+ return SetCurrentDirectory(dirname);
+}
+
+BOOL CInstall::InstallFile(char *filename, BOOL bNoCopy)
+{
+ char existing_name[MAXSTR];
+ char new_name[MAXSTR];
+ char dir_name[MAXSTR];
+
+ strcpy(existing_name, m_szSourceDir);
+ strcat(existing_name, "\\");
+ strcat(existing_name, filename);
+ strcpy(new_name, m_szTargetDir);
+ strcat(new_name, "\\");
+ strcat(new_name, filename);
+ strcpy(dir_name, new_name);
+ char *p = strrchr(dir_name, '\\');
+ if (p) {
+ *p = '\0';
+ if (!MakeDir(dir_name)) {
+ AddMessage("Failed to make directory ");
+ AddMessage(dir_name);
+ AddMessage("\n");
+ return FALSE;
+ }
+ }
+ AddMessage(" ");
+ AddMessage(new_name);
+ AddMessage("\n");
+
+ if (bNoCopy) {
+ // Don't copy files. Leave them where they are.
+ // Check that all files exist
+ FILE *f;
+ if ((f = fopen(existing_name, "r")) == (FILE *)NULL) {
+ AddMessage("Missing file ");
+ AddMessage(existing_name);
+ AddMessage("\n");
+ return FALSE;
+ }
+ fclose(f);
+ }
+ else if (!CopyFile(existing_name, new_name, FALSE)) {
+ char message[MAXSTR+MAXSTR+100];
+ wsprintf(message, "Failed to copy file %s to %s\n",
+ existing_name, new_name);
+ AddMessage(message);
+ return FALSE;
+ }
+
+ fputs(new_name, m_fLogNew);
+ fputs("\n", m_fLogNew);
+
+ return TRUE;
+}
+
+//////////////////////////////////////////
+// Shell methods
+
+BOOL CInstall::StartMenuBegin()
+{
+ m_fLogNew = MakeTemp(m_szShellNew);
+ if (!m_fLogNew) {
+ AddMessage("Failed to create ShellNew temporary file\n");
+ return FALSE;
+ }
+
+ m_fLogOld = MakeTemp(m_szShellOld);
+ if (!m_fLogOld) {
+ AddMessage("Failed to create ShellNew temporary file\n");
+ return FALSE;
+ }
+
+ // make folder if needed
+ char szLink[MAXSTR];
+ strcpy(szLink, m_szPrograms);
+ strcat(szLink, "\\");
+ strcat(szLink, m_szTargetGroup);
+ if (chdir(szLink) != 0) {
+ if (mkdir(szLink) != 0) {
+ char buf[MAXSTR+64];
+ wsprintf(buf, "Couldn't make Programs folder \042%s'042", szLink);
+ AddMessage(buf);
+ StartMenuEnd();
+ return FALSE;
+ }
+ }
+ else {
+ fprintf(m_fLogOld, "Group=%s\n\n", szLink);
+ }
+ fprintf(m_fLogNew, "Group=%s\n\n", szLink);
+
+ return TRUE;
+}
+
+BOOL CInstall::StartMenuEnd()
+{
+ if (m_fLogOld)
+ fclose(m_fLogOld);
+ m_fLogOld = NULL;
+ if (m_fLogNew)
+ fclose(m_fLogNew);
+ m_fLogNew = NULL;
+ return TRUE;
+}
+
+BOOL CInstall::StartMenuAdd(const char *szDescription,
+ const char *szProgram, const char *szArguments)
+{
+ if (!CreateShellLink(szDescription, szProgram, szArguments)) {
+ AddMessage("Couldn't make shell link for ");
+ AddMessage(szDescription);
+ AddMessage("\n");
+ StartMenuEnd();
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+
+BOOL CInstall::CreateShellLink(LPCSTR description, LPCSTR program,
+ LPCSTR arguments, LPCSTR icon, int nIconIndex)
+{
+ HRESULT hres;
+ IShellLink* psl;
+ CHAR szLink[MAXSTR];
+ strcpy(szLink, m_szPrograms);
+ strcat(szLink, "\\");
+ strcat(szLink, m_szTargetGroup);
+ strcat(szLink, "\\");
+ strcat(szLink, description);
+ strcat(szLink, ".LNK");
+ AddMessage("Adding shell link\n ");
+ AddMessage(szLink);
+ AddMessage("\n");
+
+ // Ensure string is UNICODE.
+ WCHAR wsz[MAX_PATH];
+ MultiByteToWideChar(CP_ACP, 0, szLink, -1, wsz, MAX_PATH);
+
+ // Save old shell link
+
+ // Get a pointer to the IShellLink interface.
+ hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
+ IID_IShellLink, (void **)&psl);
+ if (SUCCEEDED(hres)) {
+ IPersistFile* ppf;
+ // Query IShellLink for the IPersistFile interface.
+ hres = psl->QueryInterface(IID_IPersistFile, (void **)&ppf);
+ if (SUCCEEDED(hres)) {
+ // Load the shell link.
+ hres = ppf->Load(wsz, STGM_READ);
+ if (SUCCEEDED(hres)) {
+ // Resolve the link.
+ hres = psl->Resolve(HWND_DESKTOP, SLR_ANY_MATCH);
+ if (SUCCEEDED(hres)) {
+ // found it, so save details
+ CHAR szTemp[MAXSTR];
+ WIN32_FIND_DATA wfd;
+ int i;
+
+
+ fprintf(m_fLogOld, "Name=%s\n", szLink);
+ hres = psl->GetPath(szTemp, MAXSTR, (WIN32_FIND_DATA *)&wfd,
+ SLGP_SHORTPATH );
+ if (SUCCEEDED(hres))
+ fprintf(m_fLogOld, "Path=%s\n", szTemp);
+ hres = psl->GetDescription(szTemp, MAXSTR);
+ if (SUCCEEDED(hres))
+ fprintf(m_fLogOld, "Description=%s\n", szTemp);
+ hres = psl->GetArguments(szTemp, MAXSTR);
+ if (SUCCEEDED(hres) && (szTemp[0] != '\0'))
+ fprintf(m_fLogOld, "Arguments=%s\n", szTemp);
+ hres = psl->GetWorkingDirectory(szTemp, MAXSTR);
+ if (SUCCEEDED(hres) && (szTemp[0] != '\0'))
+ fprintf(m_fLogOld, "Directory=%s\n", szTemp);
+ hres = psl->GetIconLocation(szTemp, MAXSTR, &i);
+ if (SUCCEEDED(hres) && (szTemp[0] != '\0')) {
+ fprintf(m_fLogOld, "IconLocation=%s\n", szTemp);
+ fprintf(m_fLogOld, "IconIndex=%d\n", i);
+ }
+ fprintf(m_fLogOld, "\n");
+ }
+ }
+ // Release pointer to IPersistFile.
+ ppf->Release();
+ }
+ // Release pointer to IShellLink.
+ psl->Release();
+ }
+
+
+ // Save new shell link
+
+ // Get a pointer to the IShellLink interface.
+ hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
+ IID_IShellLink, (void **)&psl);
+ if (SUCCEEDED(hres)) {
+ IPersistFile* ppf;
+ // Query IShellLink for the IPersistFile interface for
+ // saving the shell link in persistent storage.
+ hres = psl->QueryInterface(IID_IPersistFile, (void **)&ppf);
+ if (SUCCEEDED(hres)) {
+ fprintf(m_fLogNew, "Name=%s\n", szLink);
+
+ // Set the path to the shell link target.
+ hres = psl->SetPath(program);
+ if (!SUCCEEDED(hres))
+ AddMessage("SetPath failed!");
+ fprintf(m_fLogNew, "Path=%s\n", program);
+ // Set the description of the shell link.
+ hres = psl->SetDescription(description);
+ if (!SUCCEEDED(hres))
+ AddMessage("SetDescription failed!");
+ fprintf(m_fLogNew, "Description=%s\n", description);
+ if (arguments != (LPCSTR)NULL) {
+ // Set the arguments of the shell link target.
+ hres = psl->SetArguments(arguments);
+ if (!SUCCEEDED(hres))
+ AddMessage("SetArguments failed!");
+ fprintf(m_fLogNew, "Arguments=%s\n", arguments);
+ }
+ if (icon != (LPCSTR)NULL) {
+ // Set the arguments of the shell link target.
+ hres = psl->SetIconLocation(icon, nIconIndex);
+ if (!SUCCEEDED(hres))
+ AddMessage("SetIconLocation failed!");
+ fprintf(m_fLogNew, "IconLocation=%s\n", icon);
+ fprintf(m_fLogNew, "IconIndex=%d\n", nIconIndex);
+ }
+
+ // Save the link via the IPersistFile::Save method.
+ hres = ppf->Save(wsz, TRUE);
+ // Release pointer to IPersistFile.
+ ppf->Release();
+ }
+ // Release pointer to IShellLink.
+ psl->Release();
+ fprintf(m_fLogNew, "\n");
+ }
+
+ return (hres == 0);
+}
+
+
+//////////////////////////////////////////
+// Registry methods
+
+void
+reg_quote(char *d, const char *s)
+{
+ while (*s) {
+ if (*s == '\\')
+ *d++ = '\\';
+ *d++ = *s++;
+ }
+ *d = *s;
+}
+
+BOOL CInstall::UpdateRegistryBegin()
+{
+ const char regheader[]="REGEDIT4\n";
+ m_fLogNew = MakeTemp(m_szRegistryNew);
+ if (!m_fLogNew) {
+ AddMessage("Failed to create RegistryNew temporary file\n");
+ return FALSE;
+ }
+ fputs(regheader, m_fLogNew);
+
+ m_fLogOld = MakeTemp(m_szRegistryOld);
+ if (!m_fLogOld) {
+ AddMessage("Failed to create RegistryOld temporary file\n");
+ UpdateRegistryEnd();
+ return FALSE;
+ }
+ fputs(regheader, m_fLogOld);
+
+ return TRUE;
+}
+
+BOOL CInstall::UpdateRegistryEnd()
+{
+ if (m_fLogNew)
+ fclose(m_fLogNew);
+ m_fLogNew = NULL;
+ if (m_fLogOld)
+ fclose(m_fLogOld);
+ m_fLogOld = NULL;
+ return TRUE;
+}
+
+BOOL CInstall::UpdateRegistryKey(const char *product, const char *version)
+{
+ const char hkey_name[] = "HKEY_LOCAL_MACHINE";
+ const HKEY hkey_key = HKEY_LOCAL_MACHINE;
+ const char key_format[] = "\n[%s\\%s]\n";
+
+ /* Create default registry entries */
+ HKEY hkey;
+ LONG lrc;
+ char name[MAXSTR];
+
+ // Create/Open application key
+ sprintf(name, "SOFTWARE\\%s", product);
+ lrc = RegOpenKey(hkey_key, name, &hkey);
+ if (lrc == ERROR_SUCCESS) {
+ fprintf(m_fLogOld, key_format, hkey_name, name);
+ }
+ else {
+ lrc = RegCreateKey(hkey_key, name, &hkey);
+ if (lrc == ERROR_SUCCESS)
+ fprintf(m_fLogNew, key_format, hkey_name, name);
+ }
+ if (lrc == ERROR_SUCCESS)
+ RegCloseKey(hkey);
+
+ // Create/Open application version key
+ sprintf(name, "SOFTWARE\\%s\\%s", product, version);
+
+ AddMessage(" ");
+ AddMessage(hkey_name);
+ AddMessage("\\");
+ AddMessage(name);
+ AddMessage("\n");
+ lrc = RegOpenKey(hkey_key, name, &hkey);
+ if (lrc == ERROR_SUCCESS)
+ fprintf(m_fLogOld, key_format, hkey_name, name);
+ else
+ lrc = RegCreateKey(hkey_key, name, &hkey);
+ if (lrc == ERROR_SUCCESS) {
+ fprintf(m_fLogNew, key_format, hkey_name, name);
+ }
+ else {
+ UpdateRegistryEnd();
+ }
+ return TRUE;
+}
+
+BOOL CInstall::UpdateRegistryValue(const char *product, const char *version,
+ const char *name, const char *value)
+{
+ char appver[MAXSTR];
+ BOOL flag = FALSE;
+ HKEY hkey;
+ // Open application/version key
+ sprintf(appver, "SOFTWARE\\%s\\%s", product, version);
+
+ if (RegOpenKey(HKEY_LOCAL_MACHINE, appver, &hkey)
+ == ERROR_SUCCESS) {
+ flag = SetRegistryValue(hkey, name, value);
+ RegCloseKey(hkey);
+ }
+
+ return flag;
+}
+
+BOOL CInstall::SetRegistryValue(HKEY hkey, const char *value_name, const char *value)
+{
+ char buf[MAXSTR];
+ char qbuf[MAXSTR];
+ DWORD cbData;
+ DWORD keytype;
+
+ cbData = sizeof(buf);
+ keytype = REG_SZ;
+ if (RegQueryValueEx(hkey, value_name, 0, &keytype,
+ (LPBYTE)buf, &cbData) == ERROR_SUCCESS) {
+ reg_quote(qbuf, buf);
+ fprintf(m_fLogOld, "\042%s\042=\042%s\042\n", value_name, qbuf);
+ }
+ reg_quote(qbuf, value);
+ fprintf(m_fLogNew, "\042%s\042=\042%s\042\n", value_name, qbuf);
+ AddMessage(" ");
+ AddMessage(value_name);
+ AddMessage("=");
+ AddMessage(value);
+ AddMessage("\n");
+ if (RegSetValueEx(hkey, value_name, 0, REG_SZ,
+ (CONST BYTE *)value, strlen(value)+1) != ERROR_SUCCESS)
+ return FALSE;
+ return TRUE;
+}
+
+////////////////////////////////////
+// Uninstall
+
+
+BOOL CInstall::WriteUninstall(const char *szProg, BOOL bNoCopy)
+{
+ LONG rc;
+ HKEY hkey;
+ HKEY hsubkey;
+ char buffer[MAXSTR];
+ char ungsprog[MAXSTR];
+
+ lstrcpy(ungsprog, m_szTargetDir);
+ lstrcat(ungsprog, "\\");
+ lstrcat(ungsprog, szProg);
+
+ lstrcpy(buffer, m_szSourceDir);
+ lstrcat(buffer, "\\");
+ lstrcat(buffer, szProg);
+
+ if (bNoCopy) {
+ // Don't copy files. Leave them where they are.
+ // Check that all files exist
+ FILE *f;
+ if ((f = fopen(buffer, "r")) == (FILE *)NULL) {
+ AddMessage("Missing file ");
+ AddMessage(buffer);
+ AddMessage("\n");
+ return FALSE;
+ }
+ fclose(f);
+ }
+ else if (!CopyFile(buffer, ungsprog, FALSE)) {
+ char message[MAXSTR+MAXSTR+100];
+ wsprintf(message, "Failed to copy file %s to %s", buffer, ungsprog);
+ AddMessage(message);
+ return FALSE;
+ }
+
+ /* write registry entries for uninstall */
+ if ((rc = RegOpenKeyEx(HKEY_LOCAL_MACHINE, UNINSTALLKEY, 0,
+ KEY_ALL_ACCESS, &hkey)) != ERROR_SUCCESS) {
+ /* failed to open key, so try to create it */
+ rc = RegCreateKey(HKEY_LOCAL_MACHINE, UNINSTALLKEY, &hkey);
+ }
+ if (rc == ERROR_SUCCESS) {
+ // Uninstall key for program
+ if (RegCreateKey(hkey, m_szUninstallName, &hsubkey) == ERROR_SUCCESS) {
+ RegSetValueEx(hsubkey, DISPLAYNAMEKEY, 0, REG_SZ,
+ (CONST BYTE *)m_szUninstallName, lstrlen(m_szUninstallName)+1);
+ lstrcpy(buffer, ungsprog);
+ lstrcat(buffer, " \042");
+ lstrcat(buffer, m_szTargetDir);
+ lstrcat(buffer, "\\");
+ lstrcat(buffer, m_szMainDir);
+ lstrcat(buffer, "\\");
+ lstrcat(buffer, UNINSTALL_FILE);
+ lstrcat(buffer, "\042");
+ AddMessage(" ");
+ AddMessage(m_szUninstallName);
+ AddMessage("=");
+ AddMessage(buffer);
+ AddMessage("\n");
+ RegSetValueEx(hsubkey, UNINSTALLSTRINGKEY, 0, REG_SZ,
+ (CONST BYTE *)buffer, lstrlen(buffer)+1);
+ RegCloseKey(hsubkey);
+ }
+
+ RegCloseKey(hkey);
+ }
+ return TRUE;
+}
+
+
+void
+CInstall::CopyFileContents(FILE *df, FILE *sf)
+{
+ char buf[MAXSTR];
+ int count;
+ while ((count = fread(buf, 1, sizeof(buf), sf)) != 0)
+ fwrite(buf, 1, count, df);
+}
+
+FILE *CInstall::MakeTemp(char *fname)
+{
+ char *temp;
+ if ( (temp = getenv("TEMP")) == NULL )
+ strcpy(fname, m_szTargetDir);
+ else
+ strcpy(fname, temp);
+
+ /* Prevent X's in path from being converted by mktemp. */
+ for ( temp = fname; *temp; temp++ ) {
+ *temp = (char)tolower(*temp);
+ if (*temp == '/')
+ *temp = '\\';
+ }
+ if ( strlen(fname) && (fname[strlen(fname)-1] != '\\') )
+ strcat(fname, "\\");
+
+ strcat(fname, "gsXXXXXX");
+ mktemp(fname);
+ AddMessage("Creating temporary file ");
+ AddMessage(fname);
+ AddMessage("\n");
+ return fopen(fname, "w");
+}
+
+BOOL CInstall::MakeLog()
+{
+ FILE *f, *lf;
+ char szFileName[MAXSTR];
+ char szLogDir[MAXSTR];
+ strcpy(szLogDir, m_szTargetDir);
+ strcat(szLogDir, "\\");
+ strcat(szLogDir, m_szMainDir);
+ strcat(szLogDir, "\\");
+
+ strcpy(szFileName, szLogDir);
+ strcat(szFileName, UNINSTALL_FILE);
+ lf = fopen(szFileName, "w");
+ if (lf == (FILE *)NULL) {
+ AddMessage("Can't create uninstall log");
+ return FALSE;
+ }
+ fputs(szSection, lf);
+ fputs("UninstallName\n", lf);
+ fputs(m_szUninstallName, lf);
+ fputs("\n\n", lf);
+
+
+ if (strlen(m_szRegistryNew) &&
+ (f = fopen(m_szRegistryNew, "r")) != (FILE *)NULL) {
+ fputs(szSection, lf);
+ fputs("RegistryNew\n", lf);
+ CopyFileContents(lf, f);
+ fputs("\n", lf);
+ fclose(f);
+ DeleteFile(m_szRegistryNew);
+ m_szRegistryNew[0] = '\0';
+ }
+
+ if (strlen(m_szRegistryOld) &&
+ (f = fopen(m_szRegistryOld, "r")) != (FILE *)NULL) {
+ fputs(szSection, lf);
+ fputs("RegistryOld\n", lf);
+ CopyFileContents(lf, f);
+ fputs("\n", lf);
+ fclose(f);
+ DeleteFile(m_szRegistryOld);
+ m_szRegistryOld[0] = '\0';
+ }
+
+ if (strlen(m_szShellNew) &&
+ (f = fopen(m_szShellNew, "r")) != (FILE *)NULL) {
+ fputs(szSection, lf);
+ fputs("ShellNew\n", lf);
+ CopyFileContents(lf, f);
+ fputs("\n", lf);
+ fclose(f);
+ DeleteFile(m_szShellNew);
+ m_szShellNew[0] = '\0';
+ }
+
+ if (strlen(m_szShellOld) &&
+ (f = fopen(m_szShellOld, "r")) != (FILE *)NULL) {
+ fputs(szSection, lf);
+ fputs("ShellOld\n", lf);
+ CopyFileContents(lf, f);
+ fputs("\n", lf);
+ fclose(f);
+ DeleteFile(m_szShellOld);
+ m_szShellOld[0] = '\0';
+ }
+
+ if (strlen(m_szFileNew) &&
+ (f = fopen(m_szFileNew, "r")) != (FILE *)NULL) {
+ fputs(szSection, lf);
+ fputs("FileNew\n", lf);
+ CopyFileContents(lf, f);
+ fputs("\n", lf);
+ fclose(f);
+ DeleteFile(m_szFileNew);
+ m_szFileNew[0] = '\0';
+ }
+
+ fputs(szSection, lf);
+ fclose(lf);
+
+ return TRUE;
+}
+
+BOOL CInstall::GetPrograms(BOOL bUseCommon, char *buf, int buflen)
+{
+ // Get the directory for the Program menu. This is
+ // stored in the Registry under HKEY_CURRENT_USER\Software\
+ // Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Programs.
+ LONG rc;
+ HKEY hCU;
+ DWORD dwType;
+ ULONG ulSize = buflen;
+ HKEY hrkey = HKEY_CURRENT_USER;
+ if (bUseCommon)
+ hrkey = HKEY_LOCAL_MACHINE;
+ if (RegOpenKeyEx(hrkey,
+ "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders",
+ 0,KEY_QUERY_VALUE,
+ &hCU) == ERROR_SUCCESS) {
+ rc = RegQueryValueEx( hCU,
+ bUseCommon ? "Common Programs" : "Programs",
+ NULL,
+ &dwType,
+ (unsigned char *)buf,
+ &ulSize);
+ RegCloseKey(hCU);
+ return TRUE;
+ }
+ return FALSE;
+
+#ifdef NOTUSED
+ // This is an alternate version, but it needs
+ // Internet Explorer 4.0 with Web Integrated Desktop.
+ // It does not work with the standard
+ // Windows 95, Windows NT 4.0, Internet Explorer 3.0,
+ // and Internet Explorer 4.0 without Web Integrated Desktop.
+
+ HRESULT rc;
+ m_szPrograms[0] = '\0';
+ int nFolder = CSIDL_PROGRAMS;
+ if (bUseCommon)
+ nFolder = CSIDL_COMMON_PROGRAMS;
+
+ rc = SHGetSpecialFolderPath(HWND_DESKTOP, m_szPrograms,
+ nFolder, FALSE);
+ return (rc == NOERROR);
+#endif
+
+}
+
+BOOL CInstall::SetAllUsers(BOOL bUseCommon)
+{
+ m_bUseCommon = bUseCommon;
+ return GetPrograms(bUseCommon, m_szPrograms, sizeof(m_szPrograms));
+}
+
+
+//////////////////////////////////////////////////////////////////////
diff --git a/gs/src/dwinst.h b/gs/src/dwinst.h
new file mode 100644
index 000000000..861e2d278
--- /dev/null
+++ b/gs/src/dwinst.h
@@ -0,0 +1,113 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+// $RCSfile$ $Revision$
+
+// Definitions for Ghostscript installer
+
+#ifndef MAXSTR
+#ifdef MAX_PATH
+#define MAXSTR MAX_PATH
+#else
+#define MAXSTR 256
+#endif
+#endif
+
+class CInstall
+{
+public:
+ CInstall();
+ virtual ~CInstall();
+ void SetMessageFunction(void(*fn)(const char *));
+ void AddMessage(const char *message);
+ const char *GetMainDir();
+ const char *GetUninstallName();
+ BOOL GetPrograms(BOOL bUseCommon, char *buf, int buflen);
+ BOOL Init(const char *szSourceDir, const char *szFileList);
+ BOOL InstallFiles(BOOL bNoCopy, BOOL *pbQuit);
+ BOOL InstallFile(char *filename, BOOL bNoCopy);
+ BOOL MakeDir(const char *dirname);
+ FILE * MakeTemp(char *name);
+
+ BOOL SetAllUsers(BOOL bUseCommon);
+ void SetTargetDir(const char *szTargetDir);
+ void SetTargetGroup(const char *szTargetGroup);
+
+ BOOL StartMenuBegin();
+ BOOL StartMenuEnd();
+ BOOL StartMenuAdd(const char *szDescription, const char *szProgram, const char *szArguments);
+
+ BOOL UpdateRegistryBegin();
+ BOOL UpdateRegistryKey(const char *product, const char *version);
+ BOOL UpdateRegistryValue(const char *product, const char *version, const char *name, const char *value);
+ BOOL UpdateRegistryEnd();
+
+ BOOL WriteUninstall(const char *prog, BOOL bNoCopy);
+ BOOL MakeLog(void);
+
+ void CleanUp(void);
+
+private:
+ BOOL m_bNoCopy;
+ BOOL m_bUseCommon;
+ BOOL m_bQuit;
+
+ // Source directory
+ char m_szSourceDir[MAXSTR];
+
+ // File containing list of files to install
+ char m_szFileList[MAXSTR];
+
+ // Target directory for program and fonts.
+ char m_szTargetDir[MAXSTR];
+
+ // Target Group for shortcut
+ char m_szTargetGroup[MAXSTR];
+
+ // Directory where the Start Menu is located.
+ char m_szPrograms[MAXSTR];
+
+ // Name used for uninstall
+ char m_szUninstallName[MAXSTR];
+
+ // Main directory prefix, where log files should be written
+ char m_szMainDir[MAXSTR];
+
+ // Full directory where log files should be written
+ char m_szLogDir[MAXSTR];
+
+ // Temporary log files for uninstall
+ char m_szFileNew[MAXSTR];
+ char m_szRegistryNew[MAXSTR];
+ char m_szRegistryOld[MAXSTR];
+ char m_szShellNew[MAXSTR];
+ char m_szShellOld[MAXSTR];
+
+ // Log files
+ FILE * m_fLogNew;
+ FILE * m_fLogOld;
+
+
+ BOOL SetRegistryValue(HKEY hkey, const char *value_name, const char *value);
+ BOOL CreateShellLink(LPCSTR description, LPCSTR program, LPCSTR arguments, LPCSTR icon = NULL, int nIconIndex = 0);
+ void CopyFileContents(FILE *df, FILE *sf);
+
+ void(*AddMessageFn)(const char *);
+
+};
+
diff --git a/gs/src/dwmain.cpp b/gs/src/dwmain.cpp
index 84f675c3f..f40ea726f 100644
--- a/gs/src/dwmain.cpp
+++ b/gs/src/dwmain.cpp
@@ -17,7 +17,7 @@
*/
-
+// $RCSfile$ $Revision$
// Ghostscript DLL loader for Windows
#define STRICT
diff --git a/gs/src/dwmain.h b/gs/src/dwmain.h
index a150d05af..d43dd85e8 100644
--- a/gs/src/dwmain.h
+++ b/gs/src/dwmain.h
@@ -1,4 +1,24 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+// $RCSfile$ $Revision$
+
+// Icon index definitions -- why are these here??
#define GSTEXT_ICON 50
#define GSIMAGE_ICON 51
diff --git a/gs/src/dwmain.rc b/gs/src/dwmain.rc
index 4fa119ca4..2793b9aed 100644
--- a/gs/src/dwmain.rc
+++ b/gs/src/dwmain.rc
@@ -17,7 +17,7 @@
*/
-
+/*$RCSfile$ $Revision$*/
#include <windows.h>
#include "dwmain.h"
diff --git a/gs/src/dwmainc.cpp b/gs/src/dwmainc.cpp
index 321c080c9..f510fee24 100644
--- a/gs/src/dwmainc.cpp
+++ b/gs/src/dwmainc.cpp
@@ -17,7 +17,7 @@
*/
-
+// $RCSfile$ $Revision$
// Ghostscript DLL loader for Windows 95/NT
// For WINDOWCOMPAT (console mode) application
diff --git a/gs/src/dwnodll.cpp b/gs/src/dwnodll.cpp
index 72e3e1428..0ceef0f55 100644
--- a/gs/src/dwnodll.cpp
+++ b/gs/src/dwnodll.cpp
@@ -17,7 +17,7 @@
*/
-
+// $RCSfile$ $Revision$
// gsdll class for MS-Windows
diff --git a/gs/src/dwsetup.cpp b/gs/src/dwsetup.cpp
new file mode 100644
index 000000000..b9391a60b
--- /dev/null
+++ b/gs/src/dwsetup.cpp
@@ -0,0 +1,1036 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+// $RCSfile$ $Revision$
+//
+//
+// This is the setup program for Win32 Aladdin Ghostscript
+//
+// The starting point is a self extracting zip archive
+// with the following contents:
+// setupgs.exe
+// uninstgs.exe
+// filelist.txt (contains list of program files)
+// fontlist.txt (contains list of font files)
+// gs#.##\* (files listed in filelist.txt)
+// fonts\* (fonts listed in fontlist.txt)
+// This is the same as the zip file created by Aladdin Enterprises,
+// with the addition of setupgs.exe, uninstgs.exe, filelist.txt and
+// fontlist.txt.
+//
+// The first line of the files filelist.txt and fontlist.txt
+// contains the uninstall name to be used.
+// The second line contains name of the main directory where
+// uninstall log files are to be placed.
+// Subsequent lines contain files to be copied (but not directories).
+// For example, filelist.txt might contain:
+// Aladdin Ghostscript 6.0
+// gs6.0
+// gs6.0\bin\gsdll32.dll
+// gs6.0\lib\gs_init.ps
+// The file fontlist.txt might contain:
+// Aladdin Ghostscript Fonts
+// fonts
+// fonts\n019003l.pfb
+// fonts\n019023l.pfb
+//
+// The default install directory is c:\Aladdin.
+// The default Start Menu Folder is Aladdin.
+// These are set in the resources.
+// The setup program will create the following uninstall log files
+// c:\Aladdin\gs#.##\uninstal.txt
+// c:\Aladdin\fonts\uninstal.txt
+// The uninstall program (accessed through control panel) will not
+// remove directories nor will it remove itself.
+//
+// If the install directory is the same as the current file
+// location, no files will be copied, but the existence of each file
+// will be checked. This allows the archive to be unzipped, then
+// configured in its current location. Running the uninstall will not
+// remove uninstgs.exe, setupgs.exe, filelist.txt or fontlist.txt.
+
+
+#define STRICT
+#include <windows.h>
+#include <shellapi.h>
+#include <objbase.h>
+#include <shlobj.h>
+#include <stdio.h>
+#include <direct.h>
+
+#ifdef MAX_PATH
+#define MAXSTR MAX_PATH
+#else
+#define MAXSTR 256
+#endif
+
+#include "dwsetup.h"
+#include "dwinst.h"
+
+//#define DEBUG
+
+#define UNINSTALLPROG "uninstgs.exe"
+
+
+/////////////////////////////////
+// Globals
+
+CInstall cinst;
+
+// TRUE = Place Start Menu items in All Users.
+// FALSE = Current User
+BOOL g_bUseCommon;
+
+// TRUE = Destination is the same as Source, so don't copy files.
+BOOL g_bNoCopy;
+
+// Source directory, usually a temporary directory created by
+// unzip self extractor.
+CHAR g_szSourceDir[MAXSTR];
+
+// Target directory for program and fonts.
+// Default loaded from resources
+CHAR g_szTargetDir[MAXSTR];
+
+// Target Group for shortcut.
+// Default loaded from resources
+CHAR g_szTargetGroup[MAXSTR];
+
+// Setup application name, loaded from resources
+CHAR g_szAppName[MAXSTR];
+
+BOOL g_bInstallFonts = TRUE;
+BOOL g_bAllUsers = FALSE;
+
+
+HWND g_hMain; // Main install dialog
+HWND g_hWndText; // Install log dialog
+HINSTANCE g_hInstance;
+
+// If a directory is listed on the command line, g_bBatch will
+// be TRUE and a silent install will occur.
+BOOL g_bBatch = FALSE;
+
+BOOL g_bQuit = FALSE; // TRUE = Get out of message loop.
+BOOL g_bError = FALSE; // TRUE = Install was not successful
+BOOL is_winnt = FALSE; // Disable "All Users" if not NT.
+
+
+// Prototypes
+BOOL CALLBACK MainDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
+void gs_addmess_count(const char *str, int count);
+void gs_addmess(const char *str);
+void gs_addmess_update(void);
+BOOL init();
+BOOL install_all();
+BOOL install_prog();
+BOOL install_fonts();
+BOOL make_filelist(int argc, char *argv[]);
+
+
+//////////////////////////////////////////////////////////////////////
+// Entry point
+//////////////////////////////////////////////////////////////////////
+
+int APIENTRY WinMain(HINSTANCE hInstance,
+ HINSTANCE hPrevInstance,
+ LPSTR lpCmdLine,
+ int nCmdShow)
+{
+ MSG msg;
+ g_hInstance = hInstance;
+
+ if (!init()) {
+ MessageBox(HWND_DESKTOP, "Initialisation failed",
+ g_szAppName, MB_OK);
+ return 1;
+ }
+
+ if (!g_bBatch) {
+ while (GetMessage(&msg, (HWND)NULL, 0, 0)) {
+ if (!IsDialogMessage(g_hWndText, &msg) &&
+ !IsDialogMessage(g_hMain, &msg)) {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+ }
+ DestroyWindow(g_hMain);
+ }
+
+ return (g_bError ? 1 : 0);
+}
+
+
+
+
+//////////////////////////////////////////////////////////////////////
+// Text log window
+//////////////////////////////////////////////////////////////////////
+
+
+#define TWLENGTH 32768
+#define TWSCROLL 1024
+char twbuf[TWLENGTH];
+int twend;
+
+// Modeless Dialog Box
+BOOL CALLBACK
+TextWinDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ switch(message) {
+ case WM_INITDIALOG:
+ EnableWindow(g_hMain, FALSE);
+ return TRUE;
+ case WM_COMMAND:
+ switch(LOWORD(wParam)) {
+ case IDC_TEXTWIN_COPY:
+ {HGLOBAL hglobal;
+ LPSTR p;
+ DWORD result;
+ int start, end;
+ result = SendDlgItemMessage(hwnd, IDC_TEXTWIN_MLE, EM_GETSEL, (WPARAM)0, (LPARAM)0);
+ start = LOWORD(result);
+ end = HIWORD(result);
+ if (start == end) {
+ start = 0;
+ end = twend;
+ }
+ hglobal = GlobalAlloc(GHND | GMEM_SHARE, end-start+1);
+ if (hglobal == (HGLOBAL)NULL) {
+ MessageBeep(-1);
+ return(FALSE);
+ }
+ p = (char *)GlobalLock(hglobal);
+ if (p == (LPSTR)NULL) {
+ MessageBeep(-1);
+ return(FALSE);
+ }
+ lstrcpyn(p, twbuf+start, end-start);
+ GlobalUnlock(hglobal);
+ OpenClipboard(hwnd);
+ EmptyClipboard();
+ SetClipboardData(CF_TEXT, hglobal);
+ CloseClipboard();
+ }
+ break;
+ case IDCANCEL:
+ g_bQuit = TRUE;
+ DestroyWindow(hwnd);
+ return TRUE;
+ }
+ break;
+ case WM_CLOSE:
+ DestroyWindow(hwnd);
+ return TRUE;
+ case WM_DESTROY:
+ g_bQuit = TRUE;
+ g_hWndText = (HWND)NULL;
+ EnableWindow(g_hMain, TRUE);
+ PostQuitMessage(0);
+ break;
+ }
+ return FALSE;
+}
+
+
+
+// Add string to log window
+void
+gs_addmess_count(const char *str, int count)
+{
+ const char *s;
+ char *p;
+ int i, lfcount;
+ MSG msg;
+
+ // we need to add \r after each \n, so count the \n's
+ lfcount = 0;
+ s = str;
+ for (i=0; i<count; i++) {
+ if (*s == '\n')
+ lfcount++;
+ s++;
+ }
+
+ if (count + lfcount >= TWSCROLL)
+ return; // too large
+ if (count + lfcount + twend >= TWLENGTH-1) {
+ // scroll buffer
+ twend -= TWSCROLL;
+ memmove(twbuf, twbuf+TWSCROLL, twend);
+ }
+ p = twbuf+twend;
+ for (i=0; i<count; i++) {
+ if (*str == '\n') {
+ *p++ = '\r';
+ }
+ *p++ = *str++;
+ }
+ twend += (count + lfcount);
+ *(twbuf+twend) = '\0';
+
+
+ // Update the dialog box
+ if (g_bBatch)
+ return;
+
+ gs_addmess_update();
+ while (PeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE)) {
+ if (!IsDialogMessage(g_hWndText, &msg) &&
+ !IsDialogMessage(g_hMain, &msg)) {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+ }
+}
+
+void
+gs_addmess(const char *str)
+{
+ gs_addmess_count(str, lstrlen(str));
+
+}
+
+
+void
+gs_addmess_update(void)
+{
+ HWND hwndmess = g_hWndText;
+
+ if (g_bBatch)
+ return;
+
+ if (IsWindow(hwndmess)) {
+ HWND hwndtext = GetDlgItem(hwndmess, IDC_TEXTWIN_MLE);
+ DWORD linecount;
+ SendMessage(hwndtext, WM_SETREDRAW, FALSE, 0);
+ SetDlgItemText(hwndmess, IDC_TEXTWIN_MLE, twbuf);
+ linecount = SendDlgItemMessage(hwndmess, IDC_TEXTWIN_MLE, EM_GETLINECOUNT, (WPARAM)0, (LPARAM)0);
+ SendDlgItemMessage(hwndmess, IDC_TEXTWIN_MLE, EM_LINESCROLL, (WPARAM)0, (LPARAM)linecount-14);
+ SendMessage(hwndtext, WM_SETREDRAW, TRUE, 0);
+ InvalidateRect(hwndtext, (LPRECT)NULL, TRUE);
+ UpdateWindow(hwndtext);
+ }
+}
+
+
+//////////////////////////////////////////////////////////////////////
+// Browse dialog box
+//////////////////////////////////////////////////////////////////////
+
+// nasty GLOBALS
+char szFolderName[MAXSTR];
+char szDirName[MAXSTR];
+
+BOOL CALLBACK
+DirDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ WORD notify_message;
+
+ switch(message) {
+ case WM_INITDIALOG:
+ DlgDirList(hwnd, szDirName, IDC_FILES, IDC_FOLDER,
+ DDL_DRIVES | DDL_DIRECTORY);
+ SetDlgItemText(hwnd, IDC_TARGET, szFolderName);
+ return FALSE;
+ case WM_COMMAND:
+ notify_message = HIWORD(wParam);
+ switch (LOWORD(wParam)) {
+ case IDC_FILES:
+ if (notify_message == LBN_DBLCLK) {
+ CHAR szPath[MAXSTR];
+ DlgDirSelectEx(hwnd, szPath, sizeof(szPath), IDC_FILES);
+ DlgDirList(hwnd, szPath, IDC_FILES, IDC_FOLDER,
+ DDL_DRIVES | DDL_DIRECTORY);
+ }
+ return FALSE;
+ case IDOK:
+ GetDlgItemText(hwnd, IDC_FOLDER, szDirName, sizeof(szDirName));
+ GetDlgItemText(hwnd, IDC_TARGET, szFolderName, sizeof(szFolderName));
+ EndDialog(hwnd, TRUE);
+ return TRUE;
+ case IDCANCEL:
+ EndDialog(hwnd, FALSE);
+ return TRUE;
+ }
+ return FALSE;
+ }
+ return FALSE;
+}
+
+
+//////////////////////////////////////////////////////////////////////
+// Initialisation and Main dialog box
+//////////////////////////////////////////////////////////////////////
+
+void
+message_box(const char *str)
+{
+ MessageBox(HWND_DESKTOP, str, g_szAppName, MB_OK);
+}
+
+
+BOOL
+init()
+{
+ DWORD dwVersion = GetVersion();
+ // get source directory
+ GetCurrentDirectory(sizeof(g_szSourceDir), g_szSourceDir);
+
+ // load strings
+ LoadString(g_hInstance, IDS_APPNAME, g_szAppName, sizeof(g_szAppName));
+ LoadString(g_hInstance, IDS_TARGET_GROUP,
+ g_szTargetGroup, sizeof(g_szTargetGroup));
+
+ if (LOBYTE(LOWORD(dwVersion)) < 4) {
+ MessageBox(HWND_DESKTOP,
+ "This install program needs Windows 4.0 or later",
+ g_szAppName, MB_OK);
+ return FALSE;
+ }
+ if ( (HIWORD(dwVersion) & 0x8000) == 0)
+ is_winnt = TRUE;
+
+
+ cinst.SetMessageFunction(message_box);
+
+#define MAXCMDTOKENS 128
+
+ int argc;
+ LPSTR argv[MAXCMDTOKENS];
+ LPSTR p;
+ char command[256];
+ char *args;
+ char *d, *e;
+
+ p = GetCommandLine();
+
+ argc = 0;
+ args = (char *)malloc(lstrlen(p)+1);
+ if (args == (char *)NULL)
+ return 1;
+
+ // Parse command line handling quotes.
+ d = args;
+ while (*p) {
+ // for each argument
+
+ if (argc >= MAXCMDTOKENS - 1)
+ break;
+
+ e = d;
+ while ((*p) && (*p != ' ')) {
+ if (*p == '\042') {
+ // Remove quotes, skipping over embedded spaces.
+ // Doesn't handle embedded quotes.
+ p++;
+ while ((*p) && (*p != '\042'))
+ *d++ =*p++;
+ }
+ else
+ *d++ = *p;
+ if (*p)
+ p++;
+ }
+ *d++ = '\0';
+ argv[argc++] = e;
+
+ while ((*p) && (*p == ' '))
+ p++; // Skip over trailing spaces
+ }
+ argv[argc] = NULL;
+
+ if (strlen(argv[0]) == 0) {
+ GetModuleFileName(g_hInstance, command, sizeof(command)-1);
+ argv[0] = command;
+ }
+
+ if (argc > 2) {
+ // Probably creating filelist.txt
+ return make_filelist(argc, argv);
+ }
+
+
+ // check if batch mode requested
+ // get location of target directory from command line as argv[1]
+ if (argc == 2) {
+ strncpy(g_szTargetDir, argv[1], sizeof(g_szTargetDir));
+ g_bBatch = TRUE;
+ if (is_winnt)
+ cinst.SetAllUsers(TRUE);
+ }
+ if (g_bBatch) {
+ if (!install_all()) {
+ // display log showing error
+ g_bBatch = FALSE;
+ g_hWndText = CreateDialogParam(g_hInstance,
+ MAKEINTRESOURCE(IDD_TEXTWIN),
+ (HWND)HWND_DESKTOP, TextWinDlgProc,
+ (LPARAM)NULL);
+ gs_addmess_update();
+ }
+ return TRUE;
+ }
+
+ // Interactive setup
+ LoadString(g_hInstance, IDS_TARGET_DIR,
+ g_szTargetDir, sizeof(g_szTargetDir));
+
+ // main dialog box
+ g_hMain = CreateDialogParam(g_hInstance, MAKEINTRESOURCE(IDD_MAIN), (HWND)NULL, MainDlgProc, (LPARAM)NULL);
+ // centre dialog on screen
+ int width = GetSystemMetrics(SM_CXFULLSCREEN);
+ int height = GetSystemMetrics(SM_CYFULLSCREEN);
+ RECT rect;
+ GetWindowRect(g_hMain, &rect);
+ MoveWindow(g_hMain, (width - (rect.right - rect.left))/2,
+ (height - (rect.bottom - rect.top))/2,
+ (rect.right - rect.left),
+ (rect.bottom - rect.top), FALSE);
+
+ // initialize targets
+ cinst.SetMessageFunction(message_box);
+ if (!cinst.Init(g_szSourceDir, "filelist.txt"))
+ return FALSE;
+
+ SetDlgItemText(g_hMain, IDC_TARGET_DIR, g_szTargetDir);
+ SetDlgItemText(g_hMain, IDC_TARGET_GROUP, g_szTargetGroup);
+ SetDlgItemText(g_hMain, IDC_PRODUCT_NAME, cinst.GetUninstallName());
+ SendDlgItemMessage(g_hMain, IDC_INSTALL_FONTS, BM_SETCHECK, BST_CHECKED, 0);
+ ShowWindow(g_hMain, SW_SHOWNORMAL);
+
+ return (g_hMain != (HWND)NULL); /* success */
+}
+
+
+// Main Modeless Dialog Box
+BOOL CALLBACK
+MainDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ switch(message) {
+ case WM_INITDIALOG:
+ EnableWindow(GetDlgItem(hwnd, IDC_ALLUSERS), is_winnt);
+ return TRUE;
+ case WM_COMMAND:
+ switch(LOWORD(wParam)) {
+ case IDC_README:
+ {
+ char buf[MAXSTR];
+ sprintf(buf, "%s\\%s\\doc\\Readme.htm", g_szSourceDir,
+ cinst.GetMainDir());
+ ShellExecute(hwnd, NULL, buf, NULL, g_szSourceDir,
+ SW_SHOWNORMAL);
+ }
+ return TRUE;
+ case IDC_BROWSE_DIR:
+ { char dir[MAXSTR];
+ char *p;
+ GetDlgItemText(hwnd, IDC_TARGET_DIR, dir, sizeof(dir));
+ strcpy(szDirName, dir);
+ if ( (p = strrchr(szDirName, '\\')) != (char *)NULL ) {
+ strcpy(szFolderName, p+1);
+ if (p == szDirName+2)
+ p++; // step over c:\ //
+ *p = '\0';
+ }
+ else {
+ strcpy(szDirName, "c:\\");
+ strcpy(szFolderName, dir);
+ }
+ if (DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIRDLG),
+ hwnd, DirDlgProc)) {
+ strcpy(dir, szDirName);
+ if (strlen(dir) && (dir[strlen(dir)-1] != '\\'))
+ strcat(dir, "\\");
+ strcat(dir, szFolderName);
+ SetDlgItemText(hwnd, IDC_TARGET_DIR, dir);
+ }
+ }
+ return TRUE;
+ case IDC_BROWSE_GROUP:
+ { char dir[MAXSTR];
+ char programs[MAXSTR];
+ char *p;
+ GetDlgItemText(hwnd, IDC_TARGET_GROUP, dir, sizeof(dir));
+ cinst.GetPrograms(
+ SendDlgItemMessage(hwnd, IDC_ALLUSERS,
+ BM_GETCHECK, 0, 0) == BST_CHECKED,
+ programs, sizeof(programs));
+ strcpy(szDirName, programs);
+ strcpy(szFolderName, dir);
+ if (DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIRDLG),
+ hwnd, DirDlgProc)) {
+ strcpy(dir, szFolderName);
+ p = szDirName;
+ if (strnicmp(szDirName, programs,
+ strlen(programs)) == 0) {
+ p += strlen(programs);
+ if (*p == '\\')
+ p++;
+ strcpy(dir, p);
+ if (strlen(dir) &&
+ (dir[strlen(dir)-1] != '\\'))
+ strcat(dir, "\\");
+ strcat(dir, szFolderName);
+ }
+ SetDlgItemText(hwnd, IDC_TARGET_GROUP, dir);
+ }
+ }
+ return TRUE;
+ case IDCANCEL:
+ PostQuitMessage(0);
+ return TRUE;
+ case IDC_INSTALL:
+ GetDlgItemText(hwnd, IDC_TARGET_DIR,
+ g_szTargetDir, sizeof(g_szTargetDir));
+ GetDlgItemText(hwnd, IDC_TARGET_GROUP,
+ g_szTargetGroup, sizeof(g_szTargetGroup));
+ g_bInstallFonts = (SendDlgItemMessage(g_hMain,
+ IDC_INSTALL_FONTS, BM_GETCHECK, 0, 0)
+ == BST_CHECKED);
+ g_bAllUsers = (SendDlgItemMessage(hwnd,
+ IDC_ALLUSERS, BM_GETCHECK, 0, 0
+ ) == BST_CHECKED);
+
+ // install log dialog box
+ g_hWndText = CreateDialogParam(g_hInstance,
+ MAKEINTRESOURCE(IDD_TEXTWIN),
+ (HWND)hwnd, TextWinDlgProc, (LPARAM)NULL);
+ EnableWindow(GetDlgItem(hwnd, IDC_INSTALL), FALSE);
+ if (install_all())
+ PostQuitMessage(0);
+ return TRUE;
+ default:
+ return(FALSE);
+ }
+ case WM_CLOSE:
+ PostQuitMessage(0);
+ return TRUE;
+ }
+ return FALSE;
+}
+
+// install program and files
+BOOL
+install_all()
+{
+ gs_addmess("Source Directory=");
+ gs_addmess(g_szSourceDir);
+ gs_addmess("\n");
+ gs_addmess("Target Directory=");
+ gs_addmess(g_szTargetDir);
+ gs_addmess("\n");
+ gs_addmess("Target Shell Folder=");
+ gs_addmess(g_szTargetGroup);
+ gs_addmess("\n");
+ gs_addmess(g_bAllUsers ? " All users\n" : " Current user\n");
+
+ if (stricmp(g_szSourceDir, g_szTargetDir) == 0) {
+ // Don't copy files
+ if (!g_bBatch)
+ if (::MessageBox(g_hWndText, "Install location is the same as the current file location. No files will be copied.", g_szAppName, MB_OKCANCEL)
+ != IDOK) {
+ return FALSE;
+ }
+ g_bNoCopy = TRUE;
+ }
+
+
+ if (g_bQuit)
+ return FALSE;
+
+ if (!install_prog()) {
+ cinst.CleanUp();
+ g_bError = TRUE;
+ return FALSE;
+ }
+ if (g_bInstallFonts && !install_fonts()) {
+ cinst.CleanUp();
+ g_bError = TRUE;
+ return FALSE;
+ }
+
+ gs_addmess("Install successful\n");
+
+#ifdef DEBUG
+ return FALSE;
+#endif
+
+ return TRUE;
+}
+
+BOOL
+install_prog()
+{
+ char *regkey1 = "Aladdin Ghostscript";
+ char regkey2[16];
+ char szDLL[MAXSTR];
+ char szLIB[MAXSTR];
+ char szProgram[MAXSTR];
+ char szArguments[MAXSTR];
+ char szDescription[MAXSTR];
+
+ if (g_bQuit)
+ return FALSE;
+
+ cinst.SetMessageFunction(gs_addmess);
+ cinst.SetTargetDir(g_szTargetDir);
+ cinst.SetTargetGroup(g_szTargetGroup);
+ cinst.SetAllUsers(g_bAllUsers);
+ if (!cinst.Init(g_szSourceDir, "filelist.txt"))
+ return FALSE;
+
+ // Get GS version number
+ gs_addmess("Installing Program...\n");
+ int nGSversion = 0;
+ const char *p = cinst.GetMainDir();
+ while (*p && !isdigit(*p)) // skip over "gs" prefix
+ p++;
+ if (strlen(p) == 4)
+ nGSversion = (p[0]-'0')*100 + (p[2]-'0')*10 + (p[3]-'0');
+ else if (strlen(p) == 3)
+ nGSversion = (p[0]-'0')*100 + (p[2]-'0')*10;
+ sprintf(regkey2, "%d.%d", nGSversion / 100, nGSversion % 100);
+
+ // copy files
+ if (!cinst.InstallFiles(g_bNoCopy, &g_bQuit)) {
+ gs_addmess("Program install failed\n");
+ return FALSE;
+ }
+
+ if (g_bQuit)
+ return FALSE;
+
+ // write registry entries
+ gs_addmess("Updating Registry\n");
+ if (!cinst.UpdateRegistryBegin()) {
+ gs_addmess("Failed to begin registry update\n");
+ return FALSE;
+ }
+ if (!cinst.UpdateRegistryKey(regkey1, regkey2)) {
+ gs_addmess("Failed to open/create registry application key\n");
+ return FALSE;
+ }
+ strcpy(szDLL, g_szTargetDir);
+ strcat(szDLL, "\\");
+ strcat(szDLL, cinst.GetMainDir());
+ strcat(szDLL, "\\bin\\gsdll32.dll");
+ if (!cinst.UpdateRegistryValue(regkey1, regkey2, "GS_DLL", szDLL)) {
+ gs_addmess("Failed to add registry value\n");
+ return FALSE;
+ }
+ strcpy(szLIB, g_szTargetDir);
+ strcat(szLIB, "\\");
+ strcat(szLIB, cinst.GetMainDir());
+ strcat(szLIB, "\\lib;");
+ strcat(szLIB, g_szTargetDir);
+ strcat(szLIB, "\\fonts");
+ if (!cinst.UpdateRegistryValue(regkey1, regkey2, "GS_LIB", szLIB)) {
+ gs_addmess("Failed to add registry value\n");
+ return FALSE;
+ }
+ if (!cinst.UpdateRegistryEnd()) {
+ gs_addmess("Failed to end registry update\n");
+ return FALSE;
+ }
+ if (g_bQuit)
+ return FALSE;
+
+ // Add Start Menu items
+ gs_addmess("Adding Start Menu items\n");
+ if (!cinst.StartMenuBegin()) {
+ gs_addmess("Failed to begin Start Menu update\n");
+ return FALSE;
+ }
+ strcpy(szProgram, g_szTargetDir);
+ strcat(szProgram, "\\");
+ strcat(szProgram, cinst.GetMainDir());
+ strcat(szProgram, "\\bin\\gswin32.exe");
+ strcpy(szArguments, "\042-I");
+ strcat(szArguments, szLIB);
+ strcat(szArguments, "\042");
+ sprintf(szDescription, "Ghostscript %d.%d",
+ nGSversion / 100, nGSversion % 100);
+ if (!cinst.StartMenuAdd(szDescription, szProgram, szArguments)) {
+ gs_addmess("Failed to add Start Menu item\n");
+ return FALSE;
+ }
+ strcpy(szProgram, g_szTargetDir);
+ strcat(szProgram, "\\");
+ strcat(szProgram, cinst.GetMainDir());
+ strcat(szProgram, "\\doc\\Readme.htm");
+ sprintf(szDescription, "Ghostscript Readme %d.%d",
+ nGSversion / 100, nGSversion % 100);
+ if (!cinst.StartMenuAdd(szDescription, szProgram, NULL)) {
+ gs_addmess("Failed to add Start Menu item\n");
+ return FALSE;
+ }
+ if (!cinst.StartMenuEnd()) {
+ gs_addmess("Failed to end Start Menu update\n");
+ return FALSE;
+ }
+
+ // consolidate logs into one uninstall file
+ if (!cinst.MakeLog()) {
+ gs_addmess("Failed to write uninstall log\n");
+ return FALSE;
+ }
+ if (g_bQuit)
+ return FALSE;
+
+ // add uninstall entry for "Add/Remove Programs"
+ gs_addmess("Adding uninstall program\n");
+ if (!cinst.WriteUninstall(UNINSTALLPROG, g_bNoCopy)) {
+ gs_addmess("Failed to write uninstall entry\n");
+ return FALSE;
+ }
+
+ gs_addmess("Program install successful\n");
+ return TRUE;
+}
+
+
+BOOL
+install_fonts()
+{
+ cinst.SetMessageFunction(gs_addmess);
+ cinst.SetTargetDir(g_szTargetDir);
+ cinst.SetTargetGroup(g_szTargetGroup);
+ cinst.SetAllUsers(g_bAllUsers);
+ if (!cinst.Init(g_szSourceDir, "fontlist.txt"))
+ return FALSE;
+
+ // copy files
+ if (!cinst.InstallFiles(g_bNoCopy, &g_bQuit)) {
+ gs_addmess("Font install failed\n");
+ return FALSE;
+ }
+
+ if (g_bQuit)
+ return FALSE;
+
+ // consolidate logs into one uninstall file
+ if (!cinst.MakeLog()) {
+ gs_addmess("Failed to write uninstall log\n");
+ return FALSE;
+ }
+
+ // add uninstall entry for "Add/Remove Programs"
+ gs_addmess("Adding uninstall program\n");
+ if (!cinst.WriteUninstall(UNINSTALLPROG, g_bNoCopy)) {
+ gs_addmess("Failed to write uninstall entry\n");
+ return FALSE;
+ }
+
+ gs_addmess("Font install successful\n");
+ return TRUE;
+}
+
+
+
+//////////////////////////////////////////////////////////////////////
+// Create file list
+//////////////////////////////////////////////////////////////////////
+
+FILE *fList;
+
+typedef int (*PFN_dodir)(const char *name);
+
+/* Called once for each directory */
+int
+dodir(const char *filename)
+{
+ return 0;
+}
+
+/* Called once for each file */
+int
+dofile(const char *filename)
+{
+ if (fList != (FILE *)NULL) {
+ fputs(filename, fList);
+ fputs("\n", fList);
+ }
+
+ return 0;
+}
+
+
+/* Walk through directory 'path', calling dodir() for given directory
+ * and dofile() for each file.
+ * If recurse=1, recurse into subdirectories, calling dodir() for
+ * each directory.
+ */
+int
+dirwalk(char *path, int recurse, PFN_dodir dodir, PFN_dodir dofile)
+{
+ WIN32_FIND_DATA find_data;
+ HANDLE find_handle;
+ char pattern[MAXSTR]; /* orig pattern + modified pattern */
+ char base[MAXSTR];
+ char name[MAXSTR];
+ BOOL bMore = TRUE;
+ char *p;
+
+
+ if (path) {
+ strcpy(pattern, path);
+ if (strlen(pattern) != 0) {
+ p = pattern + strlen(pattern) -1;
+ if (*p == '\\')
+ *p = '\0'; // truncate trailing backslash
+ }
+
+ strcpy(base, pattern);
+ if (strchr(base, '*') != NULL) {
+ // wildcard already included
+ // truncate it from the base path
+ if ( (p = strrchr(base, '\\')) != NULL )
+ *(++p) = '\0';
+ }
+ else if (isalpha(pattern[0]) &&
+ pattern[1]==':' && pattern[2]=='\0') {
+ strcat(pattern, "\\*"); // search entire disk
+ strcat(base, "\\");
+ }
+ else {
+ // wildcard NOT included
+ // check to see if path is a directory
+ find_handle = FindFirstFile(pattern, &find_data);
+ if (find_handle != INVALID_HANDLE_VALUE) {
+ FindClose(find_handle);
+ if (find_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
+ strcat(pattern, "\\*"); // yes, search files
+ strcat(base, "\\");
+ }
+ else {
+ dofile(path); // no, return just this file
+ return 0;
+ }
+ }
+ else
+ return 1; // path invalid
+ }
+ }
+ else {
+ base[0] = '\0';
+ strcpy(pattern, "*");
+ }
+
+ find_handle = FindFirstFile(pattern, &find_data);
+ if (find_handle == INVALID_HANDLE_VALUE)
+ return 1;
+
+ while (bMore) {
+ strcpy(name, base);
+ strcat(name, find_data.cFileName);
+ if (find_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
+ if ( strcmp(find_data.cFileName, ".") &&
+ strcmp(find_data.cFileName, "..") ) {
+ dodir(name);
+ if (recurse)
+ dirwalk(name, recurse, dodir, dofile);
+ }
+ }
+ else {
+ dofile(name);
+ }
+ bMore = FindNextFile(find_handle, &find_data);
+ }
+ FindClose(find_handle);
+
+ return 0;
+}
+
+
+
+// This is used when creating a file list.
+
+BOOL make_filelist(int argc, char *argv[])
+{
+ char *title = NULL;
+ char *dir = NULL;
+ char *list = NULL;
+ int i;
+ g_bBatch = TRUE; // Don't run message loop
+
+ for (i=1; i<argc; i++) {
+ if (strcmp(argv[i], "-title") == 0) {
+ i++;
+ title = argv[i];
+ }
+ else if (strcmp(argv[i], "-dir") == 0) {
+ i++;
+ dir = argv[i];
+ }
+ else if (strcmp(argv[i], "-list") == 0) {
+ i++;
+ list = argv[i];
+ }
+ else {
+ if ((title == NULL) || (strlen(title) == 0) ||
+ (dir == NULL) || (strlen(dir) == 0) ||
+ (list == NULL) || (strlen(list) == 0)) {
+ message_box("Usage: setupgs -title \042Aladdin Ghostscript #.##\042 -dir \042gs#.##\042 -list \042filelist.txt\042 spec1 spec2 specn\n");
+ return FALSE;
+ }
+ if (fList == (FILE *)NULL) {
+ if ( (fList = fopen(list, "w")) == (FILE *)NULL ) {
+ message_box("Can't write list file\n");
+ return FALSE;
+ }
+ fputs(title, fList);
+ fputs("\n", fList);
+ fputs(dir, fList);
+ fputs("\n", fList);
+ }
+ if (argv[i][0] == '@') {
+ // Use @filename with list of files/directories
+ // to avoid DOS command line limit
+ FILE *f;
+ char buf[MAXSTR];
+ int j;
+ if ( (f = fopen(&(argv[i][1]), "r")) != (FILE *)NULL) {
+ while (fgets(buf, sizeof(buf), f)) {
+ // remove trailing newline and spaces
+ while ( ((j = strlen(buf)-1) >= 0) &&
+ ((buf[j] == '\n') || (buf[j] == ' ')) )
+ buf[j] = '\0';
+ dirwalk(buf, TRUE, &dodir, &dofile);
+ }
+ fclose(f);
+ }
+ else {
+ wsprintf(buf, "Can't open @ file \042%s\042",
+ &argv[i][1]);
+ message_box(buf);
+ }
+ }
+ else
+ dirwalk(argv[i], TRUE, &dodir, &dofile);
+ }
+ }
+
+ if (fList != (FILE *)NULL) {
+ fclose(fList);
+ fList = NULL;
+ }
+ return TRUE;
+}
+
+//////////////////////////////////////////////////////////////////////
diff --git a/gs/src/dwsetup.def b/gs/src/dwsetup.def
new file mode 100644
index 000000000..26714991c
--- /dev/null
+++ b/gs/src/dwsetup.def
@@ -0,0 +1,5 @@
+NAME DWSETUP
+DESCRIPTION 'Aladdin Ghostscript Setup'
+EXETYPE WINDOWS
+HEAPSIZE 4096
+STACKSIZE 32768
diff --git a/gs/src/dwsetup.h b/gs/src/dwsetup.h
new file mode 100644
index 000000000..7ef2fe89c
--- /dev/null
+++ b/gs/src/dwsetup.h
@@ -0,0 +1,50 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+
+// $RCSfile$ $Revision$
+
+// Definitions for Ghostscript setup program
+
+#ifndef IDC_STATIC
+#define IDC_STATIC -1
+#endif
+
+#define IDD_TEXTWIN 101
+#define IDD_DIRDLG 102
+#define IDR_MAIN 200
+#define IDD_MAIN 201
+#define IDC_TARGET_DIR 202
+#define IDC_TARGET_GROUP 203
+#define IDC_BROWSE_DIR 204
+#define IDC_BROWSE_GROUP 205
+#define IDC_README 206
+#define IDS_APPNAME 501
+#define IDS_TARGET_DIR 502
+#define IDS_TARGET_GROUP 503
+#define IDC_PRODUCT_NAME 1000
+#define IDC_INSTALL_FONTS 1001
+#define IDC_TEXTWIN_MLE 1002
+#define IDC_TEXTWIN_COPY 1003
+#define IDC_INSTALL 1004
+#define IDC_FILES 1006
+#define IDC_FOLDER 1007
+#define IDC_TARGET 1008
+#define IDC_ALLUSERS 1009
+#define IDC_COPYRIGHT 1010
+
diff --git a/gs/src/dwsetup.rc b/gs/src/dwsetup.rc
new file mode 100644
index 000000000..047149679
--- /dev/null
+++ b/gs/src/dwsetup.rc
@@ -0,0 +1,148 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+
+// $RCSfile$ $Revision$
+
+#include <windows.h>
+#include "dwsetup.h"
+
+#ifndef DS_3DLOOK
+#define DS_3DLOOK 0x0004L /* for Windows 95 look */
+#endif
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_MAIN DIALOG 32, 32, 300, 200
+STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP /* | WS_VISIBLE */ | WS_CAPTION | WS_SYSMENU
+CAPTION "Aladdin Ghostscript Setup"
+FONT 8, "MS Sans Serif"
+BEGIN
+ DEFPUSHBUTTON "Install",IDC_INSTALL,240,178,50,14
+ ICON IDR_MAIN,IDC_STATIC,11,17,20,20
+ LTEXT "This installs",IDC_STATIC,56,6,232,8
+ LTEXT "Product Name",IDC_PRODUCT_NAME,72,16,216,8
+ LTEXT "Copyright (C) 1994-1999 Aladdin Enterprises, Menlo Park, California, U.S.A. All rights reserved. See the file PUBLIC for more details.\n\nRequires 10 - 20 Mbytes disk space.",
+ IDC_COPYRIGHT,56,30,232,48
+
+ LTEXT "Install to directory",IDC_STATIC,8,92,56,8
+ CONTROL "Install Fonts",IDC_INSTALL_FONTS,"Button",
+ BS_AUTOCHECKBOX | WS_TABSTOP,160,90,85,12
+ EDITTEXT IDC_TARGET_DIR,8,104,220,12,ES_AUTOHSCROLL
+ PUSHBUTTON "Browse...",IDC_BROWSE_DIR,240,103,50,14
+
+ LTEXT "Add shortcuts to",IDC_STATIC,8,132,52,8
+ CONTROL "All Users",IDC_ALLUSERS,"Button",
+ BS_AUTOCHECKBOX | WS_TABSTOP,160,130,44,10
+ EDITTEXT IDC_TARGET_GROUP,8,144,220,12,ES_AUTOHSCROLL
+ PUSHBUTTON "Browse...",IDC_BROWSE_GROUP,240,143,50,14
+ PUSHBUTTON "Cancel",IDCANCEL,8,178,50,14
+ PUSHBUTTON "Help",IDC_README,124,178,50,14
+END
+
+
+
+IDD_TEXTWIN DIALOG DISCARDABLE 0, 0, 318, 169
+STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+CAPTION "Aladdin Ghostscript setup log"
+FONT 8, "MS Sans Serif"
+BEGIN
+ PUSHBUTTON "Cancel",IDCANCEL,261,148,50,14
+ EDITTEXT IDC_TEXTWIN_MLE,7,7,304,136,ES_MULTILINE | ES_WANTRETURN |
+ WS_VSCROLL | WS_HSCROLL
+ PUSHBUTTON "Copy to Clipboard",IDC_TEXTWIN_COPY,7,148,84,14
+END
+
+IDD_DIRDLG DIALOG DISCARDABLE 0, 0, 273, 140
+STYLE DS_MODALFRAME | DS_3DLOOK | WS_POPUP | WS_CAPTION | WS_SYSMENU
+CAPTION "Select Folder"
+FONT 8, "MS Sans Serif"
+BEGIN
+ DEFPUSHBUTTON "OK",IDOK,216,7,50,14
+ PUSHBUTTON "Cancel",IDCANCEL,216,24,50,14
+ LISTBOX IDC_FILES,7,7,197,70,LBS_SORT | LBS_NOINTEGRALHEIGHT |
+ WS_VSCROLL | WS_TABSTOP
+ LTEXT "Folder",IDC_FOLDER,7,82,259,12
+ LTEXT "Destination Folder",IDC_STATIC,7,105,259,12
+ EDITTEXT IDC_TARGET,7,120,259,12,ES_AUTOHSCROLL
+END
+
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
+
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+IDR_MAIN ICON DISCARDABLE "gstext.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// DESIGNINFO
+//
+
+#ifdef APSTUDIO_INVOKED
+GUIDELINES DESIGNINFO DISCARDABLE
+BEGIN
+ IDD_MAIN, DIALOG
+ BEGIN
+ LEFTMARGIN, 8
+ RIGHTMARGIN, 288
+ TOPMARGIN, 6
+ BOTTOMMARGIN, 192
+ END
+ IDD_TEXTWIN, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 311
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 162
+ END
+
+ IDD_DIRDLG, DIALOG
+ BEGIN
+ LEFTMARGIN, 7
+ RIGHTMARGIN, 266
+ TOPMARGIN, 7
+ BOTTOMMARGIN, 133
+ END
+END
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// String Table
+//
+
+STRINGTABLE DISCARDABLE
+BEGIN
+ IDS_APPNAME "Aladdin Ghostscript Setup"
+ IDS_TARGET_DIR "C:\\Aladdin"
+ IDS_TARGET_GROUP "Aladdin"
+END
+
+/////////////////////////////////////////////////////////////////////////////
+
+
+
diff --git a/gs/src/dwtext.cpp b/gs/src/dwtext.cpp
index 5b7a00af2..4e3aa18b1 100644
--- a/gs/src/dwtext.cpp
+++ b/gs/src/dwtext.cpp
@@ -17,7 +17,7 @@
*/
-
+// $RCSfile$ $Revision$
// Microsoft Windows 3.n text window for Ghostscript.
diff --git a/gs/src/dwtext.h b/gs/src/dwtext.h
index b6688f5d5..e1cc5d832 100644
--- a/gs/src/dwtext.h
+++ b/gs/src/dwtext.h
@@ -17,7 +17,7 @@
*/
-
+// $RCSfile$ $Revision$
// Text Window class
diff --git a/gs/src/dwuninst.cpp b/gs/src/dwuninst.cpp
new file mode 100644
index 000000000..5ff1e2922
--- /dev/null
+++ b/gs/src/dwuninst.cpp
@@ -0,0 +1,860 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+// $RCSfile$ $Revision$
+
+#define STRICT
+#include <windows.h>
+#include <objbase.h>
+#include <shlobj.h>
+#include <shellapi.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <direct.h>
+#include "dwuninst.h"
+
+
+#ifdef _MSC_VER
+#define _export
+#define chdir(x) _chdir(x)
+#define mkdir(x) _mkdir(x)
+#endif
+#define DELAY_STEP 500
+#define DELAY_FILE 10
+#define MAXSTR 256
+#define UNINSTALLKEY TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
+
+HWND hDlgModeless;
+HWND hText1;
+HWND hText2;
+char path[MAXSTR];
+int language = 0;
+BOOL is_win4 = FALSE;
+HINSTANCE phInstance;
+char szSection[] = "////////////////////////////////";
+BOOL bQuit = FALSE;
+BOOL gError = FALSE; // set TRUE if an uninstall was not successful
+
+char szTitle[MAXSTR];
+char szLogFile[MAXSTR];
+char szLine[MAXSTR];
+FILE *fLog;
+
+void do_message(void);
+BOOL dofiles(void);
+BOOL registry_delete(void);
+BOOL registry_import(void);
+BOOL shell_new(void);
+BOOL shell_old(void);
+BOOL doEOF(void);
+
+#define gs_addmess(str) fputs(str, stdout) // for debug
+
+
+// linked list for deleting registry entries in reverse order
+typedef struct tagKEY {
+ long index;
+ struct tagKEY *previous;
+} KEY;
+KEY *last_key = NULL;
+
+
+// read a line from the log, removing trailing new line character
+BOOL GetLine(void)
+{
+ BOOL err = TRUE;
+ int i;
+ szLine[0] = '\0';
+ if (fLog)
+ err = (fgets(szLine, sizeof(szLine)-1, fLog) == NULL);
+ i = strlen(szLine) - 1;
+ if ( (szLine[0] != '\0') && (szLine[i] == '\n'))
+ szLine[i] = '\0';
+ return !err;
+}
+
+BOOL IsSection(void)
+{
+ return (strncmp(szLine, szSection, strlen(szSection)) == 0);
+}
+
+BOOL
+NextSection(void)
+{
+ while (GetLine()) {
+ do_message();
+ if (bQuit)
+ return FALSE;
+ if (IsSection())
+ return TRUE;
+ }
+
+ return TRUE;
+}
+
+BOOL ReadSection(void)
+{
+ do_message();
+ if (bQuit)
+ return FALSE;
+ GetLine();
+ if (strlen(szLine) == 0) {
+ doEOF();
+ return TRUE;
+ }
+ else if (strcmp(szLine, "FileNew")==0) {
+ SetWindowText(hText1, "Removing Files");
+ Sleep(DELAY_STEP);
+ if (!dofiles())
+ return FALSE;
+ SetWindowText(hText1, "");
+ return TRUE;
+ }
+ else if (strcmp(szLine, "RegistryNew")==0) {
+ SetWindowText(hText1, "Removing Registry entries");
+ Sleep(DELAY_STEP);
+ if (!registry_delete())
+ return FALSE;
+ SetWindowText(hText1, "");
+ return TRUE;
+ }
+ else if (strcmp(szLine, "RegistryOld")==0) {
+ SetWindowText(hText1, "Restoring Registry entries");
+ Sleep(DELAY_STEP);
+ if (!registry_import())
+ return FALSE;
+ SetWindowText(hText1, "");
+ return TRUE;
+ }
+ else if (strcmp(szLine, "ShellNew")==0) {
+ SetWindowText(hText1, "Removing Start Menu items");
+ Sleep(DELAY_STEP);
+ if (!shell_new())
+ return FALSE;
+ SetWindowText(hText1, "");
+ return TRUE;
+ }
+ else if (strcmp(szLine, "ShellOld")==0) {
+ SetWindowText(hText1, "Restoring Start Menu items");
+ Sleep(DELAY_STEP);
+ if (!shell_old())
+ return FALSE;
+ SetWindowText(hText1, "");
+ return TRUE;
+ }
+ return FALSE;
+}
+
+
+BOOL
+dofiles(void)
+{
+ while (GetLine()) {
+ do_message();
+ if (bQuit)
+ return FALSE;
+ if (IsSection()) {
+ SetWindowText(hText2, "");
+ return TRUE;
+ }
+ if (szLine[0] != '\0') {
+ SetWindowText(hText2, szLine);
+ if (DELAY_FILE)
+ Sleep(DELAY_FILE);
+ gs_addmess("Deleting File: ");
+ gs_addmess(szLine);
+ gs_addmess("\n");
+ DeleteFile(szLine);
+ }
+ }
+ return FALSE;
+}
+
+BOOL
+doEOF(void)
+{
+ fclose(fLog);
+ fLog = NULL;
+ unlink(szLogFile);
+ PostMessage(hDlgModeless, WM_COMMAND, IDC_DONE, 0L);
+ bQuit = TRUE;
+ return TRUE;
+}
+
+
+BOOL
+registry_delete_key(void)
+{
+char keyname[MAXSTR];
+HKEY hkey = HKEY_CLASSES_ROOT;
+HKEY hrkey = HKEY_CLASSES_ROOT;
+char *rkey, *skey;
+char *name;
+DWORD dwResult;
+ keyname[0] = '\0';
+ while (GetLine()) {
+ if ((szLine[0] == '\0') || (szLine[0] == '\r') || (szLine[0] == '\n'))
+ break;
+ if (szLine[0] == '[') {
+ // key name
+ rkey = strtok(szLine+1, "\\]\n\r");
+ if (rkey == (char *)NULL)
+ return FALSE;
+ skey = strtok(NULL, "]\n\r");
+ if (strcmp(rkey, "HKEY_CLASSES_ROOT")==0)
+ hrkey = HKEY_CLASSES_ROOT;
+ else if (strcmp(rkey, "HKEY_CURRENT_USER")==0)
+ hrkey = HKEY_CURRENT_USER;
+ else if (strcmp(rkey, "HKEY_LOCAL_MACHINE")==0)
+ hrkey = HKEY_LOCAL_MACHINE;
+ else if (strcmp(rkey, "HKEY_USERS")==0)
+ hrkey = HKEY_USERS;
+ else
+ return FALSE;
+ if (skey == (char *)NULL)
+ return FALSE;
+ gs_addmess("Opening registry key\n ");
+ gs_addmess(rkey);
+ gs_addmess("\\");
+ gs_addmess(skey);
+ gs_addmess("\n");
+ if (RegCreateKeyEx(hrkey, skey, 0, "", 0, KEY_ALL_ACCESS,
+ NULL, &hkey, &dwResult)
+ != ERROR_SUCCESS)
+ return FALSE;
+ strcpy(keyname, skey);
+ }
+ else if (szLine[0] == '@') {
+ // default value
+ RegDeleteValue(hkey, NULL);
+ gs_addmess("Deleting registry default value\n");
+ }
+ else if (szLine[0] == '\042') {
+ // named value
+ name = strtok(szLine+1, "\042\r\n");
+ RegDeleteValue(hkey, name);
+ gs_addmess("Deleting registry named value\n ");
+ gs_addmess(name);
+ gs_addmess("\n");
+ }
+ }
+ // close key
+ if (hkey != HKEY_CLASSES_ROOT)
+ RegCloseKey(hkey);
+ // delete the key
+ if (strlen(keyname)) {
+ gs_addmess("Deleting registry key\n ");
+ gs_addmess(keyname);
+ gs_addmess("\n");
+ RegOpenKeyEx(hrkey, NULL, 0, 0, &hkey);
+ RegDeleteKey(hkey, keyname);
+ RegCloseKey(hkey);
+ }
+ return TRUE;
+}
+
+BOOL
+registry_delete()
+{
+ long logindex;
+ KEY *key;
+
+ // scan log file
+ // so we can remove keys in reverse order
+ logindex = 0;
+ while (GetLine() && !IsSection()) {
+ KEY *key;
+ if (szLine[0] == '[') {
+ if ((key = (KEY *)malloc(sizeof(KEY)))
+ != (KEY *)NULL) {
+ key->previous = last_key;
+ key->index = logindex;
+ last_key = key;
+ }
+ }
+ logindex = ftell(fLog);
+ }
+
+ // Remove keys
+ for (key = last_key; key != NULL;
+ key = key->previous) {
+ if (key != last_key)
+ free(last_key);
+ fseek(fLog, key->index, SEEK_SET);
+ registry_delete_key();
+ last_key = key;
+ }
+ free(last_key);
+
+ fseek(fLog, logindex, SEEK_SET);
+ GetLine();
+ return TRUE;
+}
+
+
+
+void
+registry_unquote(char *line)
+{
+char *s, *d;
+int value;
+ s = d = line;
+ while (*s) {
+ if (*s != '\\') {
+ *d++ = *s;
+ }
+ else {
+ s++;
+ if (*s == '\\')
+ *d++ = *s;
+ else {
+ value = 0;
+ if (*s) {
+ value = *s++ - '0';
+ }
+ if (*s) {
+ value <<= 3;
+ value += *s++ - '0';
+ }
+ if (*s) {
+ value <<= 3;
+ value += *s - '0';
+ }
+ *d++ = (char)value;
+ }
+ }
+ s++;
+ }
+ *d = '\0';
+}
+
+BOOL
+registry_import()
+{
+ HKEY hkey = HKEY_CLASSES_ROOT;
+ HKEY hrkey;
+ char *rkey, *skey;
+ char *value;
+ char *name;
+ DWORD dwResult;
+ GetLine();
+ if (strncmp(szLine, "REGEDIT4", 8) != 0)
+ return FALSE;
+
+ while (GetLine()) {
+ if (IsSection())
+ break;
+ if ((szLine[0] == '\0') || (szLine[0] == '\r') || (szLine[0] == '\n'))
+ continue;
+ if (szLine[0] == '[') {
+ // key name
+ if (hkey != HKEY_CLASSES_ROOT) {
+ RegCloseKey(hkey);
+ hkey = HKEY_CLASSES_ROOT;
+ }
+ rkey = strtok(szLine+1, "\\]\n\r");
+ if (rkey == (char *)NULL)
+ return FALSE;
+ skey = strtok(NULL, "]\n\r");
+ if (strcmp(rkey, "HKEY_CLASSES_ROOT")==0)
+ hrkey = HKEY_CLASSES_ROOT;
+ else if (strcmp(rkey, "HKEY_CURRENT_USER")==0)
+ hrkey = HKEY_CURRENT_USER;
+ else if (strcmp(rkey, "HKEY_LOCAL_MACHINE")==0)
+ hrkey = HKEY_LOCAL_MACHINE;
+ else if (strcmp(rkey, "HKEY_USERS")==0)
+ hrkey = HKEY_USERS;
+ else
+ return FALSE;
+ if (skey == (char *)NULL)
+ return FALSE;
+ gs_addmess("Creating registry key\n ");
+ gs_addmess(rkey);
+ gs_addmess("\\");
+ gs_addmess("skey");
+ gs_addmess("\n");
+ if (RegCreateKeyEx(hrkey, skey, 0, "", 0, KEY_ALL_ACCESS,
+ NULL, &hkey, &dwResult)
+ != ERROR_SUCCESS)
+ return FALSE;
+ }
+ else if (szLine[0] == '@') {
+ // default value
+ if (strlen(szLine) < 4)
+ return FALSE;
+ value = strtok(szLine+3, "\042\r\n");
+ if (value) {
+ registry_unquote(value);
+ gs_addmess("Setting registry key value\n ");
+ gs_addmess(value);
+ gs_addmess("\n");
+ if (RegSetValueEx(hkey, NULL, 0, REG_SZ,
+ (CONST BYTE *)value, strlen(value)+1)
+ != ERROR_SUCCESS)
+ return FALSE;
+ }
+ }
+ else if (szLine[0] == '\042') {
+ // named value
+ name = strtok(szLine+1, "\042\r\n");
+ strtok(NULL, "\042\r\n");
+ value = strtok(NULL, "\042\r\n");
+ registry_unquote(value);
+ gs_addmess("Setting registry key value\n ");
+ gs_addmess(name);
+ gs_addmess("=");
+ gs_addmess(value);
+ gs_addmess("\n");
+ if (RegSetValueEx(hkey, name, 0, REG_SZ, (CONST BYTE *)value, strlen(value)+1)
+ != ERROR_SUCCESS)
+ return FALSE;
+ }
+ }
+ if (hkey != HKEY_CLASSES_ROOT)
+ RegCloseKey(hkey);
+ return TRUE;
+}
+
+// recursive mkdir
+// requires a full path to be specified, so ignores root \
+// apart from root \, must not contain trailing \
+// Examples:
+// c:\ (OK, but useless)
+// c:\gstools (OK)
+// c:\gstools\ (incorrect)
+// c:gstools (incorrect)
+// gstools (incorrect)
+// The following UNC names should work,
+// but didn't under Win3.1 because gs_chdir wouldn't accept UNC names
+// Needs to be tested under Windows 95.
+// \\server\sharename\gstools (OK)
+// \\server\sharename\ (OK, but useless)
+//
+
+BOOL MakeDir(char *dirname)
+{
+char newdir[MAXSTR];
+char *p;
+ if (strlen(dirname) < 3)
+ return -1;
+
+ gs_addmess("Making Directory\n ");
+ gs_addmess(dirname);
+ gs_addmess("\n");
+ if (isalpha(dirname[0]) && dirname[1]==':' && dirname[2]=='\\') {
+ // drive mapped path
+ p = dirname+3;
+ }
+ else if (dirname[1]=='\\' && dirname[1]=='\\') {
+ // UNC path
+ p = strchr(dirname+2, '\\'); // skip servername
+ if (p == NULL)
+ return -1;
+ p++;
+ p = strchr(p, '\\'); // skip sharename
+ if (p == NULL)
+ return -1;
+ }
+ else {
+ // not full path so error
+ return -1;
+ }
+
+ while (1) {
+ strncpy(newdir, dirname, (int)(p-dirname));
+ newdir[(int)(p-dirname)] = '\0';
+ if (chdir(newdir)) {
+ if (mkdir(newdir))
+ return -1;
+ }
+ p++;
+ if (p >= dirname + strlen(dirname))
+ break; // all done
+ p = strchr(p, '\\');
+ if (p == NULL)
+ p = dirname + strlen(dirname);
+ }
+
+ return SetCurrentDirectory(dirname);
+}
+
+
+BOOL shell_new(void)
+{
+
+ char *p, *q;
+ char group[MAXSTR];
+ // remove shell items added by Ghostscript
+ // We can only delete one group with this code
+ group[0] = '\0';
+ while (GetLine()) {
+ if (IsSection()) {
+ if (strlen(group) != 0) {
+ gs_addmess("Removing shell folder\n ");
+ gs_addmess(group);
+ gs_addmess("\n");
+ RemoveDirectory(group);
+ }
+ return TRUE;
+ }
+ p = strtok(szLine, "=");
+ q = strtok(NULL, "");
+ if (p == NULL) {
+ continue;
+ }
+ else if (strcmp(p, "Group")==0) {
+ if (q)
+ strncpy(group, q, sizeof(group)-1);
+ // defer this until we have remove contents
+ }
+ else if (strcmp(p, "Name") == 0) {
+ if (q) {
+ gs_addmess("Removing shell link\n ");
+ gs_addmess(q);
+ gs_addmess("\n");
+ DeleteFile(q);
+ }
+ }
+ }
+
+ return TRUE;
+}
+
+
+BOOL CreateShellLink(LPCSTR name, LPCSTR description, LPCSTR program,
+ LPCSTR arguments, LPCSTR directory, LPCSTR icon, int nIconIndex)
+{
+ HRESULT hres;
+ IShellLink* psl;
+
+ // Ensure string is UNICODE.
+ WCHAR wsz[MAX_PATH];
+ MultiByteToWideChar(CP_ACP, 0, name, -1, wsz, MAX_PATH);
+
+ // Save new shell link
+
+ // Get a pointer to the IShellLink interface.
+ hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER,
+ IID_IShellLink, (void **)&psl);
+ if (SUCCEEDED(hres)) {
+ IPersistFile* ppf;
+ // Query IShellLink for the IPersistFile interface for
+ // saving the shell link in persistent storage.
+ hres = psl->QueryInterface(IID_IPersistFile, (void **)&ppf);
+ if (SUCCEEDED(hres)) {
+ gs_addmess("Adding shell link\n ");
+ gs_addmess(name);
+ gs_addmess("\n");
+
+ // Set the path to the shell link target.
+ hres = psl->SetPath(program);
+ if (!SUCCEEDED(hres)) {
+ gs_addmess("SetPath failed!");
+ gError = TRUE;
+ }
+ // Set the description of the shell link.
+ hres = psl->SetDescription(description);
+ if (!SUCCEEDED(hres)) {
+ gs_addmess("SetDescription failed!");
+ gError = TRUE;
+ }
+ if ((arguments != (LPCSTR)NULL) && *arguments) {
+ // Set the arguments of the shell link target.
+ hres = psl->SetArguments(arguments);
+ if (!SUCCEEDED(hres)) {
+ gs_addmess("SetArguments failed!");
+ gError = TRUE;
+ }
+ }
+ if ((directory != (LPCSTR)NULL) && *directory) {
+ // Set the arguments of the shell link target.
+ hres = psl->SetWorkingDirectory(directory);
+ if (!SUCCEEDED(hres)) {
+ gs_addmess("SetWorkingDirectory failed!");
+ gError = TRUE;
+ }
+ }
+ if ((icon != (LPCSTR)NULL) && *icon) {
+ // Set the arguments of the shell link target.
+ hres = psl->SetIconLocation(icon, nIconIndex);
+ if (!SUCCEEDED(hres)) {
+ gs_addmess("SetIconLocation failed!");
+ gError = TRUE;
+ }
+ }
+
+ // Save the link via the IPersistFile::Save method.
+ hres = ppf->Save(wsz, TRUE);
+ // Release pointer to IPersistFile.
+ ppf->Release();
+ }
+ // Release pointer to IShellLink.
+ psl->Release();
+ }
+
+ return (hres == 0);
+}
+
+
+
+BOOL shell_old(void)
+{
+ // Add shell items removed by Ghostscript
+ char *p, *q;
+ char name[MAXSTR];
+ char description[MAXSTR];
+ char program[MAXSTR];
+ char arguments[MAXSTR];
+ char directory[MAXSTR];
+ char icon[MAXSTR];
+ int nIconIndex;
+ // Remove shell items added by Ghostscript
+ name[0] = description[0] = program[0] = arguments[0]
+ = directory[0] = icon[0] = '\0';
+ nIconIndex = 0;
+
+ while (GetLine()) {
+ if (IsSection())
+ return TRUE;
+ p = strtok(szLine, "=");
+ q = strtok(NULL, "");
+ if (strlen(szLine) == 0) {
+ if (name[0] != '\0') {
+ // add start menu item
+ CreateShellLink(name, description, program, arguments,
+ directory, icon, nIconIndex);
+ }
+ name[0] = description[0] = program[0] = arguments[0]
+ = directory[0] = icon[0] = '\0';
+ nIconIndex = 0;
+ continue;
+ }
+ else if (p == (char *)NULL) {
+ continue;
+ }
+ else if (strcmp(p, "Group")==0) {
+ MakeDir(q);
+ }
+ else if (strcmp(p, "Name") == 0)
+ strncpy(name, q, sizeof(name)-1);
+ else if (strcmp(p, "Description") == 0)
+ strncpy(description, q, sizeof(description)-1);
+ else if (strcmp(p, "Program") == 0)
+ strncpy(program, q, sizeof(program)-1);
+ else if (strcmp(p, "Arguments") == 0)
+ strncpy(arguments, q, sizeof(arguments)-1);
+ else if (strcmp(p, "Directory") == 0)
+ strncpy(directory, q, sizeof(directory)-1);
+ else if (strcmp(p, "IconLocation") == 0)
+ strncpy(icon, q, sizeof(icon)-1);
+ else if (strcmp(p, "IconIndex") == 0)
+ nIconIndex = atoi(q);
+ }
+
+ return TRUE;
+}
+
+
+
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+BOOL CALLBACK _export
+RemoveDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
+{
+ switch(message) {
+ case WM_INITDIALOG:
+ SetWindowText(hwnd, szTitle);
+ return TRUE;
+ case WM_COMMAND:
+ switch(LOWORD(wParam)) {
+ case IDC_DONE:
+ // delete registry entries for uninstall
+ if (is_win4) {
+ HKEY hkey;
+ if (RegOpenKeyEx(HKEY_LOCAL_MACHINE,
+ UNINSTALLKEY, 0, KEY_ALL_ACCESS, &hkey)
+ == ERROR_SUCCESS) {
+ RegDeleteKey(hkey, szTitle);
+ RegCloseKey(hkey);
+ }
+ }
+
+ SetWindowText(hText1, "Uninstall successful");
+ SetWindowText(hText2, "");
+ EnableWindow(GetDlgItem(hwnd, IDOK), FALSE);
+ EnableWindow(GetDlgItem(hwnd, IDCANCEL), TRUE);
+ SetDlgItemText(hwnd, IDCANCEL, "Exit");
+ SetFocus(GetDlgItem(hwnd, IDCANCEL));
+ return TRUE;
+ case IDOK:
+ // Start removal
+ EnableWindow(GetDlgItem(hwnd, IDOK), FALSE);
+ EnableWindow(GetDlgItem(hwnd, IDC_PRESSOK), FALSE);
+ while (!bQuit) {
+ do_message();
+ if (!ReadSection()) {
+ SetWindowText(hText1, "Uninstall FAILED");
+ SetWindowText(hText2, "");
+ EnableWindow(GetDlgItem(hwnd, IDOK), FALSE);
+ EnableWindow(GetDlgItem(hwnd, IDCANCEL), TRUE);
+ SetDlgItemText(hwnd, IDCANCEL, "Exit");
+ SetFocus(GetDlgItem(hwnd, IDCANCEL));
+ bQuit = TRUE;
+ }
+ }
+ return TRUE;
+ case IDCANCEL:
+ bQuit = TRUE;
+ DestroyWindow(hwnd);
+ hDlgModeless = 0;
+ return TRUE;
+ }
+ case WM_CLOSE:
+ DestroyWindow(hwnd);
+ hDlgModeless = 0;
+ return TRUE;
+ }
+ return FALSE;
+}
+
+void
+do_message(void)
+{
+MSG msg;
+ while (hDlgModeless && PeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE)) {
+ if ((hDlgModeless == 0) || !IsDialogMessage(hDlgModeless, &msg)) {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+ }
+}
+
+
+
+BOOL
+init(void)
+{
+ DWORD version = GetVersion();
+ char *p, *s;
+ // get location of uninstall log from command line as argv[1]
+ p = GetCommandLine();
+ s = p;
+ if (*s == '\042') {
+ // skip over program name
+ s++;
+ while (*s && *s!='\042')
+ s++;
+ if (*s)
+ s++;
+ }
+ else if (*s != ' ') {
+ // skip over program name
+ s++;
+ while (*s && *s!=' ')
+ s++;
+ if (*s)
+ s++;
+ }
+ while (*s && *s==' ')
+ s++;
+ if (*s == '\042')
+ s++;
+ strncpy(szLogFile, s, sizeof(szLogFile));
+ s = szLogFile;
+ while (*s) {
+ if (*s == '\042') {
+ *s = '\0';
+ break;
+ }
+ s++;
+ }
+ if (strlen(szLogFile) == 0) {
+ MessageBox(HWND_DESKTOP, "Usage: uninstgs logfile.txt",
+ "Aladdin Ghostscript Uninstall", MB_OK);
+ return FALSE;
+ }
+
+ // read first few lines of file to get title
+ fLog = fopen(szLogFile, "r");
+ if (fLog == (FILE *)NULL) {
+ MessageBox(HWND_DESKTOP, szLogFile, "Can't find file", MB_OK);
+ return FALSE;
+ }
+ GetLine();
+ if (!IsSection()) {
+ MessageBox(HWND_DESKTOP, szLogFile, "Not valid uninstall log",
+ MB_OK);
+ return FALSE;
+ }
+ GetLine();
+ if (strcmp(szLine, "UninstallName") != 0) {
+ MessageBox(HWND_DESKTOP, szLogFile, "Not valid uninstall log",
+ MB_OK);
+ return FALSE;
+ }
+ GetLine();
+ strcpy(szTitle, szLine);
+
+ NextSection();
+
+ if (LOBYTE(LOWORD(version)) >= 4)
+ is_win4 = TRUE;
+ return TRUE;
+}
+
+#ifdef __BORLANDC__
+#pragma argsused
+#endif
+int PASCAL
+WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdLine, int cmdShow)
+{
+MSG msg;
+
+ phInstance = hInstance;
+ if (!init())
+ return 1;
+
+
+ CoInitialize(NULL);
+
+ hDlgModeless = CreateDialogParam(hInstance,
+ MAKEINTRESOURCE(IDD_UNSET),
+ HWND_DESKTOP, RemoveDlgProc, (LPARAM)NULL);
+ hText1 = GetDlgItem(hDlgModeless, IDC_T1);
+ hText2 = GetDlgItem(hDlgModeless, IDC_T2);
+
+ SetWindowPos(hDlgModeless, HWND_TOP, 0, 0, 0, 0,
+ SWP_SHOWWINDOW | SWP_NOMOVE | SWP_NOSIZE);
+
+ while (hDlgModeless && GetMessage(&msg, (HWND)NULL, 0, 0)) {
+ if ((hDlgModeless == 0) || !IsDialogMessage(hDlgModeless, &msg)) {
+ TranslateMessage(&msg);
+ DispatchMessage(&msg);
+ }
+ }
+
+ if (fLog)
+ fclose(fLog);
+
+ CoUninitialize();
+
+ return 0;
+}
+
diff --git a/gs/src/dwuninst.def b/gs/src/dwuninst.def
new file mode 100644
index 000000000..51319e274
--- /dev/null
+++ b/gs/src/dwuninst.def
@@ -0,0 +1,5 @@
+NAME DWUNINST
+DESCRIPTION 'Aladdin Ghostscript uninstall'
+EXETYPE WINDOWS
+HEAPSIZE 4096
+STACKSIZE 32768
diff --git a/gs/src/dwuninst.h b/gs/src/dwuninst.h
new file mode 100644
index 000000000..0305f2f0a
--- /dev/null
+++ b/gs/src/dwuninst.h
@@ -0,0 +1,33 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+
+// $RCSfile$ $Revision$
+
+// Definitions for Ghostscript installer
+
+#define ID_UNINSTGS 1
+#define ID_UNINST 2
+#define IDD_UNSET 2
+#define IDC_GSICON 101
+#define IDC_PROG 102
+#define IDC_DONE 103
+#define IDC_PRESSOK 103
+#define IDC_T1 111
+#define IDC_T2 112
+
diff --git a/gs/src/dwuninst.rc b/gs/src/dwuninst.rc
new file mode 100644
index 000000000..af652f1a7
--- /dev/null
+++ b/gs/src/dwuninst.rc
@@ -0,0 +1,40 @@
+/* Copyright (C) 1999, Ghostgum Software Pty Ltd. All rights reserved.
+
+ This file is part of Aladdin Ghostscript.
+
+ This program is distributed with NO WARRANTY OF ANY KIND. No author
+ or distributor accepts any responsibility for the consequences of using it,
+ or for whether it serves any particular purpose or works at all, unless he
+ or she says so in writing. Refer to the Aladdin Ghostscript Free Public
+ License (the "License") for full details.
+
+ Every copy of Aladdin Ghostscript must include a copy of the License,
+ normally in a plain ASCII text file named PUBLIC. The License grants you
+ the right to copy, modify and redistribute Aladdin Ghostscript, but only
+ under certain conditions described in the License. Among other things, the
+ License requires that the copyright notice and this notice be preserved on
+ all copies.
+*/
+
+/* dwuninst.rc */
+
+#include <windows.h>
+#include "dwuninst.h"
+
+ID_UNINSTGS ICON "gstext.ico"
+
+
+IDD_UNSET DIALOG 6, 15, 242, 123
+STYLE DS_MODALFRAME | 0x4L | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
+CAPTION ""
+FONT 8, "MS Sans Serif"
+{
+ DEFPUSHBUTTON "&Cancel", IDCANCEL, 106, 98, 50, 14
+ PUSHBUTTON "&Uninstall", IDOK, 16, 98, 50, 14
+ LTEXT "To remove this package, press Uninstall", IDC_PRESSOK, 44, 8, 192, 8
+ LTEXT "", IDC_T1, 32, 48, 200, 16
+ LTEXT "", IDC_T2, 32, 64, 200, 16
+ ICON ID_UNINSTGS, IDC_GSICON, 8, 8, 18, 20
+}
+
+
diff --git a/gs/src/echogs.c b/gs/src/echogs.c
index 4eaff4e0d..8660548c9 100644
--- a/gs/src/echogs.c
+++ b/gs/src/echogs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 'echo'-like utility */
#include "stdpre.h"
#include <stdio.h>
diff --git a/gs/src/errno_.h b/gs/src/errno_.h
index 2da5b9d73..06bd7d305 100644
--- a/gs/src/errno_.h
+++ b/gs/src/errno_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix errno.h */
#ifndef errno__INCLUDED
diff --git a/gs/src/errors.h b/gs/src/errors.h
index db3e991af..232dff323 100644
--- a/gs/src/errors.h
+++ b/gs/src/errors.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of error codes */
#ifndef errors_INCLUDED
diff --git a/gs/src/estack.h b/gs/src/estack.h
index 578fc63ca..670e5b0d8 100644
--- a/gs/src/estack.h
+++ b/gs/src/estack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for the execution stack */
#ifndef estack_INCLUDED
diff --git a/gs/src/files.h b/gs/src/files.h
index 6e7b6c827..bc2996f52 100644
--- a/gs/src/files.h
+++ b/gs/src/files.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for interpreter support for file objects */
/* Requires stream.h */
#ifndef files_INCLUDED
diff --git a/gs/src/gconf.c b/gs/src/gconf.c
index c0ae19f69..0d6058214 100644
--- a/gs/src/gconf.c
+++ b/gs/src/gconf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Configuration tables */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gconf.h b/gs/src/gconf.h
index 457e902ea..6ca236a42 100644
--- a/gs/src/gconf.h
+++ b/gs/src/gconf.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Wrapper for gconfig.h or a substitute. */
/*
diff --git a/gs/src/gdebug.h b/gs/src/gdebug.h
index 017aee976..94ba2196d 100644
--- a/gs/src/gdebug.h
+++ b/gs/src/gdebug.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Debugging machinery definitions */
#ifndef gdebug_INCLUDED
diff --git a/gs/src/gdev3852.c b/gs/src/gdev3852.c
index d93595042..0298e0d34 100644
--- a/gs/src/gdev3852.c
+++ b/gs/src/gdev3852.c
@@ -1,20 +1,10 @@
/* Copyright (C) 1989, 1992, 1993, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+
+/*$RCSfile$ $Revision$*/
+/* IBM 3852 JetPrinter color ink jet driver for Ghostscript */
/*
This driver program created by Kevin M. Gift <kgift@draper.com> in Sept. 1992.
@@ -27,9 +17,6 @@ Modified by L. Peter Deutsch <ghost@aladdin.com> 1999-01-10 to remove _ss
modifiers inappropriately copied from other code.
*/
-
-/* IBM 3852 JetPrinter color ink jet driver for Ghostscript */
-
#include "gdevprn.h"
#include "gdevpcl.h"
diff --git a/gs/src/gdev3b1.c b/gs/src/gdev3b1.c
index 4325470ca..18c3c4805 100644
--- a/gs/src/gdev3b1.c
+++ b/gs/src/gdev3b1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
* This is a driver for the AT&T 3b1/7300/UnixPC console display.
*
diff --git a/gs/src/gdev4081.c b/gs/src/gdev4081.c
index c29d14083..20cadb175 100644
--- a/gs/src/gdev4081.c
+++ b/gs/src/gdev4081.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Ricoh 4081 laser printer driver */
#include "gdevprn.h"
diff --git a/gs/src/gdev4693.c b/gs/src/gdev4693.c
index 1f1d511c1..8d7227bc0 100644
--- a/gs/src/gdev4693.c
+++ b/gs/src/gdev4693.c
@@ -6,7 +6,7 @@
* This software is provided "as is" without express or implied warranty.
*/
-
+/*$RCSfile$ $Revision$*/
/* Driver for the Tektronix 4693d color plotter. */
#include "gdevprn.h"
#define prn_dev ((gx_device_printer *)dev) /* needed in 5.31 et seq */
diff --git a/gs/src/gdev8510.c b/gs/src/gdev8510.c
index 05fc49894..33243e5a4 100644
--- a/gs/src/gdev8510.c
+++ b/gs/src/gdev8510.c
@@ -1,25 +1,13 @@
/* Copyright (C) 1990, 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
* C.Itoh M8510 printer driver for ghostscript.
- * by Bob Smith <bob@snuffy.penfield.ny.us>
+ *
+ * By Bob Smith <bob@snuffy.penfield.ny.us>
*/
#include "gdevprn.h"
diff --git a/gs/src/gdev8bcm.c b/gs/src/gdev8bcm.c
index 34b1cd7ca..8dd110431 100644
--- a/gs/src/gdev8bcm.c
+++ b/gs/src/gdev8bcm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dynamic color mapping for 8-bit displays */
#include "gx.h"
#include "gxdevice.h"
diff --git a/gs/src/gdev8bcm.h b/gs/src/gdev8bcm.h
index cbc9cfe9c..bac4f785e 100644
--- a/gs/src/gdev8bcm.h
+++ b/gs/src/gdev8bcm.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* 8-bit color map support */
/* Requires gxdevice.h (for gx_color_value) */
#ifndef gdev8bcm_INCLUDED
diff --git a/gs/src/gdevabuf.c b/gs/src/gdevabuf.c
index 0d10a0c1c..5b564a151 100644
--- a/gs/src/gdevabuf.c
+++ b/gs/src/gdevabuf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Alpha-buffering memory devices */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevadmp.c b/gs/src/gdevadmp.c
index a7509ad9e..89d5ad742 100644
--- a/gs/src/gdevadmp.c
+++ b/gs/src/gdevadmp.c
@@ -1,23 +1,12 @@
/* Copyright (C) 1989, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
+ * Apple DMP / Imagewriter driver
+ *
* This is a modification of Mark Wedel's Apple DMP and
* Jonathan Luckey's Imagewriter II driver to
* support the Imagewriter LQ's higher resolution (320x216):
diff --git a/gs/src/gdevalph.c b/gs/src/gdevalph.c
index 2de5cd06b..75d29f17c 100644
--- a/gs/src/gdevalph.c
+++ b/gs/src/gdevalph.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Alpha-channel storage device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevbbox.c b/gs/src/gdevbbox.c
index 90d0a9846..5e0ac5a08 100644
--- a/gs/src/gdevbbox.c
+++ b/gs/src/gdevbbox.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Device for tracking bounding box */
#include "math_.h"
#include "memory_.h"
@@ -89,7 +76,7 @@ gx_device_bbox gs_bbox_device =
MAX_RESOLUTION, MAX_RESOLUTION,
1, 8, 255, 0, 256, 1),
{bbox_open_device,
- NULL, /* get_initial_matrix */
+ gx_upright_get_initial_matrix,
NULL, /* sync_output */
bbox_output_page,
bbox_close_device,
@@ -877,7 +864,6 @@ typedef struct bbox_image_enum_s {
int y, height;
} bbox_image_enum;
-extern_st(st_gx_image_enum_common);
gs_private_st_suffix_add2(st_bbox_image_enum, bbox_image_enum,
"bbox_image_enum", bbox_image_enum_enum_ptrs, bbox_image_enum_reloc_ptrs,
st_gx_image_enum_common, pcpath, target_info);
diff --git a/gs/src/gdevbbox.h b/gs/src/gdevbbox.h
index 35cffa706..c5bea23f5 100644
--- a/gs/src/gdevbbox.h
+++ b/gs/src/gdevbbox.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions and interface for bbox (bounding box accumulator) device */
/* Requires gxdevice.h */
#ifndef gdevbbox_INCLUDED
diff --git a/gs/src/gdevbit.c b/gs/src/gdevbit.c
index dd529398d..1520f3a13 100644
--- a/gs/src/gdevbit.c
+++ b/gs/src/gdevbit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* "Plain bits" devices to measure rendering time. */
#include "math_.h"
#include "gdevprn.h"
diff --git a/gs/src/gdevbj10.c b/gs/src/gdevbj10.c
index 0e465cf65..7cb417b20 100644
--- a/gs/src/gdevbj10.c
+++ b/gs/src/gdevbj10.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Canon Bubble Jet BJ-10e and BJ200 printer driver */
#include "gdevprn.h"
diff --git a/gs/src/gdevbjc.h b/gs/src/gdevbjc.h
index 515bb3f67..3d4422e0f 100644
--- a/gs/src/gdevbjc.h
+++ b/gs/src/gdevbjc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
#ifndef gdevbjc_INCLUDED
# define gdevbjc_INCLUDED
diff --git a/gs/src/gdevbjcl.c b/gs/src/gdevbjcl.c
index 0be4be64a..1bbdb20d2 100644
--- a/gs/src/gdevbjcl.c
+++ b/gs/src/gdevbjcl.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Canon BJC command generation library */
#include "std.h"
#include "gdevbjcl.h"
diff --git a/gs/src/gdevbjcl.h b/gs/src/gdevbjcl.h
index 82c7df7be..71e265064 100644
--- a/gs/src/gdevbjcl.h
+++ b/gs/src/gdevbjcl.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Canon BJC command generation library interface */
/****** PRELIMINARY, SUBJECT TO CHANGE WITHOUT NOTICE. ******/
diff --git a/gs/src/gdevbmp.c b/gs/src/gdevbmp.c
index 4aebc2ccc..fa7b540a4 100644
--- a/gs/src/gdevbmp.c
+++ b/gs/src/gdevbmp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* .BMP file format output drivers */
#include "gdevprn.h"
#include "gdevpccm.h"
diff --git a/gs/src/gdevbmp.h b/gs/src/gdevbmp.h
index 487523c82..e67a5f033 100644
--- a/gs/src/gdevbmp.h
+++ b/gs/src/gdevbmp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* .BMP file format definitions and utility interfaces */
#ifndef gdevbmp_INCLUDED
diff --git a/gs/src/gdevbmpa.c b/gs/src/gdevbmpa.c
index f1add733e..736c76825 100644
--- a/gs/src/gdevbmpa.c
+++ b/gs/src/gdevbmpa.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$ */
/* .BMP file format output drivers: Demo of ASYNC rendering */
/* Initial version 2/2/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gdevbmpc.c b/gs/src/gdevbmpc.c
index e674ed4cb..563600f1e 100644
--- a/gs/src/gdevbmpc.c
+++ b/gs/src/gdevbmpc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* .BMP file format driver utilities */
#include "gdevprn.h"
#include "gdevbmp.h"
diff --git a/gs/src/gdevccr.c b/gs/src/gdevccr.c
index 01a294efc..4dd95b006 100644
--- a/gs/src/gdevccr.c
+++ b/gs/src/gdevccr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* CalComp Raster Format driver */
#include "gdevprn.h"
diff --git a/gs/src/gdevcd8.c b/gs/src/gdevcd8.c
index 2a600c33b..3b1b1b530 100644
--- a/gs/src/gdevcd8.c
+++ b/gs/src/gdevcd8.c
@@ -27,13 +27,12 @@
copyright notice and this notice be preserved on all copies.
*/
+/*$RCSfile$ $Revision$*/
-/* gdevcd8.c */
-
-/*----------------------------------------------------------------
-
+/*
A printer driver for the HP670, HP690, HP850, HP855
HP870, HP890, HP1100 and HP1600 color printers.
+
To be used with the Ghostscript printing system.
Please report all problems to uliw@erdw.ethz.ch
@@ -42,8 +41,7 @@
The support for the hp670, hp690, hp890
and hp1600 was added by Martin Gerbershagen.
-
--------------------------------------------------------------------*/
+*/
/* Note: Depending on how you transfered the files,
you might need to remove some CR-codes used on intel-based machines:
diff --git a/gs/src/gdevcdj.c b/gs/src/gdevcdj.c
index e187e7972..921a12157 100644
--- a/gs/src/gdevcdj.c
+++ b/gs/src/gdevcdj.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* H-P and Canon colour printer drivers */
/****************************************************************
diff --git a/gs/src/gdevcgm.c b/gs/src/gdevcgm.c
index 16c7493ed..d65e3c1b1 100644
--- a/gs/src/gdevcgm.c
+++ b/gs/src/gdevcgm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CGM (Computer Graphics Metafile) driver */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevcgml.c b/gs/src/gdevcgml.c
index 0c16e44b1..1b2911d66 100644
--- a/gs/src/gdevcgml.c
+++ b/gs/src/gdevcgml.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CGM-writing library */
#include "memory_.h"
#include "stdio_.h"
diff --git a/gs/src/gdevcgml.h b/gs/src/gdevcgml.h
index cc3184e6b..3891d9792 100644
--- a/gs/src/gdevcgml.h
+++ b/gs/src/gdevcgml.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface definitions for CGM-writing library */
#ifndef gdevcgml_INCLUDED
diff --git a/gs/src/gdevcgmx.h b/gs/src/gdevcgmx.h
index bdabc6ffa..44f372637 100644
--- a/gs/src/gdevcgmx.h
+++ b/gs/src/gdevcgmx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for CGM-writing library */
#ifndef gdevcgmx_INCLUDED
diff --git a/gs/src/gdevcif.c b/gs/src/gdevcif.c
index baa21ff2d..67901b0d8 100644
--- a/gs/src/gdevcif.c
+++ b/gs/src/gdevcif.c
@@ -1,23 +1,13 @@
/* Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
+/*
+ CIF output driver
-/* The `Fake bitmapped device to estimate rendering time'
+ The `Fake bitmapped device to estimate rendering time'
slightly modified to produce CIF files from PostScript.
So anyone can put a nice logo free on its chip!
Frederic Petrot, petrot@masi.ibp.fr */
diff --git a/gs/src/gdevclj.c b/gs/src/gdevclj.c
index 8451082ee..e5f70eb4b 100644
--- a/gs/src/gdevclj.c
+++ b/gs/src/gdevclj.c
@@ -1,24 +1,10 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
+/* $RCSfile$ $Revision$ */
/*
-
- *
* H-P Color LaserJet 5/5M device; based on the PaintJet.
*/
#include "math_.h"
@@ -31,7 +17,7 @@ typedef struct gx_device_clj_s gx_device_clj;
struct gx_device_clj_s {
gx_device_common;
gx_prn_device_common;
- int rotated; /* 0 = non-rotated, 1 = rotated */
+ bool rotated;
};
#define pclj ((gx_device_clj *)pdev)
@@ -62,7 +48,6 @@ struct gx_device_clj_s {
*/
#define USE_FAST_MODE
-
/* X_DPI and Y_DPI must be the same */
#define X_DPI 300
#define Y_DPI 300
@@ -131,12 +116,16 @@ is_supported_resolution(
return false;
}
+/* ---------------- Standard driver ---------------- */
+
/*
* Find the paper size information corresponding to a given pair of dimensions.
* If rotatep != 0, *rotatep is set to true if the page must be rotated 90
* degrees to fit.
*
* A return value of 0 indicates the paper size is not supported.
+ *
+ * Note that for the standard driver, rotation is not allowed.
*/
private const clj_paper_size *
get_paper_size(
@@ -180,7 +169,7 @@ clj_get_initial_matrix( gx_device *pdev, gs_matrix *pmat)
{
floatp fs_res = pdev->HWResolution[0] / 72.0;
floatp ss_res = pdev->HWResolution[1] / 72.0;
- clj_paper_size *psize;
+ const clj_paper_size *psize;
psize = get_paper_size(pdev->MediaSize, NULL);
/* if the paper size is not recognized, not much can be done */
@@ -196,8 +185,6 @@ clj_get_initial_matrix( gx_device *pdev, gs_matrix *pmat)
return;
}
- /* The 'rotated' flag is set in 'put_params' */
- /* all the pages are rotated, but we include code for both cases */
if (pclj->rotated) {
pmat->xx = 0.0;
pmat->xy = ss_res;
@@ -216,52 +203,41 @@ clj_get_initial_matrix( gx_device *pdev, gs_matrix *pmat)
}
/*
- * Special get_params routine, to fake MediaSize, width, and height if
- * we were in a 'rotated' state.
+ * Get the media size being set by put_params, if any. Return 0 if no media
+ * size is being set, 1 (and set mediasize[]) if the size is being set, <0
+ * on error.
*/
private int
-clj_get_params( gx_device *pdev, gs_param_list *plist )
+clj_media_size(float mediasize[2], gs_param_list *plist)
{
- int code;
+ gs_param_float_array fres;
+ gs_param_float_array fsize;
+ gs_param_int_array hwsize;
+ int have_pagesize = 0;
- /* First un-rotate the MediaSize, etc. if we were in a rotated mode */
- if (pclj->rotated) {
- float ftmp;
- int itmp;
+ if ( (param_read_float_array(plist, "HWResolution", &fres) == 0) &&
+ !is_supported_resolution(fres.data) )
+ return_error(gs_error_rangecheck);
- ftmp = pdev->MediaSize[0];
- pdev->MediaSize[0] = pdev->MediaSize[1];
- pdev->MediaSize[1] = ftmp;
- itmp = pdev->width;
- pdev->width = pdev->height;
- pdev->height = itmp;
+ if ( (param_read_float_array(plist, "PageSize", &fsize) == 0) ||
+ (param_read_float_array(plist, ".MediaSize", &fsize) == 0) ) {
+ mediasize[0] = fsize.data[0];
+ mediasize[1] = fsize.data[1];
+ have_pagesize = 1;
}
- /* process the parameter list */
- code = gdev_prn_get_params(pdev, plist);
-
- /* Now re-rotate the page size if needed */
- if (pclj->rotated) {
- float ftmp;
- int itmp;
-
- ftmp = pdev->MediaSize[0];
- pdev->MediaSize[0] = pdev->MediaSize[1];
- pdev->MediaSize[1] = ftmp;
- itmp = pdev->width;
- pdev->width = pdev->height;
- pdev->height = itmp;
+ if (param_read_int_array(plist, "HWSize", &hwsize) == 0) {
+ mediasize[0] = ((float)hwsize.data[0]) / fres.data[0];
+ mediasize[1] = ((float)hwsize.data[1]) / fres.data[1];
+ have_pagesize = 1;
}
- return code;
+ return have_pagesize;
}
/*
- * Special put_params routine, to intercept changes in the MediaSize, and to
- * make certain the desired MediaSize and HWResolution are supported.
- *
- * This function will rotate MediaSize if it is needed by the device in
- * order to print this size page.
+ * Special put_params routine, to make certain the desired MediaSize and
+ * HWResolution are supported.
*/
private int
clj_put_params(
@@ -269,64 +245,17 @@ clj_put_params(
gs_param_list * plist
)
{
- gs_param_float_array fres;
- gs_param_float_array fsize;
- gs_param_int_array hwsize;
float mediasize[2];
- int code = 0;
- int pagesize_flag = 0;
- bool rotate = 0;
-
- if ( (param_read_float_array(plist, "HWResolution", &fres) == 0) &&
- !is_supported_resolution(fres.data) )
- return_error(gs_error_rangecheck);
-
- if ( (param_read_float_array(plist, "PageSize", &fsize) == 0) ||
- (param_read_float_array(plist, ".MediaSize", &fsize) == 0) ) {
- mediasize[0] = fsize.data[0];
- mediasize[1] = fsize.data[1];
- pagesize_flag = 1;
- }
-
- if (param_read_int_array(plist, "HWSize", &hwsize) == 0) {
- mediasize[0] = ((float)hwsize.data[0]) / fres.data[0];
- mediasize[1] = ((float)hwsize.data[1]) / fres.data[1];
- pagesize_flag = 1;
- }
+ bool rotate = false;
+ int have_pagesize = clj_media_size(mediasize, plist);
- if (pagesize_flag) {
- if (get_paper_size(mediasize, &rotate) == 0)
+ if (have_pagesize < 0)
+ return have_pagesize;
+ if (have_pagesize) {
+ if (get_paper_size(mediasize, &rotate) == 0 || rotate)
return_error(gs_error_rangecheck);
- if (rotate) {
- /* We need to rotate the requested page size, so synthesize a new */
- /* parameter list in front of the requestor's list to force the */
- /* rotated page size. */
- gs_param_float_array pf_array;
- gs_c_param_list alist;
- float ftmp = mediasize[0];
-
- mediasize[0] = mediasize[1];
- mediasize[1] = ftmp;
- pf_array.data = mediasize;
- pf_array.size = 2;
- pf_array.persistent = false;
-
- gs_c_param_list_write(&alist, pdev->memory);
- code = param_write_float_array((gs_param_list *)&alist, ".MediaSize", &pf_array);
- gs_c_param_list_read(&alist);
-
- /* stick this synthesized parameter on the front of the existing list */
- gs_c_param_list_set_target(&alist, plist);
- if ((code = gdev_prn_put_params(pdev, (gs_param_list *)&alist)) >= 0)
- pclj->rotated = 1;
- gs_c_param_list_release(&alist);
- }
}
-
- else
- code = gdev_prn_put_params(pdev, plist);
-
- return code;
+ return gdev_prn_put_params(pdev, plist);
}
/*
@@ -467,10 +396,9 @@ clj_print_page(
cdata[2] = cdata[1] + clsize;
- /* Imageable area is without the margins. Note that the actual rotation of */
- /* page size into pdev->width & height has been done. We just use rotate to */
- /* access the correct offsets. Color laserjet is always long edge feed, we */
- /* just include the non-rotated case for completeness. */
+ /* Imageable area is without the margins. Note that the actual rotation
+ * of page size into pdev->width & height has been done. We just use
+ * rotate to access the correct offsets. */
if (pclj->rotated) {
imageable_width = pdev->width - (2 * psize->offsets.x) * fs_res;
imageable_height = pdev->height - (2 * psize->offsets.y) * ss_res;
@@ -536,68 +464,172 @@ clj_print_page(
}
/* CLJ device methods */
-private gx_device_procs clj_procs = {
- gdev_prn_open, /* open_device */
- clj_get_initial_matrix, /* get_initial matrix */
- NULL, /* sync_output */
- gdev_prn_output_page, /* output_page */
- gdev_prn_close, /* close_device */
- gdev_pcl_3bit_map_rgb_color, /* map_rgb_color */
- gdev_pcl_3bit_map_color_rgb, /* map_color_rgb */
- NULL, /* fill_rectangle */
- NULL, /* tile_rectangle */
- NULL, /* copy_mono */
- NULL, /* copy_color */
- NULL, /* obsolete draw_line */
- NULL, /* get_bits */
- clj_get_params, /* get_params */
- clj_put_params, /* put_params */
- NULL, /* map_cmyk_color */
- NULL, /* get_xfont_procs */
- NULL, /* get_xfont_device */
- NULL, /* map_rgb_alpha_color */
- gx_page_device_get_page_device, /* get_page_device */
- NULL, /* get_alpha_bits */
- NULL, /* copy_alpha */
- NULL, /* get_band */
- NULL, /* copy_rop */
- NULL, /* fill_path */
- NULL, /* stroke_path */
- NULL, /* fill_mask */
- NULL, /* fill_trapezoid */
- NULL, /* fill_parallelogram */
- NULL, /* fill_triangle */
- NULL, /* draw_thin_line */
- NULL, /* begin_image */
- NULL, /* image_data */
- NULL, /* end_image */
- NULL, /* strip_tile_rectangle */
- NULL, /* strip_copy_rop, */
- NULL, /* get_clipping_box */
- NULL, /* begin_typed_image */
- NULL, /* get_bits_rectangle */
- NULL, /* map_color_rgb_alpha */
- NULL, /* create_compositor */
- NULL, /* get_hardware_params */
- NULL /* text_begin */
+#define CLJ_PROCS(get_params, put_params)\
+ gdev_prn_open, /* open_device */\
+ clj_get_initial_matrix, /* get_initial matrix */\
+ NULL, /* sync_output */\
+ gdev_prn_output_page, /* output_page */\
+ gdev_prn_close, /* close_device */\
+ gdev_pcl_3bit_map_rgb_color, /* map_rgb_color */\
+ gdev_pcl_3bit_map_color_rgb, /* map_color_rgb */\
+ NULL, /* fill_rectangle */\
+ NULL, /* tile_rectangle */\
+ NULL, /* copy_mono */\
+ NULL, /* copy_color */\
+ NULL, /* obsolete draw_line */\
+ NULL, /* get_bits */\
+ get_params, /* get_params */\
+ put_params, /* put_params */\
+ NULL, /* map_cmyk_color */\
+ NULL, /* get_xfont_procs */\
+ NULL, /* get_xfont_device */\
+ NULL, /* map_rgb_alpha_color */\
+ gx_page_device_get_page_device /* get_page_device */
+
+private gx_device_procs cljet5_procs = {
+ CLJ_PROCS(gdev_prn_get_params, clj_put_params)
};
-/* the CLJ device */
+/* CLJ device structure */
+#define CLJ_DEVICE_BODY(procs, dname, rotated)\
+ prn_device_body(\
+ gx_device_clj,\
+ procs, /* procedures */\
+ dname, /* device name */\
+ 110, /* width - will be overridden subsequently */\
+ 85, /* height - will be overridden subsequently */\
+ X_DPI, Y_DPI, /* resolutions - current must be the same */\
+ 0.167, 0.167, /* margins (left, bottom, right, top */\
+ 0.167, 0.167,\
+ 3, /* num_components - 3 colors, 1 bit per pixel */\
+ 8, /* depth - pack into bytes */\
+ 1, 1, /* max_gray=max_component=1 */\
+ 2, 2, /* dithered_grays=dithered_components=2 */ \
+ clj_print_page /* routine to output page */\
+),\
+ rotated /* rotated - may be overridden subsequently */
+
gx_device_clj gs_cljet5_device = {
-prn_device_body(
- gx_device_clj,
- clj_procs, /* procedures */
- "cljet5", /* device name */
- 110, /* width - will be overridden subsequently */
- 85, /* height - will be overridden subsequently */
- X_DPI, Y_DPI, /* resolutions - current must be the same */
- 0.167, 0.167, /* margins (left, bottom, right, top */
- 0.167, 0.167,
- 3, /* num_components - 3 colors, 1 bit per pixel */
- 8, /* depth - pack into bytes */
- 1, 1, /* max_gray=max_component=1 */
- 2, 2, /* dithered_grays=dithered_components=2 */
- clj_print_page /* routine to output page */
-),
- 1 /* rotated - will be overridden subsequently */
+ CLJ_DEVICE_BODY(cljet5_procs, "cljet5", 0 /*false*/)
+};
+
+/* ---------------- Driver with page rotation ---------------- */
+
+/*
+ * For use with certain PCL interpreters, which don't implement
+ * setpagedevice, we provide a version of this driver that attempts to
+ * handle page rotation at the driver level. This version breaks an
+ * invariant that all drivers must obey, namely, that drivers are not
+ * allowed to change the parameters passed by put_params (they can only
+ * accept or reject them). Consequently, this driver must not be used in
+ * any context other than these specific PCL interpreters. We support this
+ * hack only because these PCL interpreters can't be changed to handle page
+ * rotation properly.
+ */
+
+/*
+ * Special get_params routine, to fake MediaSize, width, and height if
+ * we were in a 'rotated' state.
+ */
+private int
+clj_pr_get_params( gx_device *pdev, gs_param_list *plist )
+{
+ int code;
+
+ /* First un-rotate the MediaSize, etc. if we were in a rotated mode */
+ if (pclj->rotated) {
+ float ftmp;
+ int itmp;
+
+ ftmp = pdev->MediaSize[0];
+ pdev->MediaSize[0] = pdev->MediaSize[1];
+ pdev->MediaSize[1] = ftmp;
+ itmp = pdev->width;
+ pdev->width = pdev->height;
+ pdev->height = itmp;
+ }
+
+ /* process the parameter list */
+ code = gdev_prn_get_params(pdev, plist);
+
+ /* Now re-rotate the page size if needed */
+ if (pclj->rotated) {
+ float ftmp;
+ int itmp;
+
+ ftmp = pdev->MediaSize[0];
+ pdev->MediaSize[0] = pdev->MediaSize[1];
+ pdev->MediaSize[1] = ftmp;
+ itmp = pdev->width;
+ pdev->width = pdev->height;
+ pdev->height = itmp;
+ }
+
+ return code;
+}
+
+/*
+ * Special put_params routine, to intercept changes in the MediaSize, and to
+ * make certain the desired MediaSize and HWResolution are supported.
+ *
+ * This function will rotate MediaSize if it is needed by the device in
+ * order to print this size page.
+ */
+ private int
+clj_pr_put_params(
+ gx_device * pdev,
+ gs_param_list * plist
+)
+{
+ float mediasize[2];
+ int code = 0;
+ bool rotate = false;
+ int have_pagesize = clj_media_size(mediasize, plist);
+
+ if (have_pagesize < 0)
+ return have_pagesize;
+ if (have_pagesize) {
+ if (get_paper_size(mediasize, &rotate) == 0)
+ return_error(gs_error_rangecheck);
+ if (rotate) {
+ /* We need to rotate the requested page size, so synthesize a new */
+ /* parameter list in front of the requestor's list to force the */
+ /* rotated page size. */
+ gs_param_float_array pf_array;
+ gs_c_param_list alist;
+ float ftmp = mediasize[0];
+
+ mediasize[0] = mediasize[1];
+ mediasize[1] = ftmp;
+ pf_array.data = mediasize;
+ pf_array.size = 2;
+ pf_array.persistent = false;
+
+ gs_c_param_list_write(&alist, pdev->memory);
+ code = param_write_float_array((gs_param_list *)&alist, ".MediaSize", &pf_array);
+ gs_c_param_list_read(&alist);
+
+ /* stick this synthesized parameter on the front of the existing list */
+ gs_c_param_list_set_target(&alist, plist);
+ if ((code = gdev_prn_put_params(pdev, (gs_param_list *)&alist)) >= 0)
+ pclj->rotated = true;
+ gs_c_param_list_release(&alist);
+ } else {
+ if ((code = gdev_prn_put_params(pdev, plist)) >= 0)
+ pclj->rotated = false;
+ }
+ } else
+ code = gdev_prn_put_params(pdev, plist);
+
+ return code;
+}
+
+/* CLJ device methods -- se above for CLJ_PROCS */
+private gx_device_procs cljet5pr_procs = {
+ CLJ_PROCS(clj_pr_get_params, clj_pr_put_params)
+};
+
+/* CLJ device structure -- see above for CLJ_DEVICE_BODY */
+gx_device_clj gs_cljet5pr_device = {
+ CLJ_DEVICE_BODY(cljet5pr_procs, "cljet5pr", 1 /*true*/)
};
diff --git a/gs/src/gdevcljc.c b/gs/src/gdevcljc.c
index 45a1ec8f5..72bf24ccd 100644
--- a/gs/src/gdevcljc.c
+++ b/gs/src/gdevcljc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* H-P Color LaserJet 5/5M contone device; based on the gdevclj.c.
*/
diff --git a/gs/src/gdevcmap.c b/gs/src/gdevcmap.c
index 2990f3bcf..058df669d 100644
--- a/gs/src/gdevcmap.c
+++ b/gs/src/gdevcmap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Special color mapping device */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gdevcmap.h b/gs/src/gdevcmap.h
index 940013051..ce5912b02 100644
--- a/gs/src/gdevcmap.h
+++ b/gs/src/gdevcmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to special color mapping device */
#ifndef gdevcmap_INCLUDED
diff --git a/gs/src/gdevcp50.c b/gs/src/gdevcp50.c
index dc7911092..3adbfe841 100644
--- a/gs/src/gdevcp50.c
+++ b/gs/src/gdevcp50.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1994, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Mitsubishi CP50 color printer driver */
#include "gdevprn.h"
#define ppdev ((gx_device_printer *)pdev)
diff --git a/gs/src/gdevcslw.c b/gs/src/gdevcslw.c
index c6b7192d4..cb5cffecc 100644
--- a/gs/src/gdevcslw.c
+++ b/gs/src/gdevcslw.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CoStar LabelWriter II, II Plus driver for Ghostscript */
/* Contributed by Mike McCauley mikem@open.com.au */
diff --git a/gs/src/gdevdbit.c b/gs/src/gdevdbit.c
index 16604b304..7bfe0b943 100644
--- a/gs/src/gdevdbit.c
+++ b/gs/src/gdevdbit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default device bitmap copying implementation */
#include "gx.h"
#include "gpcheck.h"
@@ -413,6 +400,7 @@ gx_default_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
int rwidth = tiles->rep_width;
int rheight = tiles->rep_height;
int shift = tiles->shift;
+ gs_id tile_id = tiles->id;
fit_fill_xy(dev, x, y, w, h);
@@ -421,8 +409,8 @@ gx_default_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
int ptx, pty;
const byte *ptp = tiles->data;
- dlprintf3("[t]tile %dx%d raster=%d;",
- tiles->size.x, tiles->size.y, tiles->raster);
+ dlprintf4("[t]tile %dx%d raster=%d id=%lu;",
+ tiles->size.x, tiles->size.y, tiles->raster, tiles->id);
dlprintf6(" x,y=%d,%d w,h=%d,%d p=%d,%d\n",
x, y, w, h, px, py);
dlputs("");
@@ -481,53 +469,59 @@ gx_default_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
else
proc_color = 0, proc_mono = dev_proc(dev, copy_mono);
-/****** SHOULD ALSO PASS id IF COPYING A FULL TILE ******/
-#define real_copy_tile(srcx, tx, ty, tw, th)\
+#define real_copy_tile(srcx, tx, ty, tw, th, id)\
code =\
(proc_color != 0 ?\
- (*proc_color)(dev, row, srcx, raster, gx_no_bitmap_id, tx, ty, tw, th) :\
- (*proc_mono)(dev, row, srcx, raster, gx_no_bitmap_id, tx, ty, tw, th, color0, color1));\
- if ( code < 0 ) return_error(code);\
+ (*proc_color)(dev, row, srcx, raster, id, tx, ty, tw, th) :\
+ (*proc_mono)(dev, row, srcx, raster, id, tx, ty, tw, th, color0, color1));\
+ if (code < 0) return_error(code);\
return_if_interrupt()
#ifdef DEBUG
-#define copy_tile(srcx, tx, ty, tw, th)\
- if_debug5('t', " copy sx=%d => x=%d y=%d w=%d h=%d\n",\
- srcx, tx, ty, tw, th);\
- real_copy_tile(srcx, tx, ty, tw, th)
+#define copy_tile(srcx, tx, ty, tw, th, tid)\
+ if_debug6('t', " copy id=%lu sx=%d => x=%d y=%d w=%d h=%d\n",\
+ tid, srcx, tx, ty, tw, th);\
+ real_copy_tile(srcx, tx, ty, tw, th, tid)
#else
-#define copy_tile(srcx, tx, ty, tw, th)\
- real_copy_tile(srcx, tx, ty, tw, th)
+#define copy_tile(srcx, tx, ty, tw, th, id)\
+ real_copy_tile(srcx, tx, ty, tw, th, id)
#endif
if (ch >= h) { /* Shallow operation */
if (icw >= w) { /* Just one (partial) tile to transfer. */
- copy_tile(irx, x, y, w, h);
+ copy_tile(irx, x, y, w, h,
+ (w == width && h == height ? tile_id :
+ gs_no_bitmap_id));
} else {
int ex = x + w;
int fex = ex - width;
int cx = x + icw;
+ ulong id = (h == height ? tile_id : gs_no_bitmap_id);
- copy_tile(irx, x, y, icw, h);
+ copy_tile(irx, x, y, icw, h, gs_no_bitmap_id);
while (cx <= fex) {
- copy_tile(0, cx, y, width, h);
+ copy_tile(0, cx, y, width, h, id);
cx += width;
}
if (cx < ex) {
- copy_tile(0, cx, y, ex - cx, h);
+ copy_tile(0, cx, y, ex - cx, h, gs_no_bitmap_id);
}
}
- } else if (icw >= w && shift == 0) { /* Narrow operation, no shift */
+ } else if (icw >= w && shift == 0) {
+ /* Narrow operation, no shift */
int ey = y + h;
int fey = ey - height;
int cy = y + ch;
+ ulong id = (w == width ? tile_id : gs_no_bitmap_id);
- copy_tile(irx, x, y, w, ch);
+ copy_tile(irx, x, y, w, ch, (ch == height ? id : gs_no_bitmap_id));
row = tiles->data;
do {
ch = (cy > fey ? ey - cy : height);
- copy_tile(irx, x, cy, w, ch);
+ copy_tile(irx, x, cy, w, ch,
+ (ch == height ? id : gs_no_bitmap_id));
}
while ((cy += ch) < ey);
- } else { /* Full operation. If shift != 0, some scan lines */
+ } else {
+ /* Full operation. If shift != 0, some scan lines */
/* may be narrow. We could test shift == 0 in advance */
/* and use a slightly faster loop, but right now */
/* we don't bother. */
@@ -536,17 +530,20 @@ gx_default_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
int cx, cy;
for (cy = y;;) {
+ ulong id = (ch == height ? tile_id : gs_no_bitmap_id);
+
if (icw >= w) {
- copy_tile(irx, x, cy, w, ch);
+ copy_tile(irx, x, cy, w, ch,
+ (w == width ? id : gs_no_bitmap_id));
} else {
- copy_tile(irx, x, cy, icw, ch);
+ copy_tile(irx, x, cy, icw, ch, gs_no_bitmap_id);
cx = x + icw;
while (cx <= fex) {
- copy_tile(0, cx, cy, width, ch);
+ copy_tile(0, cx, cy, width, ch, id);
cx += width;
}
if (cx < ex) {
- copy_tile(0, cx, cy, ex - cx, ch);
+ copy_tile(0, cx, cy, ex - cx, ch, gs_no_bitmap_id);
}
}
if ((cy += ch) >= ey)
diff --git a/gs/src/gdevdcrd.c b/gs/src/gdevdcrd.c
index 6548f9d72..1c9c7bff7 100644
--- a/gs/src/gdevdcrd.c
+++ b/gs/src/gdevdcrd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Create a sample device CRD */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gdevdcrd.h b/gs/src/gdevdcrd.h
index ddd8ed1dc..68eaf323e 100644
--- a/gs/src/gdevdcrd.h
+++ b/gs/src/gdevdcrd.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface for creating a sample device CRD */
#ifndef gdevdcrd_INCLUDED
diff --git a/gs/src/gdevddrw.c b/gs/src/gdevddrw.c
index 5058e470d..abe7763d4 100644
--- a/gs/src/gdevddrw.c
+++ b/gs/src/gdevddrw.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default polygon and image drawing device procedures */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gdevdfax.c b/gs/src/gdevdfax.c
index 6759f1d76..8f12bc1bb 100644
--- a/gs/src/gdevdfax.c
+++ b/gs/src/gdevdfax.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* DigiBoard fax device. */
/***
*** Note: this driver is maintained by a user: please contact
diff --git a/gs/src/gdevdflt.c b/gs/src/gdevdflt.c
index 0ea15bf82..040d698da 100644
--- a/gs/src/gdevdflt.c
+++ b/gs/src/gdevdflt.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default device implementation */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gdevdgbr.c b/gs/src/gdevdgbr.c
index b5e5973b8..5880def9d 100644
--- a/gs/src/gdevdgbr.c
+++ b/gs/src/gdevdgbr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default implementation of device get_bits[_rectangle] */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevdjet.c b/gs/src/gdevdjet.c
index 6e155461f..ad519178a 100644
--- a/gs/src/gdevdjet.c
+++ b/gs/src/gdevdjet.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* HP LaserJet/DeskJet driver for Ghostscript */
#include "gdevprn.h"
#include "gdevpcl.h"
diff --git a/gs/src/gdevdjtc.c b/gs/src/gdevdjtc.c
index 77892b209..c25fa8806 100644
--- a/gs/src/gdevdjtc.c
+++ b/gs/src/gdevdjtc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1990, 1991 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* HP DeskJet 500C driver */
#include "gdevprn.h"
#include "gdevpcl.h"
diff --git a/gs/src/gdevdm24.c b/gs/src/gdevdm24.c
index 704eaf5ba..43e75d1b9 100644
--- a/gs/src/gdevdm24.c
+++ b/gs/src/gdevdm24.c
@@ -1,25 +1,12 @@
/* Copyright (C) 1992, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
#include "gdevprn.h"
-
+/*$RCSfile$ $Revision$*/
/* High-res 24Dot-matrix printer driver */
/* Supported printers
diff --git a/gs/src/gdevdrop.c b/gs/src/gdevdrop.c
index 8b114847f..6c6ac9276 100644
--- a/gs/src/gdevdrop.c
+++ b/gs/src/gdevdrop.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default and device-independent RasterOp algorithms */
#include "memory_.h"
#include "gx.h"
@@ -134,10 +121,11 @@ gx_default_strip_copy_rop(gx_device * dev,
if (max_height == 0)
max_height = 1;
block_height = min(height, max_height);
- gs_make_mem_device(&mdev, mdproto, 0, -1, dev);
+ gs_make_mem_device(&mdev, mdproto, mem, -1, dev);
+ gx_device_retain((gx_device *)&mdev, true); /* prevent freeing */
mdev.width = width;
mdev.height = block_height;
- mdev.bitmap_memory = mdev.memory = mem;
+ mdev.bitmap_memory = mem;
mdev.color_info = dev->color_info;
code = (*dev_proc(&mdev, open_device))((gx_device *)&mdev);
if (code < 0)
@@ -446,7 +434,8 @@ mem_default_strip_copy_rop(gx_device * dev,
if (textures->size.y < block_height)
block_height = textures->size.y;
}
- gs_make_mem_device(&mdev, mdproto, 0, -1, NULL);
+ gs_make_mem_device(&mdev, mdproto, mem, -1, NULL);
+ gx_device_retain((gx_device *)&mdev, true); /* prevent freeing */
mdev.width = width;
mdev.height = block_height;
mdev.color_info.num_components = rop_depth >> 3;
diff --git a/gs/src/gdevegaa.asm b/gs/src/gdevegaa.asm
index e54a08c83..0fc7f8bfa 100644
--- a/gs/src/gdevegaa.asm
+++ b/gs/src/gdevegaa.asm
@@ -1,21 +1,8 @@
; Copyright (C) 1989, 1992 Aladdin Enterprises. All rights reserved.
-;
-; This file is part of Aladdin Ghostscript.
-;
-; Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-; or distributor accepts any responsibility for the consequences of using it,
-; or for whether it serves any particular purpose or works at all, unless he
-; or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-; License (the "License") for full details.
-;
-; Every copy of Aladdin Ghostscript must include a copy of the License,
-; normally in a plain ASCII text file named PUBLIC. The License grants you
-; the right to copy, modify and redistribute Aladdin Ghostscript, but only
-; under certain conditions described in the License. Among other things, the
-; License requires that the copyright notice and this notice be preserved on
-; all copies.
-
+; This software is licensed to a single customer by Artifex Software Inc.
+; under the terms of a specific OEM agreement.
+; $RCSfile$ $Revision$
; gdevegaasm.asm
; Assembly code for Ghostscript PC frame buffer driver
diff --git a/gs/src/gdevemap.c b/gs/src/gdevemap.c
index 799207c1c..5ec16a8b6 100644
--- a/gs/src/gdevemap.c
+++ b/gs/src/gdevemap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Mappings between StandardEncoding and ISOLatin1Encoding */
#include "std.h"
diff --git a/gs/src/gdevepsc.c b/gs/src/gdevepsc.c
index 0550c5e65..a75e9d7f9 100644
--- a/gs/src/gdevepsc.c
+++ b/gs/src/gdevepsc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson color dot-matrix printer driver by dave@exlog.com */
#include "gdevprn.h"
diff --git a/gs/src/gdevepsn.c b/gs/src/gdevepsn.c
index 100ceda58..a799f75c0 100644
--- a/gs/src/gdevepsn.c
+++ b/gs/src/gdevepsn.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989-1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
* Epson (and similar) dot-matrix printer driver for Ghostscript.
*
diff --git a/gs/src/gdevescp.c b/gs/src/gdevescp.c
index 4936af07e..4cc55b540 100644
--- a/gs/src/gdevescp.c
+++ b/gs/src/gdevescp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
* Epson 'ESC/P 2' language printer driver.
*
diff --git a/gs/src/gdevevga.c b/gs/src/gdevevga.c
index b3364dda3..a68eb6e28 100644
--- a/gs/src/gdevevga.c
+++ b/gs/src/gdevevga.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* IBM PC EGA and VGA display drivers */
/* All of the real code is in gdevpcfb.c. */
#include "memory_.h"
diff --git a/gs/src/gdevherc.c b/gs/src/gdevherc.c
index 8194b39c3..963fff2f8 100644
--- a/gs/src/gdevherc.c
+++ b/gs/src/gdevherc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1991, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* IBM PC-compatible Hercules Graphics display driver */
/* using direct access to frame buffer */
diff --git a/gs/src/gdevhit.c b/gs/src/gdevhit.c
index 0113edbe9..faa51b80b 100644
--- a/gs/src/gdevhit.c
+++ b/gs/src/gdevhit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Hit detection device */
#include "std.h"
#include "gserror.h"
diff --git a/gs/src/gdevhl7x.c b/gs/src/gdevhl7x.c
index e46571645..68e89928f 100644
--- a/gs/src/gdevhl7x.c
+++ b/gs/src/gdevhl7x.c
@@ -1,27 +1,17 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
-/* gdevdhl7x.c */
-/* Brother HL 720 and 730 driver for Ghostscript */
-/* (owners of the 760 should use the HP driver) */
-/* The original code was borrowed from the */
-/* HP LaserJet/DeskJet driver for Ghostscript */
-/* The code specific to the Brother HL 720 was written by :
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+
+/* $RCSfile$ $Revision$ */
+/*
+ * Brother HL 720 and 730 driver for Ghostscript
+ *
+ * Note: for the HL 760, use the HP driver.
+ *
+ * The original code was borrowed from the
+ * HP LaserJet/DeskJet driver for Ghostscript.
+ * The code specific to the Brother HL 720 was written by :
* Pierre-Olivier Gaillard (pierre.gaillard@hol.fr)
* Thanks to the documentation kindly provided by :
* Richard Thomas <RICHARDT@brother.co.uk>
diff --git a/gs/src/gdevht.c b/gs/src/gdevht.c
index fd2499ee7..e777636c8 100644
--- a/gs/src/gdevht.c
+++ b/gs/src/gdevht.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Halftoning device implementation */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gdevht.h b/gs/src/gdevht.h
index 16faa0261..62c63d3f9 100644
--- a/gs/src/gdevht.h
+++ b/gs/src/gdevht.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Halftoning "device" definitions */
/* Requires gxdevice.h */
#ifndef gdevht_INCLUDED
diff --git a/gs/src/gdevifno.c b/gs/src/gdevifno.c
index 0cd2cf325..2bb3d6800 100644
--- a/gs/src/gdevifno.c
+++ b/gs/src/gdevifno.c
@@ -11,10 +11,13 @@
* OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
*/
+/* $RCSfile$ $Revision$ */
/*
- * gdevifno.c: gs device to generate inferno bitmaps
+ * gs device to generate inferno bitmaps
+ *
* Russ Cox <rsc@plan9.bell-labs.com>, 3/25/98
* Updated to fit in the standard GS distribution, 5/14/98
+ * Comments edited for automatic TOC generation, 11/4/99
*/
#include "gdevprn.h"
diff --git a/gs/src/gdevimgn.c b/gs/src/gdevimgn.c
index 7010383aa..ca59da19c 100644
--- a/gs/src/gdevimgn.c
+++ b/gs/src/gdevimgn.c
@@ -1,29 +1,14 @@
/* Copyright (C) 1992, 1993, 1994, 1996 by Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
-
-/* ---------------------------------------------------------- */
-/* gdevimgn.c - version 1.4 */
-/* Imagen ImPRESS printer driver */
-
-/* This driver uses the Impress bitmap operation to print the
- page image. */
-/* -------------------------------------------------------- */
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+
+/*$RCSfile$ $Revision$*/
+/*
+ * Imagen ImPRESS printer driver - version 1.4
+ *
+ * This driver uses the Impress bitmap operation to print the page image.
+ */
/* Written by Alan Millar (AMillar@bolis.sf-bay.org) August 4 1992.
Basic bitmap dump. */
diff --git a/gs/src/gdevjpeg.c b/gs/src/gdevjpeg.c
index d080c9646..d9e911030 100644
--- a/gs/src/gdevjpeg.c
+++ b/gs/src/gdevjpeg.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* JPEG output driver */
#include "stdio_.h" /* for jpeglib.h */
#include "jpeglib_.h"
diff --git a/gs/src/gdevl256.c b/gs/src/gdevl256.c
index e6c8eedda..b076ce6da 100644
--- a/gs/src/gdevl256.c
+++ b/gs/src/gdevl256.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Ghostscript driver for 256-color VGA modes with Linux and vgalib */
/* This Driver was derived from the BGI-Driver. It was written
only for my own purpose. I never planned to release it or send
diff --git a/gs/src/gdevl31s.c b/gs/src/gdevl31s.c
index 5fe275e69..7379d4542 100644
--- a/gs/src/gdevl31s.c
+++ b/gs/src/gdevl31s.c
@@ -1,22 +1,12 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$ */
/*
+ * H-P LaserJet 3100 driver
+ *
* This is a driver for use with the H-P LaserJet 3100 Software.
* It requires installed H-P LaserJet 3100 Software to print.
* It can be used with smbclient to print from an UNIX box
diff --git a/gs/src/gdevlbp8.c b/gs/src/gdevlbp8.c
index 73fa7a7cf..4c6b4b8d8 100644
--- a/gs/src/gdevlbp8.c
+++ b/gs/src/gdevlbp8.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1994, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Canon LBP-8II and LIPS III driver */
#include "gdevprn.h"
diff --git a/gs/src/gdevlj56.c b/gs/src/gdevlj56.c
index 0df723419..0face3587 100644
--- a/gs/src/gdevlj56.c
+++ b/gs/src/gdevlj56.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* H-P LaserJet 5 & 6 drivers for Ghostscript */
#include "gdevprn.h"
#include "gdevpcl.h"
diff --git a/gs/src/gdevlp8k.c b/gs/src/gdevlp8k.c
index 72059496b..7d1a8bddf 100644
--- a/gs/src/gdevlp8k.c
+++ b/gs/src/gdevlp8k.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* EPSON LP-8000 ESC-sequence Laser Printer driver for Ghostscript.
diff --git a/gs/src/gdevlxm.c b/gs/src/gdevlxm.c
index c3f0384fa..09e88ef53 100644
--- a/gs/src/gdevlxm.c
+++ b/gs/src/gdevlxm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989-1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
* Lexmark 5700 ink-jet printer driver for Ghostscript
*
diff --git a/gs/src/gdevm1.c b/gs/src/gdevm1.c
index eed078c60..f05a2d5bd 100644
--- a/gs/src/gdevm1.c
+++ b/gs/src/gdevm1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Monobit "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevm16.c b/gs/src/gdevm16.c
index 2233a627c..87533c3c8 100644
--- a/gs/src/gdevm16.c
+++ b/gs/src/gdevm16.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 16-bit-per-pixel "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevm2.c b/gs/src/gdevm2.c
index 56ba80b7f..14e52ddc4 100644
--- a/gs/src/gdevm2.c
+++ b/gs/src/gdevm2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 2-bit-per-pixel "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevm24.c b/gs/src/gdevm24.c
index fd5802d27..92db04112 100644
--- a/gs/src/gdevm24.c
+++ b/gs/src/gdevm24.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 24-bit-per-pixel "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevm32.c b/gs/src/gdevm32.c
index 8d4e29760..a23009f2f 100644
--- a/gs/src/gdevm32.c
+++ b/gs/src/gdevm32.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 32-bit-per-pixel "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevm4.c b/gs/src/gdevm4.c
index 3bd753c43..a04ebb877 100644
--- a/gs/src/gdevm4.c
+++ b/gs/src/gdevm4.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 4-bit-per-pixel "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevm8.c b/gs/src/gdevm8.c
index f9422adc3..3130b2078 100644
--- a/gs/src/gdevm8.c
+++ b/gs/src/gdevm8.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 8-bit-per-pixel "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmeds.c b/gs/src/gdevmeds.c
index 5ab9b0d2f..7d220d0ca 100644
--- a/gs/src/gdevmeds.c
+++ b/gs/src/gdevmeds.c
@@ -1,24 +1,14 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$ */
/*
+ * Media selection support for printer drivers
+ *
* Select from a NULL terminated list of media the smallest medium which is
- * allmost equal or larger then the actual imagesize.
+ * almost equal or larger then the actual imagesize.
*
* Written by Ulrich Schmid, uschmid@mail.hh.provi.de.
*/
diff --git a/gs/src/gdevmeds.h b/gs/src/gdevmeds.h
index 0f6e34389..c0b2f3779 100644
--- a/gs/src/gdevmeds.h
+++ b/gs/src/gdevmeds.h
@@ -1,21 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$ */
/* Interface for gdevmeds.c */
#ifndef gdevmeds_INCLUDED
diff --git a/gs/src/gdevmem.c b/gs/src/gdevmem.c
index ccb8b4836..e3d54c803 100644
--- a/gs/src/gdevmem.c
+++ b/gs/src/gdevmem.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmem.h b/gs/src/gdevmem.h
index 9d68987da..536672827 100644
--- a/gs/src/gdevmem.h
+++ b/gs/src/gdevmem.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Private definitions for memory devices. */
#ifndef gdevmem_INCLUDED
diff --git a/gs/src/gdevmgr.c b/gs/src/gdevmgr.c
index 83af43fb3..515c13950 100644
--- a/gs/src/gdevmgr.c
+++ b/gs/src/gdevmgr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* MGR device driver */
#include "gdevprn.h"
#include "gdevpccm.h"
diff --git a/gs/src/gdevmgr.h b/gs/src/gdevmgr.h
index 7fe3eb74d..c681732a9 100644
--- a/gs/src/gdevmgr.h
+++ b/gs/src/gdevmgr.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Common header file for MGR devices */
#ifndef gdevmgr_INCLUDED
diff --git a/gs/src/gdevmiff.c b/gs/src/gdevmiff.c
index e3fdd78fd..69e470ff8 100644
--- a/gs/src/gdevmiff.c
+++ b/gs/src/gdevmiff.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MIFF file format driver */
#include "gdevprn.h"
diff --git a/gs/src/gdevmpla.c b/gs/src/gdevmpla.c
index c3869edf7..c84491a76 100644
--- a/gs/src/gdevmpla.c
+++ b/gs/src/gdevmpla.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Any-depth planar "memory" (stored bitmap) device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmpla.h b/gs/src/gdevmpla.h
index 031442428..86562ade9 100644
--- a/gs/src/gdevmpla.h
+++ b/gs/src/gdevmpla.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to planar memory devices. */
#ifndef gdevmpla_INCLUDED
diff --git a/gs/src/gdevmr1.c b/gs/src/gdevmr1.c
index ec8ac77a4..b4eaead0e 100644
--- a/gs/src/gdevmr1.c
+++ b/gs/src/gdevmr1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp implementation for monobit memory devices */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmr2n.c b/gs/src/gdevmr2n.c
index 4652c4d50..b7f760e21 100644
--- a/gs/src/gdevmr2n.c
+++ b/gs/src/gdevmr2n.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp implementation for 2- and 4-bit memory devices */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmr8n.c b/gs/src/gdevmr8n.c
index 342ae7ecf..3296a276e 100644
--- a/gs/src/gdevmr8n.c
+++ b/gs/src/gdevmr8n.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp implementation for 8N-bit memory devices */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmrop.h b/gs/src/gdevmrop.h
index 800373957..407bb5faa 100644
--- a/gs/src/gdevmrop.h
+++ b/gs/src/gdevmrop.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for device RasterOp implementations. */
/* Requires gxdevmem.h, gsropt.h */
diff --git a/gs/src/gdevmrun.c b/gs/src/gdevmrun.c
index 35cf5dbbf..0e87e0c92 100644
--- a/gs/src/gdevmrun.c
+++ b/gs/src/gdevmrun.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Run-length encoded memory device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevmrun.h b/gs/src/gdevmrun.h
index 8dac8d254..6734eba03 100644
--- a/gs/src/gdevmrun.h
+++ b/gs/src/gdevmrun.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of run-length encoded memory device */
#ifndef gdevmrun_INCLUDED
diff --git a/gs/src/gdevmswn.c b/gs/src/gdevmswn.c
index f313ca9b5..16f4b8b93 100644
--- a/gs/src/gdevmswn.c
+++ b/gs/src/gdevmswn.c
@@ -1,24 +1,12 @@
/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* Microsoft Windows 3.n driver for Ghostscript.
+ *
* Original version by Russell Lang and Maurice Castro with help from
* Programming Windows, 2nd Ed., Charles Petzold, Microsoft Press;
* created from gdevbgi.c and gnuplot/term/win.trm 5th June 1992.
diff --git a/gs/src/gdevmswn.h b/gs/src/gdevmswn.h
index d53fe1617..5e75f3259 100644
--- a/gs/src/gdevmswn.h
+++ b/gs/src/gdevmswn.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Shared definitions for Microsoft Windows 3.n drivers */
#ifndef gdevmswn_INCLUDED
diff --git a/gs/src/gdevmsxf.c b/gs/src/gdevmsxf.c
index ac28ffa71..9f1e38b88 100644
--- a/gs/src/gdevmsxf.c
+++ b/gs/src/gdevmsxf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* External font (xfont) implementation for Microsoft Windows. */
#include "ctype_.h"
#include "math_.h"
diff --git a/gs/src/gdevn533.c b/gs/src/gdevn533.c
index 5be341901..166179a69 100644
--- a/gs/src/gdevn533.c
+++ b/gs/src/gdevn533.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1990, 1991, 1993, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Sony NWP-533 driver for GhostScript */
#include "gdevprn.h"
#define prn_dev ((gx_device_printer *)dev) /* needed in 5.31 et seq */
diff --git a/gs/src/gdevnfwd.c b/gs/src/gdevnfwd.c
index ed82a0f04..afff89f92 100644
--- a/gs/src/gdevnfwd.c
+++ b/gs/src/gdevnfwd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Null and forwarding device implementation */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gdevo182.c b/gs/src/gdevo182.c
index 2fb97446d..7c214157b 100644
--- a/gs/src/gdevo182.c
+++ b/gs/src/gdevo182.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Okidata Microline 182 printer driver */
/* Contributed by Maarten Koning (smeg@bnr.ca) April 4, 1993 */
diff --git a/gs/src/gdevokii.c b/gs/src/gdevokii.c
index f334fa3bb..572623f00 100644
--- a/gs/src/gdevokii.c
+++ b/gs/src/gdevokii.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
* Okidata IBM compatible dot-matrix printer driver for Ghostscript.
*
diff --git a/gs/src/gdevos2p.c b/gs/src/gdevos2p.c
index 620ae38e0..9f3104063 100644
--- a/gs/src/gdevos2p.c
+++ b/gs/src/gdevos2p.c
@@ -1,26 +1,13 @@
-/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* OS/2 printer device
- * by Russell Lang.
- * Derived from mswinpr2 device by Russell Lang and
+ *
+ * By Russell Lang, derived from mswinpr2 device by Russell Lang and
* L. Peter Deutsch, Aladdin Enterprises.
*/
diff --git a/gs/src/gdevp2up.c b/gs/src/gdevp2up.c
index 20dd4a639..44284bff8 100644
--- a/gs/src/gdevp2up.c
+++ b/gs/src/gdevp2up.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* A "2-up" PCX device for testing page objects. */
#include "gdevprn.h"
#include "gdevpccm.h"
diff --git a/gs/src/gdevpbm.c b/gs/src/gdevpbm.c
index 885bf1288..7fb1f8b0a 100644
--- a/gs/src/gdevpbm.c
+++ b/gs/src/gdevpbm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Portable Bit/Gray/PixMap drivers */
#include "gdevprn.h"
#include "gscdefs.h"
diff --git a/gs/src/gdevpccm.c b/gs/src/gdevpccm.c
index 3e073cf37..dfb2d314a 100644
--- a/gs/src/gdevpccm.c
+++ b/gs/src/gdevpccm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Support routines for PC color mapping */
#include "gx.h"
#include "gsmatrix.h" /* for gxdevice.h */
diff --git a/gs/src/gdevpccm.h b/gs/src/gdevpccm.h
index 2a1680a4b..be1f02d60 100644
--- a/gs/src/gdevpccm.h
+++ b/gs/src/gdevpccm.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1992 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* PC color mapping support */
/* Requires gxdevice.h */
#ifndef gdevpccm_INCLUDED
diff --git a/gs/src/gdevpcfb.c b/gs/src/gdevpcfb.c
index 5e4afbedf..039b9847a 100644
--- a/gs/src/gdevpcfb.c
+++ b/gs/src/gdevpcfb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* IBM PC frame buffer (EGA/VGA) drivers */
#include "memory_.h"
#include "gconfigv.h" /* for USE_ASM */
diff --git a/gs/src/gdevpcfb.h b/gs/src/gdevpcfb.h
index 9d22ee5a4..e1775a634 100644
--- a/gs/src/gdevpcfb.h
+++ b/gs/src/gdevpcfb.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* IBM PC frame buffer definitions */
#ifndef gdevpcfb_INCLUDED
diff --git a/gs/src/gdevpcl.c b/gs/src/gdevpcl.c
index 80f7be869..865087b47 100644
--- a/gs/src/gdevpcl.c
+++ b/gs/src/gdevpcl.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utilities for PCL printers */
#include "gdevprn.h"
#include "gdevpcl.h"
diff --git a/gs/src/gdevpcl.h b/gs/src/gdevpcl.h
index 52c8bb716..7e4442da6 100644
--- a/gs/src/gdevpcl.h
+++ b/gs/src/gdevpcl.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1992, 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Support for PCL-based printer drivers */
/* Requires gdevprn.h */
#ifndef gdevpcl_INCLUDED
diff --git a/gs/src/gdevpcx.c b/gs/src/gdevpcx.c
index ab8de1e09..b7be84a09 100644
--- a/gs/src/gdevpcx.c
+++ b/gs/src/gdevpcx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PCX file format drivers */
#include "gdevprn.h"
#include "gdevpccm.h"
diff --git a/gs/src/gdevpdf.c b/gs/src/gdevpdf.c
index 056b7baa3..5f8874878 100644
--- a/gs/src/gdevpdf.c
+++ b/gs/src/gdevpdf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PDF-writing driver */
#include "memory_.h"
#include "string_.h"
@@ -26,6 +13,11 @@
#include "gxdevice.h"
#include "gdevpdfx.h"
+/* Define the default language level and PDF compatibility level. */
+/* Acrobat 3 (PDF 1.2) is the default. */
+#define PSDF_VERSION_INITIAL psdf_version_level2
+#define PDF_COMPATIBILITY_LEVEL_INITIAL 1.2
+
/* Define the names of the resource types. */
private const char *const resource_type_names[] = {
pdf_resource_type_names
@@ -47,6 +39,9 @@ private
ENUM_PTRS_WITH(device_pdfwrite_enum_ptrs, gx_device_pdf *pdev)
{
index -= gx_device_pdf_num_ptrs + gx_device_pdf_num_strings;
+ if (index < PDF_NUM_STD_FONTS)
+ ENUM_RETURN(pdev->std_fonts[index].font);
+ index -= PDF_NUM_STD_FONTS;
if (index < NUM_RESOURCE_TYPES * NUM_RESOURCE_CHAINS)
ENUM_RETURN(pdev->resources[index / NUM_RESOURCE_CHAINS].chains[index % NUM_RESOURCE_CHAINS]);
index -= NUM_RESOURCE_TYPES * NUM_RESOURCE_CHAINS;
@@ -77,6 +72,8 @@ private RELOC_PTRS_WITH(device_pdfwrite_reloc_ptrs, gx_device_pdf *pdev)
{
int i, j;
+ for (i = 0; i < PDF_NUM_STD_FONTS; ++i)
+ RELOC_PTR(gx_device_pdf, std_fonts[i].font);
for (i = 0; i < NUM_RESOURCE_TYPES; ++i)
for (j = 0; j < NUM_RESOURCE_CHAINS; ++j)
RELOC_PTR(gx_device_pdf, resources[i].chains[j]);
@@ -157,10 +154,27 @@ const gx_device_pdf gs_pdfwrite_device =
NULL, /* map_color_rgb_alpha */
NULL, /* create_compositor */
NULL, /* get_hardware_params */
- gdev_pdf_text_begin
+ /****************************************************************
+ *
+ * Temporarily disable text handling in the PDF writer. We will
+ * re-enable it in the next beta release.
+ *
+ ****************************************************************/
+ 0 /****** gdev_pdf_text_begin ******/
},
- psdf_initial_values(psdf_version_ll3, 0 /*false */ ), /* (!ASCII85EncodePages) */
- 1.3, /* CompatibilityLevel */
+ psdf_initial_values(PSDF_VERSION_INITIAL, 0 /*false */ ), /* (!ASCII85EncodePages) */
+ PDF_COMPATIBILITY_LEVEL_INITIAL, /* CompatibilityLevel */
+#ifdef POST60
+ 0 /*false*/, /* Optimize */
+ 0 /*false*/, /* ParseDSCCommentsForDocInfo */
+ 0 /*false*/, /* ParseDSCComments */
+ 0 /*false*/, /* EmitDSCWarnings */
+ 0 /*false*/, /* CreateJobTicket */
+ 0 /*false*/, /* PreserveEPSInfo */
+ 0 /*false*/, /* AutoPositionEPSFile */
+ 0 /*false*/, /* PreserveCopyPage */
+ 0 /*false*/, /* UsePrologue */
+#endif
1 /*true */ , /* ReAssignCharacters */
1 /*true */ , /* ReEncodeCharacters */
1, /* FirstObjectNumber */
@@ -182,9 +196,8 @@ const gx_device_pdf gs_pdfwrite_device =
0, /* contents_length_id */
0, /* contents_pos */
NoMarks, /* procsets */
- -1, /* flatness */
- {gx_line_params_initial}, /* line_params */
{pdf_text_state_default}, /* text */
+ {{0}}, /* std_fonts */
{0}, /* space_char_ids */
0, /* pages */
0, /* num_pages */
@@ -567,19 +580,20 @@ pdf_close(gx_device * dev)
long resource_pos;
long Catalog_id = pdev->Catalog->id, Info_id = pdev->Info->id,
Pages_id = pdev->Pages->id;
+ long Threads_id = 0;
+ bool partial_page = (pdev->contents_id != 0 && pdev->next_page != 0);
/*
- * If this is an EPS file, or if the file has produced no marks
- * at all, we need to tidy up a little so as not to produce
- * illegal PDF. We recognize EPS files as having some contents
- * but no showpage.
+ * If this is an EPS file, or if the file didn't end with a showpage for
+ * some other reason, or if the file has produced no marks at all, we
+ * need to tidy up a little so as not to produce illegal PDF. However,
+ * if there is at least one complete page, we discard any leftover
+ * marks.
*/
- if (pdev->next_page == 0) {
+ if (pdev->next_page == 0)
pdf_open_document(pdev);
- if (pdev->contents_id != 0) {
- pdf_close_page(pdev);
- }
- }
+ if (pdev->contents_id != 0)
+ pdf_close_page(pdev);
/* Write the page objects. */
@@ -599,6 +613,9 @@ pdf_close(gx_device * dev)
pdf_open_obj(pdev, Pages_id);
s = pdev->strm;
pputs(s, "<< /Type /Pages /Kids [\n");
+ /* Omit the last page if it was incomplete. */
+ if (partial_page)
+ --(pdev->next_page);
{
int i;
@@ -636,16 +653,16 @@ pdf_close(gx_device * dev)
/* Write the Catalog. */
- pdf_open_obj(pdev, Catalog_id);
- s = pdev->strm;
- pputs(s, "<<");
- pprintld1(s, "/Type /Catalog /Pages %ld 0 R\n", Pages_id);
- if (pdev->outlines_id != 0)
- pprintld1(s, "/Outlines %ld 0 R\n", pdev->outlines_id);
+ /*
+ * The PDF specification requires Threads to be an indirect object.
+ * Write the threads now, if any.
+ */
if (pdev->articles != 0) {
pdf_article_t *part;
- pputs(s, "/Threads [ ");
+ Threads_id = pdf_begin_obj(pdev);
+ s = pdev->strm;
+ pputs(s, "[ ");
while ((part = pdev->articles) != 0) {
pdev->articles = part->next;
pprintld1(s, "%ld 0 R\n", part->contents->id);
@@ -653,7 +670,16 @@ pdf_close(gx_device * dev)
gs_free_object(mem, part, "pdf_close(article)");
}
pputs(s, "]\n");
+ pdf_end_obj(pdev);
}
+ pdf_open_obj(pdev, Catalog_id);
+ s = pdev->strm;
+ pputs(s, "<<");
+ pprintld1(s, "/Type /Catalog /Pages %ld 0 R\n", Pages_id);
+ if (pdev->outlines_id != 0)
+ pprintld1(s, "/Outlines %ld 0 R\n", pdev->outlines_id);
+ if (Threads_id)
+ pprintld1(s, "/Threads %ld 0 R\n", Threads_id);
if (pdev->Dests)
pprintld1(s, "/Dests %ld 0 R\n", pdev->Dests->id);
cos_dict_elements_write(pdev->Catalog, pdev);
diff --git a/gs/src/gdevpdfd.c b/gs/src/gdevpdfd.c
index 143a71580..ba2bcc756 100644
--- a/gs/src/gdevpdfd.c
+++ b/gs/src/gdevpdfd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Path drawing procedures for pdfwrite driver */
#include "math_.h"
#include "gx.h"
@@ -211,9 +198,9 @@ gdev_pdf_fill_path(gx_device * dev, const gs_imager_state * pis, gx_path * ppath
if (have_path) {
stream *s = pdev->strm;
- if (params->flatness != pdev->flatness) {
+ if (params->flatness != pdev->state.flatness) {
pprintg1(s, "%g i\n", params->flatness);
- pdev->flatness = params->flatness;
+ pdev->state.flatness = params->flatness;
}
gdev_vector_dopath((gx_device_vector *)pdev, ppath,
gx_path_type_fill, NULL);
diff --git a/gs/src/gdevpdff.c b/gs/src/gdevpdff.c
index c34a8cbbf..3966e3938 100644
--- a/gs/src/gdevpdff.c
+++ b/gs/src/gdevpdff.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Font handling for pdfwrite driver. */
#include "math_.h"
#include "memory_.h"
@@ -60,6 +47,8 @@ const pdf_standard_font_t pdf_standard_fonts[] = {
{0}
};
+/* ---------------- Standard fonts ---------------- */
+
/* Return the index of a standard font name, or -1 if missing. */
private int
pdf_find_standard_font(const byte *str, uint size)
@@ -75,22 +64,76 @@ pdf_find_standard_font(const byte *str, uint size)
}
/*
- * Return the index of a standard font with the same UID as a given font,
- * or -1 if missing.
+ * Return the index of a standard font with the same appearance
+ * (CharStrings, Private, WeightVector) as a given font, or -1 if missing.
*/
private int
-find_std_uid(const gx_device_pdf *pdev, const gs_font_base *bfont)
+find_std_appearance(const gx_device_pdf *pdev, const gs_font_base *bfont,
+ int *psame)
{
+ bool has_uid = uid_is_UniqueID(&bfont->UID) && bfont->UID.id != 0;
+ const pdf_std_font_t *psf = pdev->std_fonts;
int i;
- for (i = 0; i < PDF_NUM_STD_FONTS; ++i)
- if (uid_equal(&bfont->UID, &pdev->text.std_fonts[i].uid)) {
- return i;
+ for (i = 0; i < PDF_NUM_STD_FONTS; ++psf, ++i) {
+ if (has_uid) {
+ if (uid_equal(&bfont->UID, &psf->uid)) {
+ return i;
+ }
+ } else if (psf->font) {
+ int same = *psame =
+ bfont->procs.same_font((const gs_font *)bfont, psf->font,
+ FONT_SAME_OUTLINES | FONT_SAME_METRICS |
+ FONT_SAME_ENCODING);
+
+ if (same & FONT_SAME_OUTLINES)
+ return i;
}
+ }
return -1;
}
/*
+ * We register the fonts in pdev->std_fonts so that the pointers can
+ * be weak (get set to 0 when the font is freed).
+ */
+private GS_NOTIFY_PROC(pdf_std_font_notify_proc);
+typedef struct pdf_std_font_notify_s {
+ gx_device_pdf *pdev;
+ int index; /* in std_fonts */
+ gs_font *font; /* for checking */
+} pdf_std_font_notify_t;
+gs_private_st_ptrs2(st_pdf_std_font_notify, pdf_std_font_notify_t,
+ "pdf_std_font_notify_t",
+ pdf_std_font_notify_enum_ptrs,
+ pdf_std_font_notify_reloc_ptrs,
+ pdev, font);
+private int
+pdf_std_font_notify_proc(void *vpsfn /*proc_data*/, void *event_data)
+{
+ pdf_std_font_notify_t *const psfn = vpsfn;
+ gx_device_pdf *const pdev = psfn->pdev;
+ gs_font *const font = psfn->font;
+
+ if (event_data)
+ return 0; /* unknown event */
+ if_debug3('_',
+ "[_] notify 0x%lx: gs_font 0x%lx, index=%d\n",
+ (ulong)psfn, (ulong)font, psfn->index);
+#ifdef DEBUG
+ if (pdev->std_fonts[psfn->index].font != font)
+ lprintf3("pdf_std_font_notify font = 0x%lx, std_fonts[%d] = 0x%lx\n",
+ (ulong)font, psfn->index,
+ (ulong)pdev->std_fonts[psfn->index].font);
+ else
+#endif
+ pdev->std_fonts[psfn->index].font = 0;
+ gs_font_notify_unregister(font, pdf_std_font_notify_proc, vpsfn);
+ gs_free_object(pdev->pdf_memory, vpsfn, "pdf_std_font_notify_proc");
+ return 0;
+}
+
+/*
* Scan a font directory for standard fonts. Return true if any new ones
* were found.
*/
@@ -98,23 +141,36 @@ private bool
scan_for_standard_fonts(gx_device_pdf *pdev, const gs_font_dir *dir)
{
bool found = false;
- const gs_font *orig = dir->orig_fonts;
+ gs_font *orig = dir->orig_fonts;
for (; orig; orig = orig->next) {
- const gs_font_base *obfont;
+ gs_font_base *obfont;
- if (orig->FontType == ft_composite)
+ if (orig->FontType == ft_composite || !orig->is_resource)
continue;
- obfont = (const gs_font_base *)orig;
- if (uid_is_valid(&obfont->UID)) {
+ obfont = (gs_font_base *)orig;
+ if (uid_is_UniqueID(&obfont->UID)) {
/* Is it one of the standard fonts? */
int i = pdf_find_standard_font(orig->key_name.chars,
orig->key_name.size);
- if (i >= 0 && !uid_equal(&pdev->text.std_fonts[i].uid,
- &obfont->UID)) {
- pdev->text.std_fonts[i].uid = obfont->UID;
- pdev->text.std_fonts[i].orig_matrix = obfont->FontMatrix;
+ if (i >= 0 && pdev->std_fonts[i].font == 0) {
+ pdf_std_font_notify_t *psfn =
+ gs_alloc_struct(pdev->pdf_memory, pdf_std_font_notify_t,
+ &st_pdf_std_font_notify,
+ "scan_for_standard_fonts");
+
+ if (psfn == 0)
+ continue; /* can't register */
+ psfn->pdev = pdev;
+ psfn->index = i;
+ psfn->font = orig;
+ if_debug3('_', "[_]register 0x%lx: gs_font 0x%lx, index=%d\n",
+ (ulong)psfn, (ulong)orig, i);
+ gs_font_notify_register(orig, pdf_std_font_notify_proc, psfn);
+ pdev->std_fonts[i].uid = obfont->UID;
+ pdev->std_fonts[i].orig_matrix = obfont->FontMatrix;
+ pdev->std_fonts[i].font = orig;
found = true;
}
}
@@ -137,23 +193,22 @@ pdf_find_orig_font(gx_device_pdf *pdev, gs_font *font, gs_const_string *pfname,
return false;
for (;; font = font->base) {
gs_font_base *bfont = (gs_font_base *)font;
-
- if (uid_is_valid(&bfont->UID) && bfont->UID.id != 0) {
- /* Look for a standard font with the same UID. */
- i = find_std_uid(pdev, bfont);
- if (i >= 0)
- goto ret;
- if (scan) {
- /* Scan for fonts with any of the standard names that */
- /* have a UID. */
- bool found = scan_for_standard_fonts(pdev, font->dir);
-
- scan = false;
- if (found) {
- i = find_std_uid(pdev, bfont);
- if (i >= 0)
- goto ret;
- }
+ int same;
+
+ /* Look for a standard font with the same appearance. */
+ i = find_std_appearance(pdev, bfont, &same);
+ if (i >= 0)
+ goto ret;
+ if (scan) {
+ /* Scan for fonts with any of the standard names that */
+ /* have a UID. */
+ bool found = scan_for_standard_fonts(pdev, font->dir);
+
+ scan = false;
+ if (found) {
+ i = find_std_appearance(pdev, bfont, &same);
+ if (i >= 0)
+ goto ret;
}
}
if (font->base == font)
@@ -162,13 +217,13 @@ pdf_find_orig_font(gx_device_pdf *pdev, gs_font *font, gs_const_string *pfname,
ret:
pfname->data = (const byte *)pdf_standard_fonts[i].fname;
pfname->size = strlen((const char *)pfname->data);
- *pfmat = pdev->text.std_fonts[i].orig_matrix;
+ *pfmat = pdev->std_fonts[i].orig_matrix;
return true;
}
/*
* Determine the embedding status of a font. If the font is in the base
- * 14, store its index (0..13) in *pindex.
+ * 14, store its index (0..13) in *pindex, otherwise store -1 there.
*/
private bool
font_is_symbolic(const gs_font *font)
@@ -179,6 +234,7 @@ font_is_symbolic(const gs_font *font)
case ENCODING_INDEX_STANDARD:
case ENCODING_INDEX_ISOLATIN1:
case ENCODING_INDEX_WINANSI:
+ case ENCODING_INDEX_MACROMAN:
return false;
default:
return true;
@@ -196,25 +252,36 @@ embed_list_includes(const gs_param_string_array *psa, const byte *chars,
return false;
}
pdf_font_embed_t
-pdf_font_embed_status(gx_device_pdf *pdev, gs_font *font, int *pindex)
+pdf_font_embed_status(gx_device_pdf *pdev, gs_font *font, int *pindex,
+ int *psame)
{
const byte *chars = font->font_name.chars;
uint size = font->font_name.size;
+ /* Check whether the font is in the base 14. */
int index = pdf_find_standard_font(chars, size);
- /* Check whether the font is in the base 14. */
if (index >= 0) {
*pindex = index;
- return FONT_EMBED_BASE14;
+ if (font->is_resource) {
+ *psame = ~0;
+ return FONT_EMBED_BASE14;
+ } else if (font->FontType != ft_composite &&
+ find_std_appearance(pdev, (gs_font_base *)font,
+ psame) == index)
+ return FONT_EMBED_BASE14;
}
+ *pindex = -1;
/* Check the Embed lists. */
- if ((pdev->params.EmbedAllFonts || font_is_symbolic(font) ||
- embed_list_includes(&pdev->params.AlwaysEmbed, chars, size)) &&
- !embed_list_includes(&pdev->params.NeverEmbed, chars, size))
+ if (embed_list_includes(&pdev->params.NeverEmbed, chars, size))
+ return FONT_EMBED_NO;
+ if (pdev->params.EmbedAllFonts || font_is_symbolic(font) ||
+ embed_list_includes(&pdev->params.AlwaysEmbed, chars, size))
return FONT_EMBED_YES;
- return FONT_EMBED_NO;
+ return FONT_EMBED_UNKNOWN;
}
+/* ---------------- Everything else ---------------- */
+
/* Allocate a font resource. */
int
pdf_alloc_font(gx_device_pdf *pdev, gs_id rid, pdf_font_t **ppfres,
@@ -244,6 +311,8 @@ pdf_alloc_font(gx_device_pdf *pdev, gs_id rid, pdf_font_t **ppfres,
memset((byte *)pfres + sizeof(pdf_resource_t), 0,
sizeof(*pfres) - sizeof(pdf_resource_t));
sprintf(pfres->frname, "R%ld", pfres->object->id);
+ pfres->index = -1;
+ pfres->BaseEncoding = ENCODING_INDEX_UNKNOWN; /* -1 */
pfres->differences = 0;
pfres->descriptor = pfd;
pfres->char_procs = 0;
@@ -259,7 +328,6 @@ pdf_add_encoding_difference(gx_device_pdf *pdev, pdf_font_t *ppf, int chr,
pdf_encoding_element_t *pdiff = ppf->differences;
if (pdiff == 0) {
- ppf->diff_id = pdf_obj_ref(pdev);
pdiff = gs_alloc_struct_array(pdev->pdf_memory, 256,
pdf_encoding_element_t,
&st_pdf_encoding_element,
@@ -277,43 +345,51 @@ pdf_add_encoding_difference(gx_device_pdf *pdev, pdf_font_t *ppf, int chr,
/* Get the width of a given character in a (base) font. */
int
-pdf_char_width(pdf_font_t *ppf, int ch, gs_font *font, const gs_matrix *pmat,
+pdf_char_width(pdf_font_t *ppf, int ch, gs_font *font,
int *pwidth /* may be NULL */)
{
if (ch < 0 || ch > 255)
return_error(gs_error_rangecheck);
if (!(ppf->widths_known[ch >> 3] & (1 << (ch & 7)))) {
- pdf_font_descriptor_t *pfd = ppf->descriptor;
+ gs_font_base *bfont = (gs_font_base *)font;
+ gs_glyph glyph = bfont->procs.encode_char(font, (gs_char)ch,
+ GLYPH_SPACE_INDEX);
+ int wmode = font->WMode;
+ gs_glyph_info_t info;
+ double w, v;
+ int code;
- if (pfd == 0)
- return_error(gs_error_rangecheck);
- ppf->Widths[ch] = pfd->MissingWidth;
- if (!(pfd->Flags & FONT_IS_FIXED_WIDTH)) {
- gs_font_base *bfont = (gs_font_base *)font;
- gs_glyph glyph = bfont->procs.encode_char(font, (gs_char)ch,
- GLYPH_SPACE_INDEX);
-
- if (glyph != gs_no_glyph) {
- int wmode = font->WMode;
- gs_matrix smat;
- gs_glyph_info_t info;
- int code;
-
- /* See above re the following. */
- if (font->FontType == ft_TrueType) {
- gs_make_scaling(1000.0, 1000.0, &smat);
- pmat = &smat;
- }
- code = font->procs.glyph_info(font, glyph, pmat,
- GLYPH_INFO_WIDTH0 << wmode,
- &info);
-
- if (code < 0)
- return code;
- if (info.width[wmode].y != 0)
- return_error(gs_error_rangecheck);
- ppf->Widths[ch] = info.width[wmode].x;
+ if (glyph != gs_no_glyph &&
+ (code = font->procs.glyph_info(font, glyph, NULL,
+ GLYPH_INFO_WIDTH0 << wmode,
+ &info)) >= 0
+ ) {
+ if (wmode && (w = info.width[wmode].y) != 0)
+ v = info.width[wmode].x;
+ else
+ w = info.width[wmode].x, v = info.width[wmode].y;
+ if (v != 0)
+ return_error(gs_error_rangecheck);
+ if (font->FontType == ft_TrueType) {
+ /* TrueType fonts have 1 unit per em, we want 1000. */
+ w *= 1000;
+ }
+ ppf->Widths[ch] = (int)w;
+ } else {
+ /* Try for MissingWidth. */
+ static const gs_point tt_scale = {1000, 1000};
+ const gs_point *pscale = 0;
+ gs_font_info_t finfo;
+
+ if (font->FontType == ft_TrueType) {
+ /* TrueType fonts have 1 unit per em, we want 1000. */
+ pscale = &tt_scale;
}
+ code = font->procs.font_info(font, pscale, FONT_INFO_MISSING_WIDTH,
+ &finfo);
+ if (code < 0)
+ return code;
+ ppf->Widths[ch] = finfo.MissingWidth;
}
ppf->widths_known[ch >> 3] |= 1 << (ch & 7);
}
@@ -662,10 +738,13 @@ pdf_embed_font_type42(gx_device_pdf *pdev, pdf_font_descriptor_t *pfd,
long length_id;
long start;
psdf_binary_writer writer;
+ /* Acrobat Reader 3 doesn't handle cmap format 6 correctly. */
+ const int options = WRITE_TRUETYPE_CMAP | WRITE_TRUETYPE_NAME |
+ (pdev->CompatibilityLevel <= 1.2 ?
+ WRITE_TRUETYPE_NO_TRIMMED_TABLE : 0);
swrite_position_only(&poss);
-#define TRUETYPE_OPTIONS (WRITE_TRUETYPE_CMAP | WRITE_TRUETYPE_NAME)
- code = psdf_write_truetype_font(&poss, font, TRUETYPE_OPTIONS,
+ code = psdf_write_truetype_font(&poss, font, options,
subset_glyphs, subset_size, pfname);
if (code < 0)
return code;
@@ -677,50 +756,13 @@ pdf_embed_font_type42(gx_device_pdf *pdev, pdf_font_descriptor_t *pfd,
code = psdf_begin_binary((gx_device_psdf *)pdev, &writer);
if (code < 0)
return code;
- psdf_write_truetype_font(pdev->strm, font, TRUETYPE_OPTIONS,
+ psdf_write_truetype_font(writer.strm, font, options,
subset_glyphs, subset_size, pfname);
-#undef TRUETYPE_OPTIONS
psdf_end_binary(&writer);
pdf_end_fontfile(pdev, start, length_id);
return 0;
}
-/*
- * Write out the CharProcs for a synthesized font.
- * We thought that Acrobat 2.x required this to be an indirect object,
- * but we were wrong.
- */
-private int
-pdf_write_char_procs(gx_device_pdf * pdev, const pdf_font_t * pef,
- gs_int_rect * pbbox, int widths[256])
-{
- stream *s = pdev->strm;
- const pdf_char_proc_t *pcp;
- int w;
-
- pputs(s, "<<");
- /* Write real characters. */
- for (pcp = pef->char_procs; pcp; pcp = pcp->char_next) {
- pbbox->p.y = min(pbbox->p.y, pcp->y_offset);
- pbbox->q.x = max(pbbox->q.x, pcp->width);
- pbbox->q.y = max(pbbox->q.y, pcp->height + pcp->y_offset);
- widths[pcp->char_code] = pcp->x_width;
- pprintld2(s, "/a%ld\n%ld 0 R", (long)pcp->char_code,
- pcp->object->id);
- }
- /* Write space characters. */
- for (w = 0; w < countof(pef->spaces); ++w) {
- byte ch = pef->spaces[w];
-
- if (ch) {
- pprintld2(s, "/a%ld\n%ld 0 R", (long)ch,
- pdev->space_char_ids[w]);
- widths[ch] = w + X_SPACE_MIN;
- }
- }
- pputs(s, ">>");
- return 0;
-}
/* Write out the Widths for an embedded or synthesized font. */
private int
@@ -730,7 +772,7 @@ pdf_write_widths(gx_device_pdf *pdev, int first, int last,
stream *s = pdev->strm;
int i;
- pputs(s, "[");
+ pprintd2(s, "/FirstChar %d/LastChar %d/Widths[", first, last);
for (i = first; i <= last; ++i)
pprintd1(s, (i & 15 ? " %d" : ("\n%d")), widths[i]);
pputs(s, "]\n");
@@ -761,21 +803,106 @@ pdf_write_synthesized_type3(gx_device_pdf *pdev, const pdf_font_t *pef)
pdf_open_separate(pdev, pef->object->id);
s = pdev->strm;
pprints1(s, "<</Type/Font/Name/%s/Subtype/Type3", pef->frname);
- pprintld1(s, "/Encoding %ld 0 R", pdev->embedded_encoding_id);
- pprintd1(s, "/FirstChar 0/LastChar %d/CharProcs",
- pef->num_chars - 1);
- pdf_write_char_procs(pdev, pef, &bbox, widths);
+ pprintld1(s, "/Encoding %ld 0 R/CharProcs", pdev->embedded_encoding_id);
+
+ /* Write the CharProcs. */
+ {
+ const pdf_char_proc_t *pcp;
+ int w;
+
+ pputs(s, "<<");
+ /* Write real characters. */
+ for (pcp = pef->char_procs; pcp; pcp = pcp->char_next) {
+ bbox.p.y = min(bbox.p.y, pcp->y_offset);
+ bbox.q.x = max(bbox.q.x, pcp->width);
+ bbox.q.y = max(bbox.q.y, pcp->height + pcp->y_offset);
+ widths[pcp->char_code] = pcp->x_width;
+ pprintld2(s, "/a%ld\n%ld 0 R", (long)pcp->char_code,
+ pcp->object->id);
+ }
+ /* Write space characters. */
+ for (w = 0; w < countof(pef->spaces); ++w) {
+ byte ch = pef->spaces[w];
+
+ if (ch) {
+ pprintld2(s, "/a%ld\n%ld 0 R", (long)ch,
+ pdev->space_char_ids[w]);
+ widths[ch] = w + X_SPACE_MIN;
+ }
+ }
+ pputs(s, ">>");
+ }
+
pdf_write_font_bbox(pdev, &bbox);
- pputs(s, "/FontMatrix[1 0 0 1 0 0]/Widths");
+ pputs(s, "/FontMatrix[1 0 0 1 0 0]");
pdf_write_widths(pdev, 0, pef->num_chars - 1, widths);
pputs(s, ">>\n");
pdf_end_separate(pdev);
return 0;
}
+/* Write a font descriptor. */
+private int
+pdf_write_font_descriptor(gx_device_pdf *pdev,
+ const pdf_font_descriptor_t *pfd, int Flags,
+ const gs_const_string *pfname,
+ const char *FontFile_key)
+{
+#define DESC_INT(str, memb)\
+ {str, gs_param_type_int, offset_of(pdf_font_descriptor_t, memb)}
+ static const gs_param_item_t required_items[] = {
+ DESC_INT("Ascent", Ascent),
+ DESC_INT("CapHeight", CapHeight),
+ DESC_INT("Descent", Descent),
+ DESC_INT("ItalicAngle", ItalicAngle),
+ DESC_INT("StemV", StemV),
+ gs_param_item_end
+ };
+ static const gs_param_item_t optional_items[] = {
+ DESC_INT("AvgWidth", AvgWidth),
+ DESC_INT("Leading", Leading),
+ DESC_INT("MaxWidth", MaxWidth),
+ DESC_INT("MissingWidth", MissingWidth),
+ DESC_INT("StemH", StemH),
+ DESC_INT("XHeight", XHeight),
+ gs_param_item_end
+ };
+#undef DESC_INT
+ param_printer_params_t params;
+ static const param_printer_params_t ppp_defaults = {
+ param_printer_params_default_values
+ };
+ printer_param_list_t rlist;
+ gs_param_list *const plist = (gs_param_list *)&rlist;
+
+ pdf_font_descriptor_t defaults;
+ stream *s;
+ int code;
+
+ pdf_open_separate(pdev, pfd->id);
+ params = ppp_defaults;
+ s = pdev->strm;
+ code = s_init_param_printer(&rlist, &params, s);
+ pputs(s, "<</Type/FontDescriptor/FontName");
+ pdf_put_name(pdev, pfname->data, pfname->size);
+ gs_param_write_items(plist, pfd, NULL, required_items);
+ param_write_int(plist, "Flags", &Flags);
+ pdf_write_font_bbox(pdev, &pfd->FontBBox);
+ memset(&defaults, 0, sizeof(defaults));
+ gs_param_write_items(plist, pfd, &defaults, optional_items);
+ s_release_param_printer(&rlist);
+ if (pfd->FontFile_id) {
+ pputs(s, FontFile_key);
+ pprintld1(s, " %ld 0 R", pfd->FontFile_id);
+ }
+ pputs(s, ">>\n");
+ pdf_end_separate(pdev);
+ return 0;
+}
+
/*
- * Write a Type 1 or TrueType font resource, including any encoding
- * differences and/or descriptor.
+ * Write a Type 1 or TrueType font resource, including Widths, Encoding,
+ * and/or FontDescriptor.
*/
private int
pdf_write_font_resource(gx_device_pdf *pdev, const pdf_font_t *pef,
@@ -783,23 +910,14 @@ pdf_write_font_resource(gx_device_pdf *pdev, const pdf_font_t *pef,
{
stream *s;
const pdf_font_descriptor_t *pfd = pef->descriptor;
- long widths_id = 0;
- int first = 0, last = 255;
- /*
- * For embedded TrueType fonts, the PDF documentation doesn't specify
- * how the Encoding interacts with the post and cmap tables. Macduff
- * Hughes of Adobe says the only reliable way to get the desired output
- * is not to use Encoding at all, but even this isn't adequate for
- * non-Unicode-based fonts: right now it appears there is *no* way to
- * get Acrobat to do the right thing.
- */
- bool write_differences =
- pef->differences != 0 &&
- (pfd == 0 || pfd->FontFile_id == 0 || pef->FontType != ft_TrueType);
const char *FontFile_key;
+ int Flags;
+ int code;
pdf_open_separate(pdev, pef->object->id);
s = pdev->strm;
+ if (pfd)
+ Flags = pfd->Flags;
switch (pef->FontType) {
case ft_encrypted:
pputs(s, "<</Subtype/Type1/BaseFont");
@@ -811,101 +929,104 @@ pdf_write_font_resource(gx_device_pdf *pdev, const pdf_font_t *pef,
/****** WHAT ABOUT STYLE INFO? ******/
pdf_put_name(pdev, pfname->data, pfname->size);
FontFile_key = "/FontFile2";
+ /*
+ * Hack: make all embedded subset TrueType fonts "symbolic" to work
+ * around undocumented assumptions in Acrobat Reader.
+ */
+ if (has_subset_prefix(pfname->data, pfname->size))
+ Flags = (Flags & ~(FONT_IS_ADOBE_ROMAN)) |
+ FONT_IS_SYMBOLIC;
break;
default:
return_error(gs_error_rangecheck);
}
pprintld1(s, "/Type/Font/Name/R%ld", pef->object->id);
- if (write_differences)
- pprintld1(s, "/Encoding %ld 0 R", pef->diff_id);
- if (pfd) {
- while (first < last && pef->Widths[first] == pfd->MissingWidth)
- ++first;
- while (last > first && pef->Widths[last] == pfd->MissingWidth)
- --last;
- widths_id = pdf_obj_ref(pdev);
- pprintld2(s, "/FontDescriptor %ld 0 R/Widths %ld 0 R",
- pfd->id, widths_id);
- pprintd2(s, "/FirstChar %d/LastChar %d", first, last);
- }
- pputs(s, ">>\n");
- if (write_differences) {
- int prev = 256;
- int i;
+ if (pfd)
+ pprintld1(s, "/FontDescriptor %ld 0 R", pfd->id);
+ if (pef->index < 0 || pef->differences) {
+ /*
+ * Among the many problems in the PDF 1.3 documentation is the
+ * omission of the following interesting fact: FirstChar and
+ * LastChar are *not* simply a way to strip off initial and final
+ * entries in the Widths array that are equal to MissingWidth.
+ * Acrobat Reader assumes that characters with codes less than
+ * FirstChar or greater than LastChar are undefined, without
+ * bothering to consult the Encoding. Therefore, the implicit value
+ * of MissingWidth is pretty useless, because there must be explicit
+ * Width entries for every character in the font that is every used.
+ */
+ int first = 0, last = 248;
+ byte first_byte, last_byte;
- pdf_end_separate(pdev);
- pdf_open_separate(pdev, pef->diff_id);
- pputs(s, "<</Type/Encoding/Differences[");
- for (i = 0; i < 256; ++i)
- if (pef->differences[i].str.data != 0) {
- if (i != prev + 1)
- pprintd1(s, "\n%d", i);
- pdf_put_name(pdev,
- pef->differences[i].str.data,
- pef->differences[i].str.size);
- prev = i;
- }
- pputs(s, "]>>\n");
+ while (first <= last && (first_byte = pef->chars_used[first >> 3]) == 0)
+ first += 8;
+ while (last >= first && (last_byte = pef->chars_used[last >> 3]) == 0)
+ last -= 8;
+ /*
+ * At this point, either first > last, which indicates that none of
+ * the characters in the font were used (unusual to say the least,
+ * but must be handled correctly), or first_byte and last_byte are
+ * both non-zero.
+ */
+ if (first > last) {
+ /*
+ * None of the characters in the font were used. This is
+ * unusual, to say the least, but must be handled correctly.
+ */
+ first = last = 0;
+ } else {
+ while (!(first_byte & 1))
+ first_byte >>= 1, ++first;
+ for (last += 7; !(last_byte & 0x80);)
+ last_byte <<= 1, --last;
+ }
+ pdf_write_widths(pdev, first, last, pef->Widths);
}
- if (pfd) {
-#define DESC_INT(str, memb)\
- {str, gs_param_type_int, offset_of(pdf_font_descriptor_t, memb)}
- static const gs_param_item_t required_items[] = {
- DESC_INT("Ascent", Ascent),
- DESC_INT("CapHeight", CapHeight),
- DESC_INT("Descent", Descent),
- DESC_INT("ItalicAngle", ItalicAngle),
- DESC_INT("StemV", StemV),
- DESC_INT("Flags", Flags),
- gs_param_item_end
- };
- static const gs_param_item_t optional_items[] = {
- DESC_INT("AvgWidth", AvgWidth),
- DESC_INT("Leading", Leading),
- DESC_INT("MaxWidth", MaxWidth),
- DESC_INT("MissingWidth", MissingWidth),
- DESC_INT("StemH", StemH),
- DESC_INT("XHeight", XHeight),
- gs_param_item_end
- };
-#undef DESC_INT
- param_printer_params_t params;
- static const param_printer_params_t ppp_defaults = {
- param_printer_params_default_values
- };
- printer_param_list_t rlist;
- gs_param_list *const plist = (gs_param_list *)&rlist;
- pdf_font_descriptor_t defaults;
- int code;
+ if (pef->BaseEncoding >= 0 || pef->differences) {
+ long diff_id = pdf_obj_ref(pdev);
+ pprintld1(s, "/Encoding %ld 0 R>>\n", diff_id);
pdf_end_separate(pdev);
- pdf_open_separate(pdev, widths_id);
- pdf_write_widths(pdev, first, last, pef->Widths);
- pdf_end_separate(pdev);
- pdf_open_separate(pdev, pfd->id);
- params = ppp_defaults;
- code = s_init_param_printer(&rlist, &params, pdev->strm);
- pputs(s, "<</Type/FontDescriptor/FontName");
- pdf_put_name(pdev, pfname->data, pfname->size);
- gs_param_write_items(plist, pfd, NULL, required_items);
- pdf_write_font_bbox(pdev, &pfd->FontBBox);
- memset(&defaults, 0, sizeof(defaults));
- gs_param_write_items(plist, pfd, &defaults, optional_items);
- s_release_param_printer(&rlist);
- if (pfd->FontFile_id) {
- pputs(s, FontFile_key);
- pprintld1(s, " %ld 0 R", pfd->FontFile_id);
+ pdf_open_separate(pdev, diff_id);
+ s = pdev->strm;
+ pputs(s, "<</Type/Encoding");
+ if (pef->BaseEncoding >= 0) {
+ static const char *const encoding_names[] = {
+ KNOWN_REAL_ENCODING_NAMES
+ };
+
+ pprints1(s, "/BaseEncoding/%s", encoding_names[pef->BaseEncoding]);
+ }
+ if (pef->differences) {
+ int prev = 256;
+ int i;
+
+ pputs(s, "/Differences[");
+ for (i = 0; i < 256; ++i)
+ if (pef->differences[i].str.data != 0) {
+ if (i != prev + 1)
+ pprintd1(s, "\n%d", i);
+ pdf_put_name(pdev,
+ pef->differences[i].str.data,
+ pef->differences[i].str.size);
+ prev = i;
+ }
+ pputs(s, "]");
}
- pputs(s, ">>\n");
}
+ pputs(s, ">>\n");
pdf_end_separate(pdev);
+ if (pfd) {
+ code = pdf_write_font_descriptor(pdev, pfd, Flags, pfname, FontFile_key);
+ if (code < 0)
+ return code;
+ }
return 0;
}
/*
* Write the FontFile* data for an embedded font.
- * Return a rangecheck error if the font can't be embedded.
- */
+ * Return a rangecheck error if the font can't be embedded. */
private int
pdf_write_embedded_font(gx_device_pdf *pdev, pdf_font_descriptor_t *pfd,
pdf_font_t *ppf, gs_font *font)
@@ -931,8 +1052,7 @@ pdf_write_embedded_font(gx_device_pdf *pdev, pdf_font_descriptor_t *pfd,
&ignore_glyph), index != 0);
)
++total;
- /* Test used / total >= MaxSubsetPct / 100 */
- if (used * 100 >= pdev->params.MaxSubsetPct * total)
+ if ((double)used / total >= pdev->params.MaxSubsetPct / 100.0)
do_subset = false;
else {
subset_size = psdf_subset_glyphs(subset_glyphs, font,
@@ -996,6 +1116,8 @@ pdf_register_font(gx_device_pdf *pdev, gs_font *font, pdf_font_t *ppf)
return_error(gs_error_VMerror);
pfn->pdev = pdev;
pfn->pdfont = ppf;
+ if_debug3('_', "[_]register 0x%lx: pdf_font_t 0x%lx, gs_font 0x%lx\n",
+ (ulong)pfn, (ulong)ppf, (ulong)font);
ppf->font = font;
return gs_font_notify_register(font, pdf_font_notify_proc, pfn);
}
@@ -1013,6 +1135,9 @@ pdf_font_notify_proc(void *vpfn /*proc_data*/, void *event_data)
if (event_data)
return 0; /* unknown event */
+ if_debug4('_',
+ "[_] notify 0x%lx: pdf_font_t 0x%lx, gs_font 0x%lx, skip=%d\n",
+ (ulong)pfn, (ulong)ppf, (ulong)font, ppf->skip);
/*
* HACK: temporarily patch the font's memory to one that we know is
* available even during GC or restore. (Eventually we need to fix
diff --git a/gs/src/gdevpdfi.c b/gs/src/gdevpdfi.c
index 2703abe6c..bbe2aced2 100644
--- a/gs/src/gdevpdfi.c
+++ b/gs/src/gdevpdfi.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image handling for PDF-writing driver */
#include "math_.h"
#include "memory_.h"
@@ -46,6 +33,8 @@ extern const gs_color_space_type gs_color_space_type_Indexed;
extern stream_state_proc_get_params(s_DCTE_get_params, stream_DCT_state);
extern stream_state_proc_get_params(s_CF_get_params, stream_CF_state);
+#define MAX_INLINE_IMAGE_BYTES 4000
+
/* ---------------- Utilities ---------------- */
/* ------ Images ------ */
@@ -483,7 +472,8 @@ typedef struct pdf_image_writer_s {
/* Begin writing an image. */
private int
-pdf_begin_write_image(gx_device_pdf * pdev, pdf_image_writer * piw, bool in_line)
+pdf_begin_write_image(gx_device_pdf * pdev, pdf_image_writer * piw,
+ gx_bitmap_id id, bool in_line)
{
if (in_line) {
stream *s = pdev->strm;
@@ -493,14 +483,14 @@ pdf_begin_write_image(gx_device_pdf * pdev, pdf_image_writer * piw, bool in_line
piw->pin = &image_names_short;
piw->begin_data = (pdev->binary_ok ? "ID " : "ID\n");
} else {
- int code = pdf_begin_resource(pdev, resourceXObject, gs_no_id,
- &piw->pres);
+ int code = pdf_begin_resource(pdev, resourceXObject, id, &piw->pres);
stream *s = pdev->strm;
if (code < 0)
return code;
+ piw->pres->rid = id;
piw->length_id = pdf_obj_ref(pdev);
- pprintld1(s, " /Subtype /Image /Length %ld 0 R\n",
+ pprintld1(s, "/Subtype/Image/Length %ld 0 R\n",
piw->length_id);
piw->pin = &image_names_full;
piw->begin_data = ">>\nstream\n";
@@ -551,12 +541,14 @@ pdf_end_write_image(gx_device_pdf * pdev, pdf_image_writer * piw)
/* Put out a reference to an image resource. */
private int
pdf_do_image(gx_device_pdf * pdev, const pdf_resource_t * pres,
- const gs_matrix * pimat)
+ const gs_matrix * pimat, bool in_contents)
{
- int code = pdf_open_contents(pdev, PDF_IN_STREAM);
+ if (in_contents) {
+ int code = pdf_open_contents(pdev, PDF_IN_STREAM);
- if (code < 0)
- return code;
+ if (code < 0)
+ return code;
+ }
if (pimat)
pdf_put_image_matrix(pdev, pimat);
pprintld1(pdev->strm, "/R%ld Do\nQ\n", pres->object->id);
@@ -628,7 +620,7 @@ pdf_copy_mono(gx_device_pdf *pdev,
w, h + y_offset);
pprintd3(pdev->strm, "%d 0 0 %d 0 %d cm\n", w, h,
y_offset);
- code = pdf_begin_write_image(pdev, &writer, true);
+ code = pdf_begin_write_image(pdev, &writer, gs_no_id, true);
if (code < 0)
return code;
pcp->rid = id;
@@ -669,27 +661,28 @@ pdf_copy_mono(gx_device_pdf *pdev,
pdf_make_bitmap_image(&image, x, y, w, h);
{
ulong nbytes = (ulong) ((w + 7) >> 3) * h;
- bool in_line = nbytes <= 4000;
+ bool in_line = nbytes <= MAX_INLINE_IMAGE_BYTES;
if (in_line)
pdf_put_image_matrix(pdev, &image.ImageMatrix);
code = pdf_open_page(pdev, PDF_IN_STREAM);
if (code < 0)
return code;
- code = pdf_begin_write_image(pdev, &writer, in_line);
+ code = pdf_begin_write_image(pdev, &writer, gs_no_id, in_line);
if (code < 0)
return code;
}
- wr: /*
- * There are 3 different cases at this point:
- * - Writing an in-line image (pres == 0, writer.pres == 0);
- * - Writing an XObject image (pres == 0, writer.pres != 0);
- * - Writing the image for a CharProc (pres != 0).
- * We handle them with in-line code followed by a switch,
- * rather than making the shared code into a procedure,
- * simply because there would be an awful lot of parameters
- * that would need to be passed.
- */
+ wr:
+ /*
+ * There are 3 different cases at this point:
+ * - Writing an in-line image (pres == 0, writer.pres == 0);
+ * - Writing an XObject image (pres == 0, writer.pres != 0);
+ * - Writing the image for a CharProc (pres != 0).
+ * We handle them with in-line code followed by a switch,
+ * rather than making the shared code into a procedure,
+ * simply because there would be an awful lot of parameters
+ * that would need to be passed.
+ */
psdf_begin_binary((gx_device_psdf *) pdev, &writer.binary);
if (pres) {
/* Always use CCITTFax 2-D for character bitmaps. */
@@ -731,7 +724,8 @@ pdf_copy_mono(gx_device_pdf *pdev,
case 1:
return 0;
case 0:
- return pdf_do_image(pdev, writer.pres, &image.ImageMatrix);
+ return pdf_do_image(pdev, writer.pres, &image.ImageMatrix,
+ true);
}
}
pputs(pdev->strm, "\nEI\n");
@@ -763,11 +757,13 @@ gdev_pdf_copy_mono(gx_device * dev,
zero, one, NULL);
}
-/* Copy a color bitmap. */
+/* Copy a color bitmap. for_pattern = -1 means put the image in-line, */
+/* 1 means put the image in a resource. */
private int
pdf_copy_color_data(gx_device_pdf * pdev, const byte * base, int sourcex,
- int raster, int x, int y, int w, int h,
- gs_image_t *pim, pdf_image_writer *piw, bool for_pattern)
+ int raster, gx_bitmap_id id, int x, int y, int w, int h,
+ gs_image_t *pim, pdf_image_writer *piw,
+ int for_pattern)
{
int depth = pdev->color_info.depth;
int bytes_per_pixel = depth >> 3;
@@ -777,6 +773,7 @@ pdf_copy_color_data(gx_device_pdf * pdev, const byte * base, int sourcex,
int code;
const byte *row_base;
int row_step;
+ bool in_line;
switch(bytes_per_pixel) {
case 3: gs_cspace_init_DeviceRGB(&cs); break;
@@ -795,13 +792,28 @@ pdf_copy_color_data(gx_device_pdf * pdev, const byte * base, int sourcex,
*/
row_base = base + (h - 1) * raster;
row_step = -raster;
- pputs(pdev->strm, "q ");
+ in_line = for_pattern < 0;
} else {
row_base = base;
row_step = raster;
+ in_line = nbytes <= MAX_INLINE_IMAGE_BYTES;
pdf_put_image_matrix(pdev, &pim->ImageMatrix);
+ /*
+ * Check whether we've already made an XObject resource for this
+ * image.
+ */
+ if (id != gx_no_bitmap_id) {
+ piw->pres = pdf_find_resource_by_gs_id(pdev, resourceXObject, id);
+ if (piw->pres)
+ return 0;
+ }
}
- code = pdf_begin_write_image(pdev, piw, nbytes <= 4000);
+ /*
+ * We have to be able to control whether to put Pattern images in line,
+ * to avoid trying to create an XObject resource while we're in the
+ * middle of writing a Pattern resource.
+ */
+ code = pdf_begin_write_image(pdev, piw, id, in_line);
if (code < 0)
return code;
psdf_begin_binary((gx_device_psdf *) pdev, &piw->binary);
@@ -839,15 +851,15 @@ gdev_pdf_copy_color(gx_device * dev, const byte * base, int sourcex,
return code;
/* Make sure we aren't being clipped. */
pdf_put_clip_path(pdev, NULL);
- code = pdf_copy_color_data(pdev, base, sourcex, raster, x, y, w, h,
- &image, &writer, false);
+ code = pdf_copy_color_data(pdev, base, sourcex, raster, id, x, y, w, h,
+ &image, &writer, 0);
switch (code) {
default:
return code; /* error */
case 1:
return 0;
case 0:
- return pdf_do_image(pdev, writer.pres, &image.ImageMatrix);
+ return pdf_do_image(pdev, writer.pres, NULL, true);
}
}
@@ -881,6 +893,8 @@ gdev_pdf_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
{
gx_device_pdf *const pdev = (gx_device_pdf *) dev;
int tw = tiles->rep_width, th = tiles->rep_height;
+ double xscale = pdev->HWResolution[0] / 72.0,
+ yscale = pdev->HWResolution[1] / 72.0;
pdf_resource_t *pres;
if (tiles->id == gx_no_bitmap_id || tiles->shift != 0 ||
@@ -903,33 +917,66 @@ gdev_pdf_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
pres = pdf_find_resource_by_gs_id(pdev, resourcePattern, tiles->id);
if (!pres) {
/* Create the Pattern resource. */
- int code = pdf_begin_resource(pdev, resourcePattern, tiles->id, &pres);
- long length_id, start, end;
+ int code;
+ long image_id, length_id, start, end;
stream *s;
gs_image_t image;
pdf_image_writer writer;
+ long image_bytes = (long)tw * th * pdev->color_info.depth;
+ bool in_line = image_bytes <= MAX_INLINE_IMAGE_BYTES;
+ ulong tile_id =
+ (tw == tiles->size.x && th == tiles->size.y ? tiles->id :
+ gx_no_bitmap_id);
+ if (in_line)
+ image_id = 0;
+ else if (image_bytes > 65500) {
+ /*
+ * Acrobat Reader can't handle image Patterns with more than
+ * 64K of data. :-(
+ */
+ goto use_default;
+ } else {
+ /* Write out the image as an XObject resource now. */
+ code = pdf_copy_color_data(pdev, tiles->data, 0, tiles->raster,
+ tile_id, 0, 0, tw, th, &image, &writer,
+ 1);
+ if (code < 0)
+ goto use_default;
+ image_id = writer.pres->object->id;
+ }
+ code = pdf_begin_resource(pdev, resourcePattern, tiles->id, &pres);
if (code < 0)
goto use_default;
s = pdev->strm;
length_id = pdf_obj_ref(pdev);
- pputs(s, "/PatternType 1/PaintType 1/TilingType 1\n");
- pputs(s, "/Resources<</ProcSet[/PDF/ImageC]>>\n");
+ pputs(s, "/PatternType 1/PaintType 1/TilingType 1/Resources<<\n");
+ if (image_id)
+ pprintld2(s, "/XObject<</R%ld %ld 0 R>>", image_id, image_id);
+ pputs(s, "/ProcSet[/PDF/ImageC]>>\n");
/*
* Because of bugs in Acrobat Reader's Print function, we can't use
* the natural BBox and Step here: they have to be 1.
*/
- pprintld1(s, "/BBox[0 0 1 1]/XStep 1/YStep 1/Length %ld 0 R>>stream\n", length_id);
+ pprintg6(s, "/Matrix[%g %g %g %g %g %g]", xscale, 0.0, 0.0,
+ yscale, 0.0, 0.0);
+ pprintld1(s, "/BBox[0 0 1 1]/XStep 1/YStep 1/Length %ld 0 R>>stream\n",
+ length_id);
start = pdf_stell(pdev);
- code = pdf_copy_color_data(pdev, tiles->data, 0, tiles->raster,
- 0, 0, tw, th, &image, &writer, true);
- switch (code) {
- default:
- return code; /* error */
- case 1:
- break;
- case 0:
- pdf_do_image(pdev, writer.pres, &image.ImageMatrix);
+ if (image_id)
+ pprintld1(s, "/R%ld Do\n", image_id);
+ else {
+ code = pdf_copy_color_data(pdev, tiles->data, 0, tiles->raster,
+ tile_id, 0, 0, tw, th, &image, &writer,
+ -1);
+ switch (code) {
+ default:
+ return code; /* error */
+ case 1:
+ break;
+ case 0: /* not possible */
+ return_error(gs_error_Fatal);
+ }
}
end = pdf_stell(pdev);
pputs(s, "endstream\n");
@@ -941,12 +988,12 @@ gdev_pdf_strip_tile_rectangle(gx_device * dev, const gx_strip_bitmap * tiles,
/* Fill the rectangle with the Pattern. */
{
int code = pdf_open_page(pdev, PDF_IN_STREAM);
- double xscale = pdev->HWResolution[0] / 72.0,
- yscale = pdev->HWResolution[1] / 72.0;
stream *s;
if (code < 0)
goto use_default;
+ /* Make sure we aren't being clipped. */
+ pdf_put_clip_path(pdev, NULL);
s = pdev->strm;
/*
* Because of bugs in Acrobat Reader's Print function, we can't
@@ -1117,7 +1164,8 @@ gdev_pdf_begin_image(gx_device * dev,
}
nbytes = (((ulong) pie->width * pie->bits_per_pixel + 7) >> 3) *
pie->rows_left;
- code = pdf_begin_write_image(pdev, &pie->writer, nbytes <= 4000);
+ code = pdf_begin_write_image(pdev, &pie->writer, gs_no_id,
+ nbytes <= MAX_INLINE_IMAGE_BYTES);
if (code < 0)
return code;
psdf_begin_binary((gx_device_psdf *) pdev, &pie->writer.binary);
@@ -1219,7 +1267,7 @@ pdf_image_end_image(gx_image_enum_common_t * info, bool draw_last)
return 0;
case 0:;
}
- code = pdf_do_image(pdev, pie->writer.pres, NULL);
+ code = pdf_do_image(pdev, pie->writer.pres, NULL, true);
gs_free_object(pie->memory, pie, "pdf_end_image");
return code;
}
diff --git a/gs/src/gdevpdfm.c b/gs/src/gdevpdfm.c
index f6532b293..69a76253c 100644
--- a/gs/src/gdevpdfm.c
+++ b/gs/src/gdevpdfm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* pdfmark processing for PDF-writing driver */
#include "memory_.h"
#include "string_.h"
@@ -255,6 +242,8 @@ pdfmark_make_rect(char str[MAX_RECT_STRING], const gs_rect * prect)
* /A << /S /Thread /D yyy' >>
* /Action /GoTo => drop the Action key
* Also, \n in Contents strings must be replaced with \r.
+ * Note that for Thread actions, the Dest is not a real destination,
+ * and must not be processed as one.
*
* We always treat /A and /F as equivalent to /Action and /File
* respectively. The pdfmark and PDF documentation is so confused on the
@@ -281,6 +270,7 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
uint i;
int code;
char dest[MAX_DEST_STRING];
+ bool coerce_dest = false;
Dest.data = 0;
if (!for_outline) {
@@ -315,7 +305,7 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
File = pair;
else if (pdf_key_eq(pair, "/Dest")) {
Dest = pair[1];
- pdfmark_coerce_dest(&Dest, dest);
+ coerce_dest = true;
}
else if (pdf_key_eq(pair, "/Page") || pdf_key_eq(pair, "/View")) {
/* Make a destination even if this is for an outline. */
@@ -325,6 +315,7 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
if (code < 0)
return code;
param_string_from_string(Dest, dest);
+ coerce_dest = false;
}
} else if (pdf_key_eq(pair, "/Subtype"))
Subtype = pair[1];
@@ -403,11 +394,15 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
/* We aren't sure whether this is really needed.... */
cos_dict_put_c_strings(adict, pdev, "/Type", "/Action");
}
- if (pdf_key_eq(Action + 1, "/Article"))
+ if (pdf_key_eq(Action + 1, "/Article")) {
cos_dict_put_c_strings(adict, pdev, "/S", "/Thread");
+ coerce_dest = false; /* Dest is not a real destination */
+ }
else
pdfmark_put_c_pair(pdev, adict, "/S", Action + 1);
if (Dest.data) {
+ if (coerce_dest)
+ pdfmark_coerce_dest(&Dest, dest);
pdfmark_put_c_pair(pdev, adict, "/D", &Dest);
Dest.data = 0; /* so we don't write it again */
}
@@ -418,7 +413,7 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
cos_dict_put(pcd, pdev, (const byte *)"/A", 2,
COS_OBJECT_VALUE(&avalue, adict));
} else if (asize >= 4 && !memcmp(astr, "<<", 2)) {
- /* Replace occurrences of /Dest, /File, /Subtype. */
+ /* Replace occurrences of /Dest, /File, and /Subtype. */
const byte *scan = astr + 2;
const byte *end = astr + asize;
gs_param_string key, value;
@@ -459,8 +454,11 @@ pdfmark_put_ao_pairs(gx_device_pdf * pdev, cos_dict_t *pcd,
* simply write it at the top level. This doesn't seem right,
* but I'm not sure what else to do.
*/
- if (Dest.data)
+ if (Dest.data) {
+ if (coerce_dest)
+ pdfmark_coerce_dest(&Dest, dest);
pdfmark_put_c_pair(pdev, pcd, "/Dest", &Dest);
+ }
if (File)
pdfmark_put_pair(pdev, pcd, File);
if (Subtype.data)
@@ -730,14 +728,16 @@ pdfmark_ARTICLE(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
bead_id = pdf_obj_ref(pdev);
/* Find the article with this title, or create one. */
-#if 0 /****** FIX THIS ******/
- for (part = pdev->articles; part != 0; part = part->next)
- if (!bytes_compare(part->title.data, part->title.size,
+ for (part = pdev->articles; part != 0; part = part->next) {
+ const cos_value_t *a_title =
+ cos_dict_find(part->contents, (const byte *)"/Title", 6);
+
+ if (a_title != 0 && !a_title->is_object &&
+ !bytes_compare(a_title->contents.chars.data,
+ a_title->contents.chars.size,
title.data, title.size))
break;
-#else /****** FIX THIS ******/
- part = 0;
-#endif /****** FIX THIS ******/
+ }
if (part == 0) { /* Create the article. */
cos_dict_t *contents =
cos_dict_alloc(mem, "pdfmark_ARTICLE(contents)");
@@ -854,7 +854,9 @@ ps_source_ok(const gs_param_string * psource)
)
return true;
else {
- lprintf1("bad PS passthrough: %s\n", psource->data);
+ lprintf("bad PS passthrough: ");
+ fwrite(psource->data, 1, psource->size, estderr);
+ fputs("\n", estderr);
return false;
}
}
@@ -1225,7 +1227,7 @@ pdfmark_PUTSTREAM(gx_device_pdf * pdev, gs_param_string * pairs, uint count,
cos_object_t *pco;
int code, i;
- if (count != 2)
+ if (count < 2)
return_error(gs_error_rangecheck);
if ((code = pdf_get_named(pdev, &pairs[0], cos_type_stream, &pco)) < 0)
return code;
diff --git a/gs/src/gdevpdfo.c b/gs/src/gdevpdfo.c
index 3f1ee8e89..c10258b5f 100644
--- a/gs/src/gdevpdfo.c
+++ b/gs/src/gdevpdfo.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Cos object support */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/gdevpdfo.h b/gs/src/gdevpdfo.h
index bd124c10d..1031c1f9e 100644
--- a/gs/src/gdevpdfo.h
+++ b/gs/src/gdevpdfo.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for "objects" for pdfwrite driver. */
#ifndef gdevpdfo_INCLUDED
diff --git a/gs/src/gdevpdfp.c b/gs/src/gdevpdfp.c
index 7b1313afe..3291e4d0c 100644
--- a/gs/src/gdevpdfp.c
+++ b/gs/src/gdevpdfp.c
@@ -1,32 +1,22 @@
/* Copyright (C) 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Get/put parameters for PDF-writing driver */
#include "gx.h"
#include "gserrors.h"
#include "gdevpdfx.h"
#include "gsparamx.h"
+#ifdef POST60
+#include "memory_.h" /* should be first */
+#endif
/*
* The pdfwrite device supports the following "real" parameters:
* OutputFile <string>
- * all the Distiller parameters -- see gdevpsdp.c
+ * all the Distiller parameters (also see gdevpsdp.c)
* Only some of the Distiller parameters actually have any effect.
*
* The device also supports the following write-only pseudo-parameters that
@@ -36,7 +26,31 @@
* pdfmark - see gdevpdfm.c
*/
+#ifdef POST60
+private const int CoreDistVersion = 4000; /* Distiller 4.0 */
+private const gs_param_item_t pdf_param_items[] = {
+#define pi(key, type, memb) { key, type, offset_of(gx_device_pdf, memb) }
+ /* Acrobat Distiller 4 parameters */
+ pi("Optimize", gs_param_type_bool, Optimize),
+ pi("ParseDSCCommentsForDocInfo", gs_param_type_bool,
+ ParseDSCCommentsForDocInfo),
+ pi("ParseDSCComments", gs_param_type_bool, ParseDSCComments),
+ pi("EmitDSCWarnings", gs_param_type_bool, EmitDSCWarnings),
+ pi("CreateJobTicket", gs_param_type_bool, CreateJobTicket),
+ pi("PreserveEPSInfo", gs_param_type_bool, PreserveEPSInfo),
+ pi("AutoPositionEPSFile", gs_param_type_bool, AutoPositionEPSFile),
+ pi("PreserveCopyPage", gs_param_type_bool, PreserveCopyPage),
+ pi("UsePrologue", gs_param_type_bool, UsePrologue),
+ /* Ghostscript-specific parameters */
+ pi("ReAssignCharacters", gs_param_type_bool, ReAssignCharacters),
+ pi("ReEncodeCharacters", gs_param_type_bool, ReEncodeCharacters),
+ pi("FirstObjectNumber", gs_param_type_long, FirstObjectNumber),
+#undef pi
+ gs_param_item_end
+};
+#else
private const int CoreDistVersion = 3000; /* Distiller 3.0 */
+#endif
/* ---------------- Get parameters ---------------- */
@@ -45,19 +59,23 @@ int
gdev_pdf_get_params(gx_device * dev, gs_param_list * plist)
{
gx_device_pdf *pdev = (gx_device_pdf *) dev;
+ float cl = (float)pdev->CompatibilityLevel;
int code = gdev_psdf_get_params(dev, plist);
+ int cdv = CoreDistVersion;
if (code < 0 ||
- (code = param_write_float(plist, "CompatibilityLevel",
- &pdev->CompatibilityLevel)) < 0 ||
- (code = param_write_int(plist, "CoreDistVersion",
- (int *)&CoreDistVersion)) < 0 ||
+ (code = param_write_int(plist, "CoreDistVersion", &cdv)) < 0 ||
+ (code = param_write_float(plist, "CompatibilityLevel", &cl)) < 0 ||
+#ifdef POST60
+ (code = gs_param_write_items(plist, pdev, NULL, pdf_param_items)) < 0
+#else
(code = param_write_bool(plist, "ReAssignCharacters",
&pdev->ReAssignCharacters)) < 0 ||
(code = param_write_bool(plist, "ReEncodeCharacters",
&pdev->ReEncodeCharacters)) < 0 ||
(code = param_write_long(plist, "FirstObjectNumber",
&pdev->FirstObjectNumber)) < 0
+#endif
);
return code;
}
@@ -71,12 +89,16 @@ gdev_pdf_put_params(gx_device * dev, gs_param_list * plist)
gx_device_pdf *pdev = (gx_device_pdf *) dev;
int ecode = 0;
int code;
- float cl = pdev->CompatibilityLevel;
+#ifdef POST60
+ gx_device_pdf save_dev;
+#else
+ float cl = (float)pdev->CompatibilityLevel;
bool rac = pdev->ReAssignCharacters;
bool rec = pdev->ReEncodeCharacters;
long fon = pdev->FirstObjectNumber;
- gs_param_name param_name;
psdf_version save_version = pdev->version;
+#endif
+ gs_param_name param_name;
/*
* If this is a pseudo-parameter (show or pdfmark),
@@ -104,15 +126,6 @@ gdev_pdf_put_params(gx_device * dev, gs_param_list * plist)
/* General parameters. */
- switch (code = param_read_float(plist, (param_name = "CompatibilityLevel"), &cl)) {
- default:
- ecode = code;
- param_signal_error(plist, param_name, ecode);
- case 0:
- case 1:
- break;
- }
-
{
int cdv = CoreDistVersion;
@@ -121,6 +134,71 @@ gdev_pdf_put_params(gx_device * dev, gs_param_list * plist)
param_signal_error(plist, param_name, ecode = gs_error_rangecheck);
}
+#ifdef POST60
+ save_dev = *pdev;
+ code = gs_param_read_items(plist, pdev, pdf_param_items);
+ if (code < 0)
+ ecode = code;
+ {
+ /*
+ * Setting FirstObjectNumber is only legal if the file
+ * has just been opened and nothing has been written,
+ * or if we are setting it to the same value.
+ */
+ long fon = pdev->FirstObjectNumber;
+
+ if (fon != save_dev.FirstObjectNumber) {
+ if (fon <= 0 || fon > 0x7fff0000 ||
+ (pdev->next_id != 0 &&
+ pdev->next_id !=
+ save_dev.FirstObjectNumber + pdf_num_initial_ids)
+ ) {
+ ecode = gs_error_rangecheck;
+ param_signal_error(plist, "FirstObjectNumber", ecode);
+ }
+ }
+ }
+ if (ecode < 0)
+ goto fail;
+ /*
+ * We have to set version to the new value, because the set of
+ * legal parameter values for psdf_put_params varies according to
+ * the version.
+ */
+ pdev->version =
+ (pdev->CompatibilityLevel < 1.2 ? psdf_version_level2 :
+ psdf_version_ll3);
+ ecode = gdev_psdf_put_params(dev, plist);
+ if (ecode < 0)
+ goto fail;
+ if (pdev->FirstObjectNumber != save_dev.FirstObjectNumber) {
+ if (pdev->xref.file != 0) {
+ fseek(pdev->xref.file, 0L, SEEK_SET);
+ pdf_initialize_ids(pdev);
+ }
+ }
+ return 0;
+ fail:
+ /* Restore all the parameters to their original state. */
+ pdev->version = save_dev.version;
+ {
+ const gs_param_item_t *ppi = pdf_param_items;
+
+ for (; ppi->key; ++ppi)
+ memcpy((char *)pdev + ppi->offset,
+ (char *)&save_dev + ppi->offset,
+ gs_param_type_sizes[ppi->type]);
+ }
+ return ecode;
+#else
+ switch (code = param_read_float(plist, (param_name = "CompatibilityLevel"), &cl)) {
+ default:
+ ecode = code;
+ param_signal_error(plist, param_name, ecode);
+ case 0:
+ case 1:
+ break;
+ }
ecode = param_put_bool(plist, "ReAssignCharacters", &rac, ecode);
ecode = param_put_bool(plist, "ReEncodeCharacters", &rec, ecode);
switch (code = param_read_long(plist, (param_name = "FirstObjectNumber"), &fon)) {
@@ -161,7 +239,8 @@ gdev_pdf_put_params(gx_device * dev, gs_param_list * plist)
pdev->version = save_version;
return code;
}
- pdev->CompatibilityLevel = cl;
+ /* Handle the float/double mismatch. */
+ pdev->CompatibilityLevel = (int)(cl * 10 + 0.5) / 10.0;
pdev->ReAssignCharacters = rac;
pdev->ReEncodeCharacters = rec;
if (fon != pdev->FirstObjectNumber) {
@@ -172,4 +251,5 @@ gdev_pdf_put_params(gx_device * dev, gs_param_list * plist)
}
}
return 0;
+#endif
}
diff --git a/gs/src/gdevpdfr.c b/gs/src/gdevpdfr.c
index 3ad08875d..32c2ef8fa 100644
--- a/gs/src/gdevpdfr.c
+++ b/gs/src/gdevpdfr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Named object pdfmark processing */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/gdevpdft.c b/gs/src/gdevpdft.c
index e67324700..c9c7039b4 100644
--- a/gs/src/gdevpdft.c
+++ b/gs/src/gdevpdft.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Text handling for PDF-writing driver. */
#include "math_.h"
#include "memory_.h"
@@ -34,12 +21,19 @@
#include "scommon.h"
/*
- * When a base font is selected, we have several alternatives for how to
- * handle characters whose encoding doesn't match their encoding in the base
- * font's built-in encoding. If a character's glyph doesn't match the
- * character's glyph in the encoding built up so far, we check if the font
- * has that glyph at all; if not, we fall back to a bitmap. Otherwise, we
- * use one or both of the following algorithms:
+ * The PDF documentation does a pretty shoddy job of specifying use of fonts
+ * beyond the base 14, and on top of that, Acrobat Reader has some serious
+ * bugs. Specifically, Acrobat Reader 3's Print function has a bug that
+ * make re-encoded characters print as blank if the font is substituted (not
+ * embedded or one of the base 14).
+ *
+ * We do have to handle re-encoded Type 1 fonts, because TeX output makes
+ * constant use of them. We have several alternatives for how to handle
+ * characters whose encoding doesn't match their encoding in the base font's
+ * built-in encoding. If a character's glyph doesn't match the character's
+ * glyph in the encoding built up so far, we check if the font has that
+ * glyph at all; if not, we fall back to a bitmap. Otherwise, we use one or
+ * both of the following algorithms:
*
* 1. If this is the first time a character at this position has been
* seen, assign its glyph to that position in the encoding.
@@ -59,11 +53,9 @@
* it is important that strings be searchable, but some non-searchable
* strings can be tolerated, the defaults are appropriate. If searchability
* is not important, set ReAssignCharacters to false.
- *
- * Acrobat Reader 3's Print function has a bug that make re-encoded
- * characters print as blank if the font is substituted (not embedded).
- * Therefore, if CompatibilityLevel <= 1.2, for non-embedded fonts, no
- * substitutions or re-encodings are allowed.
+ *
+ * Because of the AR3 printing bug, if CompatibilityLevel <= 1.2, for
+ * non-embedded non-base fonts, no substitutions or re-encodings are allowed.
*/
/* Forward references */
@@ -96,10 +88,6 @@ typedef struct pdf_text_process_state_s {
pdf_font_t *pdfont;
} pdf_text_process_state_t;
-/* Forward references */
-private int pdf_encode_char(P4(gx_device_pdf *pdev, int chr,
- gs_font_base *bfont, pdf_font_t *ppf));
-
/* Define the auxiliary procedures for text processing. */
private int
pdf_text_resync(gs_text_enum_t *pte, const gs_text_enum_t *pfrom)
@@ -273,7 +261,7 @@ pdf_update_text_state(pdf_text_process_state_t *ppts, const pdf_text_enum_t *pen
/* Compute the scaling matrix and combined matrix. */
gs_matrix_invert(&orig_matrix, &smat);
- gs_matrix_multiply(&font->FontMatrix, &smat, &smat);
+ gs_matrix_multiply(&smat, &font->FontMatrix, &smat);
tmat = ctm_only(penum->pis);
tmat.tx = tmat.ty = 0;
gs_matrix_multiply(&smat, &tmat, &tmat);
@@ -319,20 +307,74 @@ pdf_update_text_state(pdf_text_process_state_t *ppts, const pdf_text_enum_t *pen
if (ppf == 0 || ppf->skip) {
int index = -1;
pdf_font_t ftemp;
+ int BaseEncoding = ENCODING_INDEX_UNKNOWN; /* -1 */
+ int same = 0;
+ pdf_font_embed_t embed =
+ pdf_font_embed_status(pdev, font, &index, &same);
+ bool have_widths = false;
- switch (pdf_font_embed_status(pdev, font, &index)) {
+ /*
+ * Compute the font descriptor now, to ensure that all the widths
+ * are available.
+ */
+ switch (embed) {
case FONT_EMBED_YES:
+ /*
+ * HACK: Acrobat Reader 3 has a bug that makes cmap formats 4
+ * and 6 not work in embedded TrueType fonts. Consequently, it
+ * can only handle embedded TrueType fonts if all the glyphs
+ * referenced by the Encoding have numbers 0-255. Check for
+ * this now.
+ */
+ if (font->FontType == ft_TrueType &&
+ pdev->CompatibilityLevel <= 1.2
+ ) {
+ int i;
+
+ for (i = 0; i <= 0xff; ++i) {
+ gs_glyph glyph =
+ font->procs.encode_char(font, (gs_char)i,
+ GLYPH_SPACE_INDEX);
+
+ if (glyph == gs_no_glyph ||
+ (glyph >= gs_min_cid_glyph &&
+ glyph <= gs_min_cid_glyph + 0xff)
+ )
+ continue;
+ /* Can't embed, punt. */
+ if (embed == FONT_EMBED_UNKNOWN)
+ goto no; /* OK not to embed */
+ return_error(gs_error_rangecheck);
+ }
+ }
code = pdf_compute_font_descriptor(pdev, &fdesc, font, NULL);
if (code < 0)
return code;
fdesc.FontFile_id = pdf_obj_ref(pdev);
goto wf;
+ case FONT_EMBED_UNKNOWN: /* default is not to embed */
case FONT_EMBED_NO:
+no: /*
+ * Per the PDF 1.3 documentation, there are only 3 BaseEncoding
+ * values allowed for non-embedded fonts. Pick one here.
+ */
+ BaseEncoding =
+ ((const gs_font_base *)base_font)->nearest_encoding_index;
+ switch (BaseEncoding) {
+ default:
+ BaseEncoding = ENCODING_INDEX_WINANSI;
+ case ENCODING_INDEX_WINANSI:
+ case ENCODING_INDEX_MACROMAN:
+ case ENCODING_INDEX_MACEXPERT:
+ break;
+ }
code = pdf_compute_font_descriptor(pdev, &fdesc, font, NULL);
if (code < 0)
return code;
wf: fdesc.id = pdf_obj_ref(pdev);
- {
+ /* falls through */
+ case FONT_EMBED_BASE14:
+ if (~same & (FONT_SAME_METRICS | FONT_SAME_ENCODING)) {
/*
* Before allocating the font resource, check that we can
* get all the widths.
@@ -340,15 +382,13 @@ wf: fdesc.id = pdf_obj_ref(pdev);
int i;
memset(&ftemp, 0, sizeof(ftemp));
- ftemp.descriptor = &fdesc;
for (i = 0; i <= 255; ++i) {
- code = pdf_char_width(&ftemp, i, font, NULL, NULL);
+ code = pdf_char_width(&ftemp, i, font, NULL);
if (code < 0 && code != gs_error_undefined)
return code;
}
+ have_widths = true;
}
- /* falls through */
- case FONT_EMBED_BASE14:
/*
* Allocate the font resource, but don't write it yet,
* because we don't know yet whether it will need
@@ -361,10 +401,13 @@ wf: fdesc.id = pdf_obj_ref(pdev);
ppf->fname.size = font_name.size;
ppf->FontType = font->FontType;
ppf->index = index;
+ ppf->BaseEncoding = BaseEncoding;
if (index < 0) {
*ppf->descriptor = fdesc;
ppf->font = font;
ppf->orig_matrix = orig_matrix;
+ }
+ if (have_widths) {
/*
* C's bizarre coercion rules make us use memcpy here
* rather than direct assignments, even though sizeof()
@@ -397,33 +440,80 @@ wf: fdesc.id = pdf_obj_ref(pdev);
return 0;
}
+/* Check whether a glyph exists in a (pseudo-)encoding. */
+private bool
+encoding_has_glyph(gs_font_base *bfont, gs_glyph font_glyph,
+ gs_encoding_index_t index)
+{
+ int ch;
+ gs_glyph glyph;
+
+ for (ch = 0;
+ (glyph = bfont->procs.callbacks.known_encode((gs_char)ch, index)) !=
+ gs_no_glyph;
+ ++ch)
+ if (glyph == font_glyph)
+ return true;
+ return false;
+}
+
/*
* For a given character, check whether the encodings are compatible, and if
* not, whether we can re-encode the character using the base encoding.
* Return the (possibly re-encoded) character if successful.
+ * This procedure should only be called when ppf->index >= 0.
*/
private int
try_encode_char(gx_device_pdf *pdev, int chr, gs_font_base *bfont,
pdf_font_t *ppf)
{
- /* Note: ei, but not bei, may be ENCODING_INDEX_UNKNOWN. */
+ /*
+ * bfont is the current font in which the text is being shown.
+ * ei is its encoding_index.
+ */
gs_encoding_index_t ei = bfont->encoding_index;
- gs_encoding_index_t bei = pdf_standard_fonts[ppf->index].base_encoding;
+ /*
+ * ppf->font is the font that underlies this PDF font (i.e., this PDF
+ * font is ppf->font plus some possible Encoding differences).
+ * ppf->font is 0 iff this PDF font is one of the standard 14 (i.e.,
+ * ppf->index >= 0). bei is the encoding index that will be written in
+ * the PDF file: it is NOT necessarily the same as
+ * ppf->font->encoding_index, or even ppf->font->nearest_encoding_index.
+ */
+ bool have_font = ppf->font && ppf->font->FontType != ft_composite;
+ bool is_standard = ppf->index >= 0;
+ gs_encoding_index_t bei =
+ (ppf->BaseEncoding >= 0 ? ppf->BaseEncoding :
+ is_standard ? pdf_standard_fonts[ppf->index].base_encoding :
+ /*
+ * Despite what seems like a clear statement in the PDF
+ * specification to the contrary, experimentation with Acrobat
+ * seems to indicate that the default encoding for embedded fonts
+ * is StandardEncoding, not the (arbitrary) encoding built into the
+ * font itself.
+ */
+ ENCODING_INDEX_STANDARD);
pdf_encoding_element_t *pdiff = ppf->differences;
+ /*
+ * If set, font_glyph is the glyph currently associated with chr in
+ * ppf + bei; glyph is the glyph corresponding to chr in bfont.
+ */
gs_glyph font_glyph, glyph;
- if (ei == bei && pdiff == 0) {
+ if (ei == bei && ei != ENCODING_INDEX_UNKNOWN && pdiff == 0) {
/*
* Just note that the character has been used with its original
* encoding.
*/
return chr;
}
+ if (!is_standard && !have_font)
+ return_error(gs_error_undefined); /* can't encode */
#define ENCODE(ch)\
- (pdiff != 0 && pdiff[ch].str.data != 0 ?\
- pdiff[ch].glyph :\
- bfont->procs.callbacks.known_encode((gs_char)(ch), bei))
+ (pdiff != 0 && pdiff[ch].str.data != 0 ? pdiff[ch].glyph :\
+ bei >= 0 ? bfont->procs.callbacks.known_encode((gs_char)(ch), bei) :\
+ /* have_font */ bfont->procs.encode_char(ppf->font, chr, GLYPH_SPACE_NAME))
font_glyph = ENCODE(chr);
glyph =
@@ -445,6 +535,32 @@ try_encode_char(gx_device_pdf *pdev, int chr, gs_font_base *bfont,
return_error(gs_error_undefined);
}
+ /*
+ * If the base font is a TrueType font, punt. See comments at the
+ * beginning of this file for more information.
+ */
+ if (bfont->FontType == ft_TrueType)
+ return_error(gs_error_undefined);
+
+ /*
+ * Check whether this glyph is available in the base font's glyph set
+ * at all.
+ */
+ switch (bei) {
+ case ENCODING_INDEX_STANDARD:
+ case ENCODING_INDEX_ISOLATIN1:
+ case ENCODING_INDEX_WINANSI:
+ case ENCODING_INDEX_MACROMAN:
+ /* Check the full Adobe glyph set(s). */
+ if (!encoding_has_glyph(bfont, glyph, ENCODING_INDEX_ALOGLYPH) &&
+ (pdev->CompatibilityLevel < 1.3 ||
+ !encoding_has_glyph(bfont, glyph, ENCODING_INDEX_ALXGLYPH))
+ )
+ return_error(gs_error_undefined);
+ default:
+ break;
+ }
+
if (pdev->ReAssignCharacters) {
/*
* If this is the first time we've seen this character,
@@ -695,7 +811,7 @@ pdf_text_process(gs_text_enum_t *pte)
goto top;
}
-/* ---------------- Font utilities ---------------- */
+/* ---------------- Text and font utilities ---------------- */
/* Forward declarations */
private int assign_char_code(P1(gx_device_pdf * pdev));
diff --git a/gs/src/gdevpdfu.c b/gs/src/gdevpdfu.c
index fe21cab52..931819f77 100644
--- a/gs/src/gdevpdfu.c
+++ b/gs/src/gdevpdfu.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Output utilities for PDF-writing driver */
#include "math_.h"
#include "memory_.h"
@@ -175,13 +162,18 @@ pdf_reset_graphics(gx_device_pdf * pdev)
{
color_set_pure(&pdev->fill_color, 0); /* black */
color_set_pure(&pdev->stroke_color, 0); /* ditto */
- pdev->flatness = -1;
+ pdev->state.flatness = -1;
{
- static const gx_line_params lp_initial =
- {gx_line_params_initial};
+ static const gx_line_params lp_initial = {
+ gx_line_params_initial
+ };
- pdev->line_params = lp_initial;
+ pdev->state.line_params = lp_initial;
}
+ pdev->text.character_spacing = 0;
+ pdev->text.font = NULL;
+ pdev->text.size = 0;
+ pdev->text.word_spacing = 0;
}
/* Set the fill or stroke color. */
@@ -244,53 +236,57 @@ pdf_put_matrix(gx_device_pdf * pdev, const char *before,
* use an escape sequence for anything except a null <00>.
*/
void
-pdf_put_name(const gx_device_pdf * pdev, const byte * nstr, uint size)
+pdf_put_name_escaped(stream *s, const byte *nstr, uint size, bool escape)
{
- stream *s = pdev->strm;
uint i;
- bool escape = pdev->CompatibilityLevel >= 1.2;
- char hex[4];
pputc(s, '/');
for (i = 0; i < size; ++i) {
uint c = nstr[i];
+ char hex[4];
switch (c) {
- case '%':
- case '(':
- case ')':
- case '<':
- case '>':
- case '[':
- case ']':
- case '{':
- case '}':
- /* These characters are invalid in both 1.1 and 1.2, */
- /* but can be escaped in 1.2. */
+ case '#':
+ /* These are valid in 1.1, but must be escaped in 1.2. */
if (escape) {
sprintf(hex, "#%02x", c);
pputs(s, hex);
break;
}
/* falls through */
- case 0:
- /* This is invalid in 1.1 and 1.2, and cannot be escaped. */
- pputc(s, '?');
- break;
+ default:
+ if (c >= 0x21 && c <= 0x7e) {
+ /* These are always valid. */
+ pputc(s, c);
+ break;
+ }
+ /* falls through */
+ case '%':
+ case '(': case ')':
+ case '<': case '>':
+ case '[': case ']':
+ case '{': case '}':
case '/':
- case '#':
- /* These are valid in 1.1, but must be escaped in 1.2. */
+ /* These characters are invalid in both 1.1 and 1.2, */
+ /* but can be escaped in 1.2. */
if (escape) {
sprintf(hex, "#%02x", c);
pputs(s, hex);
break;
}
/* falls through */
- default:
- pputc(s, c);
+ case 0:
+ /* This is invalid in 1.1 and 1.2, and cannot be escaped. */
+ pputc(s, '?');
}
}
}
+void
+pdf_put_name(const gx_device_pdf *pdev, const byte *nstr, uint size)
+{
+ pdf_put_name_escaped(pdev->strm, nstr, size,
+ pdev->CompatibilityLevel >= 1.2);
+}
/*
* Write a string in its shortest form ( () or <> ). Note that
diff --git a/gs/src/gdevpdfx.h b/gs/src/gdevpdfx.h
index d0162df6d..439666d71 100644
--- a/gs/src/gdevpdfx.h
+++ b/gs/src/gdevpdfx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for PDF-writing driver. */
#ifndef gdevpdfx_INCLUDED
@@ -98,19 +85,26 @@ struct pdf_resource_s {
/* ------ Fonts ------ */
/*
- * The PDF writer creates 3 different kinds of font resources:
+ * The PDF writer creates several different kinds of font resources.
+ * The key differences between them are the values of num_chars, index,
+ * and descriptor.
*
- * - Synthesized Type 3 bitmap fonts, identified by num_chars != 0
- * (or equivalently PDF_FONT_IS_SYNTHESIZED = true).
+ * - Synthesized Type 3 bitmap fonts are identified by num_chars != 0 (or
+ * equivalently PDF_FONT_IS_SYNTHESIZED = true). They have index < 0,
+ * descriptor == 0. All other fonts have num_chars == 0.
*
- * - Non-embedded Type 1 or TrueType fonts, identified by num_chars == 0,
- * descriptor != 0, descriptor->FontFile_id == 0. A font is in the
- * base 14 iff index >= 0.
+ * - The base 14 fonts have num_chars == 0, index >= 0, descriptor ==
+ * 0. All other fonts have index < 0.
*
- * - Embedded Type 1 or TrueType fonts, identified by num_chars == 0,
- * descriptor != 0, descriptor->FontFile_id != 0.
+ * - All other fonts (Type 1 or TrueType, embedded or not) have
+ * num_chars == 0, index < 0, descriptor != 0. A font is embedded
+ * iff descriptor->FontFile_id != 0.
+ *
+ * For non-synthesized fonts, the structure representation is designed to
+ * represent directly the information that will be written in the font
+ * resource, Encoding, and FontDescriptor dictionaries. See the comments
+ * on the pdf_font_t structure below for more detail.
*/
-
#define PDF_NUM_STD_FONTS 14
#define pdf_do_std_fonts(m)\
m("Courier", ENCODING_INDEX_STANDARD)\
@@ -136,7 +130,7 @@ typedef struct pdf_font_descriptor_s {
gs_int_rect FontBBox;
uint Flags;
/* Optional elements (default to 0) */
- long FontFile_id;
+ long FontFile_id; /* non-0 iff the font is embedded */
int AvgWidth, Leading, MaxWidth, MissingWidth, StemH, XHeight;
} pdf_font_descriptor_t;
/* Flag bits */
@@ -180,20 +174,25 @@ struct pdf_font_s {
font_type FontType;
gs_font *font; /* non-0 iff font will notify us; */
/* should be a weak pointer */
- int index; /* in pdf_standard_fonts */
+ int index; /* in pdf_standard_fonts, -1 if not base 14 */
gs_matrix orig_matrix; /* FontMatrix of unscaled font for embedding */
/*
* For synthesized fonts, frname is A, B, ...; for other fonts,
* frname is R<id>. The string is null-terminated.
*/
char frname[1/*R*/ + (sizeof(long) * 8 / 3 + 1) + 1/*\0*/];
- /* Encoding differences for base fonts. */
+ /* Encoding for base fonts. */
+ int BaseEncoding; /* if not -1, will be written as the */
+ /* BaseEncoding of the Encoding dict */
byte chars_used[32]; /* 1 bit per character code */
- pdf_encoding_element_t *differences; /* [256] */
- long diff_id;
+ pdf_encoding_element_t *differences; /* [256] if not 0, will be written */
+ /* as the Differences of the Encoding dict */
/* Bookkeeping for non-synthesized fonts. */
- pdf_font_descriptor_t *descriptor;
- int Widths[256];
+ pdf_font_descriptor_t *descriptor; /* if not 0, will be written as */
+ /* the FontDescriptor dict */
+ int Widths[256]; /* if index >= 0 or differences != 0, */
+ /* will be written as the Widths in the */
+ /* font resource dict */
byte widths_known[32]; /* 1 bit per character code */
bool skip; /* font was already written, skip it */
/* Bookkeeping for synthesized fonts. */
@@ -286,8 +285,9 @@ struct pdf_article_s {
/* Text state */
typedef struct pdf_std_font_s {
+ gs_font *font; /* weak pointer, may be 0 */
gs_matrix orig_matrix;
- gs_uid uid;
+ gs_uid uid; /* UniqueID, not XUID */
} pdf_std_font_t;
typedef struct pdf_text_state_s {
/* State parameters */
@@ -295,7 +295,6 @@ typedef struct pdf_text_state_s {
pdf_font_t *font;
floatp size;
float word_spacing;
- float horizontal_scaling;
/* Bookkeeping */
gs_matrix matrix; /* relative to device space, not user space */
gs_point line_start;
@@ -303,11 +302,10 @@ typedef struct pdf_text_state_s {
#define max_text_buffer 200 /* arbitrary, but overflow costs 5 chars */
byte buffer[max_text_buffer];
int buffer_count;
- pdf_std_font_t std_fonts[PDF_NUM_STD_FONTS]; /* must be last (can't initialize) */
} pdf_text_state_t;
#define pdf_text_state_default\
- 0, NULL, 0, 0, 100,\
+ 0, NULL, 0, 0,\
{ identity_matrix_body }, { 0, 0 }, { 0, 0 }, { 0 }, 0
/* Resource lists */
@@ -375,7 +373,18 @@ typedef struct gx_device_pdf_s gx_device_pdf_t;
struct gx_device_pdf_s {
gx_device_psdf_common;
/* PDF-specific distiller parameters */
- float CompatibilityLevel;
+ double CompatibilityLevel;
+#ifdef POST60
+ bool Optimize;
+ bool ParseDSCCommentsForDocInfo;
+ bool ParseDSCComments;
+ bool EmitDSCWarnings;
+ bool CreateJobTicket;
+ bool PreserveEPSInfo;
+ bool AutoPositionEPSFile;
+ bool PreserveCopyPage;
+ bool UsePrologue;
+#endif
/* End of distiller parameters */
/* Other parameters */
bool ReAssignCharacters;
@@ -434,13 +443,8 @@ struct gx_device_pdf_s {
long contents_length_id;
long contents_pos;
pdf_procset procsets; /* used on this page */
- float flatness;
-/****** SHOULD USE state ******/
- /* The line width, dash offset, and dash pattern */
- /* are in default user space units. */
- gx_line_params line_params; /* current values */
-/****** SHOULD USE state ******/
pdf_text_state_t text;
+ pdf_std_font_t std_fonts[PDF_NUM_STD_FONTS];
long space_char_ids[X_SPACE_MAX - X_SPACE_MIN + 1];
#define initial_num_pages 50
pdf_page_t *pages;
@@ -470,16 +474,17 @@ struct gx_device_pdf_s {
m(5,pictures.strm) m(6,pictures.strm_buf) m(7,pictures.save_strm)\
m(8,open_font)\
m(9,Catalog) m(10,Info) m(11,Pages)\
- m(12,line_params.dash.pattern) m(13,text.font) m(14,pages)\
- m(15,cs_Pattern) m(16,last_resource)\
- m(17,articles) m(18,Dests) m(19,named_objects) m(20,open_graphics)
-#define gx_device_pdf_num_ptrs 21
+ m(12,text.font) m(13,pages)\
+ m(14,cs_Pattern) m(15,last_resource)\
+ m(16,articles) m(17,Dests) m(18,named_objects) m(19,open_graphics)
+#define gx_device_pdf_num_ptrs 20
#define gx_device_pdf_do_strings(m) /* do nothing */
#define gx_device_pdf_num_strings 0
#define st_device_pdf_max_ptrs\
(st_device_psdf_max_ptrs + gx_device_pdf_num_ptrs +\
- gx_device_pdf_num_strings + NUM_RESOURCE_TYPES * NUM_RESOURCE_CHAINS +\
- MAX_OUTLINE_DEPTH * 2)
+ gx_device_pdf_num_strings + PDF_NUM_STD_FONTS /* std_fonts[].font */ +\
+ NUM_RESOURCE_TYPES * NUM_RESOURCE_CHAINS /* resources[].chains[] */ +\
+ MAX_OUTLINE_DEPTH * 2 /* outline_levels[].{first,last}.action */
#define private_st_device_pdfwrite() /* in gdevpdf.c */\
gs_private_st_composite_final(st_device_pdfwrite, gx_device_pdf,\
@@ -536,24 +541,26 @@ int pdf_end_obj(P1(gx_device_pdf * pdev));
/* ------ Graphics ------ */
/* Reset the graphics state parameters to initial values. */
-void pdf_reset_graphics(P1(gx_device_pdf * pdev));
+void pdf_reset_graphics(P1(gx_device_pdf *pdev));
/* Set the fill or stroke color. */
-int pdf_set_color(P4(gx_device_pdf * pdev, gx_color_index color,
- gx_drawing_color * pdcolor, const char *rgs));
+int pdf_set_color(P4(gx_device_pdf *pdev, gx_color_index color,
+ gx_drawing_color *pdcolor, const char *rgs));
/* Write matrix values. */
-void pdf_put_matrix(P4(gx_device_pdf * pdev, const char *before,
- const gs_matrix * pmat, const char *after));
+void pdf_put_matrix(P4(gx_device_pdf *pdev, const char *before,
+ const gs_matrix *pmat, const char *after));
/* Write a name, with escapes for unusual characters. */
-void pdf_put_name(P3(const gx_device_pdf * pdev, const byte * nstr, uint size));
+void pdf_put_name_escaped(P4(stream *s, const byte *nstr, uint size,
+ bool escape));
+void pdf_put_name(P3(const gx_device_pdf *pdev, const byte *nstr, uint size));
/* Write a string in its shortest form ( () or <> ). */
-void pdf_put_string(P3(const gx_device_pdf * pdev, const byte * str, uint size));
+void pdf_put_string(P3(const gx_device_pdf *pdev, const byte *str, uint size));
/* Write a value, treating names specially. */
-void pdf_write_value(P3(const gx_device_pdf * pdev, const byte * vstr, uint size));
+void pdf_write_value(P3(const gx_device_pdf *pdev, const byte *vstr, uint size));
/* ------ Page contents ------ */
@@ -748,6 +755,7 @@ int pdf_do_char_image(P3(gx_device_pdf * pdev, const pdf_char_proc_t * pcp,
typedef enum {
FONT_EMBED_BASE14,
+ FONT_EMBED_UNKNOWN, /* neither AlwaysEmbed nor NeverEmbed */
FONT_EMBED_NO,
FONT_EMBED_YES
} pdf_font_embed_t;
@@ -764,10 +772,11 @@ bool pdf_find_orig_font(P4(gx_device_pdf *pdev, gs_font *font,
/*
* Determine the embedding status of a font. If the font is in the base
- * 14, store its index (0..13) in *pindex.
+ * 14, store its index (0..13) in *pindex and its similarity to the base
+ * font (as determined by the font's same_font procedure) in *psame.
*/
-pdf_font_embed_t pdf_font_embed_status(P3(gx_device_pdf *pdev, gs_font *font,
- int *pindex));
+pdf_font_embed_t pdf_font_embed_status(P4(gx_device_pdf *pdev, gs_font *font,
+ int *pindex, int *psame));
/* Allocate a font resource. */
int pdf_alloc_font(P4(gx_device_pdf *pdev, gs_id rid, pdf_font_t **ppfres,
@@ -778,8 +787,8 @@ int pdf_add_encoding_difference(P5(gx_device_pdf *pdev, pdf_font_t *ppf, int chr
const gs_font_base *bfont, gs_glyph glyph));
/* Get the width of a given character in a (base) font. */
-int pdf_char_width(P5(pdf_font_t *ppf, int ch, gs_font *font,
- const gs_matrix *pmat, int *pwidth /* may be NULL */));
+int pdf_char_width(P4(pdf_font_t *ppf, int ch, gs_font *font,
+ int *pwidth /* may be NULL */));
/* Compute the FontDescriptor for a font or a font subset. */
int pdf_compute_font_descriptor(P4(gx_device_pdf *pdev,
diff --git a/gs/src/gdevpe.c b/gs/src/gdevpe.c
index 4b2b3fd7b..19a82efb9 100644
--- a/gs/src/gdevpe.c
+++ b/gs/src/gdevpe.c
@@ -1,24 +1,14 @@
/* Copyright (C) 1989, 1990, 1991, 1994, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
-
-/* Private Eye display driver
- Hacked by Fran Taylor, Reflection Technology Inc. */
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+
+/*$RCSfile$ $Revision$*/
+/*
+ * Private Eye display driver
+ *
+ * Hacked by Fran Taylor, Reflection Technology Inc.
+ */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gdevpipe.c b/gs/src/gdevpipe.c
index fb61972d4..604f41df3 100644
--- a/gs/src/gdevpipe.c
+++ b/gs/src/gdevpipe.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* %pipe% IODevice */
#include "errno_.h"
#include "pipe_.h"
diff --git a/gs/src/gdevpjet.c b/gs/src/gdevpjet.c
index 21db11383..82e0fdf6a 100644
--- a/gs/src/gdevpjet.c
+++ b/gs/src/gdevpjet.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* H-P PaintJet, PaintJet XL, and DEC LJ250 drivers. */
/* Thanks to Rob Reiss (rob@moray.berkeley.edu) for the PaintJet XL */
/* modifications. */
diff --git a/gs/src/gdevplnx.c b/gs/src/gdevplnx.c
index 4486d65ba..07c48841c 100644
--- a/gs/src/gdevplnx.c
+++ b/gs/src/gdevplnx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Plane extraction device */
#include "gx.h"
#include "gserrors.h"
@@ -820,7 +807,6 @@ typedef struct plane_image_enum_s {
const gs_imager_state *pis; /* original imager state */
gs_imager_state *pis_image; /* modified imager state */
} plane_image_enum_t;
-extern_st(st_gx_image_enum_common);
gs_private_st_suffix_add3(st_plane_image_enum, plane_image_enum_t,
"plane_image_enum_t", plane_image_enum_enum_ptrs,
plane_image_enum_reloc_ptrs, st_gx_image_enum_common, info, pis, pis_image);
diff --git a/gs/src/gdevplnx.h b/gs/src/gdevplnx.h
index ce4d64e60..b73d6c926 100644
--- a/gs/src/gdevplnx.h
+++ b/gs/src/gdevplnx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Definitions and API for plane extraction device */
/* Requires gxdevcli.h */
diff --git a/gs/src/gdevpm.c b/gs/src/gdevpm.c
index a70cd2213..3d2f2d6d1 100644
--- a/gs/src/gdevpm.c
+++ b/gs/src/gdevpm.c
@@ -1,24 +1,12 @@
/* Copyright (C) 1992, 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* OS/2 Presentation manager driver
+ *
* By Russell Lang (based on gdevmswn.c and gdevwdib.c)
*
* If Ghostscript is a PM application, stdin/stdout are not
@@ -63,7 +51,7 @@
#include "gdevpm.h"
#ifdef __DLL__
#include "gsdll.h"
-#include "gsdllwin.h"
+#include "gsdllos2.h"
#endif
#define MIN_COMMIT 4096 /* memory is committed in these size chunks */
@@ -170,7 +158,6 @@ gx_device_pm far_data gs_os2pm_device =
INITIAL_RESOLUTION, INITIAL_RESOLUTION),
{0}, /* std_procs */
8, /* BitsPerPixel */
- 1, 1, /* alpha */
5000, /* UpdateInterval */
"\0", /* GSVIEW */
0 /* is not DLL device */
diff --git a/gs/src/gdevpm.h b/gs/src/gdevpm.h
index 41cc44c67..50c060956 100644
--- a/gs/src/gdevpm.h
+++ b/gs/src/gdevpm.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Defines common to gdevpm.c, gspmdrv.c and PM GSview */
#ifndef gdevpm_INCLUDED
diff --git a/gs/src/gdevpng.c b/gs/src/gdevpng.c
index 047bfe54c..885ed2d4c 100644
--- a/gs/src/gdevpng.c
+++ b/gs/src/gdevpng.c
@@ -1,23 +1,12 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PNG (Portable Network Graphics) Format. Pronounced "ping". */
+/* lpd 1999-09-24: changes PNG_NO_STDIO to PNG_NO_CONSOLE_IO for libpng
+ versions 1.0.3 and later. */
/* lpd 1999-07-01: replaced remaining uses of gs_malloc and gs_free with
gs_alloc_bytes and gs_free_object. */
/* lpd 1999-03-08: changed png.h to png_.h to allow compiling with only
@@ -39,7 +28,20 @@
#include "gscdefs.h"
#define PNG_INTERNAL
-#define PNG_NO_STDIO
+/*
+ * libpng versions 1.0.3 and later allow disabling access to the stdxxx
+ * files while retaining support for FILE * I/O.
+ */
+#define PNG_NO_CONSOLE_IO
+/*
+ * Earlier libpng versions require disabling FILE * I/O altogether.
+ * This produces a compiler warning about no prototype for png_init_io.
+ * The right thing will happen at link time, since the library itself
+ * is compiled with stdio support. Unfortunately, we can't do this
+ * conditionally depending on PNG_LIBPNG_VER, because this is defined
+ * in png.h.
+ */
+/*#define PNG_NO_STDIO*/
#include "png_.h"
/* ------ The device descriptors ------ */
diff --git a/gs/src/gdevppla.c b/gs/src/gdevppla.c
index fd6893617..4ba80e462 100644
--- a/gs/src/gdevppla.c
+++ b/gs/src/gdevppla.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Support for printer devices with planar buffering. */
#include "gdevprn.h"
#include "gdevmpla.h"
diff --git a/gs/src/gdevppla.h b/gs/src/gdevppla.h
index 807fb47e6..eac4032d4 100644
--- a/gs/src/gdevppla.h
+++ b/gs/src/gdevppla.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Support for printer devices with planar buffering. */
/* Requires gdevprn.h */
diff --git a/gs/src/gdevprn.c b/gs/src/gdevprn.c
index c8efbc9f4..fb070e845 100644
--- a/gs/src/gdevprn.c
+++ b/gs/src/gdevprn.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic printer driver support */
#include "ctype_.h"
#include "gdevprn.h"
diff --git a/gs/src/gdevprn.h b/gs/src/gdevprn.h
index 16527f25c..b7c7f155b 100644
--- a/gs/src/gdevprn.h
+++ b/gs/src/gdevprn.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common header file for memory-buffered printers */
#ifndef gdevprn_INCLUDED
diff --git a/gs/src/gdevprna.h b/gs/src/gdevprna.h
index c8ea45210..b9ef0cfc3 100644
--- a/gs/src/gdevprna.h
+++ b/gs/src/gdevprna.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$ */
/* Generic asynchronous printer driver support */
/* Initial version 2/1/1998 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gdevps.c b/gs/src/gdevps.c
index e7ce039da..be8e028c7 100644
--- a/gs/src/gdevps.c
+++ b/gs/src/gdevps.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript-writing driver */
#include "math_.h"
#include "memory_.h"
@@ -989,6 +976,9 @@ psw_copy_mono(gx_device * dev, const byte * data,
}
if (code < 0)
return 0;
+ code = gdev_vector_update_clip_path(vdev, NULL);
+ if (code < 0)
+ return code;
return psw_image_write(pdev, op, data, data_x, raster, id,
x, y, w, h, 1);
}
@@ -1002,6 +992,7 @@ psw_copy_color(gx_device * dev,
int depth = dev->color_info.depth;
const byte *bits = data + data_x * 3;
char op[6];
+ int code;
if (w <= 0 || h <= 0)
return 0;
@@ -1017,6 +1008,9 @@ psw_copy_color(gx_device * dev,
(dev, x, y, w, h, (bits[0] << 16) + (bits[1] << 8) + bits[2]);
}
sprintf(op, "%d Ic", depth / 3); /* RGB */
+ code = gdev_vector_update_clip_path(vdev, NULL);
+ if (code < 0)
+ return code;
return psw_image_write(pdev, op, data, data_x, raster, id,
x, y, w, h, depth);
}
diff --git a/gs/src/gdevpsci.c b/gs/src/gdevpsci.c
index cf0268247..cc0bb8b83 100644
--- a/gs/src/gdevpsci.c
+++ b/gs/src/gdevpsci.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript color image output device */
#include "gdevprn.h"
#include "stream.h"
diff --git a/gs/src/gdevpsd1.c b/gs/src/gdevpsd1.c
index a6a81251c..0ea2f7dcc 100644
--- a/gs/src/gdevpsd1.c
+++ b/gs/src/gdevpsd1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Write an embedded Type 1 font */
#include "memory_.h"
#include "gx.h"
@@ -32,6 +19,7 @@
#include "spprint.h"
#include "gdevpsdf.h"
+/* Write a (named) array of floats. */
private int
write_float_array(gs_param_list *plist, const char *key, const float *values,
int count)
@@ -46,6 +34,7 @@ write_float_array(gs_param_list *plist, const char *key, const float *values,
return 0;
}
+/* Write a UniqueID and/or XUID. */
private void
write_uid(stream *s, const gs_uid *puid)
{
@@ -57,10 +46,77 @@ write_uid(stream *s, const gs_uid *puid)
pputs(s, "/XUID [");
for (i = 0; i < n; ++i)
pprintld1(s, "%ld ", uid_XUID_values(puid)[i]);
- pputs(s, "] def\n");
+ pputs(s, "] readonly def\n");
}
}
+/* Write the font name. */
+private void
+write_font_name(stream *s, const gs_font_type1 *pfont,
+ const gs_const_string *alt_font_name)
+{
+ if (alt_font_name)
+ pwrite(s, alt_font_name->data, alt_font_name->size);
+ else
+ pwrite(s, pfont->font_name.chars, pfont->font_name.size);
+}
+/*
+ * Write the Encoding array. This is a separate procedure only for
+ * readability.
+ */
+private int
+write_Encoding(stream *s, gs_font_type1 *pfont, int options,
+ gs_glyph *subset_glyphs, uint subset_size, gs_glyph notdef)
+{
+ pputs(s, "/Encoding ");
+ switch (pfont->encoding_index) {
+ case ENCODING_INDEX_STANDARD:
+ pputs(s, "StandardEncoding");
+ break;
+ case ENCODING_INDEX_ISOLATIN1:
+ /* ATM only recognizes StandardEncoding. */
+ if (options & WRITE_TYPE1_POSTSCRIPT) {
+ pputs(s, "ISOLatin1Encoding");
+ break;
+ }
+ default:{
+ gs_char i;
+
+ pputs(s, "256 array\n");
+ pputs(s, "0 1 255 {1 index exch /.notdef put} for\n");
+ for (i = 0; i < 256; ++i) {
+ gs_glyph glyph =
+ (*pfont->procs.encode_char)
+ ((gs_font *)pfont, (gs_char)i, GLYPH_SPACE_NAME);
+ const char *namestr;
+ uint namelen;
+
+ if (subset_glyphs && subset_size) {
+ /*
+ * Only write Encoding entries for glyphs in the
+ * subset. Use binary search to check each glyph,
+ * since subset_glyphs are sorted.
+ */
+ if (!psdf_sorted_glyphs_include(subset_glyphs,
+ subset_size, glyph))
+ continue;
+ }
+ if (glyph != gs_no_glyph && glyph != notdef &&
+ (namestr = (*pfont->procs.callbacks.glyph_name)
+ (glyph, &namelen)) != 0
+ ) {
+ pprintd1(s, "dup %d /", (int)i);
+ pwrite(s, namestr, namelen);
+ pputs(s, " put\n");
+ }
+ }
+ pputs(s, "readonly");
+ }
+ }
+ pputs(s, " def\n");
+ return 0;
+}
+
/*
* Write the Private dictionary. This is a separate procedure only for
* readability.
@@ -72,7 +128,7 @@ write_Private(stream *s, gs_font_type1 *pfont,
{
const gs_type1_data *const pdata = &pfont->data;
printer_param_list_t rlist;
- gs_param_list *plist = (gs_param_list *)&rlist;
+ gs_param_list *const plist = (gs_param_list *)&rlist;
int code = s_init_param_printer(&rlist, ppp, s);
if (code < 0)
@@ -137,7 +193,10 @@ write_Private(stream *s, gs_font_type1 *pfont,
pputs(s, "/MinFeature{16 16} def\n");
pputs(s, "/password 5839 def\n");
- /* Write the Subrs. We always write them all, even for subsets. */
+ /*
+ * Write the Subrs. We always write them all, even for subsets.
+ * (We will fix this someday.)
+ */
{
int n, i;
@@ -205,6 +264,18 @@ write_Private(stream *s, gs_font_type1 *pfont,
return 0;
}
+/* Write one FontInfo entry. */
+private void
+write_font_info(stream *s, const char *key, const gs_const_string *pvalue,
+ int do_write)
+{
+ if (do_write) {
+ pprints1(s, "\n/%s ", key);
+ s_write_ps_string(s, pvalue->data, pvalue->size, 0);
+ pputs(s, " def");
+ }
+}
+
/* Write the definition of a Type 1 font. */
int
psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
@@ -215,6 +286,7 @@ psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
long start = stell(s);
param_printer_params_t ppp;
printer_param_list_t rlist;
+ gs_param_list *const plist = (gs_param_list *)&rlist;
stream AXE_stream;
stream_AXE_state AXE_state;
byte AXE_buf[200]; /* arbitrary */
@@ -222,7 +294,7 @@ psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
stream_exE_state exE_state;
byte exE_buf[200]; /* arbitrary */
gs_glyph notdef = gs_no_glyph;
- gs_glyph subset_data[256+1]; /* +1 for .notdef */
+ gs_glyph subset_data[256 * 3 + 1]; /* *3 for seac, +1 for .notdef */
gs_glyph *subset_glyphs = orig_subset_glyphs;
uint subset_size = orig_subset_size;
int code;
@@ -298,6 +370,16 @@ psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
}
}
if (subset_glyphs) {
+ /*
+ * For subset fonts, we must ensure that characters referenced
+ * by seac are also included. Note that seac creates at most
+ * 2 pieces.
+ */
+ code = psdf_add_subset_pieces(subset_glyphs, &subset_size,
+ countof(subset_data) - 1, 2,
+ (gs_font *)pfont);
+ if (code < 0)
+ return code;
/* Subset fonts require .notdef. */
if (notdef == gs_no_glyph)
return_error(gs_error_rangecheck);
@@ -319,87 +401,41 @@ psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
/* Write the font header. */
pputs(s, "%!FontType1-1.0: ");
- pwrite(s, pfont->font_name.chars, pfont->font_name.size);
+ write_font_name(s, pfont, alt_font_name);
pputs(s, "\n11 dict begin\n");
- /* Write FontInfo. Currently we don't write anything there. */
+ /* Write FontInfo. */
- pputs(s, "/FontInfo 1 dict dup begin\n");
- /****** SHOULD USE param_list API FOR ADDITIONAL ELEMENTS ******/
- pputs(s, "end readonly def\n");
+ pputs(s, "/FontInfo 5 dict dup begin");
+ {
+ gs_font_info_t info;
+ int code = pfont->procs.font_info((gs_font *)pfont, NULL,
+ (FONT_INFO_COPYRIGHT | FONT_INFO_NOTICE |
+ FONT_INFO_FAMILY_NAME | FONT_INFO_FULL_NAME),
+ &info);
+
+ if (code >= 0) {
+ write_font_info(s, "Copyright", &info.Copyright,
+ info.members & FONT_INFO_COPYRIGHT);
+ write_font_info(s, "Notice", &info.Notice,
+ info.members & FONT_INFO_NOTICE);
+ write_font_info(s, "FamilyName", &info.FamilyName,
+ info.members & FONT_INFO_FAMILY_NAME);
+ write_font_info(s, "FullName", &info.FullName,
+ info.members & FONT_INFO_FULL_NAME);
+ }
+ }
+ pputs(s, "\nend readonly def\n");
/* Write the main font dictionary. */
pputs(s, "/FontName /");
- if (alt_font_name)
- pwrite(s, alt_font_name->data, alt_font_name->size);
- else
- pwrite(s, pfont->font_name.chars, pfont->font_name.size);
- pputs(s, " def\n");
- pputs(s, "/Encoding ");
- switch (pfont->encoding_index) {
- case ENCODING_INDEX_STANDARD:
- pputs(s, "StandardEncoding");
- break;
- case ENCODING_INDEX_ISOLATIN1:
- /* ATM only recognizes StandardEncoding. */
- if (options & WRITE_TYPE1_POSTSCRIPT) {
- pputs(s, "ISOLatin1Encoding");
- break;
- }
- default:{
- gs_char i;
-
- pputs(s, "256 array\n");
- pputs(s, "0 1 255 {1 index exch /.notdef put} for\n");
- for (i = 0; i < 256; ++i) {
- gs_glyph glyph =
- (*pfont->procs.encode_char)
- ((gs_font *)pfont, (gs_char)i, GLYPH_SPACE_NAME);
- const char *namestr;
- uint namelen;
-
- if (subset_glyphs && subset_size) {
- /*
- * Only write Encoding entries for glyphs in the
- * subset. Use binary search to check each glyph,
- * since subset_glyphs are sorted.
- */
- int lo = 0, hi = subset_size - 1;
-
- if (glyph < subset_glyphs[0] ||
- glyph > subset_glyphs[subset_size - 1]
- )
- continue;
- /*
- * Loop invariants: hi > lo;
- * subset_glyphs[lo] <= glyph <= subset_glyphs[hi].
- */
- while (hi - lo > 1) {
- int mid = (lo + hi) >> 1;
- if (glyph >= subset_glyphs[mid])
- lo = mid;
- else
- hi = mid;
- }
- if (glyph != subset_glyphs[lo] &&
- glyph != subset_glyphs[hi]
- )
- continue;
- }
- if (glyph != gs_no_glyph && glyph != notdef &&
- (namestr = (*pfont->procs.callbacks.glyph_name)
- (glyph, &namelen)) != 0
- ) {
- pprintd1(s, "dup %d /", (int)i);
- pwrite(s, namestr, namelen);
- pputs(s, " put\n");
- }
- }
- pputs(s, "readonly");
- }
- }
+ write_font_name(s, pfont, alt_font_name);
pputs(s, " def\n");
+ code = write_Encoding(s, pfont, options, subset_glyphs, subset_size,
+ notdef);
+ if (code < 0)
+ return code;
pprintg6(s, "/FontMatrix [%g %g %g %g %g %g] readonly def\n",
pfont->FontMatrix.xx, pfont->FontMatrix.xy,
pfont->FontMatrix.yx, pfont->FontMatrix.yy,
@@ -409,8 +445,7 @@ psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
pfont->FontBBox.p.x, pfont->FontBBox.p.y,
pfont->FontBBox.q.x, pfont->FontBBox.q.y);
{
- private const gs_param_item_t font_items[] =
- {
+ private const gs_param_item_t font_items[] = {
{"FontType", gs_param_type_int,
offset_of(gs_font_type1, FontType)},
{"PaintType", gs_param_type_int,
@@ -420,11 +455,16 @@ psdf_write_type1_font(stream *s, gs_font_type1 *pfont, int options,
gs_param_item_end
};
- code = gs_param_write_items((gs_param_list *)&rlist, pfont, NULL,
- font_items);
+ code = gs_param_write_items(plist, pfont, NULL, font_items);
if (code < 0)
return code;
}
+ {
+ const gs_type1_data *const pdata = &pfont->data;
+
+ write_float_array(plist, "WeightVector", pdata->WeightVector.values,
+ pdata->WeightVector.count);
+ }
pputs(s, "currentdict end\n");
/* Write the Private dictionary. */
diff --git a/gs/src/gdevpsdf.c b/gs/src/gdevpsdf.c
index 24a358a08..92c98a5ea 100644
--- a/gs/src/gdevpsdf.c
+++ b/gs/src/gdevpsdf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common utilities for PostScript and PDF writers */
#include "memory_.h"
#include <stdlib.h> /* for qsort */
@@ -362,6 +349,43 @@ psdf_subset_glyphs(gs_glyph glyphs[256], gs_font *font, const byte used[32])
}
/*
+ * Add composite glyph pieces to a list of glyphs. Does not sort or
+ * remove duplicates. max_pieces is the maximum number of pieces that a
+ * single glyph can have: if this value is not known, the caller should
+ * use max_count.
+ */
+int
+psdf_add_subset_pieces(gs_glyph *glyphs, uint *pcount, uint max_count,
+ uint max_pieces, gs_font *font)
+{
+ uint i;
+ uint count = *pcount;
+
+ for (i = 0; i < count; ++i) {
+ gs_glyph_info_t info;
+ int code;
+
+ if (count + max_pieces > max_count) {
+ /* Check first to make sure there is enough room. */
+ code = font->procs.glyph_info(font, glyphs[i], NULL,
+ GLYPH_INFO_NUM_PIECES, &info);
+ if (code < 0)
+ continue;
+ if (count + info.num_pieces > max_count)
+ return_error(gs_error_rangecheck);
+ }
+ info.pieces = &glyphs[count];
+ code = font->procs.glyph_info(font, glyphs[i], NULL,
+ GLYPH_INFO_NUM_PIECES |
+ GLYPH_INFO_PIECES, &info);
+ if (code >= 0)
+ count += info.num_pieces;
+ }
+ *pcount = count;
+ return 0;
+}
+
+/*
* Sort a list of glyphs and remove duplicates. Return the number of glyphs
* in the result.
*/
@@ -383,3 +407,26 @@ psdf_sort_glyphs(gs_glyph *glyphs, int count)
glyphs[n++] = glyphs[i];
return n;
}
+
+/* Determine whether a sorted list of glyphs includes a given glyph. */
+bool
+psdf_sorted_glyphs_include(const gs_glyph *glyphs, int count, gs_glyph glyph)
+{
+ int lo = 0, hi = count - 1;
+
+ if (glyph < glyphs[0] || glyph > glyphs[count - 1])
+ return false;
+ /*
+ * Loop invariants: hi > lo;
+ * glyphs[lo] <= glyph <= glyphs[hi].
+ */
+ while (hi - lo > 1) {
+ int mid = (lo + hi) >> 1;
+
+ if (glyph >= glyphs[mid])
+ lo = mid;
+ else
+ hi = mid;
+ }
+ return (glyph == glyphs[lo] || glyph == glyphs[hi]);
+}
diff --git a/gs/src/gdevpsdf.h b/gs/src/gdevpsdf.h
index c0b094cfe..cb22525a8 100644
--- a/gs/src/gdevpsdf.h
+++ b/gs/src/gdevpsdf.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common output syntax and parameters for PostScript and PDF writers */
#ifndef gdevpsdf_INCLUDED
@@ -29,6 +16,8 @@
#include "scfx.h"
#include "spsdf.h"
+/*#define POST60*/
+
extern const stream_template s_DCTE_template; /* don't want all of sdct.h */
/*
@@ -39,6 +28,12 @@ extern const stream_template s_DCTE_template; /* don't want all of sdct.h */
/* ---------------- Distiller parameters ---------------- */
+#ifdef POST60
+#define POST60_VALUE(v) v,
+#else
+#define POST60_VALUE(v) /* */
+#endif
+
/* Parameters for controlling distillation of images. */
typedef struct psdf_image_params_s {
stream_state *ACSDict; /* JPEG */
@@ -47,8 +42,14 @@ typedef struct psdf_image_params_s {
int Depth;
stream_state *Dict; /* JPEG or CCITTFax */
bool Downsample;
+#ifdef POST60
+ float DownsampleThreshold;
+#endif
enum psdf_downsample_type {
ds_Average,
+#ifdef POST60
+ ds_Bicubic,
+#endif
ds_Subsample
} DownsampleType;
bool Encode;
@@ -57,9 +58,9 @@ typedef struct psdf_image_params_s {
const stream_template *filter_template;
} psdf_image_params;
-#define psdf_image_param_defaults(af, res, f, ft)\
+#define psdf_image_param_defaults(af, res, dst, f, ft)\
NULL/*ACSDict*/, 0/*false*/, af, -1, NULL/*Dict*/, 0/*false*/,\
- ds_Subsample, 1/*true*/, f, res, ft
+ POST60_VALUE(dst) ds_Subsample, 1/*true*/, f, res, ft
/* Declare templates for default image compression filters. */
extern const stream_template s_CFE_template;
@@ -75,12 +76,39 @@ typedef struct psdf_distiller_params_s {
arp_All,
arp_PageByPage
} AutoRotatePages;
+#ifdef POST60
+ enum psdf_binding {
+ binding_Left,
+ binding_Right
+ } Binding;
+#endif
bool CompressPages;
+#ifdef POST60
+ enum psdf_default_rendering_intent {
+ ri_Default,
+ ri_Perceptual,
+ ri_Saturation,
+ ri_RelativeColorimetric,
+ ri_AbsoluteColorimetric
+ } DefaultRenderingIntent;
+ bool DetectBlends;
+ bool DoThumbnails;
+ int EndPage;
+#endif
long ImageMemory;
+#ifdef POST60
+ bool LockDistillerParams;
+#endif
bool LZWEncodePages;
+#ifdef POST60
+ int OPM;
+#endif
bool PreserveHalftoneInfo;
bool PreserveOPIComments;
bool PreserveOverprintSettings;
+#ifdef POST60
+ int StartPage;
+#endif
enum psdf_transfer_function_info {
tfi_Preserve,
tfi_Apply,
@@ -92,45 +120,69 @@ typedef struct psdf_distiller_params_s {
} UCRandBGInfo;
bool UseFlateCompression;
#define psdf_general_param_defaults(ascii)\
- ascii, arp_None, 1/*true*/, 250000, 0/*false*/,\
- 0/*false*/, 0/*false*/, 0/*false*/, tfi_Apply, ucrbg_Remove, 1 /*true */
+ ascii, arp_None, POST60_VALUE(binding_Left) 1/*true*/,\
+ POST60_VALUE(ri_Default) POST60_VALUE(0 /*false*/)\
+ POST60_VALUE(0 /*false*/) POST60_VALUE(-1)\
+ 250000, POST60_VALUE(0 /*false*/) 0/*false*/, POST60_VALUE(0)\
+ 0/*false*/, 0/*false*/, 0/*false*/, POST60_VALUE(-1)\
+ tfi_Apply, ucrbg_Remove, 1 /*true*/
/* Color sampled image parameters */
psdf_image_params ColorImage;
+#ifdef POST60
+ /* We're guessing that the xxxProfile parameters are ICC profiles. */
+ gs_const_string CalCMYKProfile;
+ gs_const_string CalGrayProfile;
+ gs_const_string CalRGBProfile;
+ gs_const_string sRGBProfile;
+#endif
enum psdf_color_conversion_strategy {
ccs_LeaveColorUnchanged,
+#ifdef POST60
+ ccs_UseDeviceIndependentColor,
+ ccs_UseDeviceIndependentColorForImages,
+ ccs_sRGB
+#else
ccs_UseDeviceDependentColor,
ccs_UseDeviceIndependentColor
+#endif
} ColorConversionStrategy;
bool ConvertCMYKImagesToRGB;
bool ConvertImagesToIndexed;
#define psdf_color_image_param_defaults\
- { psdf_image_param_defaults(1/*true*/, 72, 0/*"DCTEncode"*/, 0/*&s_DCTE_template*/) },\
+ { psdf_image_param_defaults(1/*true*/, 72, 1.5, 0/*"DCTEncode"*/, 0/*&s_DCTE_template*/) },\
+ POST60_VALUE({0}) POST60_VALUE({0}) POST60_VALUE({0}) POST60_VALUE({0})\
ccs_LeaveColorUnchanged, 1/*true*/, 0/*false */
/* Grayscale sampled image parameters */
psdf_image_params GrayImage;
#define psdf_gray_image_param_defaults\
- { psdf_image_param_defaults(1/*true*/, 72, 0/*"DCTEncode"*/, 0/*&s_DCTE_template*/) }
+ { psdf_image_param_defaults(1/*true*/, 72, 2.0, 0/*"DCTEncode"*/, 0/*&s_DCTE_template*/) }
/* Monochrome sampled image parameters */
psdf_image_params MonoImage;
#define psdf_mono_image_param_defaults\
- { psdf_image_param_defaults(0/*false*/, 300, "CCITTFaxEncode", &s_CFE_template) }
+ { psdf_image_param_defaults(0/*false*/, 300, 2.0, "CCITTFaxEncode", &s_CFE_template) }
/* Font embedding parameters */
gs_param_string_array AlwaysEmbed;
gs_param_string_array NeverEmbed;
+#ifdef POST60
+ enum psdf_cannot_embed_font_policy {
+ cefp_OK,
+ cefp_Warning,
+ cefp_Error
+ } CannotEmbedFontPolicy;
+#endif
bool EmbedAllFonts;
- bool SubsetFonts;
int MaxSubsetPct;
+ bool SubsetFonts;
#define psdf_font_param_defaults\
- { 0, 0, 1/*true*/ }, { 0, 0, 1/*true*/ },\
- 1/*true*/, 1/*true*/, 20
+ {0}, {0}, POST60_VALUE(cefp_OK) 1/*true*/, 35, 1/*true*/
} psdf_distiller_params;
@@ -168,10 +220,24 @@ typedef struct gx_device_psdf_s {
/* extern its descriptor for the sake of subclasses. */
extern_st(st_device_psdf);
#define public_st_device_psdf() /* in gdevpsdf.c */\
- gs_public_st_suffix_add0_final(st_device_psdf, gx_device_psdf,\
- "gx_device_psdf", device_psdf_enum_ptrs,\
- device_psdf_reloc_ptrs, gx_device_finalize, st_device_vector)
-#define st_device_psdf_max_ptrs (st_device_vector_max_ptrs)
+ BASIC_PTRS(device_psdf_ptrs) {\
+ GC_OBJ_ELT2(gx_device_psdf, params.ColorImage.ACSDict,\
+ params.ColorImage.Dict),\
+ POST60_VALUE(GC_CONST_STRING_ELT(gx_device_psdf, CalCMYKProfile))\
+ POST60_VALUE(GC_CONST_STRING_ELT(gx_device_psdf, CalGrayProfile))\
+ POST60_VALUE(GC_CONST_STRING_ELT(gx_device_psdf, CalRGBProfile))\
+ POST60_VALUE(GC_CONST_STRING_ELT(gx_device_psdf, sRGBProfile))\
+ GC_OBJ_ELT2(gx_device_psdf, params.GrayImage.ACSDict,\
+ params.GrayImage.Dict),\
+ GC_OBJ_ELT2(gx_device_psdf, params.MonoImage.ACSDict,\
+ params.MonoImage.Dict),\
+ GC_OBJ_ELT2(gx_device_psdf, params.AlwaysEmbed.data,\
+ params.NeverEmbed.data)\
+ };\
+ gs_public_st_basic_super_final(st_device_psdf, gx_device_psdf,\
+ "gx_device_psdf", device_psdf_ptrs, device_psdf_data,\
+ &st_device_vector, 0, gx_device_finalize)
+#define st_device_psdf_max_ptrs (st_device_vector_max_ptrs + 12)
/* Get/put parameters. */
dev_proc_get_params(gdev_psdf_get_params);
@@ -275,11 +341,15 @@ void psdf_enumerate_glyphs_begin(P5(psdf_glyph_enum_t *ppge, gs_font *font,
uint subset_size,
gs_glyph_space_t glyph_space));
-/* Reset a glyph enumeration. */
+/*
+ * Reset a glyph enumeration.
+ */
void psdf_enumerate_glyphs_reset(P1(psdf_glyph_enum_t *ppge));
-/* Enumerate the next glyph in a font or a font subset. */
-/* Return 0 if more glyphs, 1 if done, <0 if error. */
+/*
+ * Enumerate the next glyph in a font or a font subset.
+ * Return 0 if more glyphs, 1 if done, <0 if error.
+ */
int psdf_enumerate_glyphs_next(P2(psdf_glyph_enum_t *ppge, gs_glyph *pglyph));
/*
@@ -290,11 +360,26 @@ int psdf_subset_glyphs(P3(gs_glyph glyphs[256], gs_font *font,
const byte used[32]));
/*
+ * Add composite glyph pieces to a list of glyphs. Does not sort or
+ * remove duplicates. max_pieces is the maximum number of pieces that a
+ * single glyph can have: if this value is not known, the caller should
+ * use max_count.
+ */
+int psdf_add_subset_pieces(P5(gs_glyph *glyphs, uint *pcount, uint max_count,
+ uint max_pieces, gs_font *font));
+
+/*
* Sort a list of glyphs and remove duplicates. Return the number of glyphs
* in the result.
*/
int psdf_sort_glyphs(P2(gs_glyph *glyphs, int count));
+/*
+ * Determine whether a sorted list of glyphs includes a given glyph.
+ */
+bool psdf_sorted_glyphs_include(P3(const gs_glyph *glyphs, int count,
+ gs_glyph glyph));
+
/* ------ Exported by gdevpsd1.c ------ */
/*
@@ -328,6 +413,7 @@ typedef struct gs_font_type42_s gs_font_type42;
#define WRITE_TRUETYPE_CMAP 1 /* generate cmap from the Encoding */
#define WRITE_TRUETYPE_NAME 2 /* generate name if missing */
#define WRITE_TRUETYPE_POST 4 /* generate post if missing */
+#define WRITE_TRUETYPE_NO_TRIMMED_TABLE 8 /* not OK to use cmap format 6 */
int psdf_write_truetype_font(P6(stream *s, gs_font_type42 *pfont, int options,
gs_glyph *subset_glyphs, uint subset_size,
const gs_const_string *alt_font_name));
diff --git a/gs/src/gdevpsdi.c b/gs/src/gdevpsdi.c
index 1bb0106ae..9fdedf21b 100644
--- a/gs/src/gdevpsdi.c
+++ b/gs/src/gdevpsdi.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image compression for PostScript and PDF writers */
#include "math_.h"
#include "jpeglib_.h" /* for sdct.h */
@@ -33,6 +20,14 @@
#include "srlx.h"
#include "szlibx.h"
+/******
+ ****** HACK: The DCTEncode filter causes a crash, because of its
+ ****** complex initialization requirements. Substitute FlateEncode
+ ****** if available, otherwise don't compress.
+ ******/
+/* Define whether to substitute for the DCTEncode filter. */
+#define SUBSTITUTE_FOR_DCT_ENCODE
+
/* ---------------- Image compression ---------------- */
/*
@@ -113,6 +108,13 @@ setup_image_compression(psdf_binary_writer *pbw, const psdf_image_params *pdip,
/* Use LZW instead. */
template = &s_LZWE_template;
}
+#ifdef SUBSTITUTE_FOR_DCT_ENCODE
+ if (template == &s_DCTE_template) {
+ if (pdev->version < psdf_version_ll3)
+ return 0; /* FlateEncode is not available */
+ template = &s_zlibE_template;
+ }
+#endif
st = s_alloc_state(pdev->v_memory, template->stype,
"setup_image_compression");
if (st == 0)
@@ -159,7 +161,8 @@ setup_image_compression(psdf_binary_writer *pbw, const psdf_image_params *pdip,
}
} else if (template == &s_DCTE_template) {
/****** ADD PARAMETERS FROM pdip->Dict ******/
- } {
+ }
+ {
int code = psdf_encode_binary(pbw, template, st);
if (code < 0) {
diff --git a/gs/src/gdevpsdp.c b/gs/src/gdevpsdp.c
index 8c953ea06..e8eb2d82a 100644
--- a/gs/src/gdevpsdp.c
+++ b/gs/src/gdevpsdp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* (Distiller) parameter handling for PostScript and PDF writers */
#include "string_.h"
#include "jpeglib_.h" /* for sdct.h */
@@ -35,8 +22,27 @@
#include "szlibx.h"
/* Define a (bogus) GC descriptor for gs_param_string. */
-/****** FIX THIS ******/
-gs_private_st_simple(st_gs_param_string, gs_param_string, "gs_param_string");
+/* The only ones we use are GC-able and not persistent. */
+gs_private_st_composite(st_gs_param_string, gs_param_string, "gs_param_string",
+ param_string_enum_ptrs, param_string_reloc_ptrs);
+private
+ENUM_PTRS_WITH(param_string_enum_ptrs, gs_param_string *pstr) return 0;
+case 0: return ENUM_CONST_STRING(pstr);
+ENUM_PTRS_END
+private
+RELOC_PTRS_WITH(param_string_reloc_ptrs, gs_param_string *pstr)
+{
+ gs_const_string str;
+
+ str.data = pstr->data, str.size = pstr->size;
+ RELOC_CONST_STRING_VAR(str);
+ pstr->data = str.data;
+}
+RELOC_PTRS_END
+gs_private_st_element(st_param_string_element, gs_param_string,
+ "gs_param_string[]", param_string_elt_enum_ptrs,
+ param_string_elt_reloc_ptrs, st_gs_param_string);
+
/* ---------------- Get/put Distiller parameters ---------------- */
@@ -47,6 +53,22 @@ gs_private_st_simple(st_gs_param_string, gs_param_string, "gs_param_string");
*/
/*
+ * ColorConversionStrategy is supposed to affect output color space
+ * according to the following table. ****** NOT IMPLEMENTED YET ******
+
+PS Input: LeaveCU UseDIC UseDICFI sRGB
+Gray art Gray CalGray/ICCBased Gray Gray
+Gray image Gray CalGray/ICCBased CalGray/ICCBased Gray
+RGB art RGB CalGray/ICCBased RGB CalRGB/sRGB
+RGB image RGB CalGray/ICCBased CalRGB/ICCBased CalRGB/sRGB
+CMYK art CMYK LAB/ICCBased CMYK CalRGB/sRGB
+CMYK image CMYK LAB/ICCBased LAB/ICCBased CalRGB/sRGB
+CIE art Cal/ICC Cal/ICC Cal/ICC CalRGB/sRGB
+CIE image Cal/ICC Cal/ICC Cal/ICC CalRGB/sRGB
+
+ */
+
+/*
* The Always/NeverEmbed parameters are defined as being incremental. Since
* this isn't compatible with the general property of page devices that if
* you do a getpagedevice, doing a setpagedevice later will restore the same
@@ -70,6 +92,9 @@ typedef struct psdf_image_param_names_s {
const char *Dict;
const char *Downsample;
const char *DownsampleType;
+#ifdef POST60
+ const char *DownsampleThreshold;
+#endif
const char *Encode;
const char *Filter;
const char *Resolution;
@@ -77,8 +102,11 @@ typedef struct psdf_image_param_names_s {
private const psdf_image_param_names Color_names = {
"ColorACSImageDict", "AntiAliasColorImages", "AutoFilterColorImages",
"ColorImageDepth", "ColorImageDict",
- "DownsampleColorImages", "ColorImageDownsampleType", "EncodeColorImages",
- "ColorImageFilter", "ColorImageResolution"
+ "DownsampleColorImages", "ColorImageDownsampleType",
+#ifdef POST60
+ "ColorImageDownsampleThreshold",
+#endif
+ "EncodeColorImages", "ColorImageFilter", "ColorImageResolution"
};
private const psdf_image_filter_name Poly_filters[] = {
{"DCTEncode", &s_DCTE_template},
@@ -89,14 +117,20 @@ private const psdf_image_filter_name Poly_filters[] = {
private const psdf_image_param_names Gray_names = {
"GrayACSImageDict", "AntiAliasGrayImages", "AutoFilterGrayImages",
"GrayImageDepth", "GrayImageDict",
- "DownsampleGrayImages", "GrayImageDownsampleType", "EncodeGrayImages",
- "GrayImageFilter", "GrayImageResolution"
+ "DownsampleGrayImages", "GrayImageDownsampleType",
+#ifdef POST60
+ "GrayImageDownsampleThreshold",
+#endif
+ "EncodeGrayImages", "GrayImageFilter", "GrayImageResolution"
};
private const psdf_image_param_names Mono_names = {
0, "AntiAliasMonoImages", 0,
"MonoImageDepth", "MonoImageDict",
- "DownsampleMonoImages", "MonoImageDownsampleType", "EncodeMonoImages",
- "MonoImageFilter", "MonoImageResolution"
+ "DownsampleMonoImages", "MonoImageDownsampleType",
+#ifdef POST60
+ "MonoImageDownsampleThreshold",
+#endif
+ "EncodeMonoImages", "MonoImageFilter", "MonoImageResolution"
};
private const psdf_image_filter_name Mono_filters[] = {
{"CCITTFaxEncode", &s_CFE_template},
@@ -109,18 +143,85 @@ private const char *const AutoRotatePages_names[] = {
"None", "All", "PageByPage", 0
};
private const char *const ColorConversionStrategy_names[] = {
- "LeaveColorUnchanged", "UseDeviceDependentColor",
- "UseDeviceIndependentColor", 0
+ "LeaveColorUnchanged",
+#ifdef POST60
+ "UseDeviceIndependentColor",
+ "UseDeviceIndependentColorForImages",
+ "sRGB",
+#else
+ "UseDeviceDependentColor",
+ "UseDeviceIndependentColor",
+#endif
+ 0
};
private const char *const DownsampleType_names[] = {
- "Average", "Subsample", 0
+ "Average",
+#ifdef POST60
+ "Bicubic",
+#endif
+ "Subsample", 0
+};
+#ifdef POST60
+private const char *const Binding_names[] = {
+ "Left", "Right", 0
};
+private const char *const DefaultRenderingIntent_names[] = {
+ "Default", "Perceptual", "Saturation", "RelativeColorimetric",
+ "AbsoluteColorimetric", 0
+};
+#endif
private const char *const TransferFunctionInfo_names[] = {
"Preserve", "Apply", "Remove", 0
};
private const char *const UCRandBGInfo_names[] = {
"Preserve", "Remove", 0
};
+#ifdef POST60
+private const char *const CannotEmbedFontPolicy_names[] = {
+ "OK", "Warning", "Error", 0
+};
+#endif
+
+#ifdef POST60
+private const gs_param_item_t psdf_param_items[] = {
+#define pi(key, type, memb) { key, type, offset_of(gx_device_psdf, params.memb) }
+
+ /* General parameters */
+
+ pi("ASCII85EncodePages", gs_param_type_bool, ASCII85EncodePages),
+ /* (AutoRotatePages) */
+ /* (Binding) */
+ pi("CompressPages", gs_param_type_bool, CompressPages),
+ /* (DefaultRenderingIntent) */
+ pi("DetectBlends", gs_param_type_bool, DetectBlends),
+ pi("DoThumbnails", gs_param_type_bool, DoThumbnails),
+ pi("EndPage", gs_param_type_int, EndPage),
+ pi("ImageMemory", gs_param_type_long, ImageMemory),
+ pi("LockDistillerParams", gs_param_type_bool, LockDistillerParams),
+ pi("LZWEncodePages", gs_param_type_bool, LZWEncodePages),
+ pi("OPM", gs_param_type_int, OPM),
+ pi("PreserveHalftoneInfo", gs_param_type_bool, PreserveHalftoneInfo),
+ pi("PreserveOPIComments", gs_param_type_bool, PreserveOPIComments),
+ pi("PreserveOverprintSettings", gs_param_type_bool, PreserveOverprintSettings),
+ pi("StartPage", gs_param_type_int, StartPage),
+ /* (TransferFunctionInfo) */
+ /* (UCRandBGInfo) */
+ pi("UseFlateCompression", gs_param_type_bool, UseFlateCompression),
+
+ /* Color image processing parameters */
+
+ pi("ConvertCMYKImagesToRGB", gs_param_type_bool, ConvertCMYKImagesToRGB),
+ pi("ConvertImagesToIndexed", gs_param_type_bool, ConvertImagesToIndexed),
+
+ /* Font embedding parameters */
+
+ pi("EmbedAllFonts", gs_param_type_bool, EmbedAllFonts),
+ pi("MaxSubsetPct", gs_param_type_int, MaxSubsetPct),
+
+#undef pi
+ gs_param_item_end
+};
+#endif
/* -------- Get parameters -------- */
@@ -128,6 +229,17 @@ extern stream_state_proc_get_params(s_DCTE_get_params, stream_DCT_state);
extern stream_state_proc_get_params(s_CF_get_params, stream_CF_state);
typedef stream_state_proc_get_params((*ss_get_params_t), stream_state);
+#ifdef POST60
+private int
+psdf_write_name(gs_param_list *plist, const char *key, const char *str)
+{
+ gs_param_string pstr;
+
+ param_string_from_string(pstr, str);
+ return param_write_name(plist, key, &pstr);
+}
+#endif
+
private int
psdf_CF_get_params(gs_param_list * plist, const stream_state * ss, bool all)
{
@@ -207,6 +319,11 @@ psdf_get_image_params(gs_param_list * plist,
&params->Downsample)) < 0 ||
(code = param_write_name(plist, pnames->DownsampleType,
&dsts)) < 0 ||
+#ifdef POST60
+ /****** RANGE = 1.0 TO 10.0, DEFAULT 1.5 FOR COLOR, ELSE 2.0 ******/
+ (code = param_write_float(plist, pnames->DownsampleThreshold,
+ &params->DownsampleThreshold)) < 0 ||
+#endif
(code = param_write_bool(plist, pnames->Encode,
&params->Encode)) < 0 ||
(code = (params->Filter == 0 ? 0 :
@@ -238,66 +355,107 @@ gdev_psdf_get_params(gx_device * dev, gs_param_list * plist)
gx_device_psdf *pdev = (gx_device_psdf *) dev;
int code = gdev_vector_get_params(dev, plist);
gs_param_string arps, ccss, tfis, ucrbgis;
+#ifdef POST60
+ gs_param_string ccpros, cgpros, crpros, srpros;
+#endif
if (code < 0)
return code;
param_string_from_string(arps,
- AutoRotatePages_names[(int)pdev->params.AutoRotatePages]);
+ AutoRotatePages_names[(int)pdev->params.AutoRotatePages]);
param_string_from_string(ccss,
- ColorConversionStrategy_names[(int)pdev->params.ColorConversionStrategy]);
+ ColorConversionStrategy_names[(int)pdev->params.ColorConversionStrategy]);
param_string_from_string(tfis,
TransferFunctionInfo_names[(int)pdev->params.TransferFunctionInfo]);
param_string_from_string(ucrbgis,
- UCRandBGInfo_names[(int)pdev->params.UCRandBGInfo]);
+ UCRandBGInfo_names[(int)pdev->params.UCRandBGInfo]);
+#ifdef POST60
+#define SET_PARAM_STRING(ps, e)\
+ (ps.data = pdev->params.e.data, ps.size = pdev->params.e.size,\
+ ps.persistent = false)
+ SET_PARAM_STRING(ccpros, CalCMYKProfile);
+ SET_PARAM_STRING(cgpros, CalGrayProfile);
+ SET_PARAM_STRING(crpros, CalRGBProfile);
+ SET_PARAM_STRING(srpros, sRGBProfile);
+#undef SET_PARAM_STRING
+#endif
+
if (
+#ifdef POST60
+ (code = gs_param_write_items(plist, pdev, NULL, psdf_param_items)) < 0 ||
+#endif
+
/* General parameters */
- (code = param_write_bool(plist, "ASCII85EncodePages",
- &pdev->params.ASCII85EncodePages)) < 0 ||
- (code = param_write_name(plist, "AutoRotatePages",
- &arps)) < 0 ||
- (code = param_write_bool(plist, "CompressPages",
- &pdev->params.CompressPages)) < 0 ||
- (code = param_write_long(plist, "ImageMemory",
- &pdev->params.ImageMemory)) < 0 ||
- (code = param_write_bool(plist, "LZWEncodePages",
- &pdev->params.LZWEncodePages)) < 0 ||
- (code = param_write_bool(plist, "PreserveHalftoneInfo",
+#ifndef POST60
+ (code = param_write_bool(plist, "ASCII85EncodePages",
+ &pdev->params.ASCII85EncodePages)) < 0 ||
+#endif
+ (code = param_write_name(plist, "AutoRotatePages",
+ &arps)) < 0 ||
+#ifdef POST60
+ (code = psdf_write_name(plist, "Binding",
+ Binding_names[(int)pdev->params.Binding])) < 0 ||
+ (code = psdf_write_name(plist, "DefaultRenderingIntent",
+ DefaultRenderingIntent_names[(int)pdev->params.DefaultRenderingIntent])) < 0 ||
+#else
+ (code = param_write_bool(plist, "CompressPages",
+ &pdev->params.CompressPages)) < 0 ||
+ (code = param_write_long(plist, "ImageMemory",
+ &pdev->params.ImageMemory)) < 0 ||
+ (code = param_write_bool(plist, "LZWEncodePages",
+ &pdev->params.LZWEncodePages)) < 0 ||
+ (code = param_write_bool(plist, "PreserveHalftoneInfo",
&pdev->params.PreserveHalftoneInfo)) < 0 ||
- (code = param_write_bool(plist, "PreserveOPIComments",
- &pdev->params.PreserveOPIComments)) < 0 ||
- (code = param_write_bool(plist, "PreserveOverprintSettings",
- &pdev->params.PreserveOverprintSettings)) < 0 ||
- (code = param_write_name(plist, "TransferFunctionInfo", &tfis)) < 0 ||
- (code = param_write_name(plist, "UCRandBGInfo", &ucrbgis)) < 0 ||
- (code = param_write_bool(plist, "UseFlateCompression",
- &pdev->params.UseFlateCompression)) < 0 ||
+ (code = param_write_bool(plist, "PreserveOPIComments",
+ &pdev->params.PreserveOPIComments)) < 0 ||
+ (code = param_write_bool(plist, "PreserveOverprintSettings",
+ &pdev->params.PreserveOverprintSettings)) < 0 ||
+#endif
+ (code = param_write_name(plist, "TransferFunctionInfo", &tfis)) < 0 ||
+ (code = param_write_name(plist, "UCRandBGInfo", &ucrbgis)) < 0 ||
+#ifndef POST60
+ (code = param_write_bool(plist, "UseFlateCompression",
+ &pdev->params.UseFlateCompression)) < 0 ||
+#endif
/* Color sampled image parameters */
- (code = psdf_get_image_params(plist, &Color_names, &pdev->params.ColorImage)) < 0 ||
- (code = param_write_name(plist, "ColorConversionStrategy",
- &ccss)) < 0 ||
- (code = param_write_bool(plist, "ConvertCMYKImagesToRGB",
- &pdev->params.ConvertCMYKImagesToRGB)) < 0 ||
- (code = param_write_bool(plist, "ConvertImagesToIndexed",
- &pdev->params.ConvertImagesToIndexed)) < 0 ||
+ (code = psdf_get_image_params(plist, &Color_names, &pdev->params.ColorImage)) < 0 ||
+ (code = param_write_name(plist, "ColorConversionStrategy",
+ &ccss)) < 0 ||
+#ifdef POST60
+ (code = param_write_string(plist, "CalCMYKProfile", &ccpros)) < 0 ||
+ (code = param_write_string(plist, "CalGrayProfile", &cgpros)) < 0 ||
+ (code = param_write_string(plist, "CalRGBProfile", &crpros)) < 0 ||
+ (code = param_write_string(plist, "sRGBProfile", &srpros)) < 0 ||
+#else
+ (code = param_write_bool(plist, "ConvertCMYKImagesToRGB",
+ &pdev->params.ConvertCMYKImagesToRGB)) < 0 ||
+ (code = param_write_bool(plist, "ConvertImagesToIndexed",
+ &pdev->params.ConvertImagesToIndexed)) < 0 ||
+#endif
/* Gray sampled image parameters */
- (code = psdf_get_image_params(plist, &Gray_names, &pdev->params.GrayImage)) < 0 ||
+ (code = psdf_get_image_params(plist, &Gray_names, &pdev->params.GrayImage)) < 0 ||
/* Mono sampled image parameters */
- (code = psdf_get_image_params(plist, &Mono_names, &pdev->params.MonoImage)) < 0 ||
+ (code = psdf_get_image_params(plist, &Mono_names, &pdev->params.MonoImage)) < 0 ||
/* Font embedding parameters */
- (code = psdf_get_embed_param(plist, ".AlwaysEmbed", &pdev->params.AlwaysEmbed)) < 0 ||
- (code = psdf_get_embed_param(plist, ".NeverEmbed", &pdev->params.NeverEmbed)) < 0 ||
- (code = param_write_bool(plist, "EmbedAllFonts", &pdev->params.EmbedAllFonts)) < 0 ||
- (code = param_write_bool(plist, "SubsetFonts", &pdev->params.SubsetFonts)) < 0 ||
- (code = param_write_int(plist, "MaxSubsetPct", &pdev->params.MaxSubsetPct)) < 0
+ (code = psdf_get_embed_param(plist, ".AlwaysEmbed", &pdev->params.AlwaysEmbed)) < 0 ||
+ (code = psdf_get_embed_param(plist, ".NeverEmbed", &pdev->params.NeverEmbed)) < 0 ||
+#ifdef POST60
+ (code = psdf_write_name(plist, "CannotEmbedFontPolicy",
+ CannotEmbedFontPolicy_names[(int)pdev->params.CannotEmbedFontPolicy])) < 0
+#else
+ (code = param_write_bool(plist, "EmbedAllFonts", &pdev->params.EmbedAllFonts)) < 0 ||
+ (code = param_write_int(plist, "MaxSubsetPct", &pdev->params.MaxSubsetPct)) < 0 ||
+ (code = param_write_bool(plist, "SubsetFonts", &pdev->params.SubsetFonts)) < 0
+#endif
);
return code;
}
@@ -325,24 +483,14 @@ psdf_DCT_put_params(gs_param_list * plist, stream_state * ss)
}
/* Put [~](Always|Never)Embed parameters. */
-private bool
-param_string_eq(const gs_param_string *ps1, const gs_param_string *ps2)
-{
- return !bytes_compare(ps1->data, ps1->size, ps2->data, ps2->size);
-}
private int
-psdf_put_embed_param(gs_param_list * plist, gs_param_name notpname,
- gs_param_name allpname, gs_param_string_array * psa,
- gs_memory_t *mem, int ecode)
+param_read_embed_array(gs_param_list * plist, gs_param_name pname,
+ gs_param_string_array * psa, int ecode)
{
- gs_param_name pname = notpname + 1;
int code;
- gs_param_string_array sa, nsa, asa;
- bool replace;
- /***** Storage management is incomplete ******/
- sa.data = 0, sa.size = 0;
- switch (code = param_read_name_array(plist, pname, &sa)) {
+ psa->data = 0, psa->size = 0;
+ switch (code = param_read_name_array(plist, pname, psa)) {
default:
ecode = code;
param_signal_error(plist, pname, ecode);
@@ -350,24 +498,83 @@ psdf_put_embed_param(gs_param_list * plist, gs_param_name notpname,
case 1:
break;
}
- nsa.data = 0, nsa.size = 0;
- switch (code = param_read_name_array(plist, notpname, &nsa)) {
- default:
- ecode = code;
- param_signal_error(plist, notpname, ecode);
- case 0:
- case 1:
- break;
+ return ecode;
+}
+private bool
+param_string_eq(const gs_param_string *ps1, const gs_param_string *ps2)
+{
+ return !bytes_compare(ps1->data, ps1->size, ps2->data, ps2->size);
+}
+private int
+add_embed(gs_param_string_array *prsa, const gs_param_string_array *psa,
+ gs_memory_t *mem)
+{
+ uint i;
+ gs_param_string *const rdata =
+ (gs_param_string *)prsa->data; /* break const */
+ uint count = prsa->size;
+
+ for (i = 0; i < psa->size; ++i) {
+ uint j;
+
+ for (j = 0; j < count; ++j)
+ if (param_string_eq(&psa->data[i], &rdata[j]))
+ break;
+ if (j == count) {
+ uint size = psa->data[i].size;
+ byte *data = gs_alloc_string(mem, size, "add_embed");
+
+ if (data == 0)
+ return_error(gs_error_VMerror);
+ memcpy(data, psa->data[i].data, size);
+ rdata[count].data = data;
+ rdata[count].size = size;
+ rdata[count].persistent = false;
+ count++;
+ }
}
- asa.data = 0, asa.size = 0;
- switch (code = param_read_name_array(plist, allpname, &asa)) {
- default:
- ecode = code;
- param_signal_error(plist, allpname, ecode);
- case 0:
- case 1:
- break;
+ prsa->size = count;
+ return 0;
+}
+private void
+delete_embed(gs_param_string_array *prsa, const gs_param_string_array *pnsa,
+ gs_memory_t *mem)
+{
+ uint i;
+ gs_param_string *const rdata =
+ (gs_param_string *)prsa->data; /* break const */
+ uint count = prsa->size;
+
+ for (i = pnsa->size; i-- > 0;) {
+ uint j;
+
+ for (j = count; j-- > 0;)
+ if (param_string_eq(&pnsa->data[i], &rdata[j]))
+ break;
+ if (j + 1 != 0) {
+ gs_free_const_string(mem, rdata[j].data, rdata[j].size,
+ "delete_embed");
+ rdata[j] = rdata[--count];
+ }
}
+ prsa->size = count;
+}
+private int
+psdf_put_embed_param(gs_param_list * plist, gs_param_name notpname,
+ gs_param_name allpname, gs_param_string_array * psa,
+ gs_memory_t *mem, int ecode)
+{
+ gs_param_name pname = notpname + 1;
+ gs_param_string_array sa, nsa, asa;
+ bool replace;
+ gs_param_string *rdata;
+ gs_param_string_array rsa;
+ int code = 0;
+
+ mem = gs_memory_stable(mem);
+ ecode = param_read_embed_array(plist, pname, &sa, ecode);
+ ecode = param_read_embed_array(plist, notpname, &nsa, ecode);
+ ecode = param_read_embed_array(plist, allpname, &asa, ecode);
if (ecode < 0)
return ecode;
/*
@@ -390,56 +597,50 @@ psdf_put_embed_param(gs_param_list * plist, gs_param_name notpname,
replace = false;
break;
}
+ if (replace)
+ return 0; /* no-op */
}
if (replace) {
- /****** FREE OLD ARRAY ******/
- *psa = asa;
+ /* Wholesale replacement, only asa is relevant. */
+ rdata = gs_alloc_struct_array(mem, asa.size, gs_param_string,
+ &st_param_string_element,
+ "psdf_put_embed_param(replace)");
+ if (rdata == 0)
+ return_error(gs_error_VMerror);
+ rsa.data = rdata;
+ rsa.size = 0;
+ if ((code = add_embed(&rsa, &asa, mem)) < 0) {
+ gs_free_object(mem, rdata, "psdf_put_embed_param(replace)");
+ ecode = code;
+ } else
+ delete_embed(psa, psa, mem);
} else if (sa.data || nsa.data) {
- /* Incremental update. */
- gs_param_string_array rsa;
- gs_param_string *rdata;
- uint i;
- uint count = psa->size;
-
- rdata = gs_alloc_struct_array(mem, count + sa.size,
- gs_param_string, &st_gs_param_string,
- "psdf_put_embed_param");
+ /* Incremental update, sa and nsa are relevant, asa is not. */
+ rdata = gs_alloc_struct_array(mem, psa->size + sa.size,
+ gs_param_string,
+ &st_param_string_element,
+ "psdf_put_embed_param(update)");
if (rdata == 0)
return_error(gs_error_VMerror);
memcpy(rdata, psa->data, psa->size * sizeof(*psa->data));
- /* Add sa to *psa. */
- for (i = 0; i < sa.size; ++i) {
- uint j;
-
- for (j = 0; j < count; ++j)
- if (param_string_eq(&sa.data[i], &rdata[j]))
- break;
- if (j == count)
- rdata[count++] = sa.data[i];
- else {
- /****** FREE sa.data[i] ******/
- }
- }
- /* Delete nsa from *psa. */
- for (i = 0; i < nsa.size; ++i) {
- uint j;
-
- for (j = 0; j < count; ++j)
- if (param_string_eq(&sa.data[i], &rdata[j]))
- break;
- if (j < count) {
- /****** FREE rdata[j] ******/
- rdata[j] = rdata[--count];
- }
- /****** FREE nsa.data[i] ******/
- }
- rdata = gs_resize_object(mem, rdata, count, "psdf_put_embed_param");
rsa.data = rdata;
- rsa.size = count;
- rsa.persistent = true;
+ rsa.size = psa->size;
+ if ((code = add_embed(&rsa, &sa, mem)) < 0) {
+ gs_free_object(mem, rdata, "psdf_put_embed_param(update)");
+ ecode = code;
+ } else {
+ delete_embed(&rsa, &nsa, mem);
+ rsa.data = gs_resize_object(mem, rdata, rsa.size,
+ "psdf_put_embed_param(resize)");
+ }
+ } else
+ return 0; /* no-op */
+ if (code >= 0) {
+ gs_free_const_object(mem, psa->data, "psdf_put_embed_param(free)");
+ rsa.persistent = false;
*psa = rsa;
}
- return 0;
+ return ecode;
}
/* Put an image Dict parameter. */
@@ -501,7 +702,6 @@ psdf_put_image_params(const gx_device_psdf * pdev, gs_param_list * plist,
psdf_image_params * params, int ecode)
{
gs_param_string fs;
-
/*
* Since this procedure can be called before the device is open,
* we must use pdev->memory rather than pdev->v_memory.
diff --git a/gs/src/gdevpsds.c b/gs/src/gdevpsds.c
index ccf8fa32f..281f4c392 100644
--- a/gs/src/gdevpsds.c
+++ b/gs/src/gdevpsds.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image processing streams for PostScript and PDF writers */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gdevpsds.h b/gs/src/gdevpsds.h
index 78b95079f..2f6fa5814 100644
--- a/gs/src/gdevpsds.h
+++ b/gs/src/gdevpsds.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image processing stream interface for PostScript and PDF writers */
#ifndef gdevpsds_INCLUDED
diff --git a/gs/src/gdevpsdt.c b/gs/src/gdevpsdt.c
index 0889a7fdc..1343da248 100644
--- a/gs/src/gdevpsdt.c
+++ b/gs/src/gdevpsdt.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Write an embedded TrueType font */
#include "memory_.h"
#include <stdlib.h> /* for qsort */
@@ -72,11 +59,7 @@ put_loca(stream *s, ulong offset, int indexToLocFormat)
#define S8(p) (int)((U8(p) ^ 0x80) - 0x80)
#define U16(p) (((uint)((p)[0]) << 8) + (p)[1])
#define S16(p) (int)((U16(p) ^ 0x8000) - 0x8000)
-private ulong
-u32(const byte *p)
-{
- return ((ulong)U16(p) << 16) + U16((p) + 2);
-}
+#define u32(p) get_u32_msb(p)
private void
put_u16(byte *p, uint v)
{
@@ -170,26 +153,57 @@ mac_glyph_index(gs_font *font, int ch, gs_const_string *pstr)
}
/* Write a generated cmap table. */
-static const byte cmap_initial[] = {
+static const byte cmap_initial_0[] = {
0, 0, /* table version # = 0 */
0, 2, /* # of encoding tables = 2 */
+ /* First table, Macintosh */
0, 1, /* platform ID = Macintosh */
0, 0, /* platform encoding ID = ??? */
0, 0, 0, 4+8+8, /* offset to table start */
-
+ /* Second table, Windows */
0, 3, /* platform ID = Microsoft */
0, 0, /* platform encoding ID = unknown */
- 0, 0, 0, 4+8+8+6, /* offset to table start */
- /****** VARIABLE, add 2 x # of glyphs ******/
+ 0, 0, 1, 4+8+8+6, /* offset to table start */
+ /* Start of Macintosh format 0 table */
0, 0, /* format = 0, byte encoding table */
- 0, 6, /****** VARIABLE, add 2 x # of glyphs ******/
- 0, 0
+ 1, 6, /* length */
+ 0, 0 /* version number */
+};
+static const byte cmap_initial_6[] = {
+ 0, 0, /* table version # = 0 */
+ 0, 2, /* # of encoding tables = 2 */
+
+ /* First table, Macintosh */
+ 0, 1, /* platform ID = Macintosh */
+ 0, 0, /* platform encoding ID = ??? */
+ 0, 0, 0, 4+8+8, /* offset to table start */
+ /* Second table, Windows */
+ 0, 3, /* platform ID = Microsoft */
+ 0, 0, /* platform encoding ID = unknown */
+ 0, 0, 0, 4+8+8+10, /* offset to table start */
+ /****** VARIABLE, add 2 x # of entries ******/
+
+ /* Start of Macintosh format 6 table */
+ 0, 6, /* format = 6, trimmed table mapping */
+ 0, 10, /* length ****** VARIABLE, add 2 x # of entries ******/
+ 0, 0, /* version number */
+ 0, 0, /* first character code */
+ 0, 0 /* # of entries ****** VARIABLE ****** */
+};
+static const byte cmap_initial_4[] = {
+ 0, 0, /* table version # = 0 */
+ 0, 1, /* # of encoding tables = 2 */
+
+ /* Single table, Windows */
+ 0, 3, /* platform ID = Microsoft */
+ 0, 0, /* platform encoding ID = unknown */
+ 0, 0, 0, 4+8 /* offset to table start */
};
static const byte cmap_sub_initial[] = {
0, 4, /* format = 4, segment mapping */
- 0, 32, /* length **VARIABLE, add 2 x # of glyphs ** */
+ 0, 32, /* length ** VARIABLE, add 2 x # of glyphs ** */
0, 0, /* version # */
0, 4, /* 2 x segCount */
0, 4, /* searchRange = 2 x 2 ^ floor(log2(segCount)) */
@@ -206,18 +220,16 @@ static const byte cmap_sub_initial[] = {
0, 4, /* idRangeOffset[0] */
0, 0 /* idRangeOffset[1] */
};
-private uint
-size_cmap(int num_glyphs)
-{
- return sizeof(cmap_initial) + sizeof(cmap_sub_initial) + num_glyphs * 4;
-}
private void
-write_cmap(stream *s, gs_font *font, uint first_glyph, int num_glyphs,
- gs_glyph max_glyph)
+write_cmap(stream *s, gs_font *font, uint first_code, int num_glyphs,
+ gs_glyph max_glyph, int options, uint cmap_length)
{
- byte cmap[sizeof(cmap_initial)];
byte cmap_sub[sizeof(cmap_sub_initial)];
byte entries[256 * 2];
+ int first_entry = 0, end_entry = num_glyphs;
+ bool can_use_trimmed = !(options & WRITE_TRUETYPE_NO_TRIMMED_TABLE);
+ uint merge = 0;
+ uint num_entries;
int i;
/* Collect the table entries. */
@@ -225,32 +237,71 @@ write_cmap(stream *s, gs_font *font, uint first_glyph, int num_glyphs,
for (i = 0; i < num_glyphs; ++i) {
gs_glyph glyph =
font->procs.encode_char(font, (gs_char)i, GLYPH_SPACE_INDEX);
+ uint glyph_index;
if (glyph == gs_no_glyph || glyph < gs_min_cid_glyph ||
glyph > max_glyph
)
glyph = gs_min_cid_glyph;
- put_u16(entries + 2 * i, (uint)(glyph - gs_min_cid_glyph));
+ glyph_index = (uint)(glyph - gs_min_cid_glyph);
+ merge |= glyph_index;
+ put_u16(entries + 2 * i, glyph_index);
+ }
+ while (end_entry > first_entry && !U16(entries + 2 * end_entry - 2))
+ --end_entry;
+ while (first_entry < end_entry && !U16(entries + 2 * first_entry))
+ ++first_entry;
+ num_entries = end_entry - first_entry;
+
+ /* Write the table header and Macintosh sub-table (if any). */
+ if (merge == (byte)merge && (num_entries <= 127 || !can_use_trimmed)) {
+ /* Use byte encoding format. */
+ memset(entries + 2 * num_glyphs, 0,
+ sizeof(entries) - 2 * num_glyphs);
+ pwrite(s, cmap_initial_0, sizeof(cmap_initial_0));
+ for (i = 0; i <= 0xff; ++i)
+ sputc(s, (byte)entries[2 * i + 1]);
+ } else if (can_use_trimmed) {
+ /* Use trimmed table format. */
+ byte cmap_data[sizeof(cmap_initial_6)];
+
+ memcpy(cmap_data, cmap_initial_6, sizeof(cmap_initial_6));
+ put_u16(cmap_data + 18,
+ U16(cmap_data + 18) + num_entries * 2); /* offset */
+ put_u16(cmap_data + 22,
+ U16(cmap_data + 22) + num_entries * 2); /* length */
+ put_u16(cmap_data + 26, first_code + first_entry);
+ put_u16(cmap_data + 28, num_entries);
+ pwrite(s, cmap_data, sizeof(cmap_data));
+ pwrite(s, entries + first_entry * 2, num_entries * 2);
+ } else {
+ /*
+ * Punt. Acrobat Reader 3 can't handle any other Mac table format.
+ * (AR3 for Linux doesn't seem to be able to handle Windows format,
+ * either, but maybe AR3 for Windows can.)
+ */
+ pwrite(s, cmap_initial_4, sizeof(cmap_initial_4));
}
-
- /* Write the table header and Macintosh sub-table. */
-
- memcpy(cmap, cmap_initial, sizeof(cmap_initial));
- put_u16(cmap + 18, U16(cmap + 18) + num_glyphs * 2); /* length */
- put_u16(cmap + 22, U16(cmap + 22) + num_glyphs * 2); /* length */
- pwrite(s, cmap, sizeof(cmap));
- pwrite(s, entries, num_glyphs * 2);
/* Write the Windows sub-table. */
memcpy(cmap_sub, cmap_sub_initial, sizeof(cmap_sub_initial));
- put_u16(cmap_sub + 2, U16(cmap_sub + 2) + num_glyphs * 2); /* length */
- put_u16(cmap_sub + 14, first_glyph + num_glyphs - 1); /* endCount[0] */
- put_u16(cmap_sub + 20, first_glyph); /* startCount[0] */
+ put_u16(cmap_sub + 2, U16(cmap_sub + 2) + num_entries * 2); /* length */
+ put_u16(cmap_sub + 14, first_code + end_entry - 1); /* endCount[0] */
+ put_u16(cmap_sub + 20, first_code + first_entry); /* startCount[0] */
pwrite(s, cmap_sub, sizeof(cmap_sub));
- pwrite(s, entries, num_glyphs * 2);
+ pwrite(s, entries + first_entry * 2, num_entries * 2);
+ put_pad(s, cmap_length);
+}
+private uint
+size_cmap(gs_font *font, uint first_code, int num_glyphs, gs_glyph max_glyph,
+ int options)
+{
+ stream poss;
- put_pad(s, size_cmap(num_glyphs));
+ swrite_position_only(&poss);
+ write_cmap(&poss, font, first_code, num_glyphs, max_glyph, options, 0);
+ return stell(&poss);
}
/* Write a generated name table. */
@@ -286,7 +337,7 @@ write_name(stream *s, const gs_const_string *font_name)
/* Write a generated OS/2 table. */
typedef struct OS_2_s {
byte
- version[2], /* version 0, see below */
+ version[2], /* version 1 */
xAvgCharWidth[2],
usWeightClass[2],
usWidthClass[2],
@@ -314,11 +365,17 @@ typedef struct OS_2_s {
sTypoDescender[2],
sTypoLineGap[2],
usWinAscent[2],
- usWinDescent[2];
- /*ulCodePageRanges[8];*/ /* not used in OS/2 version 0 */
+ usWinDescent[2],
+ ulCodePageRanges[8];
} OS_2_t;
#define OS_2_LENGTH sizeof(OS_2_t)
private void
+update_OS_2(OS_2_t *pos2, uint first_glyph, int num_glyphs)
+{
+ put_u16(pos2->usFirstCharIndex, first_glyph);
+ put_u16(pos2->usLastCharIndex, first_glyph + num_glyphs - 1);
+}
+private void
write_OS_2(stream *s, gs_font *font, uint first_glyph, int num_glyphs)
{
OS_2_t os2;
@@ -328,8 +385,8 @@ write_OS_2(stream *s, gs_font *font, uint first_glyph, int num_glyphs)
* ones, which affect character mapping, are usFirst/LastCharIndex.
*/
memset(&os2, 0, sizeof(os2));
- put_u16(os2.usFirstCharIndex, first_glyph);
- put_u16(os2.usLastCharIndex, first_glyph + num_glyphs - 1);
+ put_u16(os2.version, 1);
+ update_OS_2(&os2, first_glyph, num_glyphs);
pwrite(s, &os2, sizeof(os2));
put_pad(s, sizeof(os2));
}
@@ -457,7 +514,7 @@ compare_table_tags(const void *pt1, const void *pt2)
}
int
psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
- gs_glyph *subset_glyphs, uint subset_size,
+ gs_glyph *orig_subset_glyphs, uint orig_subset_size,
const gs_const_string *alt_font_name)
{
gs_font *const font = (gs_font *)pfont;
@@ -475,6 +532,7 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
ulong max_glyph;
uint glyf_length, glyf_checksum = 0 /****** BOGUS ******/;
uint loca_length, loca_checksum[2];
+ uint numGlyphs; /* original value from maxp */
byte head[56]; /* 0 mod 4 */
post_t post;
ulong head_checksum, file_checksum = 0;
@@ -483,6 +541,12 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
have_name = !(options & WRITE_TRUETYPE_NAME),
have_OS_2 = false,
have_post = false;
+ uint cmap_length;
+ ulong OS_2_start;
+ uint OS_2_length = OS_2_LENGTH;
+ gs_glyph subset_data[256 * 3]; /* *3 for composites */
+ gs_glyph *subset_glyphs = orig_subset_glyphs;
+ uint subset_size = orig_subset_size;
int code;
if (alt_font_name)
@@ -493,8 +557,19 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
/* Sort the subset glyphs, if any. */
- if (subset_glyphs)
+ if (subset_glyphs) {
+ /* Add the component glyphs for composites. */
+ memcpy(subset_data, orig_subset_glyphs,
+ sizeof(gs_glyph) * subset_size);
+ subset_glyphs = subset_data;
+ code = psdf_add_subset_pieces(subset_glyphs, &subset_size,
+ countof(subset_data),
+ countof(subset_data),
+ font);
+ if (code < 0)
+ return code;
subset_size = psdf_sort_glyphs(subset_glyphs, subset_size);
+ }
/*
* Count the number of tables, including the eventual glyf and loca
@@ -506,16 +581,18 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
numTables_stored = U16(OffsetTable + 4);
for (i = numTables = 0; i < numTables_stored; ++i) {
const byte *tab;
+ const byte *data;
+ ulong start;
+ uint length;
ACCESS(12 + i * 16, 16, tab);
+ start = u32(tab + 8);
+ length = u32(tab + 12);
if (!memcmp(tab, "head", 4)) {
- const byte *head_data;
- uint length = u32(tab + 12);
-
if (length != 54)
return_error(gs_error_invalidfont);
- ACCESS(u32(tab + 8), length, head_data);
- memcpy(head, head_data, length);
+ ACCESS(start, length, data);
+ memcpy(head, data, length);
} else if (
!memcmp(tab, "gly", 3) /*glyf=synthesized, glyx=Adobe bogus*/ ||
!memcmp(tab, "loc", 3) /*loca=synthesized, locx=Adobe bogus*/ ||
@@ -526,15 +603,23 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
else {
if (numTables == MAX_NUM_TABLES)
return_error(gs_error_limitcheck);
- memcpy(&tables[numTables++ * 16], tab, 16);
if (!memcmp(tab, "cmap", 4))
have_cmap = true;
- else if (!memcmp(tab, "name", 4))
+ else if (!memcmp(tab, "maxp", 4)) {
+ ACCESS(start, length, data);
+ numGlyphs = U16(data + 4);
+ } else if (!memcmp(tab, "name", 4))
have_name = true;
- else if (!memcmp(tab, "OS/2", 4))
+ else if (!memcmp(tab, "OS/2", 4)) {
have_OS_2 = true;
- else if (!memcmp(tab, "post", 4))
+ if (length > OS_2_LENGTH)
+ return_error(gs_error_invalidfont);
+ OS_2_start = start;
+ OS_2_length = length;
+ continue;
+ } else if (!memcmp(tab, "post", 4))
have_post = true;
+ memcpy(&tables[numTables++ * 16], tab, 16);
}
}
@@ -565,15 +650,22 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
}
if_debug2('l', "[l]max_glyph = %lu, glyf_length = %lu\n",
(ulong)max_glyph, (ulong)glyf_length);
- loca_length = (max_glyph + 2) << 2;
+ /*
+ * For subset fonts, we should trim the loca table so that it only
+ * contains entries through max_glyph. Unfortunately, this would
+ * require changing numGlyphs in maxp, which in turn would affect hdmx,
+ * hhea, hmtx, vdmx, vhea, vmtx, and possibly other tables. This is way
+ * more work than we want to do right now.
+ */
+ /*loca_length = (max_glyph + 2) << 2;*/
+ loca_length = (numGlyphs + 1) << 2;
indexToLocFormat = (glyf_length > 0x1fffc);
if (!indexToLocFormat)
loca_length >>= 1;
/*
* If necessary, compute the length of the post table. Note that we
- * only generate post entries for characters in the Encoding.
- */
+ * only generate post entries for characters in the Encoding. */
if (!have_post) {
memset(&post, 0, sizeof(post));
@@ -592,13 +684,13 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
head_checksum += u32(&head[i]);
/*
- * Construct the table directory, except for glyf, loca, and head,
- * and, if necessary, generated cmap, name, OS/2, and post tables.
+ * Construct the table directory, except for glyf, loca, head, OS/2,
+ * and, if necessary, generated cmap, name, and post tables.
* Note that the existing directory is already sorted by tag.
*/
- numTables_out = numTables + 3 +
- !have_cmap + !have_name + !have_OS_2 + !have_post;
+ numTables_out = numTables + 4 +
+ !have_cmap + !have_name + !have_post;
offset = 12 + numTables_out * 16;
for (i = 0; i < numTables; ++i) {
byte *tab = &tables[i * 16];
@@ -620,8 +712,8 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
tab += 16;
if (!have_cmap) {
- uint cmap_length = size_cmap(256);
-
+ cmap_length = size_cmap(font, 0xf000, 256,
+ gs_min_cid_glyph + max_glyph, options);
offset = put_table(tab, "cmap", 0L /****** NO CHECKSUM ******/,
offset, cmap_length);
tab += 16;
@@ -633,11 +725,9 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
tab += 16;
}
- if (!have_OS_2) {
- offset = put_table(tab, "OS/2", 0L /****** NO CHECKSUM ******/,
- offset, OS_2_LENGTH);
- tab += 16;
- }
+ offset = put_table(tab, "OS/2", 0L /****** NO CHECKSUM ******/,
+ offset, OS_2_length);
+ tab += 16;
if (!have_post) {
offset = put_table(tab, "post", 0L /****** NO CHECKSUM ******/,
@@ -692,9 +782,10 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
const byte *tab = &tables[i * 16];
if (tab[8] < 0x40) {
+ ulong start = u32(tab + 8);
uint length = u32(tab + 12);
- write_range(s, pfont, u32(tab + 8), length);
+ write_range(s, pfont, start, length);
put_pad(s, length);
}
}
@@ -729,18 +820,38 @@ psdf_write_truetype_font(stream *s, gs_font_type42 *pfont, int options,
if (pfont->data.get_outline(pfont, glyph, &glyph_string) >= 0)
offset += glyph_string.size;
}
- /* Write the trailing loca entry. */
- put_loca(s, offset, indexToLocFormat);
+ /* Pad to numGlyphs + 1 entries (including the trailing entry). */
+ for (; glyph_prev <= gs_min_cid_glyph + numGlyphs; ++glyph_prev)
+ put_loca(s, offset, indexToLocFormat);
put_pad(s, loca_length);
/* If necessary, write cmap, name, and OS/2. */
if (!have_cmap)
- write_cmap(s, font, 0xf000, 256, gs_min_cid_glyph + max_glyph);
+ write_cmap(s, font, 0xf000, 256, gs_min_cid_glyph + max_glyph,
+ options, cmap_length);
if (!have_name)
write_name(s, &font_name);
if (!have_OS_2)
write_OS_2(s, font, 0xf000, 256);
+ else if (!have_cmap) {
+ /*
+ * Adjust the first and last character indices in the OS/2 table
+ * to reflect the values in the generated cmap.
+ */
+ const byte *pos2;
+ OS_2_t os2;
+
+ ACCESS(OS_2_start, OS_2_length, pos2);
+ memcpy(&os2, pos2, min(OS_2_length, sizeof(os2)));
+ update_OS_2(&os2, 0xf000, 256);
+ pwrite(s, &os2, OS_2_length);
+ put_pad(s, OS_2_length);
+ } else {
+ /* Just copy the existing OS/2 table. */
+ write_range(s, pfont, OS_2_start, OS_2_length);
+ put_pad(s, OS_2_length);
+ }
/* If necessary, write post. */
diff --git a/gs/src/gdevpsim.c b/gs/src/gdevpsim.c
index 4c4ea174d..93ce8e526 100644
--- a/gs/src/gdevpsim.c
+++ b/gs/src/gdevpsim.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript image output device */
#include "gdevprn.h"
diff --git a/gs/src/gdevpx.c b/gs/src/gdevpx.c
index c3dd6a9f8..5567ee2b3 100644
--- a/gs/src/gdevpx.c
+++ b/gs/src/gdevpx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* H-P PCL XL driver */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gdevpxat.h b/gs/src/gdevpxat.h
index 3d9a1d8f8..d1abbcee8 100644
--- a/gs/src/gdevpxat.h
+++ b/gs/src/gdevpxat.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Attribute ID definitions for PCL XL */
#ifndef gdevpxat_INCLUDED
diff --git a/gs/src/gdevpxen.h b/gs/src/gdevpxen.h
index 46e43641f..59abc9b6d 100644
--- a/gs/src/gdevpxen.h
+++ b/gs/src/gdevpxen.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Enumerated attribute value definitions for PCL XL */
#ifndef gdevpxen_INCLUDED
diff --git a/gs/src/gdevpxop.h b/gs/src/gdevpxop.h
index b2abbe4a1..57f6d79b8 100644
--- a/gs/src/gdevpxop.h
+++ b/gs/src/gdevpxop.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Operator and other tag definitions for PCL XL */
#ifndef gdevpxop_INCLUDED
diff --git a/gs/src/gdevrops.c b/gs/src/gdevrops.c
index 675a38c77..e6cc0af08 100644
--- a/gs/src/gdevrops.c
+++ b/gs/src/gdevrops.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp source device */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gdevs3ga.c b/gs/src/gdevs3ga.c
index 75f839533..f494b2e2b 100644
--- a/gs/src/gdevs3ga.c
+++ b/gs/src/gdevs3ga.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* S3 86C911 driver */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gdevsco.c b/gs/src/gdevsco.c
index 4da6c2eaf..3770fc116 100644
--- a/gs/src/gdevsco.c
+++ b/gs/src/gdevsco.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 17Jul91 - wb - based on gdevpcfb.c */
/* 31Jul91 - Rick Calder rick@rick.att.com - ifdefs for AT&T UNIX 4.0 2.1 */
/* 13Sep91 - wb - modify for gs24b2 */
diff --git a/gs/src/gdevsgi.c b/gs/src/gdevsgi.c
index 035257edf..19dbdc79c 100644
--- a/gs/src/gdevsgi.c
+++ b/gs/src/gdevsgi.c
@@ -4,7 +4,7 @@
* public domain.
*/
-
+/*$RCSfile$ $Revision$*/
/* SGI raster file driver */
#include "gdevprn.h"
#include "gdevsgi.h"
diff --git a/gs/src/gdevsgi.h b/gs/src/gdevsgi.h
index 45e527560..32297c53e 100644
--- a/gs/src/gdevsgi.h
+++ b/gs/src/gdevsgi.h
@@ -7,7 +7,7 @@
* the file image.h on SGI's file server; there is no copyright on that file.
*/
-
+/*$RCSfile$ $Revision$*/
/* SGI raster file definitions */
#ifndef gdevsgi_INCLUDED
diff --git a/gs/src/gdevsj48.c b/gs/src/gdevsj48.c
index 1b1b9d6aa..80769f1aa 100644
--- a/gs/src/gdevsj48.c
+++ b/gs/src/gdevsj48.c
@@ -1,28 +1,14 @@
/* Copyright (C) 1990, 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
-/* --- derived from gdevbj10.c 1993-10-07
- * by Mats kerblom (f86ma@dd.chalmers.se).
- *
- *
+/*$RCSfile$ $Revision$*/
+/*
* StarJet SJ48 printer driver.
*
+ * --- derived from gdevbj10.c 1993-10-07
+ * by Mats kerblom (f86ma@dd.chalmers.se).
*/
#include "gdevprn.h"
diff --git a/gs/src/gdevsnfb.c b/gs/src/gdevsnfb.c
index 274916345..65a7699a6 100644
--- a/gs/src/gdevsnfb.c
+++ b/gs/src/gdevsnfb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1990, 1991, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Sony News frame buffer driver for GhostScript */
#include "gdevprn.h"
#define prn_dev ((gx_device_printer *)dev) /* needed in 5.31 et seq */
diff --git a/gs/src/gdevsppr.c b/gs/src/gdevsppr.c
index a95da6ee2..e6fb132e5 100644
--- a/gs/src/gdevsppr.c
+++ b/gs/src/gdevsppr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* SPARCprinter driver for Ghostscript */
#include "gdevprn.h"
#include <stdio.h>
diff --git a/gs/src/gdevstc.c b/gs/src/gdevstc.c
index b87d05188..f7d2a3cd7 100644
--- a/gs/src/gdevstc.c
+++ b/gs/src/gdevstc.c
@@ -1,21 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson Stylus-Color Printer-Driver */
/***
diff --git a/gs/src/gdevstc.h b/gs/src/gdevstc.h
index 257c09f0d..f8b39eb71 100644
--- a/gs/src/gdevstc.h
+++ b/gs/src/gdevstc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson Stylus-Color Printer-Driver */
#ifndef gdevstc_INCLUDED
# define gdevstc_INCLUDED
diff --git a/gs/src/gdevstc1.c b/gs/src/gdevstc1.c
index 6ce212901..98594a790 100644
--- a/gs/src/gdevstc1.c
+++ b/gs/src/gdevstc1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson Stylus-Color Printer-Driver */
/***
diff --git a/gs/src/gdevstc2.c b/gs/src/gdevstc2.c
index 40ee698ca..d41ce9edd 100644
--- a/gs/src/gdevstc2.c
+++ b/gs/src/gdevstc2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson Stylus-Color Printer-Driver */
/***
diff --git a/gs/src/gdevstc3.c b/gs/src/gdevstc3.c
index 2cf90ce16..89999e374 100644
--- a/gs/src/gdevstc3.c
+++ b/gs/src/gdevstc3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson Stylus-Color Printer-Driver */
/***
diff --git a/gs/src/gdevstc4.c b/gs/src/gdevstc4.c
index 6ea983a49..c508ad8a4 100644
--- a/gs/src/gdevstc4.c
+++ b/gs/src/gdevstc4.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Epson Stylus-Color Printer-Driver */
/***
diff --git a/gs/src/gdevsun.c b/gs/src/gdevsun.c
index 945cc8da3..c7666cf17 100644
--- a/gs/src/gdevsun.c
+++ b/gs/src/gdevsun.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1994, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* SunView driver */
#include "gx.h" /* for gx_bitmap; includes std.h */
diff --git a/gs/src/gdevsunr.c b/gs/src/gdevsunr.c
index 4543da6b8..3207f8cc0 100644
--- a/gs/src/gdevsunr.c
+++ b/gs/src/gdevsunr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Sun raster file driver */
#include "gdevprn.h"
diff --git a/gs/src/gdevsvga.c b/gs/src/gdevsvga.c
index 665fdb019..562c8a480 100644
--- a/gs/src/gdevsvga.c
+++ b/gs/src/gdevsvga.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* SuperVGA display drivers */
#include "memory_.h"
#include "gconfigv.h" /* for USE_ASM */
diff --git a/gs/src/gdevsvga.h b/gs/src/gdevsvga.h
index fa8fbe169..9d9319123 100644
--- a/gs/src/gdevsvga.h
+++ b/gs/src/gdevsvga.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Common definitions and procedures for SuperVGA drivers */
/* Requires gdevpcfb.h */
#ifndef gdevsvga_INCLUDED
diff --git a/gs/src/gdevtfax.c b/gs/src/gdevtfax.c
index 6f38c0ac8..0d58b70cc 100644
--- a/gs/src/gdevtfax.c
+++ b/gs/src/gdevtfax.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* TIFF and fax devices */
#include "gdevprn.h"
#include "gdevtifs.h" /* for TIFF output only */
diff --git a/gs/src/gdevtfax.h b/gs/src/gdevtfax.h
index f029f9d18..a3eba47ab 100644
--- a/gs/src/gdevtfax.h
+++ b/gs/src/gdevtfax.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Entry points to the TIFF/fax writing driver */
#ifndef gdevtfax_INCLUDED
diff --git a/gs/src/gdevtfnx.c b/gs/src/gdevtfnx.c
index ee61dd30b..ac000aa46 100644
--- a/gs/src/gdevtfnx.c
+++ b/gs/src/gdevtfnx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 12-bit & 24-bit RGB uncompressed TIFF driver */
#include "gdevprn.h"
#include "gdevtifs.h"
diff --git a/gs/src/gdevtifs.c b/gs/src/gdevtifs.c
index f786b014e..be4483992 100644
--- a/gs/src/gdevtifs.c
+++ b/gs/src/gdevtifs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* TIFF-writing substructure */
#include "stdio_.h"
#include "time_.h"
@@ -113,7 +100,7 @@ gdev_tiff_begin_page(gx_device_printer * pdev, gdev_tiff_state * tifs, FILE * fp
const byte * values, int value_size)
{
TIFF_std_directory_entries std_entries;
- const TIFF_dir_entry *pse = (TIFF_dir_entry *) & std_entries;
+ const TIFF_dir_entry *pse;
const TIFF_dir_entry *pce;
TIFF_dir_entry entry;
@@ -149,7 +136,7 @@ gdev_tiff_begin_page(gx_device_printer * pdev, gdev_tiff_state * tifs, FILE * fp
/* We're going to shuffle the two tag lists together. */
/* Both lists are sorted; entries in the client list */
/* replace entries with the same tag in the standard list. */
- for (ntags = 0, pse = (const TIFF_dir_entry *)&std_entries,
+ for (ntags = 0, pse = (const TIFF_dir_entry *)&std_entries_initial,
nse = std_entry_count, pce = entries, nce = entry_count;
nse && nce; ++ntags
) {
diff --git a/gs/src/gdevtifs.h b/gs/src/gdevtifs.h
index 43c19ecac..5e324260c 100644
--- a/gs/src/gdevtifs.h
+++ b/gs/src/gdevtifs.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for writing TIFF file formats. */
#ifndef gdevtifs_INCLUDED
diff --git a/gs/src/gdevtknk.c b/gs/src/gdevtknk.c
index cf11bf9b7..b56a1dfe8 100644
--- a/gs/src/gdevtknk.c
+++ b/gs/src/gdevtknk.c
@@ -1,28 +1,15 @@
/* Copyright (C) 1992, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/*
- Tektronix Ink-jet plotter driver.
- This code is written for 4696 and 4695 plotters, it may easily be
- adopted to the 4393 and 4394 models as well, simply by adding new
- device descriptors with other geometrical characteristics.
-*/
+ This driver is written for Tektronix ink-jet 4696 and 4695 plotters.
+
+ It may easily be adopted to the 4393 and 4394 models as well, simply by
+ adding new device descriptors with other geometrical characteristics.
+ */
#include "gdevprn.h"
#include "malloc_.h"
diff --git a/gs/src/gdevupd.c b/gs/src/gdevupd.c
index 05498e34d..8ab86bbc2 100644
--- a/gs/src/gdevupd.c
+++ b/gs/src/gdevupd.c
@@ -1,23 +1,11 @@
-/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
+/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
-/* gdevupd.c $Revision$ */
+/* $RCSfile$ $Revision$ */
/* "uniprint" -- Ugly Printer Driver by Gunther Hess (gunther@elmos.de) */
+/* $Revision$*/
/* Revision-History:
23-Mar-1997 - 1.43: First published version
diff --git a/gs/src/gdevvec.c b/gs/src/gdevvec.c
index 20811f824..9fc3d94a2 100644
--- a/gs/src/gdevvec.c
+++ b/gs/src/gdevvec.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utilities for "vector" devices */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gdevvec.h b/gs/src/gdevvec.h
index 283ed66ce..82e09db49 100644
--- a/gs/src/gdevvec.h
+++ b/gs/src/gdevvec.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common definitions for "vector" devices */
#ifndef gdevvec_INCLUDED
diff --git a/gs/src/gdevvglb.c b/gs/src/gdevvglb.c
index 5e6d700dd..0cd3f8e46 100644
--- a/gs/src/gdevvglb.c
+++ b/gs/src/gdevvglb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* This is a driver for 386 PCs using VGALIB for graphics on the console
* display.
diff --git a/gs/src/gdevwddb.c b/gs/src/gdevwddb.c
index f10ad4b53..b3c992d51 100644
--- a/gs/src/gdevwddb.c
+++ b/gs/src/gdevwddb.c
@@ -1,25 +1,13 @@
/* Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* Microsoft Windows 3.n driver for Ghostscript,
* using device-dependent bitmap.
+ *
* Original version by Russell Lang and Maurice Castro with help from
* Programming Windows, 2nd Ed., Charles Petzold, Microsoft Press;
* created from gdevbgi.c and gnuplot/term/win.trm 5th June 1992.
diff --git a/gs/src/gdevwdib.c b/gs/src/gdevwdib.c
index fc8335397..06d4a5c7e 100644
--- a/gs/src/gdevwdib.c
+++ b/gs/src/gdevwdib.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MS Windows 3.n driver for Ghostscript using a DIB for buffering. */
#include "gdevmswn.h"
#include "gxdevmem.h"
diff --git a/gs/src/gdevwpr2.c b/gs/src/gdevwpr2.c
index e7fdeaa2a..8314e7852 100644
--- a/gs/src/gdevwpr2.c
+++ b/gs/src/gdevwpr2.c
@@ -1,24 +1,12 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
- * Microsoft Windows 3.n printer driver for Ghostscript.
+ * Improved Microsoft Windows 3.n printer driver for Ghostscript.
+ *
* Original version by Russell Lang and
* L. Peter Deutsch, Aladdin Enterprises.
* Modified by rjl 1995-03-29 to use BMP printer code
diff --git a/gs/src/gdevwprn.c b/gs/src/gdevwprn.c
index b23769ab9..24a3fe494 100644
--- a/gs/src/gdevwprn.c
+++ b/gs/src/gdevwprn.c
@@ -1,24 +1,12 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* Microsoft Windows 3.n printer driver for Ghostscript.
+ *
* Original version by Russell Lang and
* L. Peter Deutsch, Aladdin Enterprises.
*/
diff --git a/gs/src/gdevx.c b/gs/src/gdevx.c
index 6a0bfdecf..72c8277da 100644
--- a/gs/src/gdevx.c
+++ b/gs/src/gdevx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* X Windows driver for Ghostscript library */
#include "gx.h" /* for gx_bitmap; includes std.h */
#include "math_.h"
diff --git a/gs/src/gdevx.h b/gs/src/gdevx.h
index e1f6df2c4..9af4c35b0 100644
--- a/gs/src/gdevx.h
+++ b/gs/src/gdevx.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for X Windows drivers */
/* Requires gxdevice.h and x_.h */
#ifndef gdevx_INCLUDED
diff --git a/gs/src/gdevxalt.c b/gs/src/gdevxalt.c
index 3fd84e1a3..dc25c3111 100644
--- a/gs/src/gdevxalt.c
+++ b/gs/src/gdevxalt.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Alternative X Windows drivers for help in driver debugging */
#include "gx.h" /* for gx_bitmap; includes std.h */
#include "math_.h"
diff --git a/gs/src/gdevxcmp.c b/gs/src/gdevxcmp.c
index b466fe64c..7c1488e98 100644
--- a/gs/src/gdevxcmp.c
+++ b/gs/src/gdevxcmp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* X Windows color mapping */
#include "math_.h"
#include "x_.h"
diff --git a/gs/src/gdevxcmp.h b/gs/src/gdevxcmp.h
index 2d09493b6..160c29797 100644
--- a/gs/src/gdevxcmp.h
+++ b/gs/src/gdevxcmp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* X driver color mapping structure */
#ifndef gdevxcmp_INCLUDED
diff --git a/gs/src/gdevxini.c b/gs/src/gdevxini.c
index dba19c746..885259955 100644
--- a/gs/src/gdevxini.c
+++ b/gs/src/gdevxini.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* X Windows driver initialization/finalization */
#include "memory_.h"
#include "x_.h"
diff --git a/gs/src/gdevxres.c b/gs/src/gdevxres.c
index 00dc4ede9..a40f713c2 100644
--- a/gs/src/gdevxres.c
+++ b/gs/src/gdevxres.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* X Windows driver resource tables */
#include "std.h" /* must precede any file that includes <sys/types.h> */
#include "x_.h"
diff --git a/gs/src/gdevxxf.c b/gs/src/gdevxxf.c
index 5f127402a..3ade1fc0e 100644
--- a/gs/src/gdevxxf.c
+++ b/gs/src/gdevxxf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* External font (xfont) implementation for X11. */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/genarch.c b/gs/src/genarch.c
index d0b84d7dd..d72c7962a 100644
--- a/gs/src/genarch.c
+++ b/gs/src/genarch.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generate a header file (arch.h) with parameters */
/* reflecting the machine architecture and compiler characteristics. */
@@ -54,20 +41,13 @@ time_clear(char *buf, int bsize, int nreps)
private void
define(FILE *f, const char *str)
{
- char upstr[50];
- int i, c;
-
- for (i = 0; (c = str[i]) != 0; ++i)
- upstr[i] = toupper(str[i]);
- upstr[i] = 0;
- fprintf(f, "#define %s ", upstr);
+ fprintf(f, "#define %s ", str);
}
private void
define_int(FILE *f, const char *str, int value)
{
- define(f, str);
- fprintf(f, "%d\n", value);
+ fprintf(f, "#define %s %d\n", str, value);
}
const char ff_str[] = "ffffffffffffffff"; /* 8 bytes */
@@ -139,25 +119,25 @@ main(int argc, char *argv[])
section(f, "Scalar alignments");
#define OFFSET_IN(s, e) (int)((char *)&s.e - (char *)&s)
- define_int(f, "arch_align_short_mod", OFFSET_IN(ss, s));
- define_int(f, "arch_align_int_mod", OFFSET_IN(si, i));
- define_int(f, "arch_align_long_mod", OFFSET_IN(sl, l));
- define_int(f, "arch_align_ptr_mod", OFFSET_IN(sp, p));
- define_int(f, "arch_align_float_mod", OFFSET_IN(sf, f));
- define_int(f, "arch_align_double_mod", OFFSET_IN(sd, d));
+ define_int(f, "ARCH_ALIGN_SHORT_MOD", OFFSET_IN(ss, s));
+ define_int(f, "ARCH_ALIGN_INT_MOD", OFFSET_IN(si, i));
+ define_int(f, "ARCH_ALIGN_LONG_MOD", OFFSET_IN(sl, l));
+ define_int(f, "ARCH_ALIGN_PTR_MOD", OFFSET_IN(sp, p));
+ define_int(f, "ARCH_ALIGN_FLOAT_MOD", OFFSET_IN(sf, f));
+ define_int(f, "ARCH_ALIGN_DOUBLE_MOD", OFFSET_IN(sd, d));
#undef OFFSET_IN
section(f, "Scalar sizes");
- define_int(f, "arch_log2_sizeof_short", log2s[size_of(short)]);
- define_int(f, "arch_log2_sizeof_int", log2s[size_of(int)]);
- define_int(f, "arch_log2_sizeof_long", log2s[size_of(long)]);
- define_int(f, "arch_sizeof_ptr", size_of(char *));
- define_int(f, "arch_sizeof_float", size_of(float));
- define_int(f, "arch_sizeof_double", size_of(double));
+ define_int(f, "ARCH_LOG2_SIZEOF_SHORT", log2s[size_of(short)]);
+ define_int(f, "ARCH_LOG2_SIZEOF_INT", log2s[size_of(int)]);
+ define_int(f, "ARCH_LOG2_SIZEOF_LONG", log2s[size_of(long)]);
+ define_int(f, "ARCH_SIZEOF_PTR", size_of(char *));
+ define_int(f, "ARCH_SIZEOF_FLOAT", size_of(float));
+ define_int(f, "ARCH_SIZEOF_DOUBLE", size_of(double));
if (floats_are_IEEE) {
- define_int(f, "arch_float_mantissa_bits", 24);
- define_int(f, "arch_double_mantissa_bits", 53);
+ define_int(f, "ARCH_FLOAT_MANTISSA_BITS", 24);
+ define_int(f, "ARCH_DOUBLE_MANTISSA_BITS", 53);
} else {
/*
* There isn't any general way to compute the number of mantissa
@@ -165,8 +145,8 @@ main(int argc, char *argv[])
* than binary exponents. Use conservative values, assuming
* the exponent is stored in a 16-bit word of its own.
*/
- define_int(f, "arch_float_mantissa_bits", sizeof(float) * 8 - 17);
- define_int(f, "arch_double_mantissa_bits", sizeof(double) * 8 - 17);
+ define_int(f, "ARCH_FLOAT_MANTISSA_BITS", sizeof(float) * 8 - 17);
+ define_int(f, "ARCH_DOUBLE_MANTISSA_BITS", sizeof(double) * 8 - 17);
}
section(f, "Unsigned max values");
@@ -175,17 +155,16 @@ main(int argc, char *argv[])
define(f, str);\
fprintf(f, "((%s)0x%s%s + (%s)0)\n",\
tstr, ff_str + ff_strlen - size_of(typ) * 2, l, tstr)
- PRINT_MAX("arch_max_uchar", unsigned char, "unsigned char", "");
- PRINT_MAX("arch_max_ushort", unsigned short, "unsigned short", "");
+ PRINT_MAX("ARCH_MAX_UCHAR", unsigned char, "unsigned char", "");
+ PRINT_MAX("ARCH_MAX_USHORT", unsigned short, "unsigned short", "");
/*
* For uint and ulong, a different approach is required to keep gcc
* with -Wtraditional from spewing out pointless warnings.
*/
- define(f, "arch_max_uint");
+ define(f, "ARCH_MAX_UINT");
fprintf(f, "((unsigned int)~0 + (unsigned int)0)\n");
- define(f, "arch_max_ulong");
+ define(f, "ARCH_MAX_ULONG");
fprintf(f, "((unsigned long)~0L + (unsigned long)0)\n");
-
#undef PRINT_MAX
section(f, "Cache sizes");
@@ -228,7 +207,7 @@ main(int argc, char *argv[])
if (nreps == 0)
nreps = 1, t <<= 1;
}
- define_int(f, "arch_cache1_size", bsize >> 1);
+ define_int(f, "ARCH_CACHE1_SIZE", bsize >> 1);
/*
* Do the same thing a second time for the secondary cache.
*/
@@ -246,28 +225,37 @@ main(int argc, char *argv[])
if (nreps == 0)
nreps = 1, t <<= 1;
}
- define_int(f, "arch_cache2_size", bsize >> 1);
+ define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1);
}
section(f, "Miscellaneous");
- define_int(f, "arch_is_big_endian", 1 - *(char *)&one);
+ define_int(f, "ARCH_IS_BIG_ENDIAN", 1 - *(char *)&one);
pl0.l = 0;
pl1.l = -1;
- define_int(f, "arch_ptrs_are_signed", (pl1.p < pl0.p));
- define_int(f, "arch_floats_are_IEEE", (floats_are_IEEE ? 1 : 0));
+ define_int(f, "ARCH_PTRS_ARE_SIGNED", (pl1.p < pl0.p));
+ define_int(f, "ARCH_FLOATS_ARE_IEEE", (floats_are_IEEE ? 1 : 0));
- /* There are three cases for arithmetic right shift: */
- /* always correct, correct except for right-shifting a long by 1 */
- /* (a bug in some versions of the Turbo C compiler), and */
- /* never correct. */
+ /*
+ * There are three cases for arithmetic right shift:
+ * always correct, correct except for right-shifting a long by 1
+ * (a bug in some versions of the Turbo C compiler), and
+ * never correct.
+ */
ars = (lr2 != -1 || ir1 != -1 || ir2 != -1 ? 0 :
lr1 != -1 ? 1 : /* Turbo C problem */
2);
- define_int(f, "arch_arith_rshift", ars);
- /* Some machines can't handle a variable shift by */
- /* the full width of a long. */
- define_int(f, "arch_can_shift_full_long", um1 >> lwidth == 0);
+ define_int(f, "ARCH_ARITH_RSHIFT", ars);
+ /*
+ * Some machines can't handle a variable shift by
+ * the full width of a long.
+ */
+ define_int(f, "ARCH_CAN_SHIFT_FULL_LONG", um1 >> lwidth == 0);
+ /*
+ * Determine whether dividing a negative integer by a positive one
+ * takes the floor or truncates toward zero.
+ */
+ define_int(f, "ARCH_DIV_NEG_POS_TRUNCATES", im1 / 2 == 0);
/* ---------------- Done. ---------------- */
diff --git a/gs/src/genconf.c b/gs/src/genconf.c
index fe862e801..c65ca62ec 100644
--- a/gs/src/genconf.c
+++ b/gs/src/genconf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generate configuration files */
#include "stdpre.h"
#include <assert.h>
@@ -50,7 +37,7 @@ mrealloc(void *old_ptr, size_t old_size, size_t new_size)
* genconf [-Z] [-e escapechar] [-n [name_prefix | -]] [@]xxx.dev*
* [-f gconfigf.h] [-h gconfig.h]
* [-p[l|L][u][e] pattern] [-l|o|lo|ol out.tr]
- * The default escape character is &. When this character appears in the
+ * The default escape character is &. When this character appears in a
* pattern, it acts as follows:
* &p produces a %;
* &s produces a space;
@@ -114,11 +101,13 @@ typedef struct config_s {
string_list libs;
#define c_libs lists.named.libs
string_list libpaths;
+#define c_links lists.named.links
+ string_list links;
#define c_libpaths lists.named.libpaths
string_list objs;
#define c_objs lists.named.objs
} named;
-#define NUM_RESOURCE_LISTS 7
+#define NUM_RESOURCE_LISTS 8
string_list indexed[NUM_RESOURCE_LISTS];
} lists;
string_pattern lib_p;
@@ -145,6 +134,7 @@ static const string_list init_config_lists[] =
{"-font", 50, uniq_first},
{"-lib", 20, uniq_last},
{"-libpath", 10, uniq_first},
+ {"-link", 10, uniq_first},
{"-obj", 500, uniq_first}
};
@@ -331,7 +321,9 @@ main(int argc, char *argv[])
}
if (lib) {
sort_uniq(&conf.c_libs, true);
+ sort_uniq(&conf.c_links, true);
write_list_pattern(out, &conf.c_libpaths, &conf.libpath_p);
+ write_list_pattern(out, &conf.c_links, &conf.obj_p);
write_list_pattern(out, &conf.c_libs, &conf.lib_p);
}
break;
@@ -548,7 +540,7 @@ read_token(char *token, int max_len, const char **pin)
int
add_entry(config * pconf, char *category, const char *item, int file_index)
{
- if (item[0] == '-') { /* set category */
+ if (item[0] == '-' && islower(item[1])) { /* set category */
strcpy(category, item + 1);
return 0;
} else { /* add to current category */
@@ -617,10 +609,12 @@ pre: sprintf(template, pat, pconf->name_prefix);
if (IS_CAT("lib")) {
list = &pconf->c_libs;
break;
- }
- if (IS_CAT("libpath")) {
+ } else if (IS_CAT("libpath")) {
list = &pconf->c_libpaths;
break;
+ } else if (IS_CAT("link")) {
+ list = &pconf->c_links;
+ break;
}
goto err;
case 'o':
diff --git a/gs/src/gendev.c b/gs/src/gendev.c
index 11ec055f8..64ce943ff 100644
--- a/gs/src/gendev.c
+++ b/gs/src/gendev.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generate .dev configuration files */
#include "stdpre.h"
#include <assert.h>
diff --git a/gs/src/genht.c b/gs/src/genht.c
index 68564a5c1..e04fe3746 100644
--- a/gs/src/genht.c
+++ b/gs/src/genht.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generate C code for compiling halftones into ROM. */
#include "malloc_.h"
#include "stdio_.h"
diff --git a/gs/src/geninit.c b/gs/src/geninit.c
index 9f9ed5fda..3fd7210be 100644
--- a/gs/src/geninit.c
+++ b/gs/src/geninit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utility for merging all the Ghostscript initialization files */
/* (gs_*.ps) into a single file, optionally converting them to C data. */
#include "stdpre.h"
diff --git a/gs/src/ghost.h b/gs/src/ghost.h
index 2a305abb7..1e6566191 100644
--- a/gs/src/ghost.h
+++ b/gs/src/ghost.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common definitions for interpreter */
#ifndef ghost_INCLUDED
diff --git a/gs/src/gp.h b/gs/src/gp.h
index b6d0b62f7..232462e40 100644
--- a/gs/src/gp.h
+++ b/gs/src/gp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to platform-specific routines */
/* Requires gsmemory.h */
diff --git a/gs/src/gp_dosfb.c b/gs/src/gp_dosfb.c
index 970499885..da828b98e 100644
--- a/gs/src/gp_dosfb.c
+++ b/gs/src/gp_dosfb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MS-DOS frame buffer swapping routines for Ghostscript */
#include <conio.h>
#include "malloc_.h"
diff --git a/gs/src/gp_dosfe.c b/gs/src/gp_dosfe.c
index 4728aa3cc..031a5cb51 100644
--- a/gs/src/gp_dosfe.c
+++ b/gs/src/gp_dosfe.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MS-DOS file enumeration. */
#include "stdio_.h"
#include <fcntl.h>
diff --git a/gs/src/gp_dosfs.c b/gs/src/gp_dosfs.c
index 2034f7d71..e53758149 100644
--- a/gs/src/gp_dosfs.c
+++ b/gs/src/gp_dosfs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common routines for MS-DOS (any compiler) and DesqView/X, */
/* which has a MS-DOS-like file system. */
#include "dos_.h"
diff --git a/gs/src/gp_dvx.c b/gs/src/gp_dvx.c
index 0c6abdc7d..d3be8eabb 100644
--- a/gs/src/gp_dvx.c
+++ b/gs/src/gp_dvx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Desqview/X-specific routines for Ghostscript */
#include "string_.h"
#include "gx.h"
diff --git a/gs/src/gp_getnv.c b/gs/src/gp_getnv.c
index 9f11fb745..588823bb6 100644
--- a/gs/src/gp_getnv.c
+++ b/gs/src/gp_getnv.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Standard implementation of gp_getenv */
#include "stdio_.h"
#include "string_.h"
diff --git a/gs/src/gp_gnrdl.c b/gs/src/gp_gnrdl.c
deleted file mode 100644
index fea4bf527..000000000
--- a/gs/src/gp_gnrdl.c
+++ /dev/null
@@ -1,411 +0,0 @@
-/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
- */
-
-/*
- As of version 5.71, Ghostscript includes an interface to the GNU readline
- library, as a build-time option. This library is licensed under the GNU
- General Public License (GPL), not the GNU Library / Lesser General Public
- License (LGPL). If you build Aladdin Ghostscript with the gnrdline
- option, which links this library into the executable, the GPL DOES NOT
- ALLOW YOU TO COPY OR DISTRIBUTE THE RESULT. For example, the GPL forbids
- you to build a RPM of Aladdin Ghostscript with GNU readline support and
- put it on a server.
-
- The GPL does not forbid you to build or use the just-described software,
- only to copy or distribute it.
-
- You *are* allowed to distribute the result of linking the GNU readline
- library into GNU Ghostscript, which is licensed with the GPL.
-
- If you have questions or opinions about any of the above, please feel free
- to contact the Free Software Foundation, authors of the GNU licenses, at
- gnu@gnu.org, and/or Aladdin Enterprises, author of Ghostscript, at
- ghost@aladdin.com.
- */
-
-
-/* GNU readline interface */
-#include "ctype_.h"
-#include "string_.h"
-#include "malloc_.h"
-#include "memory_.h"
-#include <readline/readline.h>
-#include <readline/history.h>
-#include "ghost.h"
-#include "errors.h"
-#include "gp.h"
-#include "gscdefs.h" /* for gs_product for GNU test */
-#include "gsmalloc.h"
-#include "gsmemory.h"
-#include "gsstruct.h"
-#include "stream.h"
-#include "gxiodev.h"
-#include "ialloc.h"
-#include "idict.h"
-#include "iname.h"
-#include "iutil.h"
-#include "dstack.h"
-#include "ostack.h"
-
-/*
- * Note: This code was contributed by a user: please contact
- * Alexey Subbotin <A.Subbotin@lpi.ru> if you have questions.
- */
-
-#define DEFAULT_BUFFER_SIZE 256
-#define BUFSIZE_INCR 128
-
-/* The file names can be set in the makefile if desired. */
-/*
- * The prototypes for read_history and write_history are broken (they don't
- * specify the file name strings as const), so we have to omit the const
- * here too, or else add casts that will cause some compilers to complain.
- */
-#ifndef GS_HISTFILE
-# define GS_HISTFILE ".gs_history"
-#endif
-private /*const*/ char *const GS_histfile = GS_HISTFILE;
-#ifndef RL_INITFILE
-# define RL_INITFILE "~/.inputrc"
-#endif
-private /*const*/ char *const RL_initfile = RL_INITFILE;
-
-/* initial key codes to make dictionary current_completion_dict
- (may be changed to any key sequences by settings in init file) */
-#define RL_systemdict_keycode ('s' | 0x80 ) /* Alt-s */
-#define RL_userdict_keycode ('u' | 0x80 ) /* Alt-u */
-#define RL_currentdict_keycode ('c' | 0x80 ) /* Alt-c */
-#define RL_filenames_keycode ('f' | 0x80 ) /* Alt-f */
-#define RL_show_value_keycode ('i' | 0x80 ) /* Alt-i ( = info) */
-/* e.g.: "\C-x\C-u": complete-from-userdict */
-#define RL_systemdict_func "gs-complete-from-systemdict"
-#define RL_userdict_func "gs-complete-from-userdict"
-#define RL_currentdict_func "gs-complete-from-currentdict"
-#define RL_filenames_func "gs-complete-filenames"
-#define RL_show_value_func "gs-show-name-value"
-
-#define RL_init_buffsz DEFAULT_BUFFER_SIZE
-
-private const char *const ps_delimiters = " \n\t{}[]()/";
-
-#define is_regular(A) (strchr(ps_delimiters,(A)) == NULL)
-
-typedef enum {
- compl_systemdict,
- compl_userdict,
- compl_currentdict,
- compl_filenames
-} compl_t;
-
-typedef struct readline_data_s {
- compl_t completion_type;
- gs_memory_t *mem;
- i_ctx_t *i_ctx_p;
- /* current completion state */
- int c_idx, c_len;
-} readline_data_t;
-gs_private_st_ptrs1(st_readline_data, readline_data_t, "readline_data_t",
- readline_data_enum_ptrs, readline_data_reloc_ptrs, i_ctx_p);
-
-private readline_data_t *the_readline_data;
-
-private char *
-gs_readline_complete(char *text, int state)
-{
- readline_data_t *const p = the_readline_data;
- i_ctx_t *i_ctx_p = p->i_ctx_p;
- ref *cdict;
- ref eltp[2];
-
- switch (p->completion_type) {
- case compl_systemdict:
- cdict = systemdict;
- break;
- case compl_userdict:
- cdict = idict_stack.stack.bot + dstack_userdict_index;
- break;
- case compl_currentdict:
- cdict = idict_stack.stack.p;
- break;
- case compl_filenames:
- return (*filename_completion_function) (text, state);
- default:
- return NULL;
- }
- if (!state) {
- p->c_len = strlen(text);
- if (!(p->c_idx = dict_first(cdict)))
- return NULL;
- }
- while ((p->c_idx = dict_next(cdict, p->c_idx, eltp)) >= 0) {
- ref rnstr;
- const byte *nchars;
- uint nlen;
-
- if (!r_has_type(eltp, t_name))
- continue;
- name_string_ref(eltp, &rnstr);
- nchars = rnstr.value.const_bytes;
- nlen = r_size(&rnstr);
- if (nlen < p->c_len)
- continue;
- if (!strncmp((const char *)nchars, text, p->c_len)) {
- char *name = (char *)malloc(nlen + 1);
-
- memcpy(name, nchars, nlen);
- name[nlen] = 0;
- return name;
- }
- }
- return NULL;
-}
-
-private int
-rl_systemdict_compl(int count, int key)
-{
- readline_data_t *const p = the_readline_data;
-
- p->completion_type = compl_systemdict;
- return 0;
-}
-private int
-rl_userdict_compl(int count, int key)
-{
- readline_data_t *const p = the_readline_data;
-
- p->completion_type = compl_userdict;
- return 0;
-}
-private int
-rl_currentdict_compl(int count, int key)
-{
- readline_data_t *const p = the_readline_data;
-
- p->completion_type = compl_currentdict;
- return 0;
-}
-private int
-rl_filenames_compl(int count, int key)
-{
- readline_data_t *const p = the_readline_data;
-
- p->completion_type = compl_filenames;
- return 0;
-}
-
-private int
-rl_show_name_value(int count, int key)
-{
- readline_data_t *const p = the_readline_data;
- i_ctx_t *i_ctx_p = p->i_ctx_p;
- int i = rl_point;
- char *c = rl_line_buffer + rl_point;
- ref nref;
- ref *pvref;
-
- while (is_regular(*c) && i < rl_end) {
- c++;
- i++;
- }
- while (!is_regular(*c) && i) {
- c--;
- i--;
- }
- if (!is_regular(*c))
- return 0;
- while (is_regular(*c) && c > rl_line_buffer)
- c--;
- if (!is_regular(*c))
- c++;
- i += ((rl_line_buffer - c) + 1);
- /*
- * Now the name to be looked up extends from c through c + i - 1.
- */
- if (name_ref((const byte *)c, (uint)i, &nref, -1) < 0 ||
- (pvref = dict_find_name(&nref)) == 0
- )
- puts("\nnot found");
- else {
-#define MAX_CVS 128
- char str[MAX_CVS];
- const byte *pchars = (const byte *)str;
- uint len;
- int code = obj_cvp(pvref, (byte *)str, MAX_CVS, &len, 1, 0, imemory);
-
- putchar('\n');
- if (code < 0) {
- code = obj_string_data(pvref, &pchars, &len);
- if (code >= 0)
- switch (r_type(pvref)) {
- case t_string:
- putchar('(');
- fwrite(pchars, 1, len, stdout);
- pchars = (const byte *)")", len = 1;
- break;
- case t_name:
- if (!r_has_attr(pvref, a_executable))
- putchar('/');
- break;
- default:
- code = obj_cvs(pvref, (byte *)str, MAX_CVS, &len, &pchars);
- }
- }
- if (code < 0)
- puts("-error-");
- else {
- fwrite(pchars, 1, len, stdout);
- putchar('\n');
- }
- }
- rl_on_new_line();
- rl_forced_update_display();
- return 0;
-}
-
-
-int
-gp_readline_init(void **preadline_data, gs_memory_t * mem)
-{
- readline_data_t *p;
- int i;
-
- /*
- * If this package is included in a non-GNU build, warn the user
- * about the consequences of the GPL.
- */
- for (i = strlen(gs_product) - 3; i >= 0; --i)
- if (!strncmp(gs_product + i, "GNU", 3))
- break;
- if (i < 0) {
- fputs("\n **** WARNING: This program appears to include both the GNU readline\n", stderr);
- fputs(" **** library and non-GNU-licensed code. This being so, the GNU license\n", stderr);
- fputs(" **** (COPYLEFT) forbids you to copy or distribute this program.\n", stderr);
- fputs(" **** See src/gp_gnrdl.c for details.\n\n", stderr);
- fflush(stderr);
- }
-
- using_history();
- read_history(GS_histfile);
-
- p = (readline_data_t *)
- gs_alloc_struct_immovable(mem, readline_data_t, &st_readline_data,
- "gp_readline_init(readline structure)");
- if (!p)
- return_error(e_VMerror);
- gs_register_struct_root(mem, NULL, (void **)&the_readline_data,
- "the_readline_data");
-
- p->mem = mem;
- p->i_ctx_p = 0; /* only meaningful when reading a line */
- p->c_idx = p->c_len = 0;
- p->completion_type = compl_systemdict;
-
- rl_add_defun(RL_systemdict_func, rl_systemdict_compl, RL_systemdict_keycode);
- rl_add_defun(RL_userdict_func, rl_userdict_compl, RL_userdict_keycode);
- rl_add_defun(RL_currentdict_func, rl_currentdict_compl, RL_currentdict_keycode);
- rl_add_defun(RL_filenames_func, rl_filenames_compl, RL_filenames_keycode);
- rl_add_defun(RL_show_value_func, rl_show_name_value, RL_show_value_keycode);
-
- rl_read_init_file(RL_initfile);
-
- /*
- * The GNU readline API is pretty badly broken, as indicated in the
- * following comments about the following statics that it declares.
- * (Just to begin with, using statics at all is broken design.)
- */
- /*
- * rl_completion_entry_function should be declared with the same
- * prototype as gs_readline_complete; however, it's declared as
- * Function *, where Function is int ()();
- */
- rl_completion_entry_function = (Function *)gs_readline_complete;
- /*
- * rl_basic_word_break_characters should declared as const char *;
- * however, it's declared as char *.
- */
- rl_basic_word_break_characters = (char *)ps_delimiters;
-
- *preadline_data = p;
- the_readline_data = p; /* HACK */
- return 0;
-}
-
-void
-gp_readline_finit(void *data)
-{
- readline_data_t *dp = (readline_data_t *)data;
-
- if (dp)
- gs_free_object(dp->mem, dp, "gp_readline_finit(readline structure)");
- write_history(GS_histfile);
- clear_history();
-}
-
-int
-gp_readline(stream *ignore_s_in, stream *ignore_s_out,
- void *readline_data,
- gs_const_string *ignore_prompt, gs_string * buf,
- gs_memory_t * bufmem, uint * pcount, bool *pin_eol,
- bool (*is_stdin)(P1(const stream *)))
-{
- /* HACK: ignore readline_data, which is currently not supplied. */
- readline_data_t *p = the_readline_data;
- char *c;
- char prompt[64];
- uint count;
- gx_io_device *indev = gs_findiodevice((const byte *)"%stdin", 6);
- /* HACK: get the context pointer from the IODevice. See ziodev.c. */
- i_ctx_t *i_ctx_p = (i_ctx_t *)indev->state;
-
- p->i_ctx_p = i_ctx_p;
- count = ref_stack_count(&o_stack);
- if (count > 2)
- sprintf(prompt, "GS<%d>", count - 2);
- else
- strcpy(prompt, "GS>");
-
- if ((c = readline(prompt)) == NULL) {
- *pcount = 0;
- *pin_eol = false;
- return EOFC;
- } else {
- count = strlen(c) + 1;
- if (*c)
- add_history(c);
- if (count >= buf->size) {
- if (!bufmem)
- return ERRC; /* no better choice */
- {
- uint nsize = count + BUFSIZE_INCR;
- byte *nbuf = gs_resize_string(bufmem, buf->data, buf->size,
- nsize,
- "gp_readline(resize buffer)");
-
- if (nbuf == 0)
- return ERRC; /* no better choice */
- buf->data = nbuf;
- buf->size = nsize;
- }
- }
- memcpy(buf->data, c, count);
- free(c);
- *pin_eol = true;
- *pcount = count;
- return 0;
- }
-}
diff --git a/gs/src/gp_iwatc.c b/gs/src/gp_iwatc.c
index ab825df34..44007fcec 100644
--- a/gs/src/gp_iwatc.c
+++ b/gs/src/gp_iwatc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Intel processor, Watcom C-specific routines for Ghostscript */
#include "dos_.h"
#include <fcntl.h>
diff --git a/gs/src/gp_msdos.c b/gs/src/gp_msdos.c
index f636f928a..90c878d97 100644
--- a/gs/src/gp_msdos.c
+++ b/gs/src/gp_msdos.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common platform-specific routines for MS-DOS (any compiler) */
#include "stdio_.h"
#include "string_.h" /* for strerror */
diff --git a/gs/src/gp_mshdl.c b/gs/src/gp_mshdl.c
index f0979a1e0..2d4faa7ca 100644
--- a/gs/src/gp_mshdl.c
+++ b/gs/src/gp_mshdl.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* %handle% IODevice */
#include "errno_.h"
#include "stdio_.h"
diff --git a/gs/src/gp_msio.c b/gs/src/gp_msio.c
index 1b1f4ed99..5be5a006b 100644
--- a/gs/src/gp_msio.c
+++ b/gs/src/gp_msio.c
@@ -1,24 +1,12 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* Streams for Windows text window
+ *
* Original version by Russell Lang and Maurice Castro with help from
* Programming Windows, 2nd Ed., Charles Petzold, Microsoft Press;
* initially created from gp_dosfb.c and gp_itbc.c 5th June 1992.
@@ -69,9 +57,9 @@ private stream_proc_available(win_std_available);
/* Use a pseudo IODevice to get win_stdio_init called at the right time. */
/* This is bad architecture; we'll fix it later. */
private iodev_proc_init(win_stdio_init);
-const gx_io_device gs_iodev_wstdio =
-{
- "wstdio", "Special",
+const gx_io_device gs_iodev_wstdio = {
+ /* The name is null to keep this from showing up as a resource. */
+ 0, "Special",
{win_stdio_init, iodev_no_open_device,
iodev_no_open_file, iodev_no_fopen, iodev_no_fclose,
iodev_no_delete_file, iodev_no_rename_file,
diff --git a/gs/src/gp_mslib.c b/gs/src/gp_mslib.c
index 3d3605039..61f415283 100644
--- a/gs/src/gp_mslib.c
+++ b/gs/src/gp_mslib.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* Microsoft Windows 3.n platform support for Graphics Library
*
diff --git a/gs/src/gp_mswin.c b/gs/src/gp_mswin.c
index 44beced42..9a6b6d52f 100644
--- a/gs/src/gp_mswin.c
+++ b/gs/src/gp_mswin.c
@@ -1,24 +1,12 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/*
* Microsoft Windows 3.n platform support for Ghostscript.
+ *
* Original version by Russell Lang and Maurice Castro with help from
* Programming Windows, 2nd Ed., Charles Petzold, Microsoft Press;
* initially created from gp_dosfb.c and gp_itbc.c 5th June 1992.
diff --git a/gs/src/gp_mswin.h b/gs/src/gp_mswin.h
index 19a42b01b..5978569b8 100644
--- a/gs/src/gp_mswin.h
+++ b/gs/src/gp_mswin.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* (used by both C code and Windows 'resource') */
#ifndef gp_mswin_INCLUDED
diff --git a/gs/src/gp_nofb.c b/gs/src/gp_nofb.c
index ab3140e2f..6a0513d64 100644
--- a/gs/src/gp_nofb.c
+++ b/gs/src/gp_nofb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dummy routines for Ghostscript platforms with no frame buffer management */
#include "gx.h"
#include "gp.h"
diff --git a/gs/src/gp_nsync.c b/gs/src/gp_nsync.c
index 83fa9ae20..c660c5468 100644
--- a/gs/src/gp_nsync.c
+++ b/gs/src/gp_nsync.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dummy thread / semaphore / monitor implementation */
#include "std.h"
#include "gserror.h"
diff --git a/gs/src/gp_ntfs.c b/gs/src/gp_ntfs.c
index 64ed26fdb..d65e05d28 100644
--- a/gs/src/gp_ntfs.c
+++ b/gs/src/gp_ntfs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* file system stuff for MS-Windows WIN32 and MS-Windows NT */
/* hacked from gp_dosfs.c by Russell Lang */
diff --git a/gs/src/gp_os2.c b/gs/src/gp_os2.c
index 34b1ea766..c739d4f79 100644
--- a/gs/src/gp_os2.c
+++ b/gs/src/gp_os2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common platform-specific routines for OS/2 and MS-DOS */
/* compiled with GCC/EMX */
@@ -799,9 +786,9 @@ private stream_proc_available(pm_std_available);
/* Use a pseudo IODevice to get pm_stdio_init called at the right time. */
/* This is bad architecture; we'll fix it later. */
private iodev_proc_init(pm_stdio_init);
-const gx_io_device gs_iodev_wstdio =
-{
- "wstdio", "Special",
+const gx_io_device gs_iodev_wstdio = {
+ /* The name is null to keep this from showing up as a resource. */
+ 0, "Special",
{pm_stdio_init, iodev_no_open_device,
iodev_no_open_file, iodev_no_fopen, iodev_no_fclose,
iodev_no_delete_file, iodev_no_rename_file,
@@ -831,7 +818,7 @@ pm_stdin_open(gx_io_device * iodev, const char *access, stream ** ps,
return code;
s->procs.reset = pm_std_read_reset;
s->procs.process = pm_std_read_process;
- s->procs.available = win_std_available;
+ s->procs.available = pm_std_available;
s->file = NULL;
return 0;
}
@@ -847,7 +834,7 @@ pm_stdout_open(gx_io_device * iodev, const char *access, stream ** ps,
if (code != 1)
return code;
s->procs.process = pm_std_write_process;
- s->procs.available = win_std_available;
+ s->procs.available = pm_std_available;
s->file = NULL;
return 0;
}
@@ -863,7 +850,7 @@ pm_stderr_open(gx_io_device * iodev, const char *access, stream ** ps,
if (code != 1)
return code;
s->procs.process = pm_std_write_process;
- s->procs.available = win_std_available;
+ s->procs.available = pm_std_available;
s->file = NULL;
return 0;
}
diff --git a/gs/src/gp_os9.c b/gs/src/gp_os9.c
index 578ae70d6..1c765ea3e 100644
--- a/gs/src/gp_os9.c
+++ b/gs/src/gp_os9.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* OSK-specific routines for Ghostscript */
#include "pipe_.h"
#include "string_.h"
diff --git a/gs/src/gp_posem.c b/gs/src/gp_posem.c
index 7112f292b..69b80d06e 100644
--- a/gs/src/gp_posem.c
+++ b/gs/src/gp_posem.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* POSIX semaphore interface */
#include "std.h"
#include <semaphore.h>
diff --git a/gs/src/gp_pthr.c b/gs/src/gp_pthr.c
index 044daff91..4f3e4aeaa 100644
--- a/gs/src/gp_pthr.c
+++ b/gs/src/gp_pthr.c
@@ -1,38 +1,60 @@
-/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* pthreads interface */
#include "std.h"
+#include "malloc_.h"
#include <pthread.h>
#include "gserror.h"
#include "gserrors.h"
#include "gpsync.h"
+/*
+ * In order to deal with the type mismatch between our thread API, where
+ * the starting procedure returns void, and the API defined by pthreads,
+ * where the procedure returns void *, we need to create a wrapper
+ * closure.
+ */
+typedef struct gp_thread_creation_closure_s {
+ gp_thread_creation_callback_t proc; /* actual start procedure */
+ void *proc_data; /* closure data for proc */
+} gp_thread_creation_closure_t;
+
+/* Wrapper procedure called to start the new thread. */
+private void *
+gp_thread_begin_wrapper(void *thread_data /* gp_thread_creation_closure_t * */)
+{
+ gp_thread_creation_closure_t closure;
+
+ closure = *(gp_thread_creation_closure_t *)thread_data;
+ free(thread_data);
+ DISCARD(closure.proc(closure.proc_data));
+ return NULL; /* return value is ignored */
+}
+
int
gp_create_thread(gp_thread_creation_callback_t proc, void *proc_data)
{
+ gp_thread_creation_closure_t *closure =
+ (gp_thread_creation_closure_t *)malloc(sizeof(*closure));
pthread_t ignore_thread;
pthread_attr_t attr;
int code;
+ if (!closure)
+ return_error(gs_error_VMerror);
+ closure->proc = proc;
+ closure->proc_data = proc_data;
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, 1);
- code = pthread_create(&ignore_thread, &attr, proc, proc_data);
- return (code ? gs_note_error(gs_error_ioerror) : 0);
+ code = pthread_create(&ignore_thread, &attr, gp_thread_begin_wrapper,
+ closure);
+ if (code) {
+ free(closure);
+ return_error(gs_error_ioerror);
+ }
+ return 0;
}
diff --git a/gs/src/gp_ptsem.c b/gs/src/gp_ptsem.c
new file mode 100644
index 000000000..d15b6b266
--- /dev/null
+++ b/gs/src/gp_ptsem.c
@@ -0,0 +1,67 @@
+/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+
+/*$RCSfile$ $Revision$ */
+/* POSIX pthreads implementation of semaphores */
+#include "std.h"
+#include <pthread.h>
+#include "gserror.h"
+#include "gserrors.h"
+#include "gpsync.h"
+
+uint
+gp_semaphore_sizeof(void)
+{
+ return sizeof(pthread_mutex_t);
+}
+
+/*
+ * This procedure should really check errno and return something
+ * more informative....
+ */
+#define SEM_ERROR_CODE(scode)\
+ (scode < 0 ? gs_note_error(gs_error_ioerror) : 0)
+
+int
+gp_semaphore_open(gp_semaphore * sema)
+{
+ pthread_mutex_t * const sem = (pthread_mutex_t *)sema;
+ pthread_mutexattr_t attr;
+ int scode;
+
+ if (!sema)
+ return -1; /* semaphores are not movable */
+ pthread_mutexattr_init(&attr);
+ pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ scode = pthread_mutex_init(sem, &attr);
+ return SEM_ERROR_CODE(scode);
+}
+
+int
+gp_semaphore_close(gp_semaphore * sema)
+{
+ pthread_mutex_t * const sem = (pthread_mutex_t *)sema;
+ int scode = pthread_mutex_destroy(sem);
+
+ return SEM_ERROR_CODE(scode);
+}
+
+int
+gp_semaphore_wait(gp_semaphore * sema)
+{
+ pthread_mutex_t * const sem = (pthread_mutex_t *)sema;
+ int scode = pthread_mutex_lock(sem);
+
+ return SEM_ERROR_CODE(scode);
+}
+
+int
+gp_semaphore_signal(gp_semaphore * sema)
+{
+ pthread_mutex_t * const sem = (pthread_mutex_t *)sema;
+ int scode = pthread_mutex_unlock(sem);
+
+ return SEM_ERROR_CODE(scode);
+}
diff --git a/gs/src/gp_semon.c b/gs/src/gp_semon.c
index 335c65178..25b6692b9 100644
--- a/gs/src/gp_semon.c
+++ b/gs/src/gp_semon.c
@@ -1,25 +1,11 @@
-/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Construct monitors out of semaphores */
#include "std.h"
-#include <semaphore.h>
#include "gserror.h"
#include "gserrors.h"
#include "gpsync.h"
diff --git a/gs/src/gp_strdl.c b/gs/src/gp_strdl.c
index 80188f4f6..6fb8e2fa8 100644
--- a/gs/src/gp_strdl.c
+++ b/gs/src/gp_strdl.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default, stream-based readline implementation */
#include "std.h"
#include "gstypes.h"
diff --git a/gs/src/gp_sysv.c b/gs/src/gp_sysv.c
index e54cc8037..779f0d094 100644
--- a/gs/src/gp_sysv.c
+++ b/gs/src/gp_sysv.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* System V Unix-specific routines for Ghostscript */
/* This file contains a couple of standard Unix library procedures */
diff --git a/gs/src/gp_unifn.c b/gs/src/gp_unifn.c
index 59c85f990..aefba5442 100644
--- a/gs/src/gp_unifn.c
+++ b/gs/src/gp_unifn.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Unix-like file name syntax platform routines for Ghostscript */
#include "gx.h"
#include "gp.h"
diff --git a/gs/src/gp_unifs.c b/gs/src/gp_unifs.c
index f2497620b..bffcfb86f 100644
--- a/gs/src/gp_unifs.c
+++ b/gs/src/gp_unifs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* "Unix-like" file system platform routines for Ghostscript */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/gp_unix.c b/gs/src/gp_unix.c
index 300ad610f..b08ee600b 100644
--- a/gs/src/gp_unix.c
+++ b/gs/src/gp_unix.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Unix-specific routines for Ghostscript */
#include "pipe_.h"
#include "string_.h"
diff --git a/gs/src/gp_vms.c b/gs/src/gp_vms.c
index ac6dbe949..0c78ab5f4 100644
--- a/gs/src/gp_vms.c
+++ b/gs/src/gp_vms.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* VAX/VMS specific routines for Ghostscript */
#include "string_.h"
#include "gx.h"
diff --git a/gs/src/gp_wgetv.c b/gs/src/gp_wgetv.c
index d6f991ead..0b291fdc2 100644
--- a/gs/src/gp_wgetv.c
+++ b/gs/src/gp_wgetv.c
@@ -1,29 +1,16 @@
-/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MS Windows implementation of gp_getenv */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h> /* for getenv */
#include <string.h>
-#include "gscdefs.h" /* for gs_product and gs_revision */
+#include "gscdefs.h" /* for gs_productfamily and gs_revision */
/* prototypes */
int gp_getenv_registry(HKEY hkeyroot, const char *key, const char *name,
@@ -59,7 +46,7 @@ gp_getenv(const char *name, char *ptr, int *plen)
* HKEY_CURRENT_USER\Software\Aladdin Ghostscript\N.NN
* or if that fails under the key
* HKEY_LOCAL_MACHINE\Software\Aladdin Ghostscript\N.NN
- * where "Aladdin Ghostscript" is actually gs_product
+ * where "Aladdin Ghostscript" is actually gs_productfamily
* and N.NN is obtained from gs_revision.
*/
DWORD version = GetVersion();
@@ -69,7 +56,7 @@ gp_getenv(const char *name, char *ptr, int *plen)
/* not Win32s */
int code;
char key[256];
- sprintf(key, "Software\\%s\\%d.%d", gs_product,
+ sprintf(key, "Software\\%s\\%d.%d", gs_productfamily,
(int)(gs_revision / 100), (int)(gs_revision % 100));
code = gp_getenv_registry(HKEY_CURRENT_USER, key, name, ptr, plen);
diff --git a/gs/src/gp_win32.c b/gs/src/gp_win32.c
index 5ec1dc09f..b9d1ff4e3 100644
--- a/gs/src/gp_win32.c
+++ b/gs/src/gp_win32.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common platform-specific routines for MS-Windows WIN32 */
/* originally hacked from gp_msdos.c by Russell Lang */
#include "malloc_.h"
diff --git a/gs/src/gp_wsync.c b/gs/src/gp_wsync.c
index e56131de0..8021ad888 100644
--- a/gs/src/gp_wsync.c
+++ b/gs/src/gp_wsync.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MS Windows (Win32) thread / semaphore / monitor implementation */
/* original multi-threading code by John Desrosiers */
#include "malloc_.h"
diff --git a/gs/src/gpcheck.h b/gs/src/gpcheck.h
index 60744aef8..2361c44af 100644
--- a/gs/src/gpcheck.h
+++ b/gs/src/gpcheck.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interrupt check interface */
#ifndef gpcheck_INCLUDED
diff --git a/gs/src/gpgetenv.h b/gs/src/gpgetenv.h
index f58b038d9..84521b090 100644
--- a/gs/src/gpgetenv.h
+++ b/gs/src/gpgetenv.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to platform-specific getenv routine */
#ifndef gpgetenv_INCLUDED
diff --git a/gs/src/gpsync.h b/gs/src/gpsync.h
index bce2bb2f2..81ef2172a 100644
--- a/gs/src/gpsync.h
+++ b/gs/src/gpsync.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to platform-dependent synchronization primitives */
#if !defined(gpsync_INCLUDED)
diff --git a/gs/src/gs-fonts.rps b/gs/src/gs-fonts.rps
index e8c567840..87fa77b89 100644
--- a/gs/src/gs-fonts.rps
+++ b/gs/src/gs-fonts.rps
@@ -1,5 +1,5 @@
#
-
+# $RCSfile$ $Revision$
# Spec file for fonts for Aladdin Ghostscript 5.50
#
# Based on RPM Spec file by RedHat for GNU Ghostscript 3.33
diff --git a/gs/src/gs.c b/gs/src/gs.c
index fde1a60ce..624199522 100644
--- a/gs/src/gs.c
+++ b/gs/src/gs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 'main' program for Ghostscript */
#include "ghost.h"
#include "imain.h"
diff --git a/gs/src/gs.mak b/gs/src/gs.mak
index e72401409..f6d93c8d9 100644
--- a/gs/src/gs.mak
+++ b/gs/src/gs.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Generic makefile, common to all platforms, products, and configurations.
# The platform-specific makefiles `include' this file.
diff --git a/gs/src/gs.rps b/gs/src/gs.rps
index 5f8bd27b8..9a769e002 100644
--- a/gs/src/gs.rps
+++ b/gs/src/gs.rps
@@ -1,5 +1,5 @@
#
-
+# $RCSfile$ $Revision$
# Spec file for Aladdin Ghostscript 5.50
#
# Based on RPM Spec file by RedHat for GNU Ghostscript 3.33
diff --git a/gs/src/gs16spl.c b/gs/src/gs16spl.c
index 6b44d1b16..137c51e6f 100644
--- a/gs/src/gs16spl.c
+++ b/gs/src/gs16spl.c
@@ -16,7 +16,7 @@
all copies.
*/
-
+/*$RCSfile$ $Revision$ */
/* 16-bit access to print spooler from Win32s */
/* by Russell Lang */
/* 1995-11-23 */
diff --git a/gs/src/gs16spl.rc b/gs/src/gs16spl.rc
index eb7693f16..da92becfe 100644
--- a/gs/src/gs16spl.rc
+++ b/gs/src/gs16spl.rc
@@ -16,7 +16,7 @@
all copies.
*/
-
+/*$RCSfile$ $Revision$*/
/* Resources for GS16SPL.EXE, 16-bit access to print spooler */
/* 1995-11-10 */
diff --git a/gs/src/gsalloc.c b/gs/src/gsalloc.c
index 4c22cbd57..cc583a5d1 100644
--- a/gs/src/gsalloc.c
+++ b/gs/src/gsalloc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Standard memory allocator */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gsalloc.h b/gs/src/gsalloc.h
index 910821ffb..9d24e25a1 100644
--- a/gs/src/gsalloc.h
+++ b/gs/src/gsalloc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Memory allocator extensions for standard allocator */
#ifndef gsalloc_INCLUDED
diff --git a/gs/src/gsalpha.c b/gs/src/gsalpha.c
index f0dc44acf..2d6d6f743 100644
--- a/gs/src/gsalpha.c
+++ b/gs/src/gsalpha.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Graphics state alpha value access */
#include "gx.h"
#include "gsalpha.h"
diff --git a/gs/src/gsalpha.h b/gs/src/gsalpha.h
index d76fd85ed..63eced003 100644
--- a/gs/src/gsalpha.h
+++ b/gs/src/gsalpha.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* API for alpha value in graphics state */
#ifndef gsalpha_INCLUDED
diff --git a/gs/src/gsalphac.c b/gs/src/gsalphac.c
index d86ed2bdb..96697b377 100644
--- a/gs/src/gsalphac.c
+++ b/gs/src/gsalphac.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Alpha-compositing implementation */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gsalphac.h b/gs/src/gsalphac.h
index 2e33324a8..0b324115d 100644
--- a/gs/src/gsalphac.h
+++ b/gs/src/gsalphac.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Alpha-compositing interface */
#ifndef gsalphac_INCLUDED
diff --git a/gs/src/gsargs.c b/gs/src/gsargs.c
index 346bfe796..aee44d432 100644
--- a/gs/src/gsargs.c
+++ b/gs/src/gsargs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command line argument list management */
#include "ctype_.h"
#include "stdio_.h"
diff --git a/gs/src/gsargs.h b/gs/src/gsargs.h
index e67122ea5..74c1f08ba 100644
--- a/gs/src/gsargs.h
+++ b/gs/src/gsargs.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command line argument list management */
#ifndef gsargs_INCLUDED
diff --git a/gs/src/gsbitmap.h b/gs/src/gsbitmap.h
index aa829f4a6..4d6c4f1e5 100644
--- a/gs/src/gsbitmap.h
+++ b/gs/src/gsbitmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Library "client" bitmap structures */
#ifndef gsbitmap_INCLUDED
diff --git a/gs/src/gsbitops.c b/gs/src/gsbitops.c
index ce0b54964..cf4b47e1e 100644
--- a/gs/src/gsbitops.c
+++ b/gs/src/gsbitops.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Bitmap filling, copying, and transforming operations */
#include "stdio_.h"
#include "memory_.h"
diff --git a/gs/src/gsbitops.h b/gs/src/gsbitops.h
index f4c636cff..db51919b7 100644
--- a/gs/src/gsbitops.h
+++ b/gs/src/gsbitops.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface for bitmap operations */
#ifndef gsbitops_INCLUDED
diff --git a/gs/src/gsbittab.c b/gs/src/gsbittab.c
index 0b4d6ad0f..2033b3b22 100644
--- a/gs/src/gsbittab.c
+++ b/gs/src/gsbittab.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Tables for bit operations */
#include "stdpre.h"
#include "gsbittab.h"
diff --git a/gs/src/gsbittab.h b/gs/src/gsbittab.h
index b8fae448d..5d88aa238 100644
--- a/gs/src/gsbittab.h
+++ b/gs/src/gsbittab.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to tables for bit operations */
#ifndef gsbittab_INCLUDED
diff --git a/gs/src/gsccode.h b/gs/src/gsccode.h
index b4aea014e..e37d8081e 100644
--- a/gs/src/gsccode.h
+++ b/gs/src/gsccode.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Types for character codes */
#ifndef gsccode_INCLUDED
@@ -60,16 +47,25 @@ typedef gs_proc_glyph_name((*gs_proc_glyph_name_t));
/* Define the indices for known encodings. */
typedef enum {
ENCODING_INDEX_UNKNOWN = -1,
+ /* Real encodings. These must come first. */
ENCODING_INDEX_STANDARD = 0,
ENCODING_INDEX_ISOLATIN1,
ENCODING_INDEX_SYMBOL,
ENCODING_INDEX_DINGBATS,
ENCODING_INDEX_WINANSI,
+ ENCODING_INDEX_MACROMAN,
+ ENCODING_INDEX_MACEXPERT,
+#define NUM_KNOWN_REAL_ENCODINGS 7
+ /* Pseudo-encodings (glyph sets). */
ENCODING_INDEX_MACGLYPH, /* a pseudo-encoding */
ENCODING_INDEX_ALOGLYPH, /* ditto */
ENCODING_INDEX_ALXGLYPH /* ditto */
+#define NUM_KNOWN_ENCODINGS 10
} gs_encoding_index_t;
-#define NUM_KNOWN_ENCODINGS 8
+#define KNOWN_REAL_ENCODING_NAMES\
+ "StandardEncoding", "ISOLatin1Encoding", "SymbolEncoding",\
+ "DingbatsEncoding", "WinAnsiEncoding", "MacRomanEncoding",\
+ "MacExpertEncoding"
/*
* For fonts that use more than one method to identify glyphs, define the
diff --git a/gs/src/gsccolor.h b/gs/src/gsccolor.h
index ca23ea95e..a330a71b6 100644
--- a/gs/src/gsccolor.h
+++ b/gs/src/gsccolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client color structure definition */
#ifndef gsccolor_INCLUDED
diff --git a/gs/src/gscdef.c b/gs/src/gscdef.c
index c2b4e2f1c..55c8c5798 100644
--- a/gs/src/gscdef.c
+++ b/gs/src/gscdef.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Configuration scalars */
#include "std.h"
#include "gscdefs.h" /* interface */
@@ -39,9 +26,15 @@ CONFIG_CONST long gs_buildtime = GS_BUILDTIME;
#endif
const char *CONFIG_CONST gs_copyright = GS_COPYRIGHT;
+#ifndef GS_PRODUCTFAMILY
+# define GS_PRODUCTFAMILY\
+ "Artifex Ghostscript"
+#endif
+const char *CONFIG_CONST gs_productfamily = GS_PRODUCTFAMILY;
+
#ifndef GS_PRODUCT
# define GS_PRODUCT\
- "Aladdin Ghostscript BETA RELEASE"
+ "Artifex Ghostscript"
#endif
const char *CONFIG_CONST gs_product = GS_PRODUCT;
diff --git a/gs/src/gscdefs.h b/gs/src/gscdefs.h
index 5b6afccbd..ac302cba6 100644
--- a/gs/src/gscdefs.h
+++ b/gs/src/gscdefs.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Prototypes for configuration definitions in gconfig.c. */
#ifndef gscdefs_INCLUDED
@@ -44,6 +31,7 @@
extern CONFIG_CONST long gs_buildtime;
extern const char *CONFIG_CONST gs_copyright;
extern const char *CONFIG_CONST gs_product;
+extern const char *CONFIG_CONST gs_productfamily;
extern CONFIG_CONST long gs_revision;
extern CONFIG_CONST long gs_revisiondate;
extern CONFIG_CONST long gs_serialnumber;
diff --git a/gs/src/gscdevn.c b/gs/src/gscdevn.c
index 8c259f73c..fcc860ef5 100644
--- a/gs/src/gscdevn.c
+++ b/gs/src/gscdevn.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DeviceN color space and operation definition */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gschar.c b/gs/src/gschar.c
index aafafcf8b..78f3ce8b0 100644
--- a/gs/src/gschar.c
+++ b/gs/src/gschar.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Character writing "operators" for Ghostscript library */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gschar.h b/gs/src/gschar.h
index f6516e18d..3f2aaaf0f 100644
--- a/gs/src/gschar.h
+++ b/gs/src/gschar.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to character operations */
#ifndef gschar_INCLUDED
diff --git a/gs/src/gschar0.c b/gs/src/gschar0.c
index 9ab241517..62eee480a 100644
--- a/gs/src/gschar0.c
+++ b/gs/src/gschar0.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1993, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Composite font decoding for Ghostscript library */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gscie.c b/gs/src/gscie.c
index 328090786..aa34a8441 100644
--- a/gs/src/gscie.c
+++ b/gs/src/gscie.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color rendering cache management */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gscie.h b/gs/src/gscie.h
index c5b21a98c..d6474777b 100644
--- a/gs/src/gscie.h
+++ b/gs/src/gscie.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Structures for CIE color algorithms */
/* (requires gscspace.h, gscolor2.h) */
diff --git a/gs/src/gsciemap.c b/gs/src/gsciemap.c
index 593d672ad..172278990 100644
--- a/gs/src/gsciemap.c
+++ b/gs/src/gsciemap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color rendering */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gsclipsr.c b/gs/src/gsclipsr.c
index 052c1aa63..4d029a61e 100644
--- a/gs/src/gsclipsr.c
+++ b/gs/src/gsclipsr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* clipsave/cliprestore */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsclipsr.h b/gs/src/gsclipsr.h
index aa383ccc4..4272f1035 100644
--- a/gs/src/gsclipsr.h
+++ b/gs/src/gsclipsr.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to clipsave/cliprestore */
#ifndef gsclipsr_INCLUDED
diff --git a/gs/src/gscolor.c b/gs/src/gscolor.c
index d91844aba..cb0d2f27a 100644
--- a/gs/src/gscolor.c
+++ b/gs/src/gscolor.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color and halftone operators for Ghostscript library */
#include "gx.h"
#include "gserrors.h"
@@ -112,6 +99,7 @@ gs_setgray(gs_state * pgs, floatp gray)
if (pgs->in_cachedevice)
return_error(gs_error_undefined);
+ cs_adjust_color_count(pgs, -1);
gs_cspace_assign(pgs->color_space, gs_current_DeviceGray_space(pgs));
pgs->orig_cspace_index = pgs->orig_base_cspace_index =
gs_color_space_index_DeviceGray;
@@ -171,6 +159,7 @@ gs_setrgbcolor(gs_state * pgs, floatp r, floatp g, floatp b)
if (pgs->in_cachedevice)
return_error(gs_error_undefined);
+ cs_adjust_color_count(pgs, -1);
gs_cspace_assign(pgs->color_space, gs_current_DeviceRGB_space(pgs));
pgs->orig_cspace_index = pgs->orig_base_cspace_index =
gs_color_space_index_DeviceRGB;
@@ -313,6 +302,7 @@ gx_set_device_color_1(gs_state * pgs)
gx_device_color *pdc = pgs->dev_color;
gs_client_color *pcc = pgs->ccolor;
+ cs_adjust_color_count(pgs, -1);
pcc->paint.values[0] = 0.0;
pcc->pattern = 0; /* for GC */
color_set_pure(pdc, 1);
diff --git a/gs/src/gscolor.h b/gs/src/gscolor.h
index 345d4db80..40c0da2d1 100644
--- a/gs/src/gscolor.h
+++ b/gs/src/gscolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1993, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to color routines */
#ifndef gscolor_INCLUDED
diff --git a/gs/src/gscolor1.c b/gs/src/gscolor1.c
index 59256bb74..e0487f4d6 100644
--- a/gs/src/gscolor1.c
+++ b/gs/src/gscolor1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 1 extended color operators for Ghostscript library */
#include "gx.h"
#include "gserrors.h"
@@ -48,6 +35,7 @@ gs_setcmykcolor(gs_state * pgs, floatp c, floatp m, floatp y, floatp k)
if (pgs->in_cachedevice)
return_error(gs_error_undefined);
+ cs_adjust_color_count(pgs, -1);
gs_cspace_assign(pgs->color_space, gs_current_DeviceCMYK_space(pgs));
pgs->orig_cspace_index = pgs->orig_base_cspace_index =
gs_color_space_index_DeviceCMYK;
diff --git a/gs/src/gscolor1.h b/gs/src/gscolor1.h
index c50c89c52..787076dd2 100644
--- a/gs/src/gscolor1.h
+++ b/gs/src/gscolor1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to Level 1 extended color facilities */
/* Requires gscolor.h */
diff --git a/gs/src/gscolor2.c b/gs/src/gscolor2.c
index 38834d786..13210ff5f 100644
--- a/gs/src/gscolor2.c
+++ b/gs/src/gscolor2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 color operators for Ghostscript library */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gscolor2.h b/gs/src/gscolor2.h
index 8d2e9fc1e..879800c30 100644
--- a/gs/src/gscolor2.h
+++ b/gs/src/gscolor2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to Level 2 color facilities */
/* (requires gscspace.h, gsmatrix.h) */
diff --git a/gs/src/gscolor3.c b/gs/src/gscolor3.c
index 37a6b968f..f2f1fc78b 100644
--- a/gs/src/gscolor3.c
+++ b/gs/src/gscolor3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* "Operators" for LanguageLevel 3 color facilities */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gscolor3.h b/gs/src/gscolor3.h
index eea86c08b..f4fcc10bb 100644
--- a/gs/src/gscolor3.h
+++ b/gs/src/gscolor3.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to LanguageLevel 3 color facilities */
#ifndef gscolor3_INCLUDED
diff --git a/gs/src/gscompt.h b/gs/src/gscompt.h
index acd401ddf..e0d7bdb26 100644
--- a/gs/src/gscompt.h
+++ b/gs/src/gscompt.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Abstract types for compositing objects */
#ifndef gscompt_INCLUDED
diff --git a/gs/src/gscoord.c b/gs/src/gscoord.c
index a0bb260c5..f55e34796 100644
--- a/gs/src/gscoord.c
+++ b/gs/src/gscoord.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Coordinate system operators for Ghostscript library */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gscoord.h b/gs/src/gscoord.h
index 36be81e96..8e2ebaf75 100644
--- a/gs/src/gscoord.h
+++ b/gs/src/gscoord.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Interface to graphics state CTM procedures */
/* Requires gsmatrix.h and gsstate.h */
#ifndef gscoord_INCLUDED
@@ -39,7 +27,6 @@ int gs_transform(P4(gs_state *, floatp, floatp, gs_point *)), gs_dtransform(P4(g
#ifndef gs_imager_state_DEFINED
# define gs_imager_state_DEFINED
typedef struct gs_imager_state_s gs_imager_state;
-
#endif
int gs_imager_setmatrix(P2(gs_imager_state *, const gs_matrix *));
diff --git a/gs/src/gscparam.c b/gs/src/gscparam.c
index d46fd95ec..9e9a0660a 100644
--- a/gs/src/gscparam.c
+++ b/gs/src/gscparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default implementation of parameter lists */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/gscpixel.c b/gs/src/gscpixel.c
index e26e6e2a5..386e577d7 100644
--- a/gs/src/gscpixel.c
+++ b/gs/src/gscpixel.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DevicePixel color space and operation definition */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gscpixel.h b/gs/src/gscpixel.h
index e2dd9206f..2092bafe3 100644
--- a/gs/src/gscpixel.h
+++ b/gs/src/gscpixel.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Interface to DevicePixel color space */
/* Requires gscspace.h */
#ifndef gscpixel_INCLUDED
diff --git a/gs/src/gscpm.h b/gs/src/gscpm.h
index 821289eb9..6113b109c 100644
--- a/gs/src/gscpm.h
+++ b/gs/src/gscpm.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Charpath mode and cache device status definitions */
#ifndef gscpm_INCLUDED
diff --git a/gs/src/gscrd.c b/gs/src/gscrd.c
index 2ab078490..d2a12a651 100644
--- a/gs/src/gscrd.c
+++ b/gs/src/gscrd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color rendering dictionary creation */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gscrd.h b/gs/src/gscrd.h
index 980dec0b9..a4a47151b 100644
--- a/gs/src/gscrd.h
+++ b/gs/src/gscrd.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface for CIE color rendering dictionary creation */
#ifndef gscrd_INCLUDED
diff --git a/gs/src/gscrdp.c b/gs/src/gscrdp.c
index f25494daa..2e6cdf4fc 100644
--- a/gs/src/gscrdp.c
+++ b/gs/src/gscrdp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color rendering dictionary creation */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gscrdp.h b/gs/src/gscrdp.h
index 83b75de59..130de9979 100644
--- a/gs/src/gscrdp.h
+++ b/gs/src/gscrdp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface for device-specified CRDs */
#ifndef gscrdp_INCLUDED
diff --git a/gs/src/gscrypt1.h b/gs/src/gscrypt1.h
index 345f89594..653438f1f 100644
--- a/gs/src/gscrypt1.h
+++ b/gs/src/gscrypt1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1992, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to Adobe Type 1 encryption/decryption. */
#ifndef gscrypt1_INCLUDED
diff --git a/gs/src/gscscie.c b/gs/src/gscscie.c
index cddf36fec..3755a49ca 100644
--- a/gs/src/gscscie.c
+++ b/gs/src/gscscie.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color space management */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gscsel.h b/gs/src/gscsel.h
index 14467ef23..6a5c8b4a7 100644
--- a/gs/src/gscsel.h
+++ b/gs/src/gscsel.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for color operand selection */
#ifndef gscsel_INCLUDED
diff --git a/gs/src/gscsepnm.h b/gs/src/gscsepnm.h
index f349c1e11..35a25c23f 100644
--- a/gs/src/gscsepnm.h
+++ b/gs/src/gscsepnm.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Standard color space separation names */
#ifndef gscsepnm_INCLUDED
diff --git a/gs/src/gscsepr.c b/gs/src/gscsepr.c
index 5f7c88c82..ce4ddc54c 100644
--- a/gs/src/gscsepr.c
+++ b/gs/src/gscsepr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Separation color space and operation definition */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gscsepr.h b/gs/src/gscsepr.h
index c569a0e47..6bd6ba9ba 100644
--- a/gs/src/gscsepr.h
+++ b/gs/src/gscsepr.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to Separation color */
#ifndef gscsepr_INCLUDED
diff --git a/gs/src/gscspace.c b/gs/src/gscspace.c
index 719b17470..02e32d6bf 100644
--- a/gs/src/gscspace.c
+++ b/gs/src/gscspace.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color space operators and support */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gscspace.h b/gs/src/gscspace.h
index 29c107ece..c9d0ec75e 100644
--- a/gs/src/gscspace.h
+++ b/gs/src/gscspace.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to color spaces */
#ifndef gscspace_INCLUDED
diff --git a/gs/src/gscssub.c b/gs/src/gscssub.c
index b87d6e7ea..3ebf66acf 100644
--- a/gs/src/gscssub.c
+++ b/gs/src/gscssub.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color space substitution "operators" */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gscssub.h b/gs/src/gscssub.h
index fee6cb8e8..edc5126fc 100644
--- a/gs/src/gscssub.h
+++ b/gs/src/gscssub.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to color space substitution */
#ifndef gscssub_INCLUDED
diff --git a/gs/src/gsdcolor.h b/gs/src/gsdcolor.h
index bd031102a..552e329a7 100644
--- a/gs/src/gsdcolor.h
+++ b/gs/src/gsdcolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Device color representation for drivers */
#ifndef gsdcolor_INCLUDED
diff --git a/gs/src/gsdevice.c b/gs/src/gsdevice.c
index 8908ef2b9..29a343f55 100644
--- a/gs/src/gsdevice.c
+++ b/gs/src/gsdevice.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Device operators for Ghostscript library */
#include "ctype_.h"
#include "memory_.h" /* for memcpy */
diff --git a/gs/src/gsdevice.h b/gs/src/gsdevice.h
index fb84cc320..4b5542e57 100644
--- a/gs/src/gsdevice.h
+++ b/gs/src/gsdevice.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Device and page control API */
#ifndef gsdevice_INCLUDED
diff --git a/gs/src/gsdevmem.c b/gs/src/gsdevmem.c
index fb00204aa..bf61f7006 100644
--- a/gs/src/gsdevmem.c
+++ b/gs/src/gsdevmem.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Memory device creation for Ghostscript library */
#include "math_.h" /* for fabs */
#include "memory_.h"
diff --git a/gs/src/gsdll.c b/gs/src/gsdll.c
index 6efd9de67..b0ed578c7 100644
--- a/gs/src/gsdll.c
+++ b/gs/src/gsdll.c
@@ -1,24 +1,11 @@
/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
/* Portions Copyright (C) 1994, 1995, 1996, Russell Lang. All rights reserved. */
-
+/*$RCSfile$ $Revision$ */
/* Dynamic Link Library interface for OS/2 and MS-Windows Ghostscript */
/* front end to gs.c */
diff --git a/gs/src/gsdll.h b/gs/src/gsdll.h
index d962e32ec..45f05a8fa 100644
--- a/gs/src/gsdll.h
+++ b/gs/src/gsdll.h
@@ -18,7 +18,7 @@
*/
-
+/*$RCSfile$ $Revision$ */
#ifndef gsdll_INCLUDED
# define gsdll_INCLUDED
diff --git a/gs/src/gsdll2.rc b/gs/src/gsdll2.rc
index 869e94b7f..53ec90cb6 100644
--- a/gs/src/gsdll2.rc
+++ b/gs/src/gsdll2.rc
@@ -1,22 +1,9 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Resources for gsdll2.dll, Ghostscript DLL for OS/2 */
ICON 1 gsos2.ico
diff --git a/gs/src/gsdll32.rc b/gs/src/gsdll32.rc
index 91ec73ad5..685f0dd2a 100644
--- a/gs/src/gsdll32.rc
+++ b/gs/src/gsdll32.rc
@@ -17,7 +17,7 @@
*/
-
+/*$RCSfile$ $Revision$*/
#include <windows.h>
#include "gp_mswin.h"
diff --git a/gs/src/gsdllos2.h b/gs/src/gsdllos2.h
index 60624210d..36fcd6c8b 100644
--- a/gs/src/gsdllos2.h
+++ b/gs/src/gsdllos2.h
@@ -16,7 +16,7 @@
all copies.
*/
-
+/*$RCSfile$ $Revision$ */
/* gsdll extension for OS/2 platforms */
#ifndef gsdllos2_INCLUDED
diff --git a/gs/src/gsdllwin.h b/gs/src/gsdllwin.h
index 311f50975..d3b6ca364 100644
--- a/gs/src/gsdllwin.h
+++ b/gs/src/gsdllwin.h
@@ -16,7 +16,7 @@
all copies.
*/
-
+/*$RCSfile$ $Revision$ */
/* gsdll extension for Microsoft Windows platforms */
#ifndef gsdllwin_INCLUDED
diff --git a/gs/src/gsdparam.c b/gs/src/gsdparam.c
index 606b66f72..a6fb20f38 100644
--- a/gs/src/gsdparam.c
+++ b/gs/src/gsdparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default device parameters for Ghostscript library */
#include "memory_.h" /* for memcpy */
#include "string_.h" /* for strlen */
diff --git a/gs/src/gsdpnext.h b/gs/src/gsdpnext.h
index 883da8875..21c172c56 100644
--- a/gs/src/gsdpnext.h
+++ b/gs/src/gsdpnext.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* API for NeXT DPS facilities */
#ifndef gsdpnext_INCLUDED
diff --git a/gs/src/gsdps.c b/gs/src/gsdps.c
index 4afbb47c3..adba92ef4 100644
--- a/gs/src/gsdps.c
+++ b/gs/src/gsdps.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Display PostScript extensions */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsdps.h b/gs/src/gsdps.h
index fd6df1b6c..f1ab6b223 100644
--- a/gs/src/gsdps.h
+++ b/gs/src/gsdps.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to Display PostScript facilities. */
#ifndef gsdps_INCLUDED
diff --git a/gs/src/gsdps1.c b/gs/src/gsdps1.c
index fe1b75a5f..37c7b1940 100644
--- a/gs/src/gsdps1.c
+++ b/gs/src/gsdps1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1994, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Display PostScript graphics additions for Ghostscript library */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gsdsc.c b/gs/src/gsdsc.c
index 8b7c796d4..72b8fe297 100644
--- a/gs/src/gsdsc.c
+++ b/gs/src/gsdsc.c
@@ -1,6 +1,6 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved. */
-
+/*$RCSfile$ $Revision$ */
/* Parse DSC comments from a PostScript file. */
#include "stdpre.h"
#include <stdio.h>
diff --git a/gs/src/gsdsrc.c b/gs/src/gsdsrc.c
index 2c32ec4b9..de6de881a 100644
--- a/gs/src/gsdsrc.c
+++ b/gs/src/gsdsrc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DataSource procedures */
#include "memory_.h"
diff --git a/gs/src/gsdsrc.h b/gs/src/gsdsrc.h
index 702a83de9..b844b63ba 100644
--- a/gs/src/gsdsrc.h
+++ b/gs/src/gsdsrc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DataSource definitions */
#ifndef gsdsrc_INCLUDED
diff --git a/gs/src/gserror.h b/gs/src/gserror.h
index 8c113d777..c66ba8d55 100644
--- a/gs/src/gserror.h
+++ b/gs/src/gserror.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Error return macros */
#ifndef gserror_INCLUDED
diff --git a/gs/src/gserrors.h b/gs/src/gserrors.h
index ac4affa26..6c62ceb01 100644
--- a/gs/src/gserrors.h
+++ b/gs/src/gserrors.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Error code definitions */
#ifndef gserrors_INCLUDED
diff --git a/gs/src/gserver.c b/gs/src/gserver.c
index 575735c9f..5152e4762 100644
--- a/gs/src/gserver.c
+++ b/gs/src/gserver.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1994, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Server front end for Ghostscript, replacing gs.c. */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/gsexit.h b/gs/src/gsexit.h
index 80a726906..92a7ac754 100644
--- a/gs/src/gsexit.h
+++ b/gs/src/gsexit.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Declarations for exits */
#ifndef gsexit_INCLUDED
diff --git a/gs/src/gsfcmap.c b/gs/src/gsfcmap.c
index 3fceff3ec..7b02e150f 100644
--- a/gs/src/gsfcmap.c
+++ b/gs/src/gsfcmap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CMap character decoding */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsfcmap.h b/gs/src/gsfcmap.h
index 0c2bdb39a..70d762ce7 100644
--- a/gs/src/gsfcmap.h
+++ b/gs/src/gsfcmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CMap data definition */
/* Requires gsstruct.h */
diff --git a/gs/src/gsfemu.c b/gs/src/gsfemu.c
index 837337bf6..6c1050b02 100644
--- a/gs/src/gsfemu.c
+++ b/gs/src/gsfemu.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Floating point emulator for gcc */
/* We actually only need arch.h + uint and ulong, but because signal.h */
diff --git a/gs/src/gsflip.c b/gs/src/gsflip.c
index ab6c28163..7264f6a9b 100644
--- a/gs/src/gsflip.c
+++ b/gs/src/gsflip.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Routines for "flipping" image data */
#include "gx.h"
#include "gserrors.h" /* for rangecheck in sample macros */
diff --git a/gs/src/gsflip.h b/gs/src/gsflip.h
index d87aa6f43..7dada9b6f 100644
--- a/gs/src/gsflip.h
+++ b/gs/src/gsflip.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to routines for "flipping" image data */
#ifndef gsflip_INCLUDED
diff --git a/gs/src/gsfname.c b/gs/src/gsfname.c
index 4c3b82d17..3ebc948b1 100644
--- a/gs/src/gsfname.c
+++ b/gs/src/gsfname.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* File name utilities */
#include "memory_.h"
#include "gserror.h"
diff --git a/gs/src/gsfname.h b/gs/src/gsfname.h
index 5d10fa0d7..c79aee4f6 100644
--- a/gs/src/gsfname.h
+++ b/gs/src/gsfname.h
@@ -1,27 +1,16 @@
/* Copyright (C) 1993, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
#ifndef gsfname_INCLUDED
# define gsfname_INCLUDED
/*
+ * Structure and procedures for parsing file names.
+ *
* Define a structure for representing a parsed file name, consisting of
* an IODevice name in %'s, a file name, or both. Note that the file name
* may be either a gs_string (no terminator) or a C string (null terminator).
diff --git a/gs/src/gsfont.c b/gs/src/gsfont.c
index a081aad4f..5979fae67 100644
--- a/gs/src/gsfont.c
+++ b/gs/src/gsfont.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Font operators for Ghostscript library */
#include "gx.h"
#include "memory_.h"
@@ -53,6 +40,7 @@ const gs_font_procs gs_font_procs_default = {
gs_no_define_font, /* (actually a default) */
gs_no_make_font, /* (actually a default) */
gs_default_font_info,
+ gs_default_same_font,
gs_no_encode_char,
gs_no_enumerate_glyph,
gs_default_glyph_info,
@@ -281,6 +269,7 @@ gs_font_alloc(gs_memory_t *mem, gs_memory_type_ptr_t pstype,
pfont->next = pfont->prev = 0;
pfont->memory = mem;
pfont->dir = dir;
+ pfont->is_resource = false;
gs_notify_init(&pfont->notify_list, gs_memory_stable(mem));
pfont->id = gs_next_ids(1);
pfont->base = pfont;
@@ -435,6 +424,7 @@ gs_makefont(gs_font_dir * pdir, const gs_font * pfont,
if (!pf_out)
return_error(gs_error_VMerror);
memcpy(pf_out, pfont, gs_object_size(mem, pfont));
+ gs_notify_init(&pf_out->notify_list, gs_memory_stable(mem));
pf_out->FontMatrix = newmat;
pf_out->client_data = 0;
pf_out->dir = pdir;
@@ -713,10 +703,69 @@ gs_default_font_info(gs_font *font, const gs_point *pscale, int members,
info->AvgWidth = info->MaxWidth = info->MissingWidth = fixed_width;
}
info->Flags_returned |= FONT_IS_FIXED_WIDTH;
+ } else if (members & FONT_INFO_MISSING_WIDTH) {
+ gs_glyph glyph;
+ int index, code;
+
+ for (index = 0;
+ (code = font->procs.enumerate_glyph(font, &index, GLYPH_SPACE_NAME, &glyph)) >= 0 &&
+ index != 0;
+ ) {
+ gs_const_string gnstr;
+
+ gnstr.data = (const byte *)
+ bfont->procs.callbacks.glyph_name(glyph, &gnstr.size);
+ if (gnstr.size == 7 && !memcmp(gnstr.data, ".notdef", 7)) {
+ gs_glyph_info_t glyph_info;
+ int code = font->procs.glyph_info(font, glyph, pmat,
+ (GLYPH_INFO_WIDTH0 << wmode),
+ &glyph_info);
+
+ if (code < 0)
+ return code;
+ info->MissingWidth = glyph_info.width[wmode].x;
+ info->members |= FONT_INFO_MISSING_WIDTH;
+ break;
+ }
+ }
}
return 0;
}
+/* Default font similarity testing procedure */
+int
+gs_default_same_font(const gs_font *font, const gs_font *ofont, int mask)
+{
+ while (font->base != font)
+ font = font->base;
+ while (ofont->base != ofont)
+ ofont = ofont->base;
+ if (ofont == font)
+ return mask;
+ /* In general, we can't determine similarity. */
+ return 0;
+}
+int
+gs_base_same_font(const gs_font *font, const gs_font *ofont, int mask)
+{
+ int same = gs_default_same_font(font, ofont, mask);
+
+ if (!same) {
+ const gs_font_base *const bfont = (const gs_font_base *)font;
+ const gs_font_base *const obfont = (const gs_font_base *)ofont;
+
+ if (mask & FONT_SAME_ENCODING) {
+ if (bfont->encoding_index != ENCODING_INDEX_UNKNOWN ||
+ obfont->encoding_index != ENCODING_INDEX_UNKNOWN
+ ) {
+ if (bfont->encoding_index == obfont->encoding_index)
+ same |= FONT_SAME_ENCODING;
+ }
+ }
+ }
+ return same;
+}
+
/* ------ Glyph-level procedures ------ */
/* Dummy character encoding procedure */
diff --git a/gs/src/gsfont.h b/gs/src/gsfont.h
index 8fdefc053..a09e20a81 100644
--- a/gs/src/gsfont.h
+++ b/gs/src/gsfont.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1993, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Generic font and font cache interface */
/* Requires gsmatrix.h */
#ifndef gsfont_INCLUDED
@@ -29,14 +17,12 @@
#ifndef gs_font_dir_DEFINED
# define gs_font_dir_DEFINED
typedef struct gs_font_dir_s gs_font_dir;
-
#endif
/* Font objects */
#ifndef gs_font_DEFINED
# define gs_font_DEFINED
typedef struct gs_font_s gs_font;
-
#endif
/* Initialization */
diff --git a/gs/src/gsfont0.c b/gs/src/gsfont0.c
index c0d2103b8..54b3d77ff 100644
--- a/gs/src/gsfont0.c
+++ b/gs/src/gsfont0.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Composite font operations for Ghostscript library */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gsfunc.c b/gs/src/gsfunc.c
index ad6f3b7d7..d435f6b41 100644
--- a/gs/src/gsfunc.c
+++ b/gs/src/gsfunc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic Function support */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsfunc.h b/gs/src/gsfunc.h
index e31513a15..5b23f00a8 100644
--- a/gs/src/gsfunc.h
+++ b/gs/src/gsfunc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic definitions for Functions */
#ifndef gsfunc_INCLUDED
@@ -73,7 +60,7 @@ typedef struct gs_function_procs_s {
typedef struct gs_function_head_s {
gs_function_type_t type;
gs_function_procs_t procs;
- bool is_monotonic; /* cached when function is created */
+ int is_monotonic; /* cached when function is created */
} gs_function_head_t;
struct gs_function_s {
gs_function_head_t head;
@@ -126,14 +113,14 @@ void gs_function_XxYy_free_params(P2(gs_function_XxYy_params_t *params,
* gs_error_undefined; normally, it returns 0 for false, >0 for true,
* gs_error_rangecheck if any part of the interval is outside the function's
* domain. If lower[i] > upper[i], the result is not defined.
- *
- * Note that this is a very unsophisticated test: it returns false for
- * situations where a function is monotonic in individual inputs and/or
- * outputs but not for all inputs and/or outputs in the same direction. We
- * only use it for fast checks.
*/
#define gs_function_is_monotonic(pfn, lower, upper, effort)\
(*(pfn)->head.procs.is_monotonic)(pfn, lower, upper, effort)
+/*
+ * If the function is monotonic, is_monotonic returns the direction of
+ * monotonicity for output value N in bits 2N and 2N+1. (Functions with
+ * more than sizeof(int) * 4 - 1 outputs are never identified as monotonic.)
+ */
#define FN_MONOTONIC_INCREASING 1
#define FN_MONOTONIC_DECREASING 2
@@ -158,7 +145,7 @@ typedef struct gs_function_Va_params_s {
gs_function_params_common;
fn_evaluate_proc_t eval_proc;
void *eval_data;
- bool is_monotonic;
+ int is_monotonic;
} gs_function_Va_params_t;
typedef struct gs_function_Va_s {
diff --git a/gs/src/gsfunc0.c b/gs/src/gsfunc0.c
index 6fcfe5653..6ec1f3b83 100644
--- a/gs/src/gsfunc0.c
+++ b/gs/src/gsfunc0.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation of FunctionType 0 (Sampled) Functions */
#include "math_.h"
#include "gx.h"
@@ -30,7 +17,28 @@ typedef struct gs_function_Sd_s {
gs_function_Sd_params_t params;
} gs_function_Sd_t;
+/* GC descriptor */
private_st_function_Sd();
+private
+ENUM_PTRS_WITH(function_Sd_enum_ptrs, gs_function_Sd_t *pfn)
+{
+ index -= 3;
+ if (index < st_data_source_max_ptrs)
+ return ENUM_USING(st_data_source, &pfn->params.DataSource,
+ sizeof(pfn->params.DataSource), index);
+ return ENUM_USING_PREFIX(st_function, st_data_source_max_ptrs);
+}
+ENUM_PTR3(0, gs_function_Sd_t, params.Encode, params.Decode, params.Size);
+ENUM_PTRS_END
+private
+RELOC_PTRS_WITH(function_Sd_reloc_ptrs, gs_function_Sd_t *pfn)
+{
+ RELOC_PREFIX(st_function);
+ RELOC_USING(st_data_source, &pfn->params.DataSource,
+ sizeof(pfn->params.DataSource));
+ RELOC_PTR3(gs_function_Sd_t, params.Encode, params.Decode, params.Size);
+}
+RELOC_PTRS_END
/* Define the maximum plausible number of inputs and outputs */
/* for a Sampled function. */
@@ -231,7 +239,7 @@ fn_Sd_evaluate(const gs_function_t * pfn_common, const float *in, float *out)
/* Encode the output values. */
- for (i = 0; i < pfn->params.n; offset += bps, ++i) {
+ for (i = 0; i < pfn->params.n; ++i) {
float d0, d1, r0, r1, value;
if (pfn->params.Range)
@@ -267,8 +275,7 @@ fn_Sd_is_monotonic(const gs_function_t * pfn_common,
float v0 = lower[0], v1 = upper[0];
float e0, e1, w0, w1;
float r0[max_Sd_n], r1[max_Sd_n];
- int dir = 0;
- int i, code;
+ int code, i, result;
/*
* Testing this in general is very time-consuming, so we don't bother.
@@ -282,6 +289,8 @@ fn_Sd_is_monotonic(const gs_function_t * pfn_common,
upper[0] < pfn->params.Domain[0]
)
return gs_error_rangecheck;
+ if (pfn->params.n > sizeof(int) * 4 - 1)
+ return 0; /* can't represent result */
if (pfn->params.Encode)
e0 = pfn->params.Encode[0], e1 = pfn->params.Encode[1];
else
@@ -304,19 +313,16 @@ fn_Sd_is_monotonic(const gs_function_t * pfn_common,
gs_function_evaluate(pfn_common, upper, r1);
if (code < 0)
return code;
- for (i = 0; i < pfn->params.n; ++i) {
- float diff = r1[i] - r0[i];
- int code;
-
- if (diff == 0)
- continue;
- code = (diff < 0 ? FN_MONOTONIC_DECREASING : FN_MONOTONIC_INCREASING);
- if (dir == 0)
- dir = code;
- else if (dir != code)
- return 0;
+ for (i = 0, result = 0; i < pfn->params.n; ++i) {
+ double diff = r1[i] - r0[i];
+
+ result |=
+ (diff < 0 ? FN_MONOTONIC_DECREASING :
+ diff > 0 ? FN_MONOTONIC_INCREASING :
+ FN_MONOTONIC_DECREASING | FN_MONOTONIC_INCREASING) <<
+ (2 * i);
}
- return dir;
+ return result;
}
/* Free the parameters of a Sampled function. */
diff --git a/gs/src/gsfunc0.h b/gs/src/gsfunc0.h
index 1da153ebb..67f5348b3 100644
--- a/gs/src/gsfunc0.h
+++ b/gs/src/gsfunc0.h
@@ -1,22 +1,9 @@
-/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for FunctionType 0 (Sampled) Functions */
#ifndef gsfunc0_INCLUDED
@@ -42,9 +29,8 @@ typedef struct gs_function_Sd_params_s {
} gs_function_Sd_params_t;
#define private_st_function_Sd() /* in gsfunc.c */\
- gs_private_st_suffix_add3(st_function_Sd, gs_function_Sd_t,\
- "gs_function_Sd_t", function_Sd_enum_ptrs, function_Sd_reloc_ptrs,\
- st_function, params.Encode, params.Decode, params.Size)
+ gs_private_st_composite(st_function_Sd, gs_function_Sd_t,\
+ "gs_function_Sd_t", function_Sd_enum_ptrs, function_Sd_reloc_ptrs)
/* ---------------- Procedures ---------------- */
diff --git a/gs/src/gsfunc3.c b/gs/src/gsfunc3.c
index 4ff933cb8..f33ff02b0 100644
--- a/gs/src/gsfunc3.c
+++ b/gs/src/gsfunc3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation of LL3 Functions */
#include "math_.h"
#include "gx.h"
@@ -24,9 +11,10 @@
#include "gsfunc3.h"
#include "gxfunc.h"
-
/* ---------------- Utilities ---------------- */
+#define MASK1 ((uint)(~0) / 3)
+
/*
* Free an array of subsidiary Functions. Note that this may be called
* before the Functions array has been fully initialized. Note also that
@@ -96,32 +84,28 @@ fn_ElIn_is_monotonic(const gs_function_t * pfn_common,
{
const gs_function_ElIn_t *const pfn =
(const gs_function_ElIn_t *)pfn_common;
- int i;
- int dir = 0;
+ int i, result;
if (lower[0] > pfn->params.Domain[1] ||
upper[0] < pfn->params.Domain[0]
)
return_error(gs_error_rangecheck);
- if (pfn->params.C0 == 0 && pfn->params.C1 == 0)
- return FN_MONOTONIC_INCREASING;
- if (effort <= EFFORT_EASY)
- return gs_error_undefined;
- for (i = 0; i < pfn->params.n; ++i) {
- double diff = pfn->params.C1[i] - pfn->params.C0[i];
- int code;
-
- if (diff == 0)
- continue;
- code = (diff > 0 ? FN_MONOTONIC_INCREASING : FN_MONOTONIC_DECREASING);
- if (code <= 0)
- return code;
- if (dir == 0)
- dir = code;
- else if (dir != code)
- return 0;
+ for (i = 0, result = 0; i < pfn->params.n; ++i) {
+ double diff =
+ (pfn->params.C1 == 0 ? 1.0 : pfn->params.C1[i]) -
+ (pfn->params.C0 == 0 ? 0.0 : pfn->params.C0[i]);
+
+ if (pfn->params.N < 0)
+ diff = -diff;
+ else if (pfn->params.N == 0)
+ diff = 0;
+ result |=
+ (diff < 0 ? FN_MONOTONIC_DECREASING :
+ diff > 0 ? FN_MONOTONIC_INCREASING :
+ FN_MONOTONIC_DECREASING | FN_MONOTONIC_INCREASING) <<
+ (2 * i);
}
- return dir;
+ return result;
}
/* Free the parameters of an Exponential Interpolation function. */
@@ -234,7 +218,7 @@ fn_1ItSg_is_monotonic(const gs_function_t * pfn_common,
float d0 = pfn->params.Domain[0], d1 = pfn->params.Domain[1];
int k = pfn->params.k;
int i;
- int dir = 0;
+ int result = 0;
if (v0 > d1 || v1 < d0)
return_error(gs_error_rangecheck);
@@ -258,27 +242,29 @@ fn_1ItSg_is_monotonic(const gs_function_t * pfn_common,
/* Note that w0 > w1 is now possible if e0 > e1. */
if (w0 > w1) {
code = gs_function_is_monotonic(pfn->params.Functions[i],
- &w0, &w1, effort);
- switch (code) {
- case FN_MONOTONIC_INCREASING:
- code = FN_MONOTONIC_DECREASING; break;
- case FN_MONOTONIC_DECREASING:
- code = FN_MONOTONIC_INCREASING; break;
- default:
- break;
- }
+ &w1, &w0, effort);
+ if (code <= 0)
+ return code;
+ /* Swap the INCREASING and DECREASING flags. */
+ code = ((code & MASK1) << 1) | ((code & (MASK1 << 1)) >> 1);
} else {
code = gs_function_is_monotonic(pfn->params.Functions[i],
&w0, &w1, effort);
+ if (code <= 0)
+ return code;
+ }
+ if (result == 0)
+ result = code;
+ else {
+ result &= code;
+ /* Check that result is still monotonic in every position. */
+ code = result | ((result & MASK1) << 1) |
+ ((result & (MASK1 << 1)) >> 1);
+ if (code != (1 << (2 * pfn->params.n)) - 1)
+ return 0;
}
- if (code <= 0)
- return code;
- if (dir == 0)
- dir = code;
- else if (dir != code)
- return 0;
}
- return dir;
+ return result;
}
/* Free the parameters of a 1-Input Stitching function. */
@@ -383,22 +369,18 @@ fn_AdOt_is_monotonic(const gs_function_t * pfn_common,
{
const gs_function_AdOt_t *const pfn =
(const gs_function_AdOt_t *)pfn_common;
- int i;
- int dir = 0;
+ int i, result;
- for (i = 0; i < pfn->params.n; ++i) {
+ for (i = 0, result = 0; i < pfn->params.n; ++i) {
int code =
gs_function_is_monotonic(pfn->params.Functions[i], lower, upper,
effort);
if (code <= 0)
return code;
- if (dir == 0)
- dir = code;
- else if (dir != code)
- return 0;
+ result |= code << (2 * i);
}
- return dir;
+ return result;
}
/* Free the parameters of an Arrayed Output function. */
diff --git a/gs/src/gsfunc3.h b/gs/src/gsfunc3.h
index 5fb8ead18..652cfa1cd 100644
--- a/gs/src/gsfunc3.h
+++ b/gs/src/gsfunc3.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for LL3 Functions */
#ifndef gsfunc3_INCLUDED
diff --git a/gs/src/gsgc.h b/gs/src/gsgc.h
index dabb023d2..e5b8efe24 100644
--- a/gs/src/gsgc.h
+++ b/gs/src/gsgc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Library-level interface to garbage collector */
/*
diff --git a/gs/src/gshsb.c b/gs/src/gshsb.c
index a38b61fac..7fd4651d6 100644
--- a/gs/src/gshsb.c
+++ b/gs/src/gshsb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* HSB color operators for Ghostscript library */
#include "gx.h"
#include "gscolor.h"
diff --git a/gs/src/gshsb.h b/gs/src/gshsb.h
index ebe720ee3..551f3799e 100644
--- a/gs/src/gshsb.h
+++ b/gs/src/gshsb.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to HSB color routines */
#ifndef gshsb_INCLUDED
diff --git a/gs/src/gsht.c b/gs/src/gsht.c
index 8c2cf72a3..40ce1d015 100644
--- a/gs/src/gsht.c
+++ b/gs/src/gsht.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* setscreen operator for Ghostscript library */
#include "memory_.h"
#include <stdlib.h> /* for qsort */
diff --git a/gs/src/gsht.h b/gs/src/gsht.h
index 921c14575..f8cab3f79 100644
--- a/gs/src/gsht.h
+++ b/gs/src/gsht.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Public interface to halftone functionality */
#ifndef gsht_INCLUDED
diff --git a/gs/src/gsht1.c b/gs/src/gsht1.c
index c6b943eaf..e20a4b366 100644
--- a/gs/src/gsht1.c
+++ b/gs/src/gsht1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Extended halftone operators for Ghostscript library */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gsht1.h b/gs/src/gsht1.h
index 12e89cf46..238ac7cbb 100644
--- a/gs/src/gsht1.h
+++ b/gs/src/gsht1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Extended public interface to halftones */
#ifndef gsht1_INCLUDED
diff --git a/gs/src/gshtscr.c b/gs/src/gshtscr.c
index 3ee735e2d..f8a155193 100644
--- a/gs/src/gshtscr.c
+++ b/gs/src/gshtscr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Screen (Type 1) halftone processing for Ghostscript library */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gshtx.c b/gs/src/gshtx.c
index 2359bef00..7b37b52de 100644
--- a/gs/src/gshtx.c
+++ b/gs/src/gshtx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Stand-alone halftone/transfer function related code */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gshtx.h b/gs/src/gshtx.h
index 7208f4dc7..d27298015 100644
--- a/gs/src/gshtx.h
+++ b/gs/src/gshtx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* High-level interface to stand-alone halftone/transfer objects */
#ifndef gshtx_INCLUDED
diff --git a/gs/src/gsimage.c b/gs/src/gsimage.c
index 9bbd6c4fa..1430bec54 100644
--- a/gs/src/gsimage.c
+++ b/gs/src/gsimage.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image setup procedures for Ghostscript library */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gsimage.h b/gs/src/gsimage.h
index 463da7a84..dc861cf51 100644
--- a/gs/src/gsimage.h
+++ b/gs/src/gsimage.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1992, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Generic image rendering interface */
/* Requires gsstate.h */
#ifndef gsimage_INCLUDED
diff --git a/gs/src/gsimpath.c b/gs/src/gsimpath.c
index 167e05ae4..afca88ab7 100644
--- a/gs/src/gsimpath.c
+++ b/gs/src/gsimpath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image to outline conversion for Ghostscript library */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsindent b/gs/src/gsindent
index 8f15e949f..5c2fd03ac 100755
--- a/gs/src/gsindent
+++ b/gs/src/gsindent
@@ -1,5 +1,5 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
# This script formats C source code per the Ghostscript C style guide.
# The perl invocations work around a bug in GNU indent.
if [ $# -ne 0 ]; then
diff --git a/gs/src/gsinit.c b/gs/src/gsinit.c
index f59f3f91b..c1891acdc 100644
--- a/gs/src/gsinit.c
+++ b/gs/src/gsinit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Initialization for the imager */
#include "stdio_.h"
#include "memory_.h"
diff --git a/gs/src/gsio.h b/gs/src/gsio.h
index bfd7b6fba..388442fd9 100644
--- a/gs/src/gsio.h
+++ b/gs/src/gsio.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1990, 1993, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* stdio redirection */
#ifndef gsio_INCLUDED
diff --git a/gs/src/gsiodev.c b/gs/src/gsiodev.c
index eba4d195a..3069a4df8 100644
--- a/gs/src/gsiodev.c
+++ b/gs/src/gsiodev.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* IODevice implementation for Ghostscript */
#include "errno_.h"
#include "string_.h"
@@ -243,7 +230,7 @@ gs_findiodevice(const byte * str, uint len)
gx_io_device *iodev = io_device_table[i];
const char *dname = iodev->dname;
- if (strlen(dname) == len + 1 && !memcmp(str, dname, len))
+ if (dname && strlen(dname) == len + 1 && !memcmp(str, dname, len))
return iodev;
}
return 0;
diff --git a/gs/src/gsiparam.h b/gs/src/gsiparam.h
index 84c582f37..7f44e2cc6 100644
--- a/gs/src/gsiparam.h
+++ b/gs/src/gsiparam.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image parameter definition */
#ifndef gsiparam_INCLUDED
@@ -24,6 +11,7 @@
#include "gsccolor.h" /* for GS_CLIENT_COLOR_MAX_COMPONENTS */
#include "gsmatrix.h"
+#include "gsstype.h" /* for extern_st */
/* ---------------- Image parameters ---------------- */
@@ -180,6 +168,7 @@ typedef struct gs_pixel_image_s {
gs_pixel_image_common;
} gs_pixel_image_t;
+extern_st(st_gs_pixel_image);
#define public_st_gs_pixel_image() /* in gximage.c */\
gs_public_st_ptrs1(st_gs_pixel_image, gs_pixel_image_t,\
"gs_data_image_t", pixel_image_enum_ptrs, pixel_image_reloc_ptrs,\
@@ -219,7 +208,6 @@ typedef struct gs_image1_s {
} gs_image1_t;
#define private_st_gs_image1() /* in gximage1.c */\
- extern_st(st_gs_pixel_image);\
gs_private_st_suffix_add0(st_gs_image1, gs_image1_t, "gs_image1_t",\
image1_enum_ptrs, image1_reloc_ptrs, st_gs_pixel_image)
diff --git a/gs/src/gsiparm2.h b/gs/src/gsiparm2.h
index d494a878b..5271283ee 100644
--- a/gs/src/gsiparm2.h
+++ b/gs/src/gsiparm2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ImageType 2 image parameter definition */
#ifndef gsiparm2_INCLUDED
diff --git a/gs/src/gsiparm3.h b/gs/src/gsiparm3.h
index 079d49bae..d24d0ee7a 100644
--- a/gs/src/gsiparm3.h
+++ b/gs/src/gsiparm3.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* LanguageLevel 3 (ImageType 3 & 4) image parameter definition */
#ifndef gsiparm3_INCLUDED
diff --git a/gs/src/gsiparm4.h b/gs/src/gsiparm4.h
index b0ffb7729..933b22823 100644
--- a/gs/src/gsiparm4.h
+++ b/gs/src/gsiparm4.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ImageType 4 image parameter definition */
#ifndef gsiparm4_INCLUDED
diff --git a/gs/src/gsistate.c b/gs/src/gsistate.c
index 586db23e5..9c8d99dd7 100644
--- a/gs/src/gsistate.c
+++ b/gs/src/gsistate.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Imager state housekeeping */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsjconf.h b/gs/src/gsjconf.h
index 54e67d072..4fc5f587f 100644
--- a/gs/src/gsjconf.h
+++ b/gs/src/gsjconf.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* jconfig.h file for Independent JPEG Group code */
#ifndef gsjconf_INCLUDED
diff --git a/gs/src/gsjmorec.h b/gs/src/gsjmorec.h
index bc49bedfc..12439c308 100644
--- a/gs/src/gsjmorec.h
+++ b/gs/src/gsjmorec.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* "Wrapper" for Independent JPEG Group code jmorecfg.h */
#ifndef gsjmorec_INCLUDED
diff --git a/gs/src/gslib.c b/gs/src/gslib.c
index ec366a340..1be6e103a 100644
--- a/gs/src/gslib.c
+++ b/gs/src/gslib.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Test program for Ghostscript library */
/* Capture stdin/out/err before gsio.h redefines them. */
#include "stdio_.h"
diff --git a/gs/src/gslib.h b/gs/src/gslib.h
index f2dab8b7d..7c10635f1 100644
--- a/gs/src/gslib.h
+++ b/gs/src/gslib.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Library initialization and finalization interface */
/* Requires stdio.h, gsmemory.h */
#ifndef gslib_INCLUDED
diff --git a/gs/src/gsline.c b/gs/src/gsline.c
index 6d2d5e936..48317f05d 100644
--- a/gs/src/gsline.c
+++ b/gs/src/gsline.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Line parameter operators for Ghostscript library */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gsline.h b/gs/src/gsline.h
index 5584f996d..81a7e55d9 100644
--- a/gs/src/gsline.h
+++ b/gs/src/gsline.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Line parameter and quality definitions */
#ifndef gsline_INCLUDED
diff --git a/gs/src/gslparam.h b/gs/src/gslparam.h
index d6a287b36..3c1984d55 100644
--- a/gs/src/gslparam.h
+++ b/gs/src/gslparam.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Line parameter definitions */
#ifndef gslparam_INCLUDED
diff --git a/gs/src/gsmalloc.c b/gs/src/gsmalloc.c
index bc504276c..ae1aa5567 100644
--- a/gs/src/gsmalloc.c
+++ b/gs/src/gsmalloc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$Id: gsmalloc.c */
/* C heap allocator */
#include "malloc_.h"
#include "gdebug.h"
diff --git a/gs/src/gsmalloc.h b/gs/src/gsmalloc.h
index 999eb7b6b..aca768e3a 100644
--- a/gs/src/gsmalloc.h
+++ b/gs/src/gsmalloc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to default (C heap) allocator */
/* Requires gsmemory.h */
diff --git a/gs/src/gsmatrix.c b/gs/src/gsmatrix.c
index 15ffb824f..ec660f447 100644
--- a/gs/src/gsmatrix.c
+++ b/gs/src/gsmatrix.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Matrix operators for Ghostscript library */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gsmatrix.h b/gs/src/gsmatrix.h
index 7dd033346..7d9658cf9 100644
--- a/gs/src/gsmatrix.h
+++ b/gs/src/gsmatrix.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of matrices and client interface to matrix routines */
#ifndef gsmatrix_INCLUDED
diff --git a/gs/src/gsmdebug.h b/gs/src/gsmdebug.h
index 052fb66fe..0bd724aa1 100644
--- a/gs/src/gsmdebug.h
+++ b/gs/src/gsmdebug.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Allocator debugging definitions and interface */
/* Requires gdebug.h (for gs_debug) */
#ifndef gsmdebug_INCLUDED
diff --git a/gs/src/gsmemlok.c b/gs/src/gsmemlok.c
index 9be594e03..0f95a8c29 100644
--- a/gs/src/gsmemlok.c
+++ b/gs/src/gsmemlok.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Monitor-locked heap memory allocator */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gsmemlok.h b/gs/src/gsmemlok.h
index 90bb7a36c..c51f1ffdf 100644
--- a/gs/src/gsmemlok.h
+++ b/gs/src/gsmemlok.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to monitor-locked heap memory allocator */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gsmemory.c b/gs/src/gsmemory.c
index 83fa386a9..4cc7e5f14 100644
--- a/gs/src/gsmemory.c
+++ b/gs/src/gsmemory.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic allocator support */
#include "memory_.h"
#include "gdebug.h"
@@ -97,6 +84,26 @@ gs_alloc_memset(void *ptr, int /*byte */ fill, ulong lsize)
}
}
+/*
+ * Either allocate (if obj == 0) or resize (if obj != 0) a structure array.
+ * If obj != 0, pstype is used only for checking (in DEBUG configurations).
+ */
+void *
+gs_resize_struct_array(gs_memory_t *mem, void *obj, uint num_elements,
+ gs_memory_type_ptr_t pstype, client_name_t cname)
+{
+ if (obj == 0)
+ return gs_alloc_struct_array(mem, num_elements, void, pstype, cname);
+#ifdef DEBUG
+ if (gs_object_type(mem, obj) != pstype) {
+ lprintf3("resize_struct_array 0x%lx, type was 0x%lx, expected 0x%lx!\n",
+ (ulong)obj, (ulong)gs_object_type(mem, obj), (ulong)pstype);
+ return 0;
+ }
+#endif
+ return gs_resize_object(mem, obj, num_elements, cname);
+}
+
/* Allocate a structure using a "raw memory" allocator. */
void *
gs_raw_alloc_struct_immovable(gs_raw_memory_t * rmem,
diff --git a/gs/src/gsmemory.h b/gs/src/gsmemory.h
index faed82e53..5f9c7af87 100644
--- a/gs/src/gsmemory.h
+++ b/gs/src/gsmemory.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface for memory allocation */
/*
@@ -254,6 +241,14 @@ void gs_free_const_object(P3(gs_memory_t *mem, const void *data,
void gs_free_const_string(P4(gs_memory_t *mem, const byte *data, uint nbytes,
client_name_t cname));
+/*
+ * Either allocate (if obj == 0) or resize (if obj != 0) a structure array.
+ * If obj != 0, pstype is used only for checking (in DEBUG configurations).
+ */
+void *gs_resize_struct_array(P5(gs_memory_t *mem, void *obj, uint num_elements,
+ gs_memory_type_ptr_t pstype,
+ client_name_t cname));
+
/* Register a structure root. This just calls gs_register_root. */
int gs_register_struct_root(P4(gs_memory_t *mem, gs_gc_root_t *root,
void **pp, client_name_t cname));
diff --git a/gs/src/gsmemraw.h b/gs/src/gsmemraw.h
index 0ad51c881..bc545befc 100644
--- a/gs/src/gsmemraw.h
+++ b/gs/src/gsmemraw.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface for "raw memory" allocator */
/* Initial version 02/03/1998 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gsmemret.c b/gs/src/gsmemret.c
index ec5b1cd38..d34210e4a 100644
--- a/gs/src/gsmemret.c
+++ b/gs/src/gsmemret.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Retrying memory allocator */
#include "gx.h"
diff --git a/gs/src/gsmemret.h b/gs/src/gsmemret.h
index c8d5ff633..24305046f 100644
--- a/gs/src/gsmemret.h
+++ b/gs/src/gsmemret.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to retrying memory allocator */
#if !defined(gsmemret_INCLUDED)
diff --git a/gs/src/gsmisc.c b/gs/src/gsmisc.c
index 5db3fa91d..def9577df 100644
--- a/gs/src/gsmisc.c
+++ b/gs/src/gsmisc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous utilities for Ghostscript library */
#include "ctype_.h"
#include "malloc_.h"
diff --git a/gs/src/gsnogc.c b/gs/src/gsnogc.c
index c45fa74b9..324d2ee78 100644
--- a/gs/src/gsnogc.c
+++ b/gs/src/gsnogc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* String freelist implementation and ersatz garbage collector */
#include "gx.h"
#include "gsmdebug.h"
diff --git a/gs/src/gsnogc.h b/gs/src/gsnogc.h
index 38d015ab4..3b5ea0094 100644
--- a/gs/src/gsnogc.h
+++ b/gs/src/gsnogc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to non-tracing GC */
#ifndef gsnogc_INCLUDED
diff --git a/gs/src/gsnorop.c b/gs/src/gsnorop.c
index b546f2c56..20706e102 100644
--- a/gs/src/gsnorop.c
+++ b/gs/src/gsnorop.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Stubs for unimplemented RasterOp */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsnotify.c b/gs/src/gsnotify.c
index 33b3b7d89..4f2c07ca1 100644
--- a/gs/src/gsnotify.c
+++ b/gs/src/gsnotify.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Notification machinery implementation */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsnotify.h b/gs/src/gsnotify.h
index 2e880e62d..25d0c6f19 100644
--- a/gs/src/gsnotify.h
+++ b/gs/src/gsnotify.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Notification machinery */
#ifndef gsnotify_INCLUDED
diff --git a/gs/src/gsos2.rc b/gs/src/gsos2.rc
index 8630f022c..b90092715 100644
--- a/gs/src/gsos2.rc
+++ b/gs/src/gsos2.rc
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Resources for gsos2.exe, Ghostscript for OS/2 */
-ICON 1 gsos2.ico
+ICON 1 obj\gsos2.ico
diff --git a/gs/src/gspaint.c b/gs/src/gspaint.c
index 94ae2c098..e1ba24379 100644
--- a/gs/src/gspaint.c
+++ b/gs/src/gspaint.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Painting procedures for Ghostscript library */
#include "math_.h" /* for fabs */
#include "gx.h"
diff --git a/gs/src/gspaint.h b/gs/src/gspaint.h
index 19e099ccf..bcc628d17 100644
--- a/gs/src/gspaint.h
+++ b/gs/src/gspaint.h
@@ -1,30 +1,21 @@
/* Copyright (C) 1989, 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Erase/fill/stroke procedures */
/* Requires gsstate.h */
#ifndef gspaint_INCLUDED
# define gspaint_INCLUDED
/* Painting */
-int gs_erasepage(P1(gs_state *)), gs_fillpage(P1(gs_state *)), gs_fill(P1(gs_state *)),
- gs_eofill(P1(gs_state *)), gs_stroke(P1(gs_state *));
+int gs_erasepage(P1(gs_state *)),
+ gs_fillpage(P1(gs_state *)),
+ gs_fill(P1(gs_state *)),
+ gs_eofill(P1(gs_state *)),
+ gs_stroke(P1(gs_state *));
/* Image tracing */
int gs_imagepath(P4(gs_state *, int, int, const byte *));
diff --git a/gs/src/gsparam.c b/gs/src/gsparam.c
index 6a99700ee..abe666be8 100644
--- a/gs/src/gsparam.c
+++ b/gs/src/gsparam.c
@@ -1,22 +1,9 @@
-/* Copyright (C) 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Support for parameter lists */
#include "memory_.h"
#include "string_.h"
@@ -332,7 +319,7 @@ int
param_write_name(gs_param_list * plist, gs_param_name pkey,
const gs_param_string * pvalue)
{
- RETURN_WRITE_TYPED(n, gs_param_type_string);
+ RETURN_WRITE_TYPED(n, gs_param_type_name);
}
int
param_write_int_array(gs_param_list * plist, gs_param_name pkey,
diff --git a/gs/src/gsparam.h b/gs/src/gsparam.h
index da15778a8..ecc9168bb 100644
--- a/gs/src/gsparam.h
+++ b/gs/src/gsparam.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to parameter dictionaries */
#ifndef gsparam_INCLUDED
diff --git a/gs/src/gsparam2.c b/gs/src/gsparam2.c
index 81f28f4f7..14c13a1d8 100644
--- a/gs/src/gsparam2.c
+++ b/gs/src/gsparam2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Serialize and unserialize parameter lists */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gsparams.c b/gs/src/gsparams.c
index 80fdbd6ad..db81f6a86 100644
--- a/gs/src/gsparams.c
+++ b/gs/src/gsparams.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic parameter list serializer & expander */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gsparams.h b/gs/src/gsparams.h
index 97cf4913f..90c65b095 100644
--- a/gs/src/gsparams.h
+++ b/gs/src/gsparams.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Serializer/expander for gs_parm_list's */
#ifndef gsparams_INCLUDED
diff --git a/gs/src/gsparamx.c b/gs/src/gsparamx.c
index 90da8882b..e6268f823 100644
--- a/gs/src/gsparamx.c
+++ b/gs/src/gsparamx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Extended parameter dictionary utilities */
#include "string_.h"
#include "gserror.h"
diff --git a/gs/src/gsparamx.h b/gs/src/gsparamx.h
index 3df29aa1e..ce19ebcfe 100644
--- a/gs/src/gsparamx.h
+++ b/gs/src/gsparamx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to extended parameter dictionary utilities */
#ifndef gsparamx_INCLUDED
diff --git a/gs/src/gspath.c b/gs/src/gspath.c
index b2b1883f1..b7ce35e1b 100644
--- a/gs/src/gspath.c
+++ b/gs/src/gspath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Basic path routines for Ghostscript library */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gspath.h b/gs/src/gspath.h
index 0e0e453b0..b622890ba 100644
--- a/gs/src/gspath.h
+++ b/gs/src/gspath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Graphics state path procedures */
/* Requires gsstate.h */
#ifndef gspath_INCLUDED
@@ -25,29 +13,32 @@
#include "gspenum.h"
/* Path constructors */
-int gs_newpath(P1(gs_state *)), gs_moveto(P3(gs_state *, floatp, floatp)),
- gs_rmoveto(P3(gs_state *, floatp, floatp)), gs_lineto(P3(gs_state *, floatp, floatp)),
- gs_rlineto(P3(gs_state *, floatp, floatp)), gs_arc(P6(gs_state *, floatp, floatp, floatp, floatp, floatp)),
- gs_arcn(P6(gs_state *, floatp, floatp, floatp, floatp, floatp)), /*
- * Because of an obscure bug in the IBM RS/6000 compiler, one (but not both)
- * bool argument(s) for gs_arc_add must come before the floatp arguments.
- */
+int gs_newpath(P1(gs_state *)),
+ gs_moveto(P3(gs_state *, floatp, floatp)),
+ gs_rmoveto(P3(gs_state *, floatp, floatp)),
+ gs_lineto(P3(gs_state *, floatp, floatp)),
+ gs_rlineto(P3(gs_state *, floatp, floatp)),
+ gs_arc(P6(gs_state *, floatp, floatp, floatp, floatp, floatp)),
+ gs_arcn(P6(gs_state *, floatp, floatp, floatp, floatp, floatp)),
+ /*
+ * Because of an obscure bug in the IBM RS/6000 compiler, one (but not
+ * both) bool argument(s) for gs_arc_add must come before the floatp
+ * arguments.
+ */
gs_arc_add(P8(gs_state *, bool, floatp, floatp, floatp, floatp, floatp, bool)),
gs_arcto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, float[4])),
- gs_curveto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, floatp)),
- gs_rcurveto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, floatp)),
- gs_closepath(P1(gs_state *));
+ gs_curveto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, floatp)),
+ gs_rcurveto(P7(gs_state *, floatp, floatp, floatp, floatp, floatp, floatp)),
+ gs_closepath(P1(gs_state *));
/* Imager-level procedures */
#ifndef gs_imager_state_DEFINED
# define gs_imager_state_DEFINED
typedef struct gs_imager_state_s gs_imager_state;
-
#endif
#ifndef gx_path_DEFINED
# define gx_path_DEFINED
typedef struct gx_path_s gx_path;
-
#endif
int gs_imager_arc_add(P9(gx_path * ppath, gs_imager_state * pis,
bool clockwise, floatp axc, floatp ayc,
@@ -83,7 +74,7 @@ int gs_path_enum_copy_init(P3(gs_path_enum *, const gs_state *, bool));
#define gs_path_enum_init(penum, pgs)\
gs_path_enum_copy_init(penum, pgs, true)
-int gs_path_enum_next(P2(gs_path_enum *, gs_point[3])); /* 0 when done */
+int gs_path_enum_next(P2(gs_path_enum *, gs_point[3])); /* 0 when done */
void gs_path_enum_cleanup(P1(gs_path_enum *));
/* Clipping */
diff --git a/gs/src/gspath1.c b/gs/src/gspath1.c
index 1d7fb3baf..98f94cf64 100644
--- a/gs/src/gspath1.c
+++ b/gs/src/gspath1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Additional PostScript Level 1 path routines for Ghostscript library */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gspath2.h b/gs/src/gspath2.h
index 7fb008184..18982a669 100644
--- a/gs/src/gspath2.h
+++ b/gs/src/gspath2.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Level 2 graphics state path procedures */
/* Requires gsmatrix.h */
#ifndef gspath2_INCLUDED
diff --git a/gs/src/gspcolor.c b/gs/src/gspcolor.c
index 64cfa2565..fc903eee6 100644
--- a/gs/src/gspcolor.c
+++ b/gs/src/gspcolor.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Pattern color operators and procedures for Ghostscript library */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gspcolor.h b/gs/src/gspcolor.h
index ab600f10e..244124f79 100644
--- a/gs/src/gspcolor.h
+++ b/gs/src/gspcolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to Pattern color */
#ifndef gspcolor_INCLUDED
diff --git a/gs/src/gspenum.h b/gs/src/gspenum.h
index b10479f5e..cc1a6ccdc 100644
--- a/gs/src/gspenum.h
+++ b/gs/src/gspenum.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common definitions for client interface to path enumeration */
#ifndef gspenum_INCLUDED
diff --git a/gs/src/gspmdrv.c b/gs/src/gspmdrv.c
index b9319f176..2c8fc6a55 100644
--- a/gs/src/gspmdrv.c
+++ b/gs/src/gspmdrv.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Presentation Manager driver for Ghostscript */
/* Written by Russell Lang */
diff --git a/gs/src/gspmdrv.h b/gs/src/gspmdrv.h
index d80f5f52c..1f8e2b8dc 100644
--- a/gs/src/gspmdrv.h
+++ b/gs/src/gspmdrv.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions common to gspmdrv.c and gspmdrv.rc */
#ifndef gspmdrv_INCLUDED
diff --git a/gs/src/gspmdrv.rc b/gs/src/gspmdrv.rc
index 2778f2243..ed8d5a8eb 100644
--- a/gs/src/gspmdrv.rc
+++ b/gs/src/gspmdrv.rc
@@ -1,28 +1,15 @@
/* Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
-*/
-
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
+ */
+/*$RCSfile$ $Revision$*/
/* Resources for gspmdrv.exe, the PM display driver for Ghostscript */
#include <os2.h>
#include "gspmdrv.h"
-ICON ID_GSPMDRV gspmdrv.ico
+ICON ID_GSPMDRV obj\gspmdrv.ico
DLGTEMPLATE IDD_ABOUT LOADONCALL MOVEABLE DISCARDABLE
BEGIN
diff --git a/gs/src/gsptype1.c b/gs/src/gsptype1.c
index ff942622a..6ec207ed5 100644
--- a/gs/src/gsptype1.c
+++ b/gs/src/gsptype1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PatternType 1 pattern implementation */
#include "math_.h"
#include "gx.h"
@@ -529,6 +516,14 @@ gs_makepixmappattern(
/* overwrite the free procedure for the pattern instance */
ppmap->free_proc = pinst->rc.free;
pinst->rc.free = free_pixmap_pattern;
+
+ /*
+ * Since the PaintProcs don't reference the saved color space or
+ * color, clear these so that there isn't an extra retained
+ * reference to the Pattern object.
+ */
+ gs_setgray(pinst->saved, 0.0);
+
}
gs_setmatrix(pgs, &smat);
return code;
diff --git a/gs/src/gsptype1.h b/gs/src/gsptype1.h
index 7bc371f0b..611f69cab 100644
--- a/gs/src/gsptype1.h
+++ b/gs/src/gsptype1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to PatternType 1 Patterns */
#ifndef gsptype1_INCLUDED
diff --git a/gs/src/gsptype2.c b/gs/src/gsptype2.c
index d75103860..049ccd4ce 100644
--- a/gs/src/gsptype2.c
+++ b/gs/src/gsptype2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PatternType 2 implementation */
#include "gx.h"
#include "gscspace.h"
diff --git a/gs/src/gsptype2.h b/gs/src/gsptype2.h
index f98c81cd0..0ea139082 100644
--- a/gs/src/gsptype2.h
+++ b/gs/src/gsptype2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to PatternType 2 Patterns */
#ifndef gsptype2_INCLUDED
diff --git a/gs/src/gsrect.h b/gs/src/gsrect.h
index 4d29d3c8f..20091ba82 100644
--- a/gs/src/gsrect.h
+++ b/gs/src/gsrect.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Rectangle utilities */
#ifndef gsrect_INCLUDED
diff --git a/gs/src/gsrefct.h b/gs/src/gsrefct.h
index 179ec550e..6a7801041 100644
--- a/gs/src/gsrefct.h
+++ b/gs/src/gsrefct.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Reference counting definitions */
#ifndef gsrefct_INCLUDED
diff --git a/gs/src/gsrop.c b/gs/src/gsrop.c
index 92f2cc3af..185788522 100644
--- a/gs/src/gsrop.c
+++ b/gs/src/gsrop.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp / transparency accessing for library */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsrop.h b/gs/src/gsrop.h
index 8d07721a8..19a8f705b 100644
--- a/gs/src/gsrop.h
+++ b/gs/src/gsrop.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp / transparency procedure interface */
#ifndef gsrop_INCLUDED
diff --git a/gs/src/gsropc.c b/gs/src/gsropc.c
index 9d9926e70..5cf667b21 100644
--- a/gs/src/gsropc.c
+++ b/gs/src/gsropc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp-compositing implementation */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gsropc.h b/gs/src/gsropc.h
index c0b4aafad..0e66ef5c8 100644
--- a/gs/src/gsropc.h
+++ b/gs/src/gsropc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp-compositing interface */
#ifndef gsropc_INCLUDED
diff --git a/gs/src/gsropt.h b/gs/src/gsropt.h
index 3f3bb3f5e..ae1b7303d 100644
--- a/gs/src/gsropt.h
+++ b/gs/src/gsropt.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp / transparency type definitions */
#ifndef gsropt_INCLUDED
diff --git a/gs/src/gsroptab.c b/gs/src/gsroptab.c
index 803c8aebd..d37c20991 100644
--- a/gs/src/gsroptab.c
+++ b/gs/src/gsroptab.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Table of RasterOp procedures */
#include "stdpre.h"
#include "gsropt.h"
diff --git a/gs/src/gsshade.c b/gs/src/gsshade.c
index 4191c052e..e81b88c75 100644
--- a/gs/src/gsshade.c
+++ b/gs/src/gsshade.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Constructors for shadings */
#include "gx.h"
#include "gscspace.h"
diff --git a/gs/src/gsshade.h b/gs/src/gsshade.h
index 6a7a2abf0..38cf8e290 100644
--- a/gs/src/gsshade.h
+++ b/gs/src/gsshade.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for shading */
#ifndef gsshade_INCLUDED
diff --git a/gs/src/gsstate.c b/gs/src/gsstate.c
index 380368fd1..9235233fc 100644
--- a/gs/src/gsstate.c
+++ b/gs/src/gsstate.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous graphics state operators for Ghostscript library */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gsstate.h b/gs/src/gsstate.h
index 5d4d354be..03ff7b14c 100644
--- a/gs/src/gsstate.h
+++ b/gs/src/gsstate.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Public graphics state API */
#ifndef gsstate_INCLUDED
diff --git a/gs/src/gsstruct.h b/gs/src/gsstruct.h
index 9421db3e1..5815535d6 100644
--- a/gs/src/gsstruct.h
+++ b/gs/src/gsstruct.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for Ghostscript modules that define allocatable structures */
/* Requires gstypes.h */
diff --git a/gs/src/gsstype.h b/gs/src/gsstype.h
index 5b1c1cb61..4df6a7bd7 100644
--- a/gs/src/gsstype.h
+++ b/gs/src/gsstype.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of structure type descriptors and extern_st */
#ifndef gsstype_INCLUDED
diff --git a/gs/src/gssubst b/gs/src/gssubst
index a3c80c9cf..8fa74e062 100755
--- a/gs/src/gssubst
+++ b/gs/src/gssubst
@@ -1,5 +1,5 @@
#!/usr/bin/tclsh
-
+# $RCSfile$ $Revision$
if {$argc < 2} {
puts stderr "Usage: $argv0 (-t type | -u word | fromword toword) file ..."
puts stderr " -t word = word word_t"
diff --git a/gs/src/gstext.c b/gs/src/gstext.c
index 162f5b650..614670e4c 100644
--- a/gs/src/gstext.c
+++ b/gs/src/gstext.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Driver text interface support */
#include "memory_.h"
#include "gstypes.h"
@@ -402,7 +389,15 @@ gs_text_current_char(const gs_text_enum_t *pte)
gs_char
gs_text_next_char(const gs_text_enum_t *pte)
{
- return pte->returned.current_char; /****** WRONG ******/
+ const uint operation = pte->text.operation;
+
+ if (pte->index >= pte->text.size)
+ return gs_no_char; /* rangecheck */
+ if (operation & (TEXT_FROM_STRING | TEXT_FROM_BYTES))
+ return pte->text.data.bytes[pte->index];
+ if (operation & TEXT_FROM_CHARS)
+ return pte->text.data.chars[pte->index];
+ return gs_no_char; /* rangecheck */
}
gs_glyph
gs_text_current_glyph(const gs_text_enum_t *pte)
diff --git a/gs/src/gstext.h b/gs/src/gstext.h
index e6d010327..9768267f8 100644
--- a/gs/src/gstext.h
+++ b/gs/src/gstext.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Driver interface for text */
#ifndef gstext_INCLUDED
diff --git a/gs/src/gstrap.c b/gs/src/gstrap.c
index 416a07881..1c4c5273f 100644
--- a/gs/src/gstrap.c
+++ b/gs/src/gstrap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Setting trapping parameters and zones */
#include "string_.h"
#include "gx.h"
diff --git a/gs/src/gstrap.h b/gs/src/gstrap.h
index f2e626f0d..7a089e3d6 100644
--- a/gs/src/gstrap.h
+++ b/gs/src/gstrap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for trapping parameters and zones */
#ifndef gstrap_INCLUDED
diff --git a/gs/src/gstype1.c b/gs/src/gstype1.c
index f7b707ad9..100fcdf51 100644
--- a/gs/src/gstype1.c
+++ b/gs/src/gstype1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Adobe Type 1 charstring interpreter */
#include "math_.h"
#include "memory_.h"
@@ -306,6 +293,7 @@ gs_type1_interpret(gs_type1_state * pcis, const gs_const_string * str,
goto cc;
case c1_hsbw:
gs_type1_sbw(pcis, cs0, fixed_0, cs1, fixed_0);
+ cs1 = fixed_0;
rsbw: /* Give the caller the opportunity to intervene. */
pcis->os_count = 0; /* clear */
ipsp->ip = cip, ipsp->dstate = state;
@@ -316,9 +304,29 @@ rsbw: /* Give the caller the opportunity to intervene. */
/* Finish init when we return. */
pcis->init_done = 0;
} else {
- /* Accumulate the side bearing now, but don't do it */
- /* a second time for the base character of a seac. */
- if (pcis->seac_accent < 0)
+ /*
+ * Accumulate the side bearing now, but don't do it
+ * a second time for the base character of a seac.
+ */
+ if (pcis->seac_accent >= 0) {
+ /*
+ * As a special hack to work around a bug in
+ * Fontographer, we deal with the (illegal)
+ * situation in which the side bearing of the
+ * accented character (save_lsbx) is different from
+ * the side bearing of the base character (cs0/cs1).
+ */
+ fixed dsbx = cs0 - pcis->save_lsb.x;
+ fixed dsby = cs1 - pcis->save_lsb.y;
+
+ if (dsbx | dsby) {
+ accum_xy(dsbx, dsby);
+ pcis->lsb.x += dsbx;
+ pcis->lsb.y += dsby;
+ pcis->save_adxy.x -= dsbx;
+ pcis->save_adxy.y -= dsby;
+ }
+ } else
accum_xy(pcis->lsb.x, pcis->lsb.y);
pcis->position.x = ptx;
pcis->position.y = pty;
diff --git a/gs/src/gstype1.h b/gs/src/gstype1.h
index 3837b3fbd..47236cfd9 100644
--- a/gs/src/gstype1.h
+++ b/gs/src/gstype1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client interface to Adobe Type 1 font routines */
#ifndef gstype1_INCLUDED
diff --git a/gs/src/gstype2.c b/gs/src/gstype2.c
index 69d1a76c7..7ffcc2ec0 100644
--- a/gs/src/gstype2.c
+++ b/gs/src/gstype2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Adobe Type 2 charstring interpreter */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gstype42.c b/gs/src/gstype42.c
index 91214f49e..0f5149da5 100644
--- a/gs/src/gstype42.c
+++ b/gs/src/gstype42.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 42 (TrueType) font library routines */
#include "memory_.h"
#include "gx.h"
@@ -24,6 +11,7 @@
#include "gsstruct.h"
#include "gsccode.h"
#include "gsmatrix.h"
+#include "gsutil.h"
#include "gxfixed.h" /* for gxpath.h */
#include "gxpath.h"
#include "gxfont.h"
@@ -50,11 +38,7 @@ private int append_outline(P4(uint glyph_index, const gs_matrix_fixed * pmat,
#define S8(p) (int)((U8(p) ^ 0x80) - 0x80)
#define U16(p) (((uint)((p)[0]) << 8) + (p)[1])
#define S16(p) (int)((U16(p) ^ 0x8000) - 0x8000)
-private ulong
-u32(const byte *p)
-{
- return ((ulong)U16(p) << 16) + U16((p) + 2);
-}
+#define u32(p) get_u32_msb(p)
/* Define the bits in the component glyph flags. */
#define cg_argsAreWords 1
diff --git a/gs/src/gstypes.h b/gs/src/gstypes.h
index d3447efb3..5ce0ce7e4 100644
--- a/gs/src/gstypes.h
+++ b/gs/src/gstypes.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous common types for Ghostscript library */
#ifndef gstypes_INCLUDED
diff --git a/gs/src/gsuid.h b/gs/src/gsuid.h
index 0deb08dfd..d6ef1d3c2 100644
--- a/gs/src/gsuid.h
+++ b/gs/src/gsuid.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Unique id definitions for Ghostscript */
#ifndef gsuid_INCLUDED
diff --git a/gs/src/gsutil.c b/gs/src/gsutil.c
index 1ca93d9e5..965d2f720 100644
--- a/gs/src/gsutil.c
+++ b/gs/src/gsutil.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utilities for Ghostscript library */
#include "string_.h"
#include "memory_.h"
@@ -137,6 +124,13 @@ memflip8x8(const byte * inp, int line_size, byte * outp, int dist)
#endif /* !USE_ASM */
+/* Get an unsigned, big-endian 32-bit value. */
+ulong
+get_u32_msb(const byte *p)
+{
+ return ((uint)p[0] << 24) + ((uint)p[1] << 16) + ((uint)p[2] << 8) + p[3];
+}
+
/* ------ String utilities ------ */
/* Compare two strings, returning -1 if the first is less, */
diff --git a/gs/src/gsutil.h b/gs/src/gsutil.h
index 45490519d..bb11c4a7e 100644
--- a/gs/src/gsutil.h
+++ b/gs/src/gsutil.h
@@ -1,22 +1,9 @@
-/* Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1992, 1993, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Prototypes for procedures in gsutil.c */
#ifndef gsutil_INCLUDED
@@ -37,6 +24,9 @@ gs_id gs_next_ids(P1(uint count));
/* this will rotate an 8 x 8 block 90 degrees counter-clockwise. */
void memflip8x8(P4(const byte * inp, int line_size, byte * outp, int dist));
+/* Get an unsigned, big-endian 32-bit value. */
+ulong get_u32_msb(P1(const byte *p));
+
/* ------ String utilities ------ */
/* Compare two strings, returning -1 if the first is less, */
diff --git a/gs/src/gswin.rc b/gs/src/gswin.rc
index ca7d15013..ee90b3eef 100644
--- a/gs/src/gswin.rc
+++ b/gs/src/gswin.rc
@@ -17,7 +17,7 @@
*/
-
+/*$RCSfile$ $Revision$*/
#include <windows.h>
#include "dwmain.h"
diff --git a/gs/src/gsxfont.h b/gs/src/gsxfont.h
index b6d6bdc36..773459a5b 100644
--- a/gs/src/gsxfont.h
+++ b/gs/src/gsxfont.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* External font client definitions for Ghostscript library */
#ifndef gsxfont_INCLUDED
diff --git a/gs/src/gx.h b/gs/src/gx.h
index 1ec7f6a2f..5326dc3c0 100644
--- a/gs/src/gx.h
+++ b/gs/src/gx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1991, 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common internal definitions for Ghostscript library */
#ifndef gx_INCLUDED
diff --git a/gs/src/gxacpath.c b/gs/src/gxacpath.c
index 5830c4eb4..12eccb70b 100644
--- a/gs/src/gxacpath.c
+++ b/gs/src/gxacpath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Accumulator for clipping paths */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gxalloc.h b/gs/src/gxalloc.h
index 9bcd8adb0..65becc085 100644
--- a/gs/src/gxalloc.h
+++ b/gs/src/gxalloc.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Structure definitions for standard allocator */
/* Requires gsmemory.h, gsstruct.h */
#ifndef gxalloc_INCLUDED
@@ -450,7 +438,10 @@ void debug_print_chunk(P1(const chunk_t * cp)); /* default options */
/* Print the contents of all chunks managed by an allocator. */
/* Relevant options: all. */
void debug_dump_memory(P2(const gs_ref_memory_t * mem,
- const dump_control_t * control));
+ const dump_control_t * control));
+
+/* Find all the objects that contain a given pointer. */
+void debug_find_pointers(P2(const gs_ref_memory_t *mem, const void *target));
#endif /* DEBUG */
diff --git a/gs/src/gxalpha.h b/gs/src/gxalpha.h
index 43d649e65..b5c01eb19 100644
--- a/gs/src/gxalpha.h
+++ b/gs/src/gxalpha.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal machinery for alpha channel support */
#ifndef gxalpha_INCLUDED
diff --git a/gs/src/gxarith.h b/gs/src/gxarith.h
index d862b1152..c529ef817 100644
--- a/gs/src/gxarith.h
+++ b/gs/src/gxarith.h
@@ -1,25 +1,12 @@
/* Copyright (C) 1990, 1993, 1994, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
#ifndef gxarith_INCLUDED
# define gxarith_INCLUDED
-
+/*$RCSfile$ $Revision$ */
/* Arithmetic macros for Ghostscript library */
/* Define an in-line abs function, good for any signed numeric type. */
diff --git a/gs/src/gxband.h b/gs/src/gxband.h
index db11138e1..d562a474f 100644
--- a/gs/src/gxband.h
+++ b/gs/src/gxband.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Band-processing parameters for Ghostscript */
#ifndef gxband_INCLUDED
diff --git a/gs/src/gxbcache.c b/gs/src/gxbcache.c
index 438eb9c5e..e06aa732a 100644
--- a/gs/src/gxbcache.c
+++ b/gs/src/gxbcache.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Bitmap cache implementation */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxbcache.h b/gs/src/gxbcache.h
index 629df0064..d9b452692 100644
--- a/gs/src/gxbcache.h
+++ b/gs/src/gxbcache.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Bitmap cache structures */
#ifndef gxbcache_INCLUDED
diff --git a/gs/src/gxbitfmt.h b/gs/src/gxbitfmt.h
index 8749385ac..4fac68651 100644
--- a/gs/src/gxbitfmt.h
+++ b/gs/src/gxbitfmt.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for bitmap storage formats */
#ifndef gxbitfmt_INCLUDED
diff --git a/gs/src/gxbitmap.h b/gs/src/gxbitmap.h
index 446c2e47e..14d06b273 100644
--- a/gs/src/gxbitmap.h
+++ b/gs/src/gxbitmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for stored bitmaps for Ghostscript */
#ifndef gxbitmap_INCLUDED
diff --git a/gs/src/gxbitops.h b/gs/src/gxbitops.h
index ac6827130..c00605d68 100644
--- a/gs/src/gxbitops.h
+++ b/gs/src/gxbitops.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for bitmap operations */
#ifndef gxbitops_INCLUDED
diff --git a/gs/src/gxccache.c b/gs/src/gxccache.c
index 4cea852a0..a6ebc53e3 100644
--- a/gs/src/gxccache.c
+++ b/gs/src/gxccache.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Fast case character cache routines for Ghostscript library */
#include "gx.h"
#include "gpcheck.h"
diff --git a/gs/src/gxccman.c b/gs/src/gxccman.c
index fcd23d615..24e43c316 100644
--- a/gs/src/gxccman.c
+++ b/gs/src/gxccman.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Character cache management routines for Ghostscript library */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gxcdevn.h b/gs/src/gxcdevn.h
index 4a9ce84ab..34643aa3e 100644
--- a/gs/src/gxcdevn.h
+++ b/gs/src/gxcdevn.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for DeviceN color spaces */
#ifndef gxcdevn_INCLUDED
diff --git a/gs/src/gxchar.c b/gs/src/gxchar.c
index 048d8de52..2960137ba 100644
--- a/gs/src/gxchar.c
+++ b/gs/src/gxchar.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Default implementation of text writing */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gxchar.h b/gs/src/gxchar.h
index cd2fc15c6..c3589cd73 100644
--- a/gs/src/gxchar.h
+++ b/gs/src/gxchar.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal character definition for Ghostscript library */
/* Requires gsmatrix.h, gxfixed.h */
diff --git a/gs/src/gxcht.c b/gs/src/gxcht.c
index f0058179c..e57b6f026 100644
--- a/gs/src/gxcht.c
+++ b/gs/src/gxcht.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color halftone rendering for Ghostscript imaging library */
#include "memory_.h"
#include "gx.h"
@@ -143,8 +130,9 @@ gx_dc_ht_colored_load(gx_device_color * pdevc, const gs_imager_state * pis,
gx_device * ignore_dev, gs_color_select_t select)
{
gx_device_halftone *pdht = pdevc->colors.colored.c_ht;
- gx_ht_order *porder = &pdht->components[0].corder;
gx_ht_cache *pcache = pis->ht_cache;
+ gx_ht_order *porder =
+ (pdht->components ? &pdht->components[0].corder : &pdht->order);
if (pcache->order.bit_data != porder->bit_data)
gx_ht_init_cache(pcache, porder);
@@ -168,11 +156,23 @@ gx_dc_ht_colored_fill_rectangle(const gx_device_color * pdevc,
const gx_device_halftone *pdht = pdevc->colors.colored.c_ht;
int depth = dev->color_info.depth;
int nplanes = dev->color_info.num_components;
+ SET_HT_COLORS_PROC((*set_ht_colors)) =
+ (
+#if USE_SLOW_CODE
+ set_ht_colors_gt_4
+#else
+ dev_proc(dev, map_cmyk_color) == cmyk_1bit_map_cmyk_color ?
+ set_cmyk_1bit_colors :
+ nplanes < 4 ? set_ht_colors_le_4 :
+ set_ht_colors_gt_4
+#endif
+ );
SET_COLOR_HT_PROC((*set_color_ht)) =
(
#if !USE_SLOW_CODE
- !(pdevc->colors.colored.plane_mask & ~(gx_color_index)15) ?
- set_color_ht_le_4 :
+ !(pdevc->colors.colored.plane_mask & ~(gx_color_index)15) &&
+ set_ht_colors != set_ht_colors_gt_4 ?
+ set_color_ht_le_4 :
#endif
set_color_ht_gt_4);
color_values_pair_t vp;
@@ -229,16 +229,7 @@ gx_dc_ht_colored_fill_rectangle(const gx_device_color * pdevc,
for (i = 4; i < nplanes; ++i)
caches[i] = pocs[pdht->color_indices[i]].corder.cache;
}
- special =
-#if USE_SLOW_CODE
- set_ht_colors_gt_4
-#else
- (dev_proc(dev, map_cmyk_color) == cmyk_1bit_map_cmyk_color ?
- set_cmyk_1bit_colors :
- nplanes < 4 ? set_ht_colors_le_4 :
- set_ht_colors_gt_4)
-#endif
- (&vp, colors, sbits, pdevc, dev, caches, nplanes);
+ special = set_ht_colors(&vp, colors, sbits, pdevc, dev, caches, nplanes);
no_rop = source == NULL && lop_no_S_is_T(lop);
/*
* If the LCM of the plane cell sizes is smaller than the rectangle
@@ -410,7 +401,9 @@ private const gx_const_strip_bitmap ht_no_bitmap = {
} else { \
const gx_device_halftone *pdht = pdc->colors.colored.c_ht; \
int nlevels =\
- pdht->components[pdht->color_indices[i]].corder.num_levels;\
+ (pdht->components ?\
+ pdht->components[pdht->color_indices[i]].corder.num_levels :\
+ pdht->order.num_levels);\
\
pvp->values[1][i] = pvp->values[0][i]; \
pvp->values[0][i] = fractional_color(q + 1, max_color); \
@@ -585,7 +578,9 @@ set_cmyk_1bit_colors(color_values_pair_t *ignore_pvp,
sbits[3 - i] = &ht_no_bitmap;\
} else {\
int nlevels =\
- pdht->components[pdht->color_indices[i]].corder.num_levels;\
+ (pdht->components ?\
+ pdht->components[pdht->color_indices[i]].corder.num_levels :\
+ pdht->order.num_levels);\
\
mask0 |= mask;\
sbits[3 - i] = (const gx_const_strip_bitmap *)\
@@ -926,7 +921,7 @@ set_color_ht_le_4(byte *dest_data, uint dest_raster, int px, int py,
*/
private void
set_color_ht_gt_4(byte *dest_data, uint dest_raster, int px, int py,
- int w, int h, int depth, int special, int nplanes,
+ int w, int h, int depth, int special, int num_planes,
gx_color_index plane_mask, gx_device *dev,
const color_values_pair_t *pvp,
gx_color_index colors[1 << MAX_DCC],
@@ -937,10 +932,18 @@ set_color_ht_gt_4(byte *dest_data, uint dest_raster, int px, int py,
int dbytes = depth >> 3;
byte *dest_row =
dest_data + dest_raster * (h - 1) + (w * depth) / 8;
-
- /* Compute the number of active planes. */
- for (nplanes = 0; (plane_mask >> nplanes) != 0; )
- ++nplanes;
+ int pmin, pmax;
+ gx_color_value cv[MAX_DCC];
+
+ /* Compute the range of active planes. */
+ if (plane_mask == 0)
+ pmin = 0, pmax = -1;
+ else {
+ for (pmin = 0; !((plane_mask >> pmin) & 1); )
+ ++pmin;
+ for (pmax = 0; (plane_mask >> pmax) > 1; )
+ ++pmax;
+ }
/* Do one-time cursor initialization. */
{
@@ -948,11 +951,21 @@ set_color_ht_gt_4(byte *dest_data, uint dest_raster, int px, int py,
int lasty = h - 1 + py;
int i;
- for (i = 0; i < nplanes; ++i)
+ for (i = pmin; i <= pmax; ++i)
if ((plane_mask >> i) & 1)
init_tile_cursor(i, &cursor[i], sbits[i], endx, lasty);
}
+ /* Pre-load the color value for the unchanging planes. */
+ {
+ int i;
+
+ for (i = 0; i < pmin; ++i)
+ cv[i] = pvp->values[0][i];
+ for (i = pmax + 1; i < num_planes; ++i)
+ cv[i] = pvp->values[0][i];
+ }
+
/* Now compute the actual tile. */
for (y = h; ; dest_row -= dest_raster) {
byte *dest = dest_row;
@@ -963,7 +976,7 @@ set_color_ht_gt_4(byte *dest_data, uint dest_raster, int px, int py,
gx_color_index index = 0;
gx_color_index tcolor;
- for (i = 0; i < nplanes; ++i)
+ for (i = pmin; i <= pmax; ++i)
if ((plane_mask >> i) & 1) {
/* Get the next bit from an individual mask. */
tile_cursor_t *ptc = &cursor[i];
@@ -985,10 +998,9 @@ b: if (ptc->bit_shift < 8)
tcolor = colors[index];
if (tcolor == gx_no_color_index) {
/* Map the color value now. */
- gx_color_value cv[MAX_DCC];
int i;
- for (i = 0; i < nplanes; ++i)
+ for (i = pmin; i <= pmax; ++i)
cv[i] = pvp->values[(index >> i) & 1][i];
/****** HACK -- NO WAY TO MAP GENERAL COLORS ******/
tcolor = colors[index] =
@@ -1017,7 +1029,7 @@ b: if (ptc->bit_shift < 8)
}
if (y == 0)
break;
- for (i = 0; i < nplanes; ++i)
+ for (i = pmin; i <= pmax; ++i)
if ((plane_mask >> i) & 1)
STEP_ROW(cursor[i], i);
}
diff --git a/gs/src/gxcie.h b/gs/src/gxcie.h
index df4adf53e..2db9355d7 100644
--- a/gs/src/gxcie.h
+++ b/gs/src/gxcie.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for CIE color implementation */
/* Requires gxcspace.h */
diff --git a/gs/src/gxcindex.h b/gs/src/gxcindex.h
index 0eca0c803..4b77fb708 100644
--- a/gs/src/gxcindex.h
+++ b/gs/src/gxcindex.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Define the device color index type and macros */
#ifndef gxcindex_INCLUDED
diff --git a/gs/src/gxclbits.c b/gs/src/gxclbits.c
index 31ef32288..a4e04c566 100644
--- a/gs/src/gxclbits.c
+++ b/gs/src/gxclbits.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Halftone and bitmap writing for command lists */
#include "memory_.h"
#include "gx.h"
@@ -617,14 +604,15 @@ clist_change_tile(gx_device_clist_writer * cldev, gx_clist_state * pcls,
extra + 1 + cmd_size_w(loc.index) + cmd_size_w(offset);
byte *dp;
uint csize;
-
- code = cmd_put_bits(cldev, pcls, ts_bits(cldev, loc.tile),
+ int code =
+ cmd_put_bits(cldev, pcls, ts_bits(cldev, loc.tile),
tiles->rep_width * depth, tiles->rep_height,
loc.tile->cb_raster, rsize,
(cldev->tile_params.size.x > tiles->rep_width ?
decompress_elsewhere | decompress_spread :
decompress_elsewhere),
&dp, &csize);
+
if (code < 0)
return code;
if (extra) { /* Write the tile parameters before writing the bits. */
diff --git a/gs/src/gxcldev.h b/gs/src/gxcldev.h
index ed3a91ab8..5e3c38d49 100644
--- a/gs/src/gxcldev.h
+++ b/gs/src/gxcldev.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for Ghostscript command lists. */
#ifndef gxcldev_INCLUDED
diff --git a/gs/src/gxclfile.c b/gs/src/gxclfile.c
index 855bcdf9c..8801db366 100644
--- a/gs/src/gxclfile.c
+++ b/gs/src/gxclfile.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* File-based command list implementation */
#include "stdio_.h"
#include "string_.h"
diff --git a/gs/src/gxclimag.c b/gs/src/gxclimag.c
index ce3c04bec..d1e1c5c0e 100644
--- a/gs/src/gxclimag.c
+++ b/gs/src/gxclimag.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Higher-level image operations for band lists */
#include "math_.h"
#include "memory_.h"
@@ -214,8 +201,8 @@ typedef struct clist_image_enum_s {
gx_image_enum_common;
/* Arguments of begin_image */
gs_memory_t *memory;
- gs_pixel_image_t image;
- gx_drawing_color dcolor;
+ gs_pixel_image_t image; /* only uses Width, Height, Interpolate */
+ gx_drawing_color dcolor; /* only pure right now */
gs_int_rect rect;
const gs_imager_state *pis;
const gx_clip_path *pcpath;
@@ -225,8 +212,7 @@ typedef struct clist_image_enum_s {
int bits_per_plane; /* bits per pixel per plane */
gs_matrix matrix; /* image space -> device space */
bool uses_color;
- byte color_space;
- gs_id color_space_id;
+ clist_color_space_t color_space;
int ymin, ymax;
bool map_rgb_to_cmyk;
gx_colors_used_t colors_used;
@@ -249,10 +235,10 @@ typedef struct clist_image_enum_s {
int y;
bool color_map_is_known;
} clist_image_enum;
-
-/* We can disregard the pointers in the writer by allocating */
-/* the image enumerator as immovable. This is a hack, of course. */
-gs_private_st_simple(st_clist_image_enum, clist_image_enum, "clist_image_enum");
+gs_private_st_suffix_add3(st_clist_image_enum, clist_image_enum,
+ "clist_image_enum", clist_image_enum_enum_ptrs,
+ clist_image_enum_reloc_ptrs, st_gx_image_enum_common,
+ pis, pcpath, color_space.space);
private image_enum_proc_plane_data(clist_image_plane_data);
private image_enum_proc_end_image(clist_image_end_image);
@@ -266,12 +252,12 @@ private bool image_band_box(P5(gx_device * dev, const clist_image_enum * pie,
int y, int h, gs_int_rect * pbox));
private int begin_image_command(P3(byte *buf, uint buf_size,
const gs_image_common_t *pic));
-private int cmd_image_plane_data(P7(gx_device_clist_writer * cldev,
+private int cmd_image_plane_data(P8(gx_device_clist_writer * cldev,
gx_clist_state * pcls,
const gx_image_plane_t * planes,
const gx_image_enum_common_t * pie,
uint bytes_per_plane,
- const uint * offsets, int h));
+ const uint * offsets, int dx, int h));
private uint clist_image_unknowns(P2(gx_device *dev,
const clist_image_enum *pie));
private int write_image_end_all(P2(gx_device *dev,
@@ -418,9 +404,16 @@ clist_begin_typed_image(gx_device * dev,
pie->bits_per_plane = bits_per_pixel / pie->num_planes;
pie->matrix = mat;
pie->uses_color = uses_color;
- pie->color_space = (base_index << 4) |
- (indexed ? (pim->ColorSpace->params.indexed.use_proc ? 12 : 8) : 0);
- pie->color_space_id = (masked ? gs_no_id : pim->ColorSpace->id);
+ if (masked) {
+ pie->color_space.byte1 = 0; /* arbitrary */
+ pie->color_space.space = 0;
+ pie->color_space.id = gs_no_id;
+ } else {
+ pie->color_space.byte1 = (base_index << 4) |
+ (indexed ? (pim->ColorSpace->params.indexed.use_proc ? 12 : 8) : 0);
+ pie->color_space.id =
+ (pie->color_space.space = pim->ColorSpace)->id;
+ }
pie->y = pie->rect.p.y;
/* Image row has to fit in cmd writer's buffer */
@@ -467,13 +460,14 @@ clist_begin_typed_image(gx_device * dev,
if (bits_per_pixel > 4 || pim->Interpolate || num_components > 1)
colors_used = all;
else {
+ int max_value = (1 << bits_per_pixel) - 1;
float dmin = pim->Decode[0], dmax = pim->Decode[1];
float dtemp;
if (dmax < dmin)
dtemp = dmax, dmax = dmin, dmin = dtemp;
if (dmin != 0 ||
- dmax != (indexed ? (1 << bits_per_pixel) - 1 : 1)
+ dmax != (indexed ? max_value : 1)
) {
colors_used = all;
} else {
@@ -483,11 +477,10 @@ clist_begin_typed_image(gx_device * dev,
gs_client_color cc;
gx_drawing_color dcolor;
int i;
- int max_value = (1 << bits_per_pixel) - 1;
double denom = (indexed ? 1 : max_value);
for (i = 0; i <= max_value; ++i) {
- cc.paint.values[0] = ((double)i) / denom;
+ cc.paint.values[0] = (double)i / denom;
remap_color(&cc, pcs, &dcolor, pis, dev,
gs_color_select_source);
colors_used |= cmd_drawing_colors_used(cdev, &dcolor);
@@ -612,28 +605,26 @@ clist_image_plane_data(gx_image_enum_common_t * info,
* Note that y and height always define a complete band.
*/
gs_int_rect ibox;
- int bpp = pie->bits_per_plane;
- int num_planes = pie->num_planes;
- uint offsets[gs_image_max_planes];
- int i, iy, ih, xskip, nrows;
- uint bytes_per_plane, bytes_per_row, rows_per_cmd;
- int band_ymax, band_ymin;
gs_int_rect entire_box;
if (!image_band_box(dev, pie, y, height, &ibox))
continue;
- pcls->colors_used.or |= pie->colors_used.or;
- pcls->colors_used.slow_rop |= pie->colors_used.slow_rop;
/*
* The transmitted subrectangle has to be computed at the time
* we write the begin_image command; this in turn controls how
* much of each scan line we write out.
*/
- band_ymax = min(band_end, pie->ymax);
- band_ymin = max(band_end - band_height, pie->ymin);
- if (!image_band_box(dev, pie, band_ymin,
- band_ymax - band_ymin, &entire_box))
- continue;
+ {
+ int band_ymax = min(band_end, pie->ymax);
+ int band_ymin = max(band_end - band_height, pie->ymin);
+
+ if (!image_band_box(dev, pie, band_ymin,
+ band_ymax - band_ymin, &entire_box))
+ continue;
+ }
+
+ pcls->colors_used.or |= pie->colors_used.or;
+ pcls->colors_used.slow_rop |= pie->colors_used.slow_rop;
/* Write out begin_image & its preamble for this band */
if (!(pcls->known & begin_image_known)) {
@@ -684,49 +675,58 @@ clist_image_plane_data(gx_image_enum_common_t * info,
}
/*
- * The actual data that we write out must use the X values
- * set by begin_image, which may be larger than the ones
- * actually needed for this particular scan line if the image
- * is rotated.
- */
-#define bx0 entire_box.p.x
-#define by0 ibox.p.y
-#define bx1 entire_box.q.x
-#define by1 ibox.q.y
- if (by0 < y0)
- by0 = y0;
- if (by1 > y1)
- by1 = y1;
- /*
- * Make sure we're skipping an integral number of pixels, by
- * truncating the initial X coordinate to the next lower
- * value that is an exact multiple of a byte.
+ * The data that we write out must use the X values set by
+ * begin_image, which may cover a larger interval than the ones
+ * actually needed for these particular scan lines if the image is
+ * rotated.
*/
- xskip = bx0 & -(int)"\001\010\004\010\002\010\004\010"[bpp & 7];
- for (i = 0; i < num_planes; ++i)
- offsets[i] = (by0 - y0) * planes[i].raster + ((xskip * bpp) >> 3);
- xskip = bx0 - xskip;
- bytes_per_plane = ((xskip + bx1 - bx0) * bpp + 7) >> 3;
- bytes_per_row = bytes_per_plane * pie->num_planes;
- rows_per_cmd =
- (cbuf_size - cmd_largest_size) / max(bytes_per_row, 1);
-
- if (rows_per_cmd == 0) { /* The reader will have to buffer a row separately. */
- rows_per_cmd = 1;
- }
- for (iy = by0, ih = by1 - by0; ih > 0; iy += nrows, ih -= nrows) {
- nrows = min(ih, rows_per_cmd);
- TRY_RECT {
- code = cmd_image_plane_data(cdev, pcls, planes, info,
- bytes_per_plane, offsets, nrows);
- } HANDLE_RECT(code);
+ {
+ /*
+ * image_band_box ensures that b{x,y}{0,1} fall within
+ * pie->rect.
+ */
+ int bx0 = entire_box.p.x, bx1 = entire_box.q.x;
+ int by0 = ibox.p.y, by1 = ibox.q.y;
+ int bpp = pie->bits_per_plane;
+ int num_planes = pie->num_planes;
+ uint offsets[gs_image_max_planes];
+ int i, iy, ih, xskip, xoff, nrows;
+ uint bytes_per_plane, bytes_per_row, rows_per_cmd;
+
+ if (by0 < y0)
+ by0 = y0;
+ if (by1 > y1)
+ by1 = y1;
+ /*
+ * Make sure we're skipping an integral number of pixels, by
+ * truncating the initial X coordinate to the next lower
+ * value that is an exact multiple of a byte.
+ */
+ xoff = bx0 - pie->rect.p.x;
+ xskip = xoff & -(int)"\001\010\004\010\002\010\004\010"[bpp & 7];
for (i = 0; i < num_planes; ++i)
- offsets[i] += planes[i].raster * nrows;
+ offsets[i] =
+ (by0 - y0) * planes[i].raster + ((xskip * bpp) >> 3);
+ bytes_per_plane = ((bx1 - (pie->rect.p.x + xskip)) * bpp + 7) >> 3;
+ bytes_per_row = bytes_per_plane * pie->num_planes;
+ rows_per_cmd =
+ (cbuf_size - cmd_largest_size) / max(bytes_per_row, 1);
+
+ if (rows_per_cmd == 0) {
+ /* The reader will have to buffer a row separately. */
+ rows_per_cmd = 1;
+ }
+ for (iy = by0, ih = by1 - by0; ih > 0; iy += nrows, ih -= nrows) {
+ nrows = min(ih, rows_per_cmd);
+ TRY_RECT {
+ code = cmd_image_plane_data(cdev, pcls, planes, info,
+ bytes_per_plane, offsets,
+ xoff - xskip, nrows);
+ } HANDLE_RECT(code);
+ for (i = 0; i < num_planes; ++i)
+ offsets[i] += planes[i].raster * nrows;
+ }
}
-#undef bx0
-#undef by0
-#undef bx1
-#undef by1
} END_RECTS_ON_ERROR(
BEGIN
++cdev->ignore_lo_mem_warnings;
@@ -804,16 +804,21 @@ private int
cmd_put_set_data_x(gx_device_clist_writer * cldev, gx_clist_state * pcls,
int data_x)
{
- int dx_msb = data_x >> 5;
byte *dp;
- int code = set_cmd_put_op(dp, cldev, pcls, cmd_opv_set_misc,
- 2 + cmd_size_w(dx_msb));
+ int code;
+
+ if (data_x > 0x1f) {
+ int dx_msb = data_x >> 5;
- if (code >= 0) {
- if (dx_msb) {
+ code = set_cmd_put_op(dp, cldev, pcls, cmd_opv_set_misc,
+ 2 + cmd_size_w(dx_msb));
+ if (code >= 0) {
dp[1] = cmd_set_misc_data_x + 0x20 + (data_x & 0x1f);
cmd_put_w(dx_msb, dp + 2);
- } else
+ }
+ } else {
+ code = set_cmd_put_op(dp, cldev, pcls, cmd_opv_set_misc, 2);
+ if (code >= 0)
dp[1] = cmd_set_misc_data_x + data_x;
}
return code;
@@ -1027,7 +1032,8 @@ image_band_box(gx_device * dev, const clist_image_enum * pie, int y, int h,
fixed by0 = int2fixed(y);
fixed by1 = int2fixed(y + h);
int
- px = pie->rect.p.x, py = pie->rect.p.y, qx = pie->rect.q.x, qy = pie->rect.q.y;
+ px = pie->rect.p.x, py = pie->rect.p.y,
+ qx = pie->rect.q.x, qy = pie->rect.q.y;
gs_fixed_rect cbox; /* device clipping box */
gs_rect bbox; /* cbox intersected with band */
@@ -1198,13 +1204,10 @@ clist_image_unknowns(gx_device *dev, const clist_image_enum *pie)
unknown |= ctm_known;
cdev->imager_state.ctm = pis->ctm;
}
- if (pie->color_space_id != gs_no_id /* i.e., not masked */) {
- if (cdev->color_space_id != pie->color_space_id) {
+ if (pie->color_space.id != gs_no_id /* i.e., not masked */) {
+ if (cdev->color_space.id != pie->color_space.id) {
unknown |= color_space_known;
cdev->color_space = pie->color_space;
- cdev->color_space_id = pie->color_space_id;
- if (cdev->color_space & 8)
- cdev->indexed_params = pie->image.ColorSpace->params.indexed;
}
}
if (cmd_check_clip_path(cdev, pie->pcpath))
@@ -1236,10 +1239,12 @@ begin_image_command(byte *buf, uint buf_size, const gs_image_common_t *pic)
/* Write data for a partial image. */
private int
cmd_image_plane_data(gx_device_clist_writer * cldev, gx_clist_state * pcls,
- const gx_image_plane_t * planes, const gx_image_enum_common_t * pie,
- uint bytes_per_plane, const uint * offsets, int h)
+ const gx_image_plane_t * planes,
+ const gx_image_enum_common_t * pie,
+ uint bytes_per_plane, const uint * offsets,
+ int dx, int h)
{
- int data_x = planes[0].data_x;
+ int data_x = planes[0].data_x + dx;
uint nbytes = bytes_per_plane * pie->num_planes * h;
uint len = 1 + cmd_size2w(h, bytes_per_plane) + nbytes;
byte *dp;
diff --git a/gs/src/gxclio.h b/gs/src/gxclio.h
index a386313c3..9794ff7dd 100644
--- a/gs/src/gxclio.h
+++ b/gs/src/gxclio.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* I/O interface for command lists */
#ifndef gxclio_INCLUDED
diff --git a/gs/src/gxclip.c b/gs/src/gxclip.c
index 37ccf779e..ea4e00f1c 100644
--- a/gs/src/gxclip.c
+++ b/gs/src/gxclip.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation of (path-based) clipping */
#include "gx.h"
#include "gxdevice.h"
diff --git a/gs/src/gxclip.h b/gs/src/gxclip.h
index 891e186ee..c7e28f03c 100644
--- a/gs/src/gxclip.h
+++ b/gs/src/gxclip.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for clipping */
#ifndef gxclip_INCLUDED
diff --git a/gs/src/gxclip2.c b/gs/src/gxclip2.c
index f07002951..61f6893de 100644
--- a/gs/src/gxclip2.c
+++ b/gs/src/gxclip2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Mask clipping for patterns */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxclip2.h b/gs/src/gxclip2.h
index b3f762903..09ed6eda3 100644
--- a/gs/src/gxclip2.h
+++ b/gs/src/gxclip2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Tiled mask clipping device and interface */
#ifndef gxclip2_INCLUDED
diff --git a/gs/src/gxclipm.c b/gs/src/gxclipm.c
index 0bb800835..4aba39579 100644
--- a/gs/src/gxclipm.c
+++ b/gs/src/gxclipm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Mask clipping device */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxclipm.h b/gs/src/gxclipm.h
index 04aaf51b1..f863d2cd4 100644
--- a/gs/src/gxclipm.h
+++ b/gs/src/gxclipm.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for mask clip device */
/* Requires gsstruct.h, gxdevice.h, gxdevmem.h */
#ifndef gxclipm_INCLUDED
diff --git a/gs/src/gxclipsr.h b/gs/src/gxclipsr.h
index d2ab408d3..12e79a58d 100644
--- a/gs/src/gxclipsr.h
+++ b/gs/src/gxclipsr.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internals of clipsave/cliprestore */
#ifndef gxclipsr_INCLUDED
diff --git a/gs/src/gxclist.c b/gs/src/gxclist.c
index 0548c184a..b282b8e21 100644
--- a/gs/src/gxclist.c
+++ b/gs/src/gxclist.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command list document- and page-level code. */
#include "memory_.h"
#include "string_.h"
@@ -46,9 +33,11 @@ ENUM_PTRS_WITH(device_clist_enum_ptrs, gx_device_clist *cdev)
switch (index) {
case 0: return ENUM_OBJ((cdev->writer.image_enum_id != gs_no_id ?
cdev->writer.clip_path : 0));
+ case 1: return ENUM_OBJ((cdev->writer.image_enum_id != gs_no_id ?
+ cdev->writer.color_space.space : 0));
default:
return ENUM_USING(st_imager_state, &cdev->writer.imager_state,
- sizeof(gs_imager_state), index - 1);
+ sizeof(gs_imager_state), index - 2);
}
ENUM_PTRS_END
private
@@ -57,8 +46,10 @@ RELOC_PTRS_WITH(device_clist_reloc_ptrs, gx_device_clist *cdev)
RELOC_PREFIX(st_device_forward);
if (!CLIST_IS_WRITER(cdev))
return;
- if (cdev->writer.image_enum_id != gs_no_id)
+ if (cdev->writer.image_enum_id != gs_no_id) {
RELOC_VAR(cdev->writer.clip_path);
+ RELOC_VAR(cdev->writer.color_space.space);
+ }
RELOC_USING(st_imager_state, &cdev->writer.imager_state,
sizeof(gs_imager_state));
} RELOC_PTRS_END
@@ -372,8 +363,9 @@ clist_reset(gx_device * dev)
cdev->imager_state = clist_imager_state_initial;
cdev->clip_path = NULL;
cdev->clip_path_id = gs_no_id;
- cdev->color_space = 0;
- cdev->color_space_id = gs_no_id;
+ cdev->color_space.byte1 = 0;
+ cdev->color_space.id = gs_no_id;
+ cdev->color_space.space = 0;
{
int i;
diff --git a/gs/src/gxclist.h b/gs/src/gxclist.h
index 49e51f4a1..6933968cc 100644
--- a/gs/src/gxclist.h
+++ b/gs/src/gxclist.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command list definitions for Ghostscript. */
/* Requires gxdevice.h and gxdevmem.h */
@@ -197,6 +184,11 @@ typedef struct gx_device_clist_common_s {
#define cmd_max_dash 11
/* Define the state of a band list when writing. */
+typedef struct clist_color_space_s {
+ byte byte1; /* see cmd_opv_set_color_space in gxclpath.h */
+ gs_id id; /* space->id for comparisons */
+ const gs_color_space *space;
+} clist_color_space_t;
typedef struct gx_device_clist_writer_s {
gx_device_clist_common_members; /* (must be first) */
int error_code; /* error returned by cmd_put_op */
@@ -221,13 +213,11 @@ typedef struct gx_device_clist_writer_s {
*/
gs_imager_state imager_state; /* current values of imager params */
float dash_pattern[cmd_max_dash]; /* current dash pattern */
- const gx_clip_path *clip_path; /* current clip path */
+ const gx_clip_path *clip_path; /* current clip path, */
+ /* only non-transient for images */
gs_id clip_path_id; /* id of current clip path */
- byte color_space; /* current color space identifier */
- /* (only used for images) */
- gs_id color_space_id; /* ditto */
- gs_indexed_params indexed_params; /* current indexed space parameters */
- /* (ditto) */
+ clist_color_space_t color_space; /* current color space, */
+ /* only used for images */
gs_id transfer_ids[4]; /* ids of transfer maps */
gs_id black_generation_id; /* id of black generation map */
gs_id undercolor_removal_id; /* id of u.c.r. map */
diff --git a/gs/src/gxcllzw.c b/gs/src/gxcllzw.c
index 48ec72ea3..bd8bb156d 100644
--- a/gs/src/gxcllzw.c
+++ b/gs/src/gxcllzw.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* LZW filter initialization for RAM-based band lists */
#include "std.h"
#include "gstypes.h"
diff --git a/gs/src/gxclmem.c b/gs/src/gxclmem.c
index ed85beb67..d05879f34 100644
--- a/gs/src/gxclmem.c
+++ b/gs/src/gxclmem.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RAM-based command list implementation */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxclmem.h b/gs/src/gxclmem.h
index 38283d291..d8f213980 100644
--- a/gs/src/gxclmem.h
+++ b/gs/src/gxclmem.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions and declarations for clist implementation in memory. */
#ifndef gxclmem_INCLUDED
diff --git a/gs/src/gxclpage.c b/gs/src/gxclpage.c
index d5131b20d..f49e9703e 100644
--- a/gs/src/gxclpage.c
+++ b/gs/src/gxclpage.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Page object management */
#include "gdevprn.h"
#include "gxcldev.h"
diff --git a/gs/src/gxclpage.h b/gs/src/gxclpage.h
index 4a12d1427..aac6551d1 100644
--- a/gs/src/gxclpage.h
+++ b/gs/src/gxclpage.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Command list procedures for saved pages */
/* Requires gdevprn.h, gxclist.h */
#ifndef gxclpage_INCLUDED
diff --git a/gs/src/gxclpath.c b/gs/src/gxclpath.c
index af5eaf0bc..7bc54fc1e 100644
--- a/gs/src/gxclpath.c
+++ b/gs/src/gxclpath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Higher-level path operations for band lists */
#include "math_.h"
#include "memory_.h"
@@ -130,10 +117,10 @@ cmd_put_drawing_color(gx_device_clist_writer * cldev, gx_clist_state * pcls,
color0 == gx_no_color_index ?
cldev->color_info.depth : 1);
- if (tile->id == gx_no_bitmap_id )
- return_error(-1); /* can't cache */
+ if (tile->id == gx_no_bitmap_id)
+ return_error(-1); /* can't cache tile */
if ((code = clist_change_tile(cldev, pcls, tile, depth)) < 0)
- return code; /* caching of tile unsuccesful */
+ return code;
}
if (color1 != pcls->tile_colors[1] ||
color0 != pcls->tile_colors[0]
@@ -196,7 +183,7 @@ cmd_put_drawing_color(gx_device_clist_writer * cldev, gx_clist_state * pcls,
memcpy(dp + 1, buf, bp - buf);
type = cmd_dc_type_color;
} else
- return_error(-1);
+ return_error(-1); /* the color type was not known - unknown error */
/* Any non-pure color will require the phase. */
{
int px = pdcolor->phase.x, py = pdcolor->phase.y;
@@ -465,34 +452,35 @@ cmd_write_unknown(gx_device_clist_writer * cldev, gx_clist_state * pcls,
if (unknown & color_space_known) {
byte *dp;
- if (cldev->color_space & 8) { /* indexed */
- uint num_values = (cldev->indexed_params.hival + 1) *
+ if (cldev->color_space.byte1 & 8) { /* indexed */
+ const gs_color_space *pcs = cldev->color_space.space;
+ int hival = pcs->params.indexed.hival;
+ uint num_values = (hival + 1) *
gs_color_space_num_components(
- (const gs_color_space *)&cldev->indexed_params.base_space);
- bool use_proc = cldev->color_space & 4;
+ (const gs_color_space *)&pcs->params.indexed.base_space);
+ bool use_proc = cldev->color_space.byte1 & 4;
const void *map_data;
uint map_size;
if (use_proc) {
- map_data = cldev->indexed_params.lookup.map->values;
+ map_data = pcs->params.indexed.lookup.map->values;
map_size = num_values *
- sizeof(cldev->indexed_params.lookup.map->values[0]);
+ sizeof(pcs->params.indexed.lookup.map->values[0]);
} else {
- map_data = cldev->indexed_params.lookup.table.data;
+ map_data = pcs->params.indexed.lookup.table.data;
map_size = num_values;
}
code = set_cmd_put_op(dp, cldev, pcls, cmd_opv_set_color_space,
- 2 + cmd_sizew(cldev->indexed_params.hival) + map_size);
+ 2 + cmd_sizew(hival) + map_size);
if (code < 0)
return code;
- memcpy(cmd_put_w(cldev->indexed_params.hival, dp + 2),
- map_data, map_size);
+ memcpy(cmd_put_w(hival, dp + 2), map_data, map_size);
} else {
code = set_cmd_put_op(dp, cldev, pcls, cmd_opv_set_color_space, 2);
if (code < 0)
return code;
}
- dp[1] = cldev->color_space;
+ dp[1] = cldev->color_space.byte1;
pcls->known |= color_space_known;
}
return 0;
@@ -734,15 +722,18 @@ clist_stroke_path(gx_device * dev, const gs_imager_state * pis, gx_path * ppath,
* outside the clipping region, because that would throw off
* the pattern.
*/
- if (pattern_size == 0)
- ymin = int2fixed(max(y - adjust_y, y0)),
- ymax = int2fixed(min(y + height + adjust_y, y1));
- else
- ymin = min_fixed,
- ymax = max_fixed;
+ if (pattern_size == 0) {
+ fixed expand = adjust_y + expansion.y;
+
+ ymin = int2fixed(max(y - expand, y0));
+ ymax = int2fixed(min(y + height + expand, y1));
+ } else {
+ ymin = min_fixed;
+ ymax = max_fixed;
+ }
code = cmd_put_path(cdev, pcls, ppath, ymin, ymax,
cmd_opv_stroke + code, /* cmd_dc_type */
- false, (segment_notes) ~ 0);
+ false, (segment_notes)~0);
if (code < 0)
return code;
}
@@ -1302,7 +1293,8 @@ cmd_put_path(gx_device_clist_writer * cldev, gx_clist_state * pcls,
((prev.A == 0 &&
A == prev.E && C == prev.C && E == prev.A &&
B == -prev.F && D == -prev.D && F == -prev.B) ||
- (A == -prev.E && C == -prev.C && E == -prev.A &&
+ (prev.A != 0 &&
+ A == -prev.E && C == -prev.C && E == -prev.A &&
B == prev.F && D == prev.D && F == prev.B))
)
op = cmd_opv_scurveto;
diff --git a/gs/src/gxclpath.h b/gs/src/gxclpath.h
index f65fce476..90ae5d96f 100644
--- a/gs/src/gxclpath.h
+++ b/gs/src/gxclpath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions and support procedures for higher-level band list commands */
/* Extends (requires) gxcldev.h */
#ifndef gxclpath_INCLUDED
diff --git a/gs/src/gxclrast.c b/gs/src/gxclrast.c
index 30cb75ae8..41edbfcd4 100644
--- a/gs/src/gxclrast.c
+++ b/gs/src/gxclrast.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command list interpreter/rasterizer */
#include "memory_.h"
#include "gx.h"
@@ -2515,10 +2502,10 @@ vhc: E = B + D, F = D = A + C, C = B, B = A, A = 0;
/* See gxclpath.h for details on the following. */
if (A == 0) {
- /* Previous curve was vh */
+ /* Previous curve was vh or vv */
A = E - C, B = D - F, C = C - a, D = b - D, E = a, F = -b;
} else {
- /* Previous curve was hv */
+ /* Previous curve was hv or hh */
A = C - E, B = F - D, C = a - C, D = D - b, E = -a, F = b;
}
}
diff --git a/gs/src/gxclread.c b/gs/src/gxclread.c
index 3eeaddc88..52033a502 100644
--- a/gs/src/gxclread.c
+++ b/gs/src/gxclread.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command list reading for Ghostscript. */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxclrect.c b/gs/src/gxclrect.c
index 723c51e76..0cf0a71c7 100644
--- a/gs/src/gxclrect.c
+++ b/gs/src/gxclrect.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Rectangle-oriented command writing for command list */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gxclutil.c b/gs/src/gxclutil.c
index 5f7b4e1e1..328caa5e3 100644
--- a/gs/src/gxclutil.c
+++ b/gs/src/gxclutil.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command list writing utilities. */
#include "memory_.h"
diff --git a/gs/src/gxclzlib.c b/gs/src/gxclzlib.c
index 3252f3af4..eb44b8077 100644
--- a/gs/src/gxclzlib.c
+++ b/gs/src/gxclzlib.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* zlib filter initialization for RAM-based band lists */
/* Must be compiled with -I$(ZSRCDIR) */
#include "std.h"
diff --git a/gs/src/gxcmap.c b/gs/src/gxcmap.c
index a22a08555..6bf1d1cd7 100644
--- a/gs/src/gxcmap.c
+++ b/gs/src/gxcmap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color mapping for Ghostscript */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gxcmap.h b/gs/src/gxcmap.h
index cd66c2cf4..2f3c9b8b1 100644
--- a/gs/src/gxcmap.h
+++ b/gs/src/gxcmap.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Color mapping procedures */
/* Requires gxdcolor.h. */
#ifndef gxcmap_INCLUDED
diff --git a/gs/src/gxcolor2.h b/gs/src/gxcolor2.h
index 668a82631..1d9cd73b5 100644
--- a/gs/src/gxcolor2.h
+++ b/gs/src/gxcolor2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for Level 2 color routines */
/* Requires gsstruct.h, gxfixed.h */
diff --git a/gs/src/gxcomp.h b/gs/src/gxcomp.h
index 9f142ef5e..c784fbf13 100644
--- a/gs/src/gxcomp.h
+++ b/gs/src/gxcomp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for implementing compositing functions */
#ifndef gxcomp_INCLUDED
diff --git a/gs/src/gxcoord.h b/gs/src/gxcoord.h
index 6e22820f6..7b4c02c89 100644
--- a/gs/src/gxcoord.h
+++ b/gs/src/gxcoord.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Internal graphics state CTM procedures */
/* Requires gxmatrix.h and gzstate.h */
#ifndef gxcoord_INCLUDED
diff --git a/gs/src/gxcpath.c b/gs/src/gxcpath.c
index 591099631..4223807eb 100644
--- a/gs/src/gxcpath.c
+++ b/gs/src/gxcpath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation of clipping paths, other than actual clipping */
#include "gx.h"
#include "gserrors.h"
@@ -515,9 +502,9 @@ gx_cpath_intersect(gx_clip_path *pcpath, /*const*/ gx_path *ppath_orig,
/* Use the user space origin (arbitrarily). */
new_box.p.x = float2fixed(pis->ctm.tx);
new_box.p.y = float2fixed(pis->ctm.ty);
- changed = true;
}
new_box.q = new_box.p;
+ changed = true;
} else {
/* Intersect the two rectangles if necessary. */
if (old_box.p.x > new_box.p.x)
@@ -529,10 +516,8 @@ gx_cpath_intersect(gx_clip_path *pcpath, /*const*/ gx_path *ppath_orig,
if (old_box.q.y < new_box.q.y)
new_box.q.y = old_box.q.y, changed = true;
/* Check for a degenerate rectangle. */
- if (new_box.q.x < new_box.p.x)
- new_box.q.x = new_box.p.x;
- if (new_box.q.y < new_box.p.y)
- new_box.q.y = new_box.p.y;
+ if (new_box.q.x < new_box.p.x || new_box.q.y < new_box.p.y)
+ new_box.p = new_box.q, changed = true;
}
if (changed) {
/* Defer constructing the path. */
@@ -637,8 +622,13 @@ gx_clip_list_from_rectangle(register gx_clip_list * clp,
}
clp->single.xmin = clp->xmin = fixed2int_var(rp->p.x);
clp->single.ymin = fixed2int_var(rp->p.y);
- clp->single.xmax = clp->xmax = fixed2int_var_ceiling(rp->q.x);
- clp->single.ymax = fixed2int_var_ceiling(rp->q.y);
+ /* Handle degenerate rectangles specially. */
+ clp->single.xmax = clp->xmax =
+ (rp->q.x == rp->p.x ? clp->single.xmin :
+ fixed2int_var_ceiling(rp->q.x));
+ clp->single.ymax =
+ (rp->q.y == rp->p.y ? clp->single.ymin :
+ fixed2int_var_ceiling(rp->q.y));
clp->count = 1;
}
diff --git a/gs/src/gxcpath.h b/gs/src/gxcpath.h
index c18059bc4..ed824c59a 100644
--- a/gs/src/gxcpath.h
+++ b/gs/src/gxcpath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1991, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for clipping lists and devices */
/* Requires gxdevice.h */
#ifndef gxcpath_INCLUDED
diff --git a/gs/src/gxcspace.h b/gs/src/gxcspace.h
index c261466d2..2705bd911 100644
--- a/gs/src/gxcspace.h
+++ b/gs/src/gxcspace.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation of color spaces */
/* Requires gsstruct.h */
diff --git a/gs/src/gxctable.c b/gs/src/gxctable.c
index be792ea10..0e1423dbf 100644
--- a/gs/src/gxctable.c
+++ b/gs/src/gxctable.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color table lookup and interpolation */
#include "gx.h"
#include "gxfixed.h"
diff --git a/gs/src/gxctable.h b/gs/src/gxctable.h
index 0bf19a05b..2c13a389b 100644
--- a/gs/src/gxctable.h
+++ b/gs/src/gxctable.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to color table lookup and interpolation */
#ifndef gxctable_INCLUDED
diff --git a/gs/src/gxcvalue.h b/gs/src/gxcvalue.h
index b885c2b4d..0b1c6ce84 100644
--- a/gs/src/gxcvalue.h
+++ b/gs/src/gxcvalue.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of device color values */
#ifndef gxcvalue_INCLUDED
diff --git a/gs/src/gxdcconv.c b/gs/src/gxdcconv.c
index 41ea0d5f3..966e450ef 100644
--- a/gs/src/gxdcconv.c
+++ b/gs/src/gxdcconv.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Conversion between device color spaces for Ghostscript */
#include "gx.h"
#include "gsdcolor.h" /* for gxcmap.h */
diff --git a/gs/src/gxdcconv.h b/gs/src/gxdcconv.h
index 9b4dbdadb..f6287f19c 100644
--- a/gs/src/gxdcconv.h
+++ b/gs/src/gxdcconv.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal device color conversion interfaces */
#ifndef gxdcconv_INCLUDED
diff --git a/gs/src/gxdcolor.c b/gs/src/gxdcolor.c
index 1d1c4fa06..09c1840c7 100644
--- a/gs/src/gxdcolor.c
+++ b/gs/src/gxdcolor.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Pure and null device color implementation */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gxdcolor.h b/gs/src/gxdcolor.h
index b581d7069..84d6962b9 100644
--- a/gs/src/gxdcolor.h
+++ b/gs/src/gxdcolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Device color representation for Ghostscript */
#ifndef gxdcolor_INCLUDED
diff --git a/gs/src/gxdda.h b/gs/src/gxdda.h
index 52269acd2..41881149f 100644
--- a/gs/src/gxdda.h
+++ b/gs/src/gxdda.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for DDAs */
/* Requires gxfixed.h */
#ifndef gxdda_INCLUDED
diff --git a/gs/src/gxdevbuf.h b/gs/src/gxdevbuf.h
index 52afa68a9..7399226ac 100644
--- a/gs/src/gxdevbuf.h
+++ b/gs/src/gxdevbuf.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for device buffer management */
#ifndef gxdevbuf_INCLUDED
diff --git a/gs/src/gxdevcli.h b/gs/src/gxdevcli.h
index 0ab6f07fa..4c6b8dadf 100644
--- a/gs/src/gxdevcli.h
+++ b/gs/src/gxdevcli.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for device clients */
#ifndef gxdevcli_INCLUDED
diff --git a/gs/src/gxdevice.h b/gs/src/gxdevice.h
index 013a9be49..0d0385c9b 100644
--- a/gs/src/gxdevice.h
+++ b/gs/src/gxdevice.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for device implementors */
#ifndef gxdevice_INCLUDED
diff --git a/gs/src/gxdevmem.h b/gs/src/gxdevmem.h
index fdd6955d1..0ec93bf29 100644
--- a/gs/src/gxdevmem.h
+++ b/gs/src/gxdevmem.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Structure and procedures for memory devices */
/* Requires gxdevice.h */
#ifndef gxdevmem_INCLUDED
diff --git a/gs/src/gxdevrop.h b/gs/src/gxdevrop.h
index fe8b90f63..7b3f3ae79 100644
--- a/gs/src/gxdevrop.h
+++ b/gs/src/gxdevrop.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Extension of gxdevice.h for RasterOp */
#ifndef gxdevrop_INCLUDED
diff --git a/gs/src/gxdht.h b/gs/src/gxdht.h
index 168b533f3..182475542 100644
--- a/gs/src/gxdht.h
+++ b/gs/src/gxdht.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of device halftones */
#ifndef gxdht_INCLUDED
diff --git a/gs/src/gxdhtres.h b/gs/src/gxdhtres.h
index f66f52823..1e6ceda51 100644
--- a/gs/src/gxdhtres.h
+++ b/gs/src/gxdhtres.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for precompiled halftone resources */
#ifndef gxdhtres_INCLUDED
diff --git a/gs/src/gxdither.c b/gs/src/gxdither.c
index ee2300130..f50b61afe 100644
--- a/gs/src/gxdither.c
+++ b/gs/src/gxdither.c
@@ -1,22 +1,9 @@
-/* Copyright (C) 1989, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
#include "gx.h"
#include "gsstruct.h"
#include "gsdcolor.h"
@@ -27,6 +14,8 @@
#include "gzht.h"
/*
+ * Binary halftoning algorithms.
+ *
* The procedures in this file use halftoning (if necessary)
* to implement a given device color that has already gone through
* the transfer function. There are two major cases: gray and color.
@@ -314,12 +303,11 @@ gx_render_device_color(frac red, frac green, frac blue, frac white, bool cmyk,
/* Dithering is required. Choose between two algorithms. */
- if (pdht->components != 0 && dev->color_info.depth >= 4) {
- /* Someone went to the trouble of setting different */
- /* screens for the different components. */
+ if (dev->color_info.num_components >= 4) {
+ /* This is a CMYK device. */
/* Use the slow, general colored halftone algorithm. */
#define RGB_REM(rem_v, i)\
- (rem_v * (ulong)(pdht->components[pdht->color_indices[i]].corder.num_levels) / frac_1)
+ (rem_v * (ulong)(pdht->components ? pdht->components[pdht->color_indices[i]].corder.num_levels : num_levels) / frac_1)
uint lr = RGB_REM(rem_r, 0), lg = RGB_REM(rem_g, 1),
lb = RGB_REM(rem_b, 2);
@@ -376,7 +364,7 @@ gx_render_device_color(frac red, frac green, frac blue, frac white, bool cmyk,
if (cmyk) {
if (rem_w > half)
rem_w = frac_1 - rem_w,
- adjust_w = -1, b++, lum_invert += lum_white_weight * 2;
+ adjust_w = -1, w++, lum_invert += lum_white_weight * 2;
else
adjust_w = 1;
vw = fractional_color(w, max_value);
diff --git a/gs/src/gxdither.h b/gs/src/gxdither.h
index 145c6b331..dedc1696b 100644
--- a/gs/src/gxdither.h
+++ b/gs/src/gxdither.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to gxdither.c */
#ifndef gxdither_INCLUDED
diff --git a/gs/src/gxfarith.h b/gs/src/gxfarith.h
index 1c7edeaf8..fa4371f2e 100644
--- a/gs/src/gxfarith.h
+++ b/gs/src/gxfarith.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Floating point arithmetic macros for Ghostscript library */
#ifndef gxfarith_INCLUDED
diff --git a/gs/src/gxfcache.h b/gs/src/gxfcache.h
index bd0517f33..57d9b1cff 100644
--- a/gs/src/gxfcache.h
+++ b/gs/src/gxfcache.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1992, 1995, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Font and character cache definitions and procedures */
/* Requires gsfont.h */
#ifndef gxfcache_INCLUDED
diff --git a/gs/src/gxfcmap.h b/gs/src/gxfcmap.h
index 5154da9eb..7eff59846 100644
--- a/gs/src/gxfcmap.h
+++ b/gs/src/gxfcmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal CMap data definition */
/* This file should be called gxcmap.h, except that name is already used. */
diff --git a/gs/src/gxfill.c b/gs/src/gxfill.c
index 09f8aff43..bd99cac7a 100644
--- a/gs/src/gxfill.c
+++ b/gs/src/gxfill.c
@@ -1,24 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Lower-level path filling procedures */
-#include "math_.h" /* for floor in fixed_mult_quo */
#include "gx.h"
#include "gserrors.h"
#include "gsstruct.h"
@@ -45,17 +31,34 @@ struct active_line_s {
#define al_dx(alp) ((alp)->diff.x)
#define al_dy(alp) ((alp)->diff.y)
fixed y_fast_max; /* can do x_at_y in fixed point */
- /* if y <= y_fast_max */
+ /* if y <= y_fast_max */
+ fixed num_adjust; /* 0 if diff.x >= 0, -diff.y + epsilon if */
+ /* diff.x < 0 and division truncates */
+#if ARCH_DIV_NEG_POS_TRUNCATES
+ /* neg/pos truncates, we must bias the numberator. */
+# define SET_NUM_ADJUST(alp) \
+ (alp)->num_adjust =\
+ ((alp)->diff.x >= 0 ? 0 : -(alp)->diff.y + fixed_epsilon)
+# define ADD_NUM_ADJUST(num, alp) ((num) + (alp)->num_adjust)
+#else
+ /* neg/pos takes the floor, no special action is needed. */
+# define SET_NUM_ADJUST(alp) DO_NOTHING
+# define ADD_NUM_ADJUST(num, alp) (num)
+#endif
#define set_al_points(alp, startp, endp)\
- (alp)->diff.x = (endp).x - (startp).x,\
- (alp)->y_fast_max = max_fixed /\
- (((alp)->diff.x >= 0 ? (alp)->diff.x : -(alp)->diff.x) | 1) + (startp).y,\
- (alp)->diff.y = (endp).y - (startp).y,\
- (alp)->start = startp, (alp)->end = endp
+ BEGIN\
+ (alp)->diff.y = (endp).y - (startp).y;\
+ (alp)->diff.x = (endp).x - (startp).x;\
+ SET_NUM_ADJUST(alp);\
+ (alp)->y_fast_max = max_fixed /\
+ (((alp)->diff.x >= 0 ? (alp)->diff.x : -(alp)->diff.x) | 1) +\
+ (startp).y;\
+ (alp)->start = startp, (alp)->end = endp;\
+ END
#define al_x_at_y(alp, yv)\
((yv) == (alp)->end.y ? (alp)->end.x :\
((yv) <= (alp)->y_fast_max ?\
- ((yv) - (alp)->start.y) * al_dx(alp) / al_dy(alp) :\
+ ADD_NUM_ADJUST(((yv) - (alp)->start.y) * al_dx(alp), alp) / al_dy(alp) :\
(INCR_EXPR(slow_x),\
fixed_mult_quo(al_dx(alp), (yv) - (alp)->start.y, al_dy(alp)))) +\
(alp)->start.x)
@@ -190,8 +193,9 @@ private fill_loop_proc(fill_loop_by_trapezoids);
#ifdef DEBUG
struct stats_fill_s {
long
- fill, fill_alloc, y_up, y_down, horiz, x_step, slow_x, iter, find_y,
- band, band_step, band_fill, afill, slant, slant_shallow, sfill;
+ fill, fill_alloc, y_up, y_down, horiz, x_step, slow_x, iter, find_y,
+ band, band_step, band_fill, afill, slant, slant_shallow, sfill,
+ mq_cross;
} stats_fill;
# define INCR(x) (++(stats_fill.x))
@@ -228,14 +232,20 @@ struct stats_fill_s {
void
gx_adjust_if_empty(const gs_fixed_rect * pbox, gs_fixed_point * adjust)
{
+ /*
+ * For extremely large coordinates, the obvious subtractions could
+ * overflow. We can work around this easily by noting that since
+ * we know q.{x,y} >= p.{x,y}, the subtraction overflows iff the
+ * result is negative.
+ */
const fixed
dx = pbox->q.x - pbox->p.x, dy = pbox->q.y - pbox->p.y;
- if (dx < fixed_half && dy >= int2fixed(2)) {
+ if (dx < fixed_half && dx > 0 && (dy >= int2fixed(2) || dy < 0)) {
adjust->x = arith_rshift_1(fixed_1 + fixed_epsilon - dx);
if_debug1('f', "[f]thin adjust_x=%g\n",
fixed2float(adjust->x));
- } else if (dy < fixed_half && dx >= int2fixed(2)) {
+ } else if (dy < fixed_half && dy > 0 && (dx >= int2fixed(2) || dx < 0)) {
adjust->y = arith_rshift_1(fixed_1 + fixed_epsilon - dy);
if_debug1('f', "[f]thin adjust_y=%g\n",
fixed2float(adjust->y));
@@ -1209,7 +1219,7 @@ fill_loop_by_trapezoids(ll_ptr ll, gx_device * dev,
y_new =
((dy | dx_old) < 1L << (size_of(fixed) * 4 - 1) ?
dy * dx_old / dx_den :
- fixed_mult_quo(dy, dx_old, dx_den))
+ (INCR_EXPR(mq_cross), fixed_mult_quo(dy, dx_old, dx_den)))
+ y;
/* The crossing value doesn't have to be */
/* very accurate, but it does have to be */
diff --git a/gs/src/gxfixed.h b/gs/src/gxfixed.h
index 9d094a11e..8ad9571d4 100644
--- a/gs/src/gxfixed.h
+++ b/gs/src/gxfixed.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Fixed-point arithmetic for Ghostscript */
#ifndef gxfixed_INCLUDED
diff --git a/gs/src/gxfmap.h b/gs/src/gxfmap.h
index 776a9f9ac..c8c01d9ab 100644
--- a/gs/src/gxfmap.h
+++ b/gs/src/gxfmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Fraction map representation for Ghostscript */
#ifndef gxfmap_INCLUDED
diff --git a/gs/src/gxfont.h b/gs/src/gxfont.h
index 4f7349da0..5e0a1f632 100644
--- a/gs/src/gxfont.h
+++ b/gs/src/gxfont.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Font object structure */
/* Requires gsmatrix.h, gxdevice.h */
#ifndef gxfont_INCLUDED
@@ -59,6 +47,9 @@ typedef struct gx_path_s gx_path;
*/
typedef struct gs_font_info_s {
int members;
+
+ /* The following members exactly parallel the PDF FontDescriptor flags. */
+
#define FONT_INFO_ASCENT 0x0001
int Ascent;
#define FONT_INFO_AVG_WIDTH 0x0002
@@ -91,6 +82,18 @@ typedef struct gs_font_info_s {
int UnderlineThickness;
#define FONT_INFO_X_HEIGHT 0x00100000
int XHeight;
+
+ /* The following members do NOT appear in the PDF FontDescriptor. */
+
+#define FONT_INFO_COPYRIGHT 0x0040
+ gs_const_string Copyright;
+#define FONT_INFO_NOTICE 0x0080
+ gs_const_string Notice;
+#define FONT_INFO_FAMILY_NAME 0x1000
+ gs_const_string FamilyName;
+#define FONT_INFO_FULL_NAME 0x2000
+ gs_const_string FullName;
+
} gs_font_info_t;
/*
@@ -150,6 +153,22 @@ typedef struct gs_font_procs_s {
gs_font_info_t *info))
font_proc_font_info((*font_info));
+ /*
+ * Determine whether this font is the "same as" another font in the ways
+ * specified by the mask. The returned value is a subset of the mask.
+ * This procedure is allowed to be conservative (return false in cases
+ * of uncertainty). Note that this procedure does not test the UniqueID
+ * or FontMatrix.
+ */
+
+#define FONT_SAME_OUTLINES 1
+#define FONT_SAME_METRICS 2
+#define FONT_SAME_ENCODING 4
+
+#define font_proc_same_font(proc)\
+ int proc(P3(const gs_font *font, const gs_font *ofont, int mask))
+ font_proc_same_font((*same_font));
+
/* ------ Glyph-level procedures ------ */
/* Map a character code to a glyph. Some PostScript fonts use both
@@ -252,6 +271,8 @@ font_proc_define_font(gs_no_define_font);
font_proc_make_font(gs_no_make_font);
font_proc_make_font(gs_base_make_font);
font_proc_font_info(gs_default_font_info);
+font_proc_same_font(gs_default_same_font);
+font_proc_same_font(gs_base_same_font);
/* Default glyph-level font procedures in gsfont.c */
font_proc_encode_char(gs_no_encode_char);
font_proc_enumerate_glyph(gs_no_enumerate_glyph);
@@ -285,6 +306,7 @@ typedef struct gs_font_name_s {
/* scaled font cache */\
gs_memory_t *memory; /* allocator for this font */\
gs_font_dir *dir; /* directory where registered */\
+ bool is_resource;\
gs_notify_list_t notify_list; /* clients to notify when freeing */\
gs_id id; /* internal ID (no relation to UID) */\
gs_font *base; /* original (unscaled) base font */\
diff --git a/gs/src/gxfont0.h b/gs/src/gxfont0.h
index 501dcedde..4d5707ab3 100644
--- a/gs/src/gxfont0.h
+++ b/gs/src/gxfont0.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 0 (composite) font data definition */
#ifndef gxfont0_INCLUDED
diff --git a/gs/src/gxfont1.h b/gs/src/gxfont1.h
index 0382f6c91..0f72448bd 100644
--- a/gs/src/gxfont1.h
+++ b/gs/src/gxfont1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 1 / Type 2 font data definition */
#ifndef gxfont1_INCLUDED
@@ -147,4 +134,7 @@ extern_st(st_gs_font_type1);
"gs_font_type1", font_type1_enum_ptrs, font_type1_reloc_ptrs,\
gs_font_finalize, st_gs_font_base, data.proc_data)
+/* Export font procedures so they can be called from the interpreter. */
+font_proc_glyph_info(gs_type1_glyph_info);
+
#endif /* gxfont1_INCLUDED */
diff --git a/gs/src/gxfont42.h b/gs/src/gxfont42.h
index 82878a4bf..18372619d 100644
--- a/gs/src/gxfont42.h
+++ b/gs/src/gxfont42.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 42 font data definition */
#ifndef gxfont42_INCLUDED
diff --git a/gs/src/gxfrac.h b/gs/src/gxfrac.h
index 0ae7dcd70..cb479312a 100644
--- a/gs/src/gxfrac.h
+++ b/gs/src/gxfrac.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Fraction representation for Ghostscript */
#ifndef gxfrac_INCLUDED
diff --git a/gs/src/gxftype.h b/gs/src/gxftype.h
index 1aa55e5cf..1daadc88a 100644
--- a/gs/src/gxftype.h
+++ b/gs/src/gxftype.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of font type and bitmap font behavior */
#ifndef gxftype_INCLUDED
diff --git a/gs/src/gxfunc.h b/gs/src/gxfunc.h
index ed3c3c526..93aece6fe 100644
--- a/gs/src/gxfunc.h
+++ b/gs/src/gxfunc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for Functions */
#ifndef gxfunc_INCLUDED
diff --git a/gs/src/gxgetbit.h b/gs/src/gxgetbit.h
index 497864645..cc8b918bd 100644
--- a/gs/src/gxgetbit.h
+++ b/gs/src/gxgetbit.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface for get_bits_rectangle driver procedure */
#ifndef gxgetbit_INCLUDED
diff --git a/gs/src/gxhint1.c b/gs/src/gxhint1.c
index 26a462afa..c48c211e3 100644
--- a/gs/src/gxhint1.c
+++ b/gs/src/gxhint1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1992, 1993, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Font level hints for Type 1 fonts */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gxhint2.c b/gs/src/gxhint2.c
index f27c4233d..8d0a23237 100644
--- a/gs/src/gxhint2.c
+++ b/gs/src/gxhint2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Character level hints for Type 1 fonts. */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxhint3.c b/gs/src/gxhint3.c
index 1c4bf2632..413185b76 100644
--- a/gs/src/gxhint3.c
+++ b/gs/src/gxhint3.c
@@ -1,24 +1,10 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Apply hints for Type 1 fonts. */
-#include "math_.h" /* for floor in fixed_mult_quo */
#include "gx.h"
#include "gserrors.h"
#include "gxarith.h"
@@ -56,8 +42,11 @@ private void
#define HINT_HORZ_LOWER 4
#define HINT_HORZ_UPPER 8 /* must be > lower */
#define HINT_HORZ (HINT_HORZ_LOWER | HINT_HORZ_UPPER)
-#define NEARLY_AXIAL(dmajor, dminor)\
- ((dminor) <= (dmajor) >> 4)
+private inline bool
+nearly_axial(fixed dmajor, fixed dminor)
+{
+ return (dminor <= dmajor >> 4);
+}
/*
* Determine which types of hints, if any, are applicable to a given
@@ -105,11 +94,11 @@ line_hints(const gs_type1_state * pcis, const gs_fixed_point * p0,
* Note that since upper/lower refer to device space, we must
* interchange them if the corresponding axis is inverted.
*/
- if (dy != 0 && NEARLY_AXIAL(ady, adx)) {
+ if (dy != 0 && nearly_axial(ady, adx)) {
hints = (dy > 0 ? HINT_VERT_UPPER : HINT_VERT_LOWER);
if (xi)
hints ^= (HINT_VERT_LOWER | HINT_VERT_UPPER);
- } else if (dx != 0 && NEARLY_AXIAL(adx, ady)) {
+ } else if (dx != 0 && nearly_axial(adx, ady)) {
hints = (dx < 0 ? HINT_HORZ_UPPER : HINT_HORZ_LOWER);
if (yi)
hints ^= (HINT_HORZ_LOWER | HINT_HORZ_UPPER);
@@ -213,11 +202,11 @@ adjust_curve_start(curve_segment * pcseg, const gs_fixed_point * pdiff)
fixed lx = end_x - (prev->pt.x - dx), ly = end_y - (prev->pt.y - dy);
gs_fixed_point delta;
- delta.x = scale_delta(end_x - pcseg->p1.x, dx, lx, true);
- delta.y = scale_delta(end_y - pcseg->p1.y, dy, ly, true);
+ delta.x = scale_delta(dx, end_x - pcseg->p1.x, lx, true);
+ delta.y = scale_delta(dy, end_y - pcseg->p1.y, ly, true);
add_hint_diff(&pcseg->p1, delta);
- delta.x = scale_delta(end_x - pcseg->p2.x, dx, lx, false);
- delta.y = scale_delta(end_y - pcseg->p2.y, dy, ly, false);
+ delta.x = scale_delta(dx, end_x - pcseg->p2.x, lx, false);
+ delta.y = scale_delta(dy, end_y - pcseg->p2.y, ly, false);
add_hint_diff(&pcseg->p2, delta);
}
private void
@@ -229,11 +218,11 @@ adjust_curve_end(curve_segment * pcseg, const gs_fixed_point * pdiff)
fixed lx = pcseg->pt.x - dx - start_x, ly = pcseg->pt.y - dy - start_y;
gs_fixed_point delta;
- delta.x = scale_delta(pcseg->p1.x - start_x, dx, lx, false);
- delta.y = scale_delta(pcseg->p1.y - start_y, dy, ly, false);
+ delta.x = scale_delta(dx, pcseg->p1.x - start_x, lx, false);
+ delta.y = scale_delta(dy, pcseg->p1.y - start_y, ly, false);
add_hint_diff(&pcseg->p1, delta);
- delta.x = scale_delta(pcseg->p2.x - start_x, dx, lx, true);
- delta.y = scale_delta(pcseg->p2.y - start_y, dy, ly, true);
+ delta.x = scale_delta(dx, pcseg->p2.x - start_x, lx, true);
+ delta.y = scale_delta(dy, pcseg->p2.y - start_y, ly, true);
add_hint_diff(&pcseg->p2, delta);
}
diff --git a/gs/src/gxht.c b/gs/src/gxht.c
index a06ae3fbd..f99619b4e 100644
--- a/gs/src/gxht.c
+++ b/gs/src/gxht.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Halftone rendering for imaging library */
#include "memory_.h"
#include "gx.h"
@@ -435,6 +422,8 @@ gx_ht_init_cache(gx_ht_cache * pcache, const gx_ht_order * porder)
}
pcache->base_id = gs_next_ids(porder->num_levels + 1);
pcache->order = *porder;
+ /* The transfer function is irrelevant, and might become dangling. */
+ pcache->order.transfer = 0;
pcache->num_cached = num_cached;
pcache->levels_per_tile = (size + num_cached - 1) / num_cached;
pcache->tiles_fit = -1;
diff --git a/gs/src/gxht.h b/gs/src/gxht.h
index 8b170b5a7..e1297095a 100644
--- a/gs/src/gxht.h
+++ b/gs/src/gxht.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Rest of (client) halftone definitions */
#ifndef gxht_INCLUDED
diff --git a/gs/src/gxhtbit.c b/gs/src/gxhtbit.c
index a3ba9aa73..df8794344 100644
--- a/gs/src/gxhtbit.c
+++ b/gs/src/gxhtbit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Halftone bit updating for imaging library */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxhttile.h b/gs/src/gxhttile.h
index eb9cc627c..6c911e469 100644
--- a/gs/src/gxhttile.h
+++ b/gs/src/gxhttile.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Halftone tile definition */
/* Requires gxbitmap.h */
diff --git a/gs/src/gxhttype.h b/gs/src/gxhttype.h
index 369b57513..510a5ca35 100644
--- a/gs/src/gxhttype.h
+++ b/gs/src/gxhttype.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Client halftone type enumeration */
#ifndef gxhttype_INCLUDED
diff --git a/gs/src/gxi12bit.c b/gs/src/gxi12bit.c
index 9420609a7..627814fd0 100644
--- a/gs/src/gxi12bit.c
+++ b/gs/src/gxi12bit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* 12-bit image procedures */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gxiclass.h b/gs/src/gxiclass.h
index da0921038..ca50e280a 100644
--- a/gs/src/gxiclass.h
+++ b/gs/src/gxiclass.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Define image rendering algorithm classes */
#ifndef gxiclass_INCLUDED
diff --git a/gs/src/gxicolor.c b/gs/src/gxicolor.c
index a1ca0bb35..3fd088483 100644
--- a/gs/src/gxicolor.c
+++ b/gs/src/gxicolor.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color image rendering */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gxidata.c b/gs/src/gxidata.c
index b86fb0e4b..66f0fe690 100644
--- a/gs/src/gxidata.c
+++ b/gs/src/gxidata.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic image enumeration and cleanup */
#include "gx.h"
#include "memory_.h"
@@ -30,6 +17,7 @@ private void repack_bit_planes(P7(const gx_image_plane_t *src_planes,
const ulong *offsets, int num_planes,
byte *buffer, int width,
const sample_lookup_t * ptab, int spread));
+private gx_device *setup_image_device(P1(const gx_image_enum *penum));
/* Process the next piece of an ImageType 1 image. */
int
@@ -37,8 +25,8 @@ gx_image1_plane_data(gx_image_enum_common_t * info,
const gx_image_plane_t * planes, int height,
int *rows_used)
{
- gx_device *dev = info->dev;
gx_image_enum *penum = (gx_image_enum *) info;
+ gx_device *dev;
const int y = penum->y;
int y_end = min(y + height, penum->rect.h);
int width_spp = penum->rect.w * penum->spp;
@@ -58,21 +46,8 @@ gx_image1_plane_data(gx_image_enum_common_t * info,
*rows_used = 0;
return 0;
}
+ dev = setup_image_device(penum);
- /* Set up the clipping and/or RasterOp device if needed. */
-
- if (penum->clip_dev) {
- gx_device_clip *cdev = penum->clip_dev;
-
- gx_device_set_target((gx_device_forward *)cdev, dev);
- dev = (gx_device *) cdev;
- }
- if (penum->rop_dev) {
- gx_device_rop_texture *rtdev = penum->rop_dev;
-
- gx_device_set_target((gx_device_forward *)rtdev, dev);
- dev = (gx_device *) rtdev;
- }
/* Now render complete rows. */
if (penum->used.y) {
@@ -284,7 +259,8 @@ gx_image1_flush(gx_image_enum_common_t * info)
dda_translate(penum->dda.pixel0.x, penum->cur.x - penum->prev.x);
dda_translate(penum->dda.pixel0.y, penum->cur.y - penum->prev.y);
penum->prev = penum->cur;
- return (*penum->render)(penum, NULL, 0, width_spp, 0, penum->dev);
+ return (*penum->render)(penum, NULL, 0, width_spp, 0,
+ setup_image_device(penum));
}
/*
@@ -394,6 +370,27 @@ repack_bit_planes(const gx_image_plane_t *src_planes, const ulong *offsets,
}
}
+/* Set up the device for drawing an image. */
+private gx_device *
+setup_image_device(const gx_image_enum *penum)
+{
+ gx_device *dev = penum->dev;
+
+ if (penum->clip_dev) {
+ gx_device_clip *cdev = penum->clip_dev;
+
+ gx_device_set_target((gx_device_forward *)cdev, dev);
+ dev = (gx_device *) cdev;
+ }
+ if (penum->rop_dev) {
+ gx_device_rop_texture *rtdev = penum->rop_dev;
+
+ gx_device_set_target((gx_device_forward *)rtdev, dev);
+ dev = (gx_device *) rtdev;
+ }
+ return dev;
+}
+
/* Clean up by releasing the buffers. */
/* Currently we ignore draw_last. */
int
diff --git a/gs/src/gxifast.c b/gs/src/gxifast.c
index 504b45a49..a29d92a34 100644
--- a/gs/src/gxifast.c
+++ b/gs/src/gxifast.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Fast monochrome image rendering */
#include "gx.h"
#include "memory_.h"
@@ -672,7 +659,7 @@ image_render_landscape(gx_image_enum * penum, const byte * buffer, int data_x,
if (code < 0)
return code;
- penum->line_xy = ix;
+ penum->line_xy = penum->xi_next = ix;
if (h == 0)
return code;
}
diff --git a/gs/src/gximage.c b/gs/src/gximage.c
index 7d2bc4a49..d8cc4e1e0 100644
--- a/gs/src/gximage.c
+++ b/gs/src/gximage.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic image support */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gximage.h b/gs/src/gximage.h
index aec940503..367d40bbb 100644
--- a/gs/src/gximage.h
+++ b/gs/src/gximage.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Default image rendering state structure */
/* Requires gxcpath.h, gxdevmem.h, gxdcolor.h, gzpath.h */
#ifndef gximage_INCLUDED
diff --git a/gs/src/gximage1.c b/gs/src/gximage1.c
index f85a96557..02473f6eb 100644
--- a/gs/src/gximage1.c
+++ b/gs/src/gximage1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ImageType 1 initialization */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gximage2.c b/gs/src/gximage2.c
index 661fe27e8..3884697ca 100644
--- a/gs/src/gximage2.c
+++ b/gs/src/gximage2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ImageType 2 image implementation */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gximage3.c b/gs/src/gximage3.c
index b75a6ac91..77c2f5043 100644
--- a/gs/src/gximage3.c
+++ b/gs/src/gximage3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ImageType 3 image implementation */
#include "math_.h" /* for ceil, floor */
#include "memory_.h"
@@ -40,7 +27,6 @@ private image_enum_proc_flush(gx_image3_flush);
private image_enum_proc_planes_wanted(gx_image3_planes_wanted);
/* GC descriptor */
-extern_st(st_gs_pixel_image);
public_st_gs_image3();
/* Define the image type for ImageType 3 images. */
diff --git a/gs/src/gximage4.c b/gs/src/gximage4.c
index 8d7bf72a2..5c7aabd1e 100644
--- a/gs/src/gximage4.c
+++ b/gs/src/gximage4.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ImageType 4 image implementation */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gximono.c b/gs/src/gximono.c
index 17b4b1c62..27766afed 100644
--- a/gs/src/gximono.c
+++ b/gs/src/gximono.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* General mono-component image rendering */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/gxino12b.c b/gs/src/gxino12b.c
index 67e800af7..6a645e97d 100644
--- a/gs/src/gxino12b.c
+++ b/gs/src/gxino12b.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dummy 12-bit image procedure */
#include "std.h"
#include "gstypes.h"
diff --git a/gs/src/gxiodev.h b/gs/src/gxiodev.h
index 7ef1c606f..0714b2cbb 100644
--- a/gs/src/gxiodev.h
+++ b/gs/src/gxiodev.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Structure and default implementation of IODvices */
/* Requires gsmemory.h */
#ifndef gxiodev_INCLUDED
diff --git a/gs/src/gxiparam.h b/gs/src/gxiparam.h
index c1bdf8812..324b45f41 100644
--- a/gs/src/gxiparam.h
+++ b/gs/src/gxiparam.h
@@ -1,27 +1,15 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for implementors of image types */
#ifndef gxiparam_INCLUDED
# define gxiparam_INCLUDED
+#include "gsstype.h" /* for extern_st */
#include "gxdevcli.h"
/* ---------------- Image types ---------------- */
@@ -215,7 +203,7 @@ struct gx_image_enum_common_s {
gx_image_enum_common;
};
-/*extern_st(st_gx_image_enum_common); */
+extern_st(st_gx_image_enum_common);
#define public_st_gx_image_enum_common() /* in gdevddrw.c */\
gs_public_st_composite(st_gx_image_enum_common, gx_image_enum_common_t,\
"gx_image_enum_common_t",\
diff --git a/gs/src/gxipixel.c b/gs/src/gxipixel.c
index cc9690d4c..352516d66 100644
--- a/gs/src/gxipixel.c
+++ b/gs/src/gxipixel.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common code for ImageType 1 and 4 initialization */
#include "gx.h"
#include "math_.h"
diff --git a/gs/src/gxiscale.c b/gs/src/gxiscale.c
index 9311eacd5..29c9afed7 100644
--- a/gs/src/gxiscale.c
+++ b/gs/src/gxiscale.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpolated image procedures */
#include "gx.h"
#include "math_.h"
@@ -75,14 +62,14 @@ gs_image_class_0_interpolate(gx_image_enum * penum)
return 0;
}
/*
- * We used to interpolate using a digital filter, rather than Adobe's
- * spatial interpolation algorithm: this produced very bad-looking
- * results if the input resolution was close to the output resolution,
- * especially if the input had low color resolution, and we resorted to
+ * We interpolate using a digital filter, rather than Adobe's
+ * spatial interpolation algorithm: this produces very bad-looking
+ * results if the input resolution is close to the output resolution,
+ * especially if the input has low color resolution, so we resort to
* some hack tests on the input color resolution and scale to suppress
- * interpolation if we thought the result would look especially bad.
- * If we use Adobe's spatial interpolation approach, we don't need
- * to do this.
+ * interpolation if we think the result would look especially bad.
+ * If we used Adobe's spatial interpolation approach, we wouldn't need
+ * to do this, but the spatial interpolation filter doesn't work yet.
*/
#ifdef USE_MITCHELL_FILTERX
if (penum->bps < 4 || penum->bps * penum->spp < 8 ||
@@ -106,7 +93,10 @@ gs_image_class_0_interpolate(gx_image_enum * penum)
if (penum->bps <= 8 && penum->device_color) {
iss.BitsPerComponentIn = 8;
iss.MaxValueIn = 0xff;
- in_size = 0;
+ in_size =
+ (penum->matrix.xx < 0 ?
+ /* We need a buffer for reversing each scan line. */
+ iss.WidthIn * iss.Colors : 0);
} else {
iss.BitsPerComponentIn = sizeof(frac) * 8;
iss.MaxValueIn = frac_1;
@@ -179,7 +169,20 @@ image_render_interpolate(gx_image_enum * penum, const byte * buffer,
if (sizeofPixelIn == 1) {
/* Easy case: 8-bit device color values. */
- r.ptr = bdata - 1;
+ if (penum->matrix.xx >= 0) {
+ /* Use the input data directly. */
+ r.ptr = bdata - 1;
+ } else {
+ /* Mirror the data in X. */
+ const byte *p = bdata + row_size - c;
+ byte *q = out;
+ int i;
+
+ for (i = 0; i < pss->params.WidthIn; p -= c, q += c, ++i)
+ memcpy(q, p, c);
+ r.ptr = out - 1;
+ out = q;
+ }
} else {
/* Messy case: concretize each sample. */
int bps = penum->bps;
@@ -243,7 +246,7 @@ image_render_interpolate(gx_image_enum * penum, const byte * buffer,
int x;
const frac *psrc;
gx_device_color devc;
- int code;
+ int status, code;
DECLARE_LINE_ACCUM_COPY(out, bpp, xo);
@@ -251,9 +254,9 @@ image_render_interpolate(gx_image_enum * penum, const byte * buffer,
max(c * sizeofPixelOut, sizeof(gx_color_index)) - 1;
w.ptr = w.limit - width * c * sizeofPixelOut;
psrc = (const frac *)(w.ptr + 1);
- code = (*pss->template->process)
+ status = (*pss->template->process)
((stream_state *) pss, &r, &w, h == 0);
- if (code < 0 && code != EOFC)
+ if (status < 0 && status != EOFC)
return_error(gs_error_ioerror);
if (w.ptr == w.limit) {
int xe = xo + width;
@@ -307,7 +310,7 @@ image_render_interpolate(gx_image_enum * penum, const byte * buffer,
penum->line_xy++;
if_debug0('B', "\n");
}
- if ((code == 0 && r.ptr == r.limit) || code == EOFC)
+ if ((status == 0 && r.ptr == r.limit) || status == EOFC)
break;
}
}
diff --git a/gs/src/gxistate.h b/gs/src/gxistate.h
index b66ece79e..f0e54cbe7 100644
--- a/gs/src/gxistate.h
+++ b/gs/src/gxistate.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Imager state definition */
#ifndef gxistate_INCLUDED
diff --git a/gs/src/gxline.h b/gs/src/gxline.h
index 03add165c..3a2ac665f 100644
--- a/gs/src/gxline.h
+++ b/gs/src/gxline.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Private line parameter definitions */
#ifndef gxline_INCLUDED
diff --git a/gs/src/gxlum.h b/gs/src/gxlum.h
index 91c11d48e..cbc3d429c 100644
--- a/gs/src/gxlum.h
+++ b/gs/src/gxlum.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Luminance computation parameters for Ghostscript */
#ifndef gxlum_INCLUDED
diff --git a/gs/src/gxmatrix.h b/gs/src/gxmatrix.h
index a9df9fdca..c182242bb 100644
--- a/gs/src/gxmatrix.h
+++ b/gs/src/gxmatrix.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal matrix routines for Ghostscript library */
#ifndef gxmatrix_INCLUDED
diff --git a/gs/src/gxmclip.c b/gs/src/gxmclip.c
index 19db3ef48..429b11366 100644
--- a/gs/src/gxmclip.c
+++ b/gs/src/gxmclip.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Mask clipping support */
#include "gx.h"
#include "gxdevice.h"
diff --git a/gs/src/gxmclip.h b/gs/src/gxmclip.h
index bec415002..05083f135 100644
--- a/gs/src/gxmclip.h
+++ b/gs/src/gxmclip.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Mask clipping device and interface */
/* Requires gxdevice.h, gxdevmem.h */
diff --git a/gs/src/gxobj.h b/gs/src/gxobj.h
index cdffca6a2..e4ee4fbe4 100644
--- a/gs/src/gxobj.h
+++ b/gs/src/gxobj.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Memory manager implementation structures for Ghostscript */
#ifndef gxobj_INCLUDED
diff --git a/gs/src/gxop1.h b/gs/src/gxop1.h
index 1ec2fa267..6d5f37786 100644
--- a/gs/src/gxop1.h
+++ b/gs/src/gxop1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 1 state shared between interpreter and compiled fonts. */
#ifndef gxop1_INCLUDED
diff --git a/gs/src/gxp1fill.c b/gs/src/gxp1fill.c
index 22a6bcc21..8ed32b47a 100644
--- a/gs/src/gxp1fill.c
+++ b/gs/src/gxp1fill.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PatternType 1 filling algorithms */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gxp1impl.h b/gs/src/gxp1impl.h
index 8b664f068..c3046e115 100644
--- a/gs/src/gxp1impl.h
+++ b/gs/src/gxp1impl.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PatternType 1 implementation interface */
/* Requires gxpcolor.h */
diff --git a/gs/src/gxpageq.c b/gs/src/gxpageq.c
index 8888f360d..48e3e28f1 100644
--- a/gs/src/gxpageq.c
+++ b/gs/src/gxpageq.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Page queue implementation */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gxpageq.h b/gs/src/gxpageq.h
index 47e5431ce..03027e873 100644
--- a/gs/src/gxpageq.h
+++ b/gs/src/gxpageq.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Page queue implementation */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gxpaint.c b/gs/src/gxpaint.c
index a5a85873b..cfc03cc45 100644
--- a/gs/src/gxpaint.c
+++ b/gs/src/gxpaint.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Graphics-state-aware fill and stroke procedures */
#include "gx.h"
#include "gzstate.h"
diff --git a/gs/src/gxpaint.h b/gs/src/gxpaint.h
index 8cd467e99..06a73dc87 100644
--- a/gs/src/gxpaint.h
+++ b/gs/src/gxpaint.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Internal interface to fill/stroke */
/* Requires gsropt.h, gxfixed.h, gxpath.h */
#ifndef gxpaint_INCLUDED
diff --git a/gs/src/gxpath.c b/gs/src/gxpath.c
index b8b962277..2b32e8a50 100644
--- a/gs/src/gxpath.c
+++ b/gs/src/gxpath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal path management routines for Ghostscript library */
#include "gx.h"
#include "gserrors.h"
diff --git a/gs/src/gxpath.h b/gs/src/gxpath.h
index 75494dfef..c9a17fd23 100644
--- a/gs/src/gxpath.h
+++ b/gs/src/gxpath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Fixed-point path procedures */
/* Requires gxfixed.h */
#ifndef gxpath_INCLUDED
diff --git a/gs/src/gxpath2.c b/gs/src/gxpath2.c
index 00283d9f6..a0fde33e7 100644
--- a/gs/src/gxpath2.c
+++ b/gs/src/gxpath2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Path tracing procedures for Ghostscript library */
#include "math_.h"
#include "gx.h"
@@ -328,20 +315,14 @@ gx_path_copy_reversed(const gx_path * ppath_old, gx_path * ppath)
(pseg == (const segment *)psub ? sn_none :
psub->next->notes);
segment_notes notes;
+ int code;
if (!psub->is_closed) {
- int code = gx_path_add_point(ppath, pseg->pt.x, pseg->pt.y);
-
+ code = gx_path_add_point(ppath, pseg->pt.x, pseg->pt.y);
if (code < 0)
return code;
}
- /*
- * The odd '1' in the next statement suppresses a "statement not
- * reached" warning at the end of the loop from certain compilers.
- */
for (; 1; pseg = prev, prev_notes = notes) {
- int code;
-
prev = pseg->prev;
notes = pseg->notes;
prev_notes = (prev_notes & sn_not_first) |
@@ -351,8 +332,7 @@ gx_path_copy_reversed(const gx_path * ppath_old, gx_path * ppath)
/* Finished subpath */
if (psub->is_closed) {
code =
- gx_path_close_subpath_notes(ppath,
- prev_notes);
+ gx_path_close_subpath_notes(ppath, prev_notes);
if (code < 0)
return code;
}
@@ -382,9 +362,9 @@ gx_path_copy_reversed(const gx_path * ppath_old, gx_path * ppath)
return_error(gs_error_Fatal);
}
if (code < 0)
- return code;
+ break;
}
- /* not reached */
+ return code; /* only reached if code < 0 */
}
#undef sn_not_end
/*
diff --git a/gs/src/gxpcache.h b/gs/src/gxpcache.h
index a144c66c1..7a09cb086 100644
--- a/gs/src/gxpcache.h
+++ b/gs/src/gxpcache.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of Pattern cache */
#ifndef gxpcache_INCLUDED
diff --git a/gs/src/gxpcmap.c b/gs/src/gxpcmap.c
index 179b65ba9..2e788293f 100644
--- a/gs/src/gxpcmap.c
+++ b/gs/src/gxpcmap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Pattern color mapping for Ghostscript library */
#include "math_.h"
#include "memory_.h"
@@ -81,10 +68,8 @@ private const gx_device_pattern_accum gs_pattern_accum_device =
{std_device_std_body_open(gx_device_pattern_accum, 0,
"pattern accumulator",
0, 0, 72, 72),
- { /*
- * NOTE: all drawing procedures must be defaulted,
- * not forwarded.
- */
+ {
+ /* NOTE: all drawing procedures must be defaulted, not forwarded. */
pattern_accum_open,
NULL,
NULL,
@@ -97,7 +82,7 @@ private const gx_device_pattern_accum gs_pattern_accum_device =
pattern_accum_copy_mono,
pattern_accum_copy_color,
NULL,
- NULL,
+ gx_default_get_bits,
NULL,
NULL,
NULL,
@@ -336,8 +321,10 @@ pattern_accum_get_bits_rectangle(gx_device * dev, const gs_int_rect * prect,
{
gx_device_pattern_accum *const padev = (gx_device_pattern_accum *) dev;
- return (*dev_proc(padev->target, get_bits_rectangle))
- (padev->target, prect, params, unread);
+ if (padev->bits)
+ return (*dev_proc(padev->target, get_bits_rectangle))
+ (padev->target, prect, params, unread);
+ return_error(gs_error_Fatal); /* can't happen */
}
/* ------ Color space implementation ------ */
diff --git a/gs/src/gxpcolor.h b/gs/src/gxpcolor.h
index 617af17f3..97016aa33 100644
--- a/gs/src/gxpcolor.h
+++ b/gs/src/gxpcolor.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Pattern color and tile structures and procedures */
/* Requires gsmatrix.h, gxcolor2.h, gxdcolor.h */
#ifndef gxpcolor_INCLUDED
diff --git a/gs/src/gxpcopy.c b/gs/src/gxpcopy.c
index 1cf40ef1f..6cf72003f 100644
--- a/gs/src/gxpcopy.c
+++ b/gs/src/gxpcopy.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Path copying and flattening */
#include "math_.h"
#include "gx.h"
@@ -544,17 +531,24 @@ gx_curve_x_at_y(curve_cursor * prc, fixed y)
/*
* Compute in fixed point if possible.
*/
-#define half_fixed_bits ((fixed)1 << (sizeof(fixed) * 4))
- if (yrel < half_fixed_bits) {
+#define HALF_FIXED_BITS ((fixed)1 << (sizeof(fixed) * 4))
+ if (yrel < HALF_FIXED_BITS) {
if (xd >= 0) {
- if (xd < half_fixed_bits)
- return (ufixed) xd *(ufixed) yrel / (ufixed) yd + xl;
+ if (xd < HALF_FIXED_BITS)
+ return (ufixed)xd * (ufixed)yrel / (ufixed)yd + xl;
} else {
- if (xd > -half_fixed_bits)
- return -(fixed) ((ufixed) (-xd) * (ufixed) yrel / (ufixed) yd) + xl;
+ if (xd > -HALF_FIXED_BITS) {
+ /* Be careful to take the floor of the result. */
+ ufixed num = (ufixed)(-xd) * (ufixed)yrel;
+ ufixed quo = num / (ufixed)yd;
+
+ if (quo * (ufixed)yd != num)
+ quo += fixed_epsilon;
+ return xl - (fixed)quo;
+ }
}
}
-#undef half_fixed_bits
+#undef HALF_FIXED_BITS
return fixed_mult_quo(xd, yrel, yd) + xl;
}
diff --git a/gs/src/gxpdash.c b/gs/src/gxpdash.c
index ee9d4b787..8dcbc6ed3 100644
--- a/gs/src/gxpdash.c
+++ b/gs/src/gxpdash.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dash expansion for paths */
#include "math_.h"
#include "gx.h"
@@ -56,7 +43,7 @@ subpath_expand_dashes(const subpath * psub, gx_path * ppath,
const float *pattern = dash->pattern;
int count, index;
bool ink_on;
- double elt_length;
+ float elt_length;
fixed x0 = psub->pt.x, y0 = psub->pt.y;
fixed x, y;
const segment *pseg;
diff --git a/gs/src/gxpflat.c b/gs/src/gxpflat.c
index 83ff1a72e..35e97d46c 100644
--- a/gs/src/gxpflat.c
+++ b/gs/src/gxpflat.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Path flattening algorithms */
#include "gx.h"
#include "gxarith.h"
diff --git a/gs/src/gxropc.h b/gs/src/gxropc.h
index 23d72e9bf..444e495c1 100644
--- a/gs/src/gxropc.h
+++ b/gs/src/gxropc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internals for RasterOp compositing */
#ifndef gxropc_INCLUDED
diff --git a/gs/src/gxrplane.h b/gs/src/gxrplane.h
index b2304b9f9..114746165 100644
--- a/gs/src/gxrplane.h
+++ b/gs/src/gxrplane.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for planar rendering */
#ifndef gxrplane_INCLUDED
diff --git a/gs/src/gxsample.c b/gs/src/gxsample.c
index 459231313..06701271d 100644
--- a/gs/src/gxsample.c
+++ b/gs/src/gxsample.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Sample unpacking procedures */
#include "gx.h"
#include "gxsample.h"
diff --git a/gs/src/gxsample.h b/gs/src/gxsample.h
index 95c87eda3..96419f606 100644
--- a/gs/src/gxsample.h
+++ b/gs/src/gxsample.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Sample lookup and expansion */
#ifndef gxsample_INCLUDED
diff --git a/gs/src/gxshade.c b/gs/src/gxshade.c
index 3b100aeab..c33e6c0b9 100644
--- a/gs/src/gxshade.c
+++ b/gs/src/gxshade.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Shading rendering support */
#include "math_.h"
#include "gx.h"
@@ -30,6 +17,10 @@
#include "gxpaint.h"
#include "gxshade.h"
+/* Define a maximum smoothness value. */
+/* smoothness > 0.2 produces severely blocky output. */
+#define MAX_SMOOTHNESS 0.2
+
/* ================ Packed coordinate streams ================ */
/* Forward references */
@@ -235,7 +226,7 @@ shade_init_fill_state(shading_fill_state_t * pfs, const gs_shading_t * psh,
gx_device * dev, gs_imager_state * pis)
{
const gs_color_space *pcs = psh->params.ColorSpace;
- float max_error = pis->smoothness;
+ float max_error = min(pis->smoothness, MAX_SMOOTHNESS);
/*
* There's no point in trying to achieve smoothness beyond what
* the device can implement, i.e., the number of representable
diff --git a/gs/src/gxshade.h b/gs/src/gxshade.h
index d041e130c..3776d2392 100644
--- a/gs/src/gxshade.h
+++ b/gs/src/gxshade.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for shading rendering */
#ifndef gxshade_INCLUDED
diff --git a/gs/src/gxshade1.c b/gs/src/gxshade1.c
index cde0f6c08..af422c8a0 100644
--- a/gs/src/gxshade1.c
+++ b/gs/src/gxshade1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Rendering for non-mesh shadings */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/gxshade4.c b/gs/src/gxshade4.c
index 56959a32a..b6f371403 100644
--- a/gs/src/gxshade4.c
+++ b/gs/src/gxshade4.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Rendering for Gouraud triangle shadings */
#include "memory_.h"
#include "gx.h"
diff --git a/gs/src/gxshade4.h b/gs/src/gxshade4.h
index a11db019f..ff44e331e 100644
--- a/gs/src/gxshade4.h
+++ b/gs/src/gxshade4.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for triangle shading rendering */
#ifndef gxshade4_INCLUDED
diff --git a/gs/src/gxshade6.c b/gs/src/gxshade6.c
index 5d1a44e53..ba27a59d2 100644
--- a/gs/src/gxshade6.c
+++ b/gs/src/gxshade6.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Rendering for Coons and tensor patch shadings */
#include "memory_.h"
#include "gx.h"
@@ -120,19 +107,23 @@ typedef struct patch_fill_state_s {
const gs_function_t *Function;
} patch_fill_state_t;
-/* Calculate the interpolated color at a given point. */
-/* Note that we must do this twice for bilinear interpolation. */
+/*
+ * Calculate the interpolated color at a given point.
+ * Note that we must do this twice for bilinear interpolation.
+ * We use the name ppcr rather than ppc because an Apple compiler defines
+ * ppc when compiling on PowerPC systems (!).
+ */
private void
-patch_interpolate_color(patch_color_t * ppc, const patch_color_t * ppc0,
+patch_interpolate_color(patch_color_t * ppcr, const patch_color_t * ppc0,
const patch_color_t * ppc1, const patch_fill_state_t * pfs, floatp t)
{
if (pfs->Function)
- ppc->t = ppc0->t + t * (ppc1->t - ppc0->t);
+ ppcr->t = ppc0->t + t * (ppc1->t - ppc0->t);
else {
int ci;
for (ci = pfs->num_components - 1; ci >= 0; --ci)
- ppc->cc.paint.values[ci] =
+ ppcr->cc.paint.values[ci] =
ppc0->cc.paint.values[ci] +
t * (ppc1->cc.paint.values[ci] - ppc0->cc.paint.values[ci]);
}
@@ -140,33 +131,35 @@ patch_interpolate_color(patch_color_t * ppc, const patch_color_t * ppc0,
/* Resolve a patch color using the Function if necessary. */
private void
-patch_resolve_color(patch_color_t * ppc, const patch_fill_state_t * pfs)
+patch_resolve_color(patch_color_t * ppcr, const patch_fill_state_t * pfs)
{
if (pfs->Function)
- gs_function_evaluate(pfs->Function, &ppc->t, ppc->cc.paint.values);
+ gs_function_evaluate(pfs->Function, &ppcr->t, ppcr->cc.paint.values);
}
/* ================ Specific shadings ================ */
/*
* The curves are stored in a clockwise or counter-clockwise order that maps
- * to the patch definition in a non-intuitive way:
+ * to the patch definition in a non-intuitive way. The documentation
+ * (pp. 277-281 of the PostScript Language Reference Manual, Third Edition)
+ * says that the curves are in the order D1, C2, D2, C1.
*/
/* The starting points of the curves: */
-#define C1START 0
#define D1START 0
-#define C2START 3
-#define D2START 1
+#define C2START 1
+#define D2START 3
+#define C1START 0
/* The control points of the curves (x means reversed order): */
-#define C1CTRL 0
-#define D1XCTRL 3
-#define C2XCTRL 2
-#define D2CTRL 1
+#define D1CTRL 0
+#define C2CTRL 1
+#define D2XCTRL 2
+#define C1XCTRL 3
/* The end points of the curves: */
-#define C1END 1
-#define D1END 3
+#define D1END 1
#define C2END 2
#define D2END 2
+#define C1END 3
/* ---------------- Common code ---------------- */
@@ -221,37 +214,39 @@ merge_splits(double *out, const double *a1, int n1, const double *a2, int n2)
return p - out;
}
-/* Split a curve in both X and Y. Return the number of split points. */
+/*
+ * Split a curve in both X and Y. Return the number of split points.
+ * swap = 0 if the control points are in order, 1 if reversed.
+ */
private int
-split_xy(double out[4], const patch_curve_t * curve, const gs_fixed_point * p3)
+split_xy(double out[4], const gs_fixed_point *p0, const gs_fixed_point *p1,
+ const gs_fixed_point *p2, const gs_fixed_point *p3)
{
double tx[2], ty[2];
return merge_splits(out, tx,
- gx_curve_monotonic_points(curve->vertex.p.x,
- curve->control[0].x,
- curve->control[1].x,
- p3->x, tx),
+ gx_curve_monotonic_points(p0->x, p1->x, p2->x, p3->x,
+ tx),
ty,
- gx_curve_monotonic_points(curve->vertex.p.y,
- curve->control[0].y,
- curve->control[1].y,
- p3->y, ty));
+ gx_curve_monotonic_points(p0->y, p1->y, p2->y, p3->y,
+ ty));
}
/*
* Compute the joint split points of 2 curves.
+ * swap = 0 if the control points are in order, 1 if reversed.
* Return the number of split points.
*/
-private int
-split2_xy(double out[8], const patch_curve_t * curve1,
- const gs_fixed_point * p31, const patch_curve_t * curve2,
- const gs_fixed_point * p32)
+inline private int
+split2_xy(double out[8], const gs_fixed_point *p10, const gs_fixed_point *p11,
+ const gs_fixed_point *p12, const gs_fixed_point *p13,
+ const gs_fixed_point *p20, const gs_fixed_point *p21,
+ const gs_fixed_point *p22, const gs_fixed_point *p23)
{
double t1[4], t2[4];
- return merge_splits(out, t1, split_xy(t1, curve1, p31),
- t2, split_xy(t2, curve2, p32));
+ return merge_splits(out, t1, split_xy(t1, p10, p11, p12, p13),
+ t2, split_xy(t2, p20, p21, p22, p23));
}
private int
@@ -270,22 +265,20 @@ patch_fill(patch_fill_state_t * pfs, const patch_curve_t curve[4],
* with respect to all 4 edges. Since each edge has no more than
* 2 X and 2 Y split points (for a total of 4), taking both edges
* together we have a maximum of 8 split points for each axis.
- *
- * The current documentation doesn't say how the 4 curves
- * correspond to the 'u' or 'v' edges. Pending clarification from
- * Adobe, we assume the 1st and 3rd are the 'u' edges and the
- * 2nd and 4th are the 'v' edges.
- ****** CHECK AGAINST UPDATED DOC ******
*/
- double u[9], v[9];
- int nu = split2_xy(u, &curve[0], &curve[1].vertex.p,
- &curve[2], &curve[3].vertex.p);
- int nv = split2_xy(v, &curve[1], &curve[2].vertex.p,
- &curve[3], &curve[0].vertex.p);
+ double su[9], sv[9];
+ int nu = split2_xy(su, &curve[C1START].vertex.p,&curve[C1XCTRL].control[1],
+ &curve[C1XCTRL].control[0], &curve[C1END].vertex.p,
+ &curve[C2START].vertex.p, &curve[C2CTRL].control[0],
+ &curve[C2CTRL].control[1], &curve[C2END].vertex.p);
+ int nv = split2_xy(sv, &curve[D1START].vertex.p, &curve[D1CTRL].control[0],
+ &curve[D1CTRL].control[1], &curve[D1END].vertex.p,
+ &curve[D2START].vertex.p, &curve[D2XCTRL].control[1],
+ &curve[D2XCTRL].control[0], &curve[D2END].vertex.p);
int iu, iv, ju, jv, ku, kv;
double du, dv;
double v0, v1, vn, u0, u1, un;
- patch_color_t c0, c1, c2, c3;
+ patch_color_t c00, c01, c10, c11;
/*
* At some future time, we should set check = false if the curves
* fall entirely within the bounding rectangle. (Only a small
@@ -307,11 +300,23 @@ patch_fill(patch_fill_state_t * pfs, const patch_curve_t curve[4],
fixed2float(curve[k].control[0].y),
fixed2float(curve[k].control[1].x),
fixed2float(curve[k].control[1].y));
+ if (nu > 1) {
+ dlputs("[2]Splitting u");
+ for (k = 0; k < nu; ++k)
+ dprintf1(", %g", su[k]);
+ dputs("\n");
+ }
+ if (nv > 1) {
+ dlputs("[2]Splitting v");
+ for (k = 0; k < nv; ++k)
+ dprintf1(", %g", sv[k]);
+ dputs("\n");
+ }
}
#endif
/* Add boundary values to simplify the iteration. */
- u[nu] = 1;
- v[nv] = 1;
+ su[nu] = 1;
+ sv[nv] = 1;
/*
* We're going to fill the curves by flattening them and then filling
@@ -333,16 +338,9 @@ patch_fill(patch_fill_state_t * pfs, const patch_curve_t curve[4],
gx_curve_log2_samples(curve[i].vertex.p.x, curve[i].vertex.p.y,
&cseg, flatness);
}
- ku = 1 << max(log2_k[0], log2_k[2]);
- kv = 1 << max(log2_k[1], log2_k[3]);
+ ku = 1 << max(log2_k[1], log2_k[3]);
+ kv = 1 << max(log2_k[0], log2_k[2]);
}
- /*
- * Since ku and kv are powers of 2, and since log2(k) is surely less
- * than the number of bits in the mantissa of a double, 1/k ...
- * (k-1)/k can all be represented exactly as doubles.
- */
- du = 1.0 / ku;
- dv = 1.0 / kv;
/* Precompute the colors at the corners. */
@@ -350,16 +348,24 @@ patch_fill(patch_fill_state_t * pfs, const patch_curve_t curve[4],
if ( pfs->Function ) c.t = v.cc[0];\
else memcpy(c.cc.paint.values, v.cc, sizeof(c.cc.paint.values))
- PATCH_SET_COLOR(c0, curve[0].vertex);
- PATCH_SET_COLOR(c1, curve[1].vertex);
- PATCH_SET_COLOR(c2, curve[2].vertex);
- PATCH_SET_COLOR(c3, curve[3].vertex);
+ PATCH_SET_COLOR(c00, curve[D1START].vertex); /* = C1START */
+ PATCH_SET_COLOR(c01, curve[D1END].vertex); /* = C2START */
+ PATCH_SET_COLOR(c11, curve[C2END].vertex); /* = D2END */
+ PATCH_SET_COLOR(c10, curve[C1END].vertex); /* = D2START */
#undef PATCH_SET_COLOR
+ /*
+ * Since ku and kv are powers of 2, and since log2(k) is surely less
+ * than the number of bits in the mantissa of a double, 1/k ...
+ * (k-1)/k can all be represented exactly as doubles.
+ */
+ du = 1.0 / ku;
+ dv = 1.0 / kv;
+
/* Now iterate over the sub-patches. */
for (iv = 0, jv = 0, v0 = 0, v1 = vn = dv; jv < kv; v0 = v1, v1 = vn) {
- patch_color_t cv[4];
+ patch_color_t c0v0, c0v1, c1v0, c1v1;
/* Subdivide the interval if it crosses a split point. */
@@ -373,51 +379,57 @@ patch_fill(patch_fill_state_t * pfs, const patch_curve_t curve[4],
ix++;\
}
- CHECK_SPLIT(iv, jv, v1, vn, dv, v);
+ CHECK_SPLIT(iv, jv, v1, vn, dv, sv);
- patch_interpolate_color(&cv[0], &c0, &c3, pfs, v0);
- patch_interpolate_color(&cv[1], &c0, &c3, pfs, v1);
- patch_interpolate_color(&cv[2], &c1, &c2, pfs, v0);
- patch_interpolate_color(&cv[3], &c1, &c2, pfs, v1);
+ patch_interpolate_color(&c0v0, &c00, &c01, pfs, v0);
+ patch_interpolate_color(&c0v1, &c00, &c01, pfs, v1);
+ patch_interpolate_color(&c1v0, &c10, &c11, pfs, v0);
+ patch_interpolate_color(&c1v1, &c10, &c11, pfs, v1);
for (iu = 0, ju = 0, u0 = 0, u1 = un = du; ju < ku; u0 = u1, u1 = un) {
- patch_color_t cu[4];
+ patch_color_t cu0v0, cu1v0, cu0v1, cu1v1;
int code;
- CHECK_SPLIT(iu, ju, u1, un, du, u);
+ CHECK_SPLIT(iu, ju, u1, un, du, su);
#undef CHECK_SPLIT
- patch_interpolate_color(&cu[0], &cv[0], &cv[2], pfs, u0);
- patch_resolve_color(&cu[0], pfs);
- patch_interpolate_color(&cu[1], &cv[0], &cv[2], pfs, u1);
- patch_resolve_color(&cu[1], pfs);
- patch_interpolate_color(&cu[2], &cv[1], &cv[3], pfs, u1);
- patch_resolve_color(&cu[2], pfs);
- patch_interpolate_color(&cu[3], &cv[1], &cv[3], pfs, u0);
- patch_resolve_color(&cu[3], pfs);
- if_debug6('2', "[2]u[%d]=(%g,%g), v[%d]=(%g,%g)\n",
+ patch_interpolate_color(&cu0v0, &c0v0, &c1v0, pfs, u0);
+ patch_resolve_color(&cu0v0, pfs);
+ patch_interpolate_color(&cu1v0, &c0v0, &c1v0, pfs, u1);
+ patch_resolve_color(&cu1v0, pfs);
+ patch_interpolate_color(&cu0v1, &c0v1, &c1v1, pfs, u0);
+ patch_resolve_color(&cu0v1, pfs);
+ patch_interpolate_color(&cu1v1, &c0v1, &c1v1, pfs, u1);
+ patch_resolve_color(&cu1v1, pfs);
+ if_debug6('2', "[2]u[%d]=[%g .. %g], v[%d]=[%g .. %g]\n",
iu, u0, u1, iv, v0, v1);
/* Fill the sub-patch given by ((u0,v0),(u1,v1)). */
{
- mesh_vertex_t mv[4];
-
- (*transform)(&mv[0].p, curve, interior, u0, v0);
- (*transform)(&mv[1].p, curve, interior, u1, v0);
- (*transform)(&mv[2].p, curve, interior, u1, v1);
- (*transform)(&mv[3].p, curve, interior, u0, v1);
- memcpy(mv[0].cc, cu[0].cc.paint.values, sizeof(mv[0].cc));
- memcpy(mv[1].cc, cu[1].cc.paint.values, sizeof(mv[1].cc));
- memcpy(mv[2].cc, cu[2].cc.paint.values, sizeof(mv[2].cc));
- memcpy(mv[3].cc, cu[3].cc.paint.values, sizeof(mv[3].cc));
+ mesh_vertex_t mu0v0, mu1v0, mu1v1, mu0v1;
+
+ (*transform)(&mu0v0.p, curve, interior, u0, v0);
+ (*transform)(&mu1v0.p, curve, interior, u1, v0);
+ (*transform)(&mu1v1.p, curve, interior, u1, v1);
+ (*transform)(&mu0v1.p, curve, interior, u0, v1);
+ if_debug4('2', "[2] => (%g,%g), (%g,%g),\n",
+ fixed2float(mu0v0.p.x), fixed2float(mu0v0.p.y),
+ fixed2float(mu1v0.p.x), fixed2float(mu1v0.p.y));
+ if_debug4('2', "[2] (%g,%g), (%g,%g)\n",
+ fixed2float(mu1v1.p.x), fixed2float(mu1v1.p.y),
+ fixed2float(mu0v1.p.x), fixed2float(mu0v1.p.y));
+ memcpy(mu0v0.cc, cu0v0.cc.paint.values, sizeof(mu0v0.cc));
+ memcpy(mu1v0.cc, cu1v0.cc.paint.values, sizeof(mu1v0.cc));
+ memcpy(mu1v1.cc, cu1v1.cc.paint.values, sizeof(mu1v1.cc));
+ memcpy(mu0v1.cc, cu0v1.cc.paint.values, sizeof(mu0v1.cc));
mesh_init_fill_triangle((mesh_fill_state_t *)pfs,
- &mv[0], &mv[1], &mv[2], check);
+ &mu0v0, &mu1v1, &mu1v0, check);
code = mesh_fill_triangle((mesh_fill_state_t *)pfs);
if (code < 0)
return code;
mesh_init_fill_triangle((mesh_fill_state_t *)pfs,
- &mv[2], &mv[3], &mv[0], check);
+ &mu0v0, &mu1v1, &mu0v1, check);
code = mesh_fill_triangle((mesh_fill_state_t *)pfs);
if (code < 0)
return code;
@@ -438,16 +450,16 @@ Cp_transform(gs_fixed_point * pt, const patch_curve_t curve[4],
gs_fixed_point c1u, d1v, c2u, d2v;
curve_eval(&c1u, &curve[C1START].vertex.p,
- &curve[C1CTRL].control[0], &curve[C1CTRL].control[1],
+ &curve[C1XCTRL].control[1], &curve[C1XCTRL].control[0],
&curve[C1END].vertex.p, u);
curve_eval(&d1v, &curve[D1START].vertex.p,
- &curve[D1XCTRL].control[1], &curve[D1XCTRL].control[0],
+ &curve[D1CTRL].control[0], &curve[D1CTRL].control[1],
&curve[D1END].vertex.p, v);
curve_eval(&c2u, &curve[C2START].vertex.p,
- &curve[C2XCTRL].control[1], &curve[C2XCTRL].control[0],
+ &curve[C2CTRL].control[0], &curve[C2CTRL].control[1],
&curve[C2END].vertex.p, u);
curve_eval(&d2v, &curve[D2START].vertex.p,
- &curve[D2CTRL].control[0], &curve[D2CTRL].control[1],
+ &curve[D2XCTRL].control[1], &curve[D2XCTRL].control[0],
&curve[D2END].vertex.p, v);
#define COMPUTE_COORD(xy)\
pt->xy = (fixed)\
@@ -496,7 +508,7 @@ Tpp_transform(gs_fixed_point * pt, const patch_curve_t curve[4],
double Bu[4], Bv[4];
gs_fixed_point pts[4][4];
int i, j;
- fixed x = 0, y = 0;
+ double x = 0, y = 0;
/* Compute the Bernstein polynomials of u and v. */
{
@@ -511,17 +523,17 @@ Tpp_transform(gs_fixed_point * pt, const patch_curve_t curve[4],
/* Arrange the points into an indexable order. */
pts[0][0] = curve[0].vertex.p;
- pts[1][0] = curve[0].control[0];
- pts[2][0] = curve[0].control[1];
- pts[3][0] = curve[1].vertex.p;
- pts[3][1] = curve[1].control[0];
- pts[3][2] = curve[1].control[1];
+ pts[0][1] = curve[0].control[0];
+ pts[0][2] = curve[0].control[1];
+ pts[0][3] = curve[1].vertex.p;
+ pts[1][3] = curve[1].control[0];
+ pts[2][3] = curve[1].control[1];
pts[3][3] = curve[2].vertex.p;
- pts[2][3] = curve[2].control[0];
- pts[1][3] = curve[2].control[1];
- pts[0][3] = curve[3].vertex.p;
- pts[0][2] = curve[3].control[0];
- pts[0][1] = curve[3].control[1];
+ pts[3][2] = curve[2].control[0];
+ pts[3][1] = curve[2].control[1];
+ pts[3][0] = curve[3].vertex.p;
+ pts[2][0] = curve[3].control[0];
+ pts[1][0] = curve[3].control[1];
pts[1][1] = interior[0];
pts[2][1] = interior[1];
pts[2][2] = interior[2];
@@ -534,7 +546,7 @@ Tpp_transform(gs_fixed_point * pt, const patch_curve_t curve[4],
x += pts[i][j].x * coeff, y += pts[i][j].y * coeff;
}
- pt->x = x, pt->y = y;
+ pt->x = (fixed)x, pt->y = (fixed)y;
}
int
@@ -554,9 +566,20 @@ gs_shading_Tpp_fill_rectangle(const gs_shading_t * psh0, const gs_rect * rect,
shade_next_init(&cs, (const gs_shading_mesh_params_t *)&psh->params,
pis);
while ((code = shade_next_patch(&cs, psh->params.BitsPerFlag,
- curve, interior)) == 0 &&
- (code = patch_fill(&state, curve, interior, Tpp_transform)) >= 0
- )
- DO_NOTHING;
+ curve, interior)) == 0) {
+ /*
+ * The order of points appears to be consistent with that for Coons
+ * patches, which is different from that documented in Red Book 3.
+ */
+ gs_fixed_point swapped_interior[4];
+
+ swapped_interior[0] = interior[0];
+ swapped_interior[1] = interior[3];
+ swapped_interior[2] = interior[2];
+ swapped_interior[3] = interior[1];
+ code = patch_fill(&state, curve, swapped_interior, Tpp_transform);
+ if (code < 0)
+ break;
+ }
return min(code, 0);
}
diff --git a/gs/src/gxstate.h b/gs/src/gxstate.h
index 3ab25cb56..e047f0f49 100644
--- a/gs/src/gxstate.h
+++ b/gs/src/gxstate.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal graphics state API */
#ifndef gxstate_INCLUDED
diff --git a/gs/src/gxstroke.c b/gs/src/gxstroke.c
index fb30a5f0b..cd6cbd70f 100644
--- a/gs/src/gxstroke.c
+++ b/gs/src/gxstroke.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Path stroking procedures for Ghostscript library */
#include "math_.h"
#include "gx.h"
diff --git a/gs/src/gxsync.c b/gs/src/gxsync.c
index 9da9a84d1..8804e5e97 100644
--- a/gs/src/gxsync.c
+++ b/gs/src/gxsync.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to platform-based synchronization primitives */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gxsync.h b/gs/src/gxsync.h
index 766f383ea..3e9041fc8 100644
--- a/gs/src/gxsync.h
+++ b/gs/src/gxsync.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to synchronization primitives */
/* Initial version 2/1/98 by John Desrosiers (soho@crl.com) */
diff --git a/gs/src/gxtext.h b/gs/src/gxtext.h
index ba26578a9..7ab6c3936 100644
--- a/gs/src/gxtext.h
+++ b/gs/src/gxtext.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Driver text interface implementation support */
#ifndef gxtext_INCLUDED
diff --git a/gs/src/gxtmap.h b/gs/src/gxtmap.h
index 53a556a16..9ae88773e 100644
--- a/gs/src/gxtmap.h
+++ b/gs/src/gxtmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of transfer mapping function */
/* (also used for black generation and undercolor removal) */
diff --git a/gs/src/gxtype1.c b/gs/src/gxtype1.c
index 1fe6de4fb..c0c88cfd6 100644
--- a/gs/src/gxtype1.c
+++ b/gs/src/gxtype1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Adobe Type 1 font interpreter support */
#include "math_.h"
#include "gx.h"
@@ -377,7 +364,8 @@ gs_type1_seac(gs_type1_state * pcis, const fixed * cstack, fixed asb,
/* Save away all the operands. */
pcis->seac_accent = fixed2int_var(cstack[3]);
- pcis->save_asb = asb - pcis->lsb.x;
+ pcis->save_asb = asb;
+ pcis->save_lsb = pcis->lsb;
pcis->save_adxy.x = cstack[0];
pcis->save_adxy.y = cstack[1];
pcis->os_count = 0; /* clear */
@@ -416,11 +404,11 @@ gs_type1_endchar(gs_type1_state * pcis)
/* Reset the coordinate system origin */
sfc = pcis->fc;
ptx = pcis->origin.x, pty = pcis->origin.y;
- pcis->asb_diff = pcis->save_asb;
+ pcis->asb_diff = pcis->save_asb - pcis->save_lsb.x;
pcis->adxy = pcis->save_adxy;
/*
- * We're going to add in the lsb of the base character / accented
- * character (*not* the lsb of the accent) when we encounter the
+ * We're going to add in the lsb of the accented character
+ * (*not* the lsb of the accent) when we encounter the
* [h]sbw of the accent, so ignore the lsb for now.
*/
accum_xy(pcis->adxy.x, pcis->adxy.y);
@@ -491,3 +479,157 @@ gs_type1_endchar(gs_type1_state * pcis)
gs_imager_setflat(pis, pcis->flatness);
return 0;
}
+
+/* ------ Font procedures ------ */
+
+int
+gs_type1_glyph_info(gs_font *font, gs_glyph glyph, const gs_matrix *pmat,
+ int members, gs_glyph_info_t *info)
+{
+ gs_font_type1 *const pfont = (gs_font_type1 *)font;
+ int piece_members = members & (GLYPH_INFO_NUM_PIECES | GLYPH_INFO_PIECES);
+ int default_members = members - piece_members;
+ int code = 0;
+
+ if (default_members) {
+ code = gs_default_glyph_info(font, glyph, pmat, default_members, info);
+
+ if (code < 0)
+ return code;
+ } else
+ info->members = 0;
+ if (piece_members) {
+ gs_glyph *pieces =
+ (members & GLYPH_INFO_PIECES ? info->pieces : (gs_glyph *)0);
+ /*
+ * Decode the CharString looking for seac. We have to process
+ * callsubr, callothersubr, and return operators, but if we see
+ * any other operators other than [h]sbw, pop, or hint operators,
+ * we can return immediately. This includes all Type 2 operators,
+ * since Type 2 CharStrings don't use seac.
+ *
+ * It's really unfortunate that we have to duplicate so much parsing
+ * code, but factoring out the parser from the interpreter would
+ * involve more restructuring than we're prepared to do right now.
+ */
+ gs_type1_data *const pdata = &pfont->data;
+ bool encrypted = pdata->lenIV >= 0;
+ gs_const_string str;
+ fixed cstack[ostack_size];
+ fixed *csp = cstack - 1;
+ ip_state ipstack[ipstack_size + 1];
+ ip_state *ipsp = &ipstack[0];
+ const byte *cip;
+ crypt_state state;
+ int c;
+
+ if ((code = pdata->procs->glyph_data(pfont, glyph, &str)) < 0)
+ return code; /* non-existent glyph */
+ info->members |= piece_members;
+ info->num_pieces = 0; /* default */
+ cip = str.data;
+ call:
+ state = crypt_charstring_seed;
+ if (encrypted) {
+ int skip = pdata->lenIV;
+
+ /* Skip initial random bytes */
+ for (; skip > 0; ++cip, --skip)
+ decrypt_skip_next(*cip, state);
+ }
+ top:
+ for (;;) {
+ uint c0 = *cip++;
+
+ charstring_next(c0, state, c, encrypted);
+ if (c >= c_num1) {
+ /* This is a number, decode it and push it on the stack. */
+ if (c < c_pos2_0) { /* 1-byte number */
+ decode_push_num1(csp, c);
+ } else if (c < cx_num4) { /* 2-byte number */
+ decode_push_num2(csp, c, cip, state, encrypted);
+ } else if (c == cx_num4) { /* 4-byte number */
+ long lw;
+
+ decode_num4(lw, cip, state, encrypted);
+ *++csp = int2fixed(lw);
+ } else /* not possible */
+ return_error(gs_error_invalidfont);
+ continue;
+ }
+#define cnext csp = cstack - 1; goto top
+ switch ((char_command) c) {
+ default:
+ goto out;
+ case c_callsubr:
+ c = fixed2int_var(*csp);
+ code = pdata->procs->subr_data
+ (pfont, c, false, &ipsp[1].char_string);
+ if (code < 0)
+ return_error(code);
+ --csp;
+ ipsp->ip = cip, ipsp->dstate = state;
+ ++ipsp;
+ cip = ipsp->char_string.data;
+ goto call;
+ case c_return:
+ --ipsp;
+ cip = ipsp->ip, state = ipsp->dstate;
+ goto top;
+ case cx_hstem:
+ case cx_vstem:
+ case c1_hsbw:
+ cnext;
+ case cx_escape:
+ charstring_next(*cip, state, c, encrypted);
+ ++cip;
+ switch ((char1_extended_command) c) {
+ default:
+ goto out;
+ case ce1_vstem3:
+ case ce1_hstem3:
+ case ce1_sbw:
+ cnext;
+ case ce1_pop:
+ /*
+ * pop must do nothing, since it is used after
+ * subr# 1 3 callothersubr.
+ */
+ goto top;
+ case ce1_seac:
+ /* This is the payoff for all this code! */
+ if (pieces) {
+ gs_char bchar = fixed2int(csp[-1]);
+ gs_char achar = fixed2int(csp[0]);
+
+ pieces[0] = font->procs.encode_char(font, bchar,
+ GLYPH_SPACE_NAME);
+ pieces[1] = font->procs.encode_char(font, achar,
+ GLYPH_SPACE_NAME);
+ }
+ info->num_pieces = 2;
+ goto out;
+ case ce1_callothersubr:
+ switch (fixed2int_var(*csp)) {
+ default:
+ goto out;
+ case 3:
+ csp -= 2;
+ goto top;
+ case 12:
+ case 13:
+ case 14:
+ case 15:
+ case 16:
+ case 17:
+ case 18:
+ cnext;
+ }
+ }
+ }
+#undef cnext
+ }
+ }
+ out:
+ return code;
+}
diff --git a/gs/src/gxtype1.h b/gs/src/gxtype1.h
index 00723e6de..919ffb7b2 100644
--- a/gs/src/gxtype1.h
+++ b/gs/src/gxtype1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Private Adobe Type 1 / Type 2 charstring interpreter definitions */
#ifndef gxtype1_INCLUDED
@@ -178,33 +165,31 @@ struct gs_type1_state_s {
ip_state ipstack[ipstack_size + 1]; /* control stack */
int ips_count; /* # of occupied entries */
int init_done; /* -1 if not done & not needed, */
- /* 0 if not done & needed, 1 if done */
+ /* 0 if not done & needed, 1 if done */
bool sb_set; /* true if lsb is preset */
- bool width_set; /* true if width is set (for */
- /* seac components) */
+ bool width_set; /* true if width is set (for seac parts) */
bool have_hintmask; /* true if using a hint mask */
/* (Type 2 charstrings only) */
int num_hints; /* number of hints (Type 2 only) */
gs_fixed_point lsb; /* left side bearing (char coords) */
gs_fixed_point width; /* character width (char coords) */
- int seac_accent; /* accent character code for seac, */
- /* or -1 */
+ int seac_accent; /* accent character code for seac, or -1 */
fixed save_asb; /* save seac asb */
+ gs_fixed_point save_lsb; /* save seac accented lsb */
gs_fixed_point save_adxy; /* save seac adx/ady */
- fixed asb_diff; /* seac asb - accented char lsb.x, */
- /* needed to adjust Flex endpoint */
+ fixed asb_diff; /* save_asb - save_lsb.x, */
+ /* needed to adjust Flex endpoint */
gs_fixed_point adxy; /* seac accent displacement, */
- /* needed to adjust currentpoint */
+ /* needed to adjust currentpoint */
gs_fixed_point position; /* save unadjusted position */
- /* when returning temporarily */
- /* to caller */
+ /* when returning temporarily to caller */
int flex_path_state_flags; /* record whether path was open */
- /* at start of Flex section */
+ /* at start of Flex section */
#define flex_max 8
gs_fixed_point flex_points[flex_max]; /* points for Flex */
int flex_count;
int ignore_pops; /* # of pops to ignore (after */
- /* a known othersubr call) */
+ /* a known othersubr call) */
/* The following are set dynamically. */
#define dotsection_in 0
#define dotsection_out (-1)
diff --git a/gs/src/gxxfont.h b/gs/src/gxxfont.h
index cf6c80d60..1ab4a6356 100644
--- a/gs/src/gxxfont.h
+++ b/gs/src/gxxfont.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* External font interface for Ghostscript library */
#ifndef gxxfont_INCLUDED
diff --git a/gs/src/gzacpath.h b/gs/src/gzacpath.h
index 40cbc4841..3e3abb08b 100644
--- a/gs/src/gzacpath.h
+++ b/gs/src/gzacpath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* State and interface definitions for clipping path accumulator */
/* Requires gxdevice.h, gzcpath.h */
#ifndef gzacpath_INCLUDED
diff --git a/gs/src/gzcpath.h b/gs/src/gzcpath.h
index 60577ff35..3db2699d6 100644
--- a/gs/src/gzcpath.h
+++ b/gs/src/gzcpath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Structure definitions for clipping paths */
/* Requires gzpath.h. */
#ifndef gzcpath_INCLUDED
diff --git a/gs/src/gzline.h b/gs/src/gzline.h
index 9333febdc..57f8a79bb 100644
--- a/gs/src/gzline.h
+++ b/gs/src/gzline.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Line parameter implementation */
#ifndef gzline_INCLUDED
diff --git a/gs/src/gzpath.h b/gs/src/gzpath.h
index 7ac54bf2b..37ddd0af5 100644
--- a/gs/src/gzpath.h
+++ b/gs/src/gzpath.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1989, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Structure and internal procedure definitions for paths */
/* Requires gxfixed.h */
#ifndef gzpath_INCLUDED
diff --git a/gs/src/gzstate.h b/gs/src/gzstate.h
index 63031c8b8..1a1992a63 100644
--- a/gs/src/gzstate.h
+++ b/gs/src/gzstate.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Private graphics state definition for Ghostscript library */
#ifndef gzstate_INCLUDED
diff --git a/gs/src/ialloc.c b/gs/src/ialloc.c
index e75055463..cc527da8f 100644
--- a/gs/src/ialloc.c
+++ b/gs/src/ialloc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Memory allocator for Ghostscript interpreter */
#include "gx.h"
#include "memory_.h"
diff --git a/gs/src/ialloc.h b/gs/src/ialloc.h
index c9ef3ac13..efa0748e4 100644
--- a/gs/src/ialloc.h
+++ b/gs/src/ialloc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to Ghostscript interpreter memory allocator */
#ifndef ialloc_INCLUDED
diff --git a/gs/src/iastate.h b/gs/src/iastate.h
index bc3ccc075..26ec09329 100644
--- a/gs/src/iastate.h
+++ b/gs/src/iastate.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Collected definitions for interpreter allocator state */
/* Requires gsmemory.h, gsstruct.h */
#ifndef iastate_INCLUDED
diff --git a/gs/src/iastruct.h b/gs/src/iastruct.h
index 6f587f74d..18085e113 100644
--- a/gs/src/iastruct.h
+++ b/gs/src/iastruct.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter memory manager implementation structures */
#ifndef iastruct_INCLUDED
diff --git a/gs/src/ibnum.c b/gs/src/ibnum.c
index b26bcbdca..5f3dbaf88 100644
--- a/gs/src/ibnum.c
+++ b/gs/src/ibnum.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 encoded number reading utilities for Ghostscript */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/ibnum.h b/gs/src/ibnum.h
index b56397e6a..adac8e980 100644
--- a/gs/src/ibnum.h
+++ b/gs/src/ibnum.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1990, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Encoded number definitions and support */
/* Requires stream.h */
#ifndef ibnum_INCLUDED
diff --git a/gs/src/iccfont.c b/gs/src/iccfont.c
index 4c0ef15c1..9a57c2c77 100644
--- a/gs/src/iccfont.c
+++ b/gs/src/iccfont.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Initialization support for compiled fonts */
#include "string_.h"
#include "ghost.h"
diff --git a/gs/src/iccinit0.c b/gs/src/iccinit0.c
index 6bb122cc2..460c9b4c4 100644
--- a/gs/src/iccinit0.c
+++ b/gs/src/iccinit0.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Initialization string for non-compiled initialization */
#include "stdpre.h"
diff --git a/gs/src/icfontab.c b/gs/src/icfontab.c
index b2ff878f8..fd2a5f651 100644
--- a/gs/src/icfontab.c
+++ b/gs/src/icfontab.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Table of compiled fonts */
#include "ccfont.h"
diff --git a/gs/src/ichar.h b/gs/src/ichar.h
index cf7b07169..55ecb10d7 100644
--- a/gs/src/ichar.h
+++ b/gs/src/ichar.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Character rendering operator definitions and support procedures */
/* Requires gstext.h */
#ifndef ichar_INCLUDED
diff --git a/gs/src/ichar1.h b/gs/src/ichar1.h
index 8b580e203..159ff2087 100644
--- a/gs/src/ichar1.h
+++ b/gs/src/ichar1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 1 / Type 2 character rendering operator entry */
#ifndef ichar1_INCLUDED
diff --git a/gs/src/icharout.h b/gs/src/icharout.h
index aa3a776af..cd0b523db 100644
--- a/gs/src/icharout.h
+++ b/gs/src/icharout.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to zcharout.c */
#ifndef icharout_INCLUDED
diff --git a/gs/src/icie.h b/gs/src/icie.h
index 1f61b3d06..553e69ea7 100644
--- a/gs/src/icie.h
+++ b/gs/src/icie.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal definitions for interpreter CIE color handling */
#ifndef icie_INCLUDED
diff --git a/gs/src/icolor.h b/gs/src/icolor.h
index dc7e58f20..3985ec894 100644
--- a/gs/src/icolor.h
+++ b/gs/src/icolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Declarations for transfer function & similar cache remapping */
#ifndef icolor_INCLUDED
@@ -32,8 +19,9 @@ extern const int zcolor_remap_one_estack;
/*
* Schedule the sampling and reloading of a cache. Note that if
- * zcolor_remap_one recognize the procedure as being of a special form,
- * it may return 0 and not schedule anything.
+ * zcolor_remap_one recognize the procedure as being of a special form, it
+ * may not schedule anything, but it still returns o_push_estack. (This is
+ * a change as of release 5.95; formerly, it returned 0 in this case.)
*/
int zcolor_remap_one(P5(i_ctx_t *, const ref *, gx_transfer_map *,
const gs_state *, op_proc_t));
diff --git a/gs/src/iconf.c b/gs/src/iconf.c
index 7dd08925c..9b1dab898 100644
--- a/gs/src/iconf.c
+++ b/gs/src/iconf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Configuration-dependent tables and initialization for interpreter */
#include "stdio_.h" /* stdio for stream.h */
#include "gstypes.h"
diff --git a/gs/src/icontext.c b/gs/src/icontext.c
index f43c119eb..51f023b8f 100644
--- a/gs/src/icontext.c
+++ b/gs/src/icontext.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Context state operations */
#include "ghost.h"
#include "gsstruct.h" /* for gxalloc.h */
diff --git a/gs/src/icontext.h b/gs/src/icontext.h
index da2bdd6ac..5895f7014 100644
--- a/gs/src/icontext.h
+++ b/gs/src/icontext.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Externally visible context state */
/* Requires iref.h, stdio_.h */
diff --git a/gs/src/icremap.h b/gs/src/icremap.h
index 385284340..96ded66a2 100644
--- a/gs/src/icremap.h
+++ b/gs/src/icremap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter color remapping structure */
#ifndef icremap_INCLUDED
diff --git a/gs/src/icsmap.h b/gs/src/icsmap.h
index 476d624fd..3a619e968 100644
--- a/gs/src/icsmap.h
+++ b/gs/src/icsmap.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to shared routines for loading the cached color space maps. */
#ifndef icsmap_INCLUDED
diff --git a/gs/src/icstate.h b/gs/src/icstate.h
index 0f2271953..497d7f60d 100644
--- a/gs/src/icstate.h
+++ b/gs/src/icstate.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Externally visible context state */
#ifndef icstate_INCLUDED
diff --git a/gs/src/iddict.h b/gs/src/iddict.h
index 1229e40fb..07ae11c91 100644
--- a/gs/src/iddict.h
+++ b/gs/src/iddict.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dictionary API with implicit dict_stack argument */
#ifndef iddict_INCLUDED
diff --git a/gs/src/iddstack.h b/gs/src/iddstack.h
index 3a3aa1415..9c843ce94 100644
--- a/gs/src/iddstack.h
+++ b/gs/src/iddstack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dictionary stack API subset needed by idict.h */
#ifndef iddstack_INCLUDED
diff --git a/gs/src/idebug.c b/gs/src/idebug.c
index a5481c18c..58dd6cdd4 100644
--- a/gs/src/idebug.c
+++ b/gs/src/idebug.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Debugging support for Ghostscript interpreter */
/* This file must always be compiled with DEBUG set. */
#undef DEBUG
diff --git a/gs/src/idebug.h b/gs/src/idebug.h
index 621d8ca4b..39fb98fc5 100644
--- a/gs/src/idebug.h
+++ b/gs/src/idebug.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Prototypes for debugging procedures in idebug.c */
#ifndef idebug_INCLUDED
diff --git a/gs/src/idict.c b/gs/src/idict.c
index 45e7306ba..a9ce45e60 100644
--- a/gs/src/idict.c
+++ b/gs/src/idict.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dictionary implementation */
#include "string_.h" /* for strlen */
#include "ghost.h"
diff --git a/gs/src/idict.h b/gs/src/idict.h
index 9b0d119cc..66cf89991 100644
--- a/gs/src/idict.h
+++ b/gs/src/idict.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interfaces for Ghostscript dictionary package */
#ifndef idict_INCLUDED
diff --git a/gs/src/idictdef.h b/gs/src/idictdef.h
index 155be829b..fab0689b9 100644
--- a/gs/src/idictdef.h
+++ b/gs/src/idictdef.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internals of dictionary implementation */
#ifndef idictdef_INCLUDED
diff --git a/gs/src/idosave.h b/gs/src/idosave.h
index 496a53fde..49bba35a4 100644
--- a/gs/src/idosave.h
+++ b/gs/src/idosave.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Supporting procedures for 'save' recording. */
#ifndef idosave_INCLUDED
diff --git a/gs/src/idparam.c b/gs/src/idparam.c
index a9a121c90..4b35f0406 100644
--- a/gs/src/idparam.c
+++ b/gs/src/idparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utilities for getting parameters out of dictionaries. */
#include "memory_.h"
#include "string_.h" /* for strlen */
diff --git a/gs/src/idparam.h b/gs/src/idparam.h
index 4175f2516..a45579f1a 100644
--- a/gs/src/idparam.h
+++ b/gs/src/idparam.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to idparam.c */
#ifndef idparam_INCLUDED
diff --git a/gs/src/idsdata.h b/gs/src/idsdata.h
index b50052e61..dd9047591 100644
--- a/gs/src/idsdata.h
+++ b/gs/src/idsdata.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic dictionary stack structure definition */
#ifndef idsdata_INCLUDED
diff --git a/gs/src/idstack.c b/gs/src/idstack.c
index 67b66d96e..2d54a68fe 100644
--- a/gs/src/idstack.c
+++ b/gs/src/idstack.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation of dictionary stacks */
#include "ghost.h"
#include "idict.h"
diff --git a/gs/src/idstack.h b/gs/src/idstack.h
index 1a6dc6fed..1984692da 100644
--- a/gs/src/idstack.h
+++ b/gs/src/idstack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic dictionary stack API */
#ifndef idstack_INCLUDED
diff --git a/gs/src/iesdata.h b/gs/src/iesdata.h
index 7ce915950..03f344a13 100644
--- a/gs/src/iesdata.h
+++ b/gs/src/iesdata.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic execution stack structure definition */
#ifndef iesdata_INCLUDED
diff --git a/gs/src/iestack.h b/gs/src/iestack.h
index 982e79a5c..7feeea5a9 100644
--- a/gs/src/iestack.h
+++ b/gs/src/iestack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic execution stack API */
#ifndef iestack_INCLUDED
diff --git a/gs/src/ifilter.h b/gs/src/ifilter.h
index e1612d798..436e0abd9 100644
--- a/gs/src/ifilter.h
+++ b/gs/src/ifilter.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Interpreter filter support */
/* Requires oper.h, stream.h, strimpl.h */
#ifndef ifilter_INCLUDED
@@ -83,4 +71,7 @@ typedef struct stream_proc_state_s {
gs_private_st_complex_only(st_sproc_state, stream_proc_state,\
"procedure stream state", sproc_clear_marks, sproc_enum_ptrs, sproc_reloc_ptrs, 0)
+/* Test whether a stream is procedure-based. */
+bool s_is_proc(P1(const stream *s));
+
#endif /* ifilter_INCLUDED */
diff --git a/gs/src/ifilter2.h b/gs/src/ifilter2.h
index 207388f0b..46497feb3 100644
--- a/gs/src/ifilter2.h
+++ b/gs/src/ifilter2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utilities for Level 2 filters */
#ifndef ifilter2_INCLUDED
diff --git a/gs/src/ifont.h b/gs/src/ifont.h
index 7e7e2eb18..e8896aa0e 100644
--- a/gs/src/ifont.h
+++ b/gs/src/ifont.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1991, 1993, 1994, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter internal font representation */
#ifndef ifont_INCLUDED
diff --git a/gs/src/ifont1.h b/gs/src/ifont1.h
index a83b5452f..5c3428a81 100644
--- a/gs/src/ifont1.h
+++ b/gs/src/ifont1.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 1 font utilities shared with Type 2 */
#ifndef ifont1_INCLUDED
diff --git a/gs/src/ifrpred.h b/gs/src/ifrpred.h
index f92a8cef3..40a3878da 100644
--- a/gs/src/ifrpred.h
+++ b/gs/src/ifrpred.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* filter_read_predictor prototype */
#ifndef ifrpred_INCLUDED
diff --git a/gs/src/ifunc.h b/gs/src/ifunc.h
index 8a7660ffb..545c39930 100644
--- a/gs/src/ifunc.h
+++ b/gs/src/ifunc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal interpreter interfaces for Functions */
#ifndef ifunc_INCLUDED
diff --git a/gs/src/ifwpred.h b/gs/src/ifwpred.h
index 33be68302..debff2416 100644
--- a/gs/src/ifwpred.h
+++ b/gs/src/ifwpred.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* filter_read_predictor prototype */
#ifndef ifwpred_INCLUDED
diff --git a/gs/src/igc.c b/gs/src/igc.c
index 8b8e06ff0..2491ef99c 100644
--- a/gs/src/igc.c
+++ b/gs/src/igc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Garbage collector for Ghostscript */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/igc.h b/gs/src/igc.h
index 4b47c59a4..c4409a414 100644
--- a/gs/src/igc.h
+++ b/gs/src/igc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal interfaces in Ghostscript GC */
#ifndef igc_INCLUDED
@@ -83,9 +70,9 @@ void ialloc_validate_object(P3(const obj_header_t *, const chunk_t *,
gc_state_t *));
/* Macro for returning a relocated pointer */
-#ifdef DEBUG
const void *print_reloc_proc(P3(const void *obj, const char *cname,
const void *robj));
+#ifdef DEBUG
# define print_reloc(obj, cname, nobj)\
(gs_debug_c('9') ? print_reloc_proc(obj, cname, nobj) : nobj)
#else
diff --git a/gs/src/igcref.c b/gs/src/igcref.c
index 0a5e06266..86a461e52 100644
--- a/gs/src/igcref.c
+++ b/gs/src/igcref.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ref garbage collector for Ghostscript */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/igcstr.c b/gs/src/igcstr.c
index 74a6a44c0..869d7dfa3 100644
--- a/gs/src/igcstr.c
+++ b/gs/src/igcstr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* String GC routines for Ghostscript */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/igcstr.h b/gs/src/igcstr.h
index d0b2fe048..cfac7f27c 100644
--- a/gs/src/igcstr.h
+++ b/gs/src/igcstr.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal interface to string garbage collector */
#ifndef igcstr_INCLUDED
diff --git a/gs/src/igstate.h b/gs/src/igstate.h
index 85246b4d8..c1111c3ee 100644
--- a/gs/src/igstate.h
+++ b/gs/src/igstate.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Ghostscript interpreter graphics state definition */
#ifndef igstate_INCLUDED
diff --git a/gs/src/iht.h b/gs/src/iht.h
index ab3bbeb05..f9aab9453 100644
--- a/gs/src/iht.h
+++ b/gs/src/iht.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Procedures exported by zht.c for zht1.c and zht2.c */
#ifndef iht_INCLUDED
diff --git a/gs/src/iimage.h b/gs/src/iimage.h
index e53d4b671..9dd61bac1 100644
--- a/gs/src/iimage.h
+++ b/gs/src/iimage.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Image operator entry points */
/* Requires gscspace.h, gxiparam.h */
#ifndef iimage_INCLUDED
diff --git a/gs/src/iimage2.h b/gs/src/iimage2.h
index f742c2137..ae73d358d 100644
--- a/gs/src/iimage2.h
+++ b/gs/src/iimage2.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Level 2 image operator support */
/* Requires gsiparam.h */
#ifndef iimage2_INCLUDED
diff --git a/gs/src/iinit.c b/gs/src/iinit.c
index 5a95d9638..a0ca2d2a6 100644
--- a/gs/src/iinit.c
+++ b/gs/src/iinit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Initialize internally known objects for Ghostscript interpreter */
#include "string_.h"
#include "ghost.h"
@@ -370,13 +357,15 @@ zop_init(i_ctx_t *i_ctx_p)
ref vtemp;
make_const_string(&vtemp, a_readonly | avm_foreign,
- strlen(gs_copyright),
- (const byte *)gs_copyright);
+ strlen(gs_copyright), (const byte *)gs_copyright);
initial_enter_name("copyright", &vtemp);
make_const_string(&vtemp, a_readonly | avm_foreign,
- strlen(gs_product),
- (const byte *)gs_product);
+ strlen(gs_product), (const byte *)gs_product);
initial_enter_name("product", &vtemp);
+ make_const_string(&vtemp, a_readonly | avm_foreign,
+ strlen(gs_productfamily),
+ (const byte *)gs_productfamily);
+ initial_enter_name("productfamily", &vtemp);
make_int(&vtemp, gs_revision);
initial_enter_name("revision", &vtemp);
make_int(&vtemp, gs_revisiondate);
diff --git a/gs/src/iinit.h b/gs/src/iinit.h
index f98472eed..318cac1ed 100644
--- a/gs/src/iinit.h
+++ b/gs/src/iinit.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* (Internal) interface to iinit.c */
#ifndef iinit_INCLUDED
diff --git a/gs/src/ilevel.h b/gs/src/ilevel.h
index cb96df982..8c0dd4b69 100644
--- a/gs/src/ilevel.h
+++ b/gs/src/ilevel.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter language level interface */
#ifndef ilevel_INCLUDED
diff --git a/gs/src/ilocate.c b/gs/src/ilocate.c
index b42686d58..68f374a9b 100644
--- a/gs/src/ilocate.c
+++ b/gs/src/ilocate.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Object locating and validating for Ghostscript memory manager */
#include "ghost.h"
#include "memory_.h"
diff --git a/gs/src/imain.c b/gs/src/imain.c
index 85075321b..a356e12d8 100644
--- a/gs/src/imain.c
+++ b/gs/src/imain.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common support for interpreter front ends */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/imain.h b/gs/src/imain.h
index 5a6439133..71d3eb4a1 100644
--- a/gs/src/imain.h
+++ b/gs/src/imain.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to imain.c */
/* Requires <stdio.h>, stdpre.h, gsmemory.h, gstypes.h, iref.h */
diff --git a/gs/src/imainarg.c b/gs/src/imainarg.c
index dbbed4810..f555c1dea 100644
--- a/gs/src/imainarg.c
+++ b/gs/src/imainarg.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Command line parsing and dispatching */
#include "ctype_.h"
#include "memory_.h"
@@ -792,7 +779,12 @@ print_emulators(void)
for (pes = gs_emulator_name_array;
pes->value.const_bytes != 0; pes++
)
- fprintf(stdout, " %s", pes->value.const_bytes);
+ /*
+ * Even though gs_emulator_name_array is declared and used as
+ * an array of string refs, each string is actually a
+ * (null terminated) C string.
+ */
+ fprintf(stdout, " %s", (const char *)pes->value.const_bytes);
}
fprintf(stdout, "\n");
}
diff --git a/gs/src/imainarg.h b/gs/src/imainarg.h
index a3816f40b..e4fac9683 100644
--- a/gs/src/imainarg.h
+++ b/gs/src/imainarg.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* argv/argc interface to imainarg.c */
#ifndef imainarg_INCLUDED
diff --git a/gs/src/imemory.h b/gs/src/imemory.h
index a80826064..b5b7b003a 100644
--- a/gs/src/imemory.h
+++ b/gs/src/imemory.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Ghostscript memory allocator extensions for interpreter level */
#ifndef imemory_INCLUDED
diff --git a/gs/src/iminst.h b/gs/src/iminst.h
index 9f55a87ad..1f03c7686 100644
--- a/gs/src/iminst.h
+++ b/gs/src/iminst.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definition of interpreter instance */
/* Requires stdio_.h, gsmemory.h, iref.h */
diff --git a/gs/src/iname.c b/gs/src/iname.c
index 79aa5b4fb..946168755 100644
--- a/gs/src/iname.c
+++ b/gs/src/iname.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Name lookup for Ghostscript interpreter */
#include "memory_.h"
#include "string_.h"
@@ -52,6 +39,7 @@ gs_private_st_composite(st_name_table, name_table, "name_table",
/* Forward references */
private int name_alloc_sub(P1(name_table *));
+private void name_free_sub(P2(name_table *, uint));
private void name_scan_sub(P3(name_table *, uint, bool));
/* Debugging printout */
@@ -89,6 +77,8 @@ names_init(ulong count, gs_ref_memory_t *imem)
else if (count - 1 > max_name_count)
return 0;
nt = gs_alloc_struct(mem, name_table, &st_name_table, "name_init(nt)");
+ if (nt == 0)
+ return 0;
memset(nt, 0, sizeof(name_table));
nt->max_sub_count =
((count - 1) | nt_sub_index_mask) >> nt_log2_sub_size;
@@ -96,8 +86,16 @@ names_init(ulong count, gs_ref_memory_t *imem)
nt->memory = mem;
/* Initialize the one-character names. */
/* Start by creating the necessary sub-tables. */
- for (i = 0; i < NT_1CHAR_FIRST + NT_1CHAR_SIZE; i += nt_sub_size)
- name_alloc_sub(nt);
+ for (i = 0; i < NT_1CHAR_FIRST + NT_1CHAR_SIZE; i += nt_sub_size) {
+ int code = name_alloc_sub(nt);
+
+ if (code < 0) {
+ while (nt->sub_next > 0)
+ name_free_sub(nt, --(nt->sub_next));
+ gs_free_object(mem, nt, "name_init(nt)");
+ return 0;
+ }
+ }
for (i = -1; i < NT_1CHAR_SIZE; i++) {
uint ncnt = NT_1CHAR_FIRST + i;
uint nidx = name_count_to_index(ncnt);
@@ -523,6 +521,18 @@ name_alloc_sub(name_table * nt)
return 0;
}
+/* Free a sub-table. */
+private void
+name_free_sub(name_table * nt, uint sub_index)
+{
+ gs_free_object(nt->memory, nt->sub[sub_index].strings,
+ "name_free_sub(string sub-table)");
+ gs_free_object(nt->memory, nt->sub[sub_index].names,
+ "name_free_sub(sub-table)");
+ nt->sub[sub_index].names = 0;
+ nt->sub[sub_index].strings = 0;
+}
+
/* Scan a sub-table and add unmarked entries to the free list. */
/* We add the entries in decreasing count order, so the free list */
/* will stay sorted. If all entries are unmarked and free_empty is true, */
@@ -557,11 +567,7 @@ name_scan_sub(name_table * nt, uint sub_index, bool free_empty)
nt->free = free;
else {
/* No marked entries, free the sub-table. */
- gs_free_object(nt->memory, ssub, "name_scan_sub(string sub-table)");
- gs_free_object(nt->memory, nt->sub[sub_index].names,
- "name_scan_sub(sub-table)");
- nt->sub[sub_index].names = 0;
- nt->sub[sub_index].strings = 0;
+ name_free_sub(nt, sub_index);
if (sub_index == nt->sub_count - 1) {
/* Back up over a final run of deleted sub-tables. */
do {
diff --git a/gs/src/iname.h b/gs/src/iname.h
index e9ccc18b1..3adaec2b7 100644
--- a/gs/src/iname.h
+++ b/gs/src/iname.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter's name table interface */
#ifndef iname_INCLUDED
diff --git a/gs/src/inamedef.h b/gs/src/inamedef.h
index 09539bb40..4ae0cec9d 100644
--- a/gs/src/inamedef.h
+++ b/gs/src/inamedef.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Name table definition */
#ifndef inamedef_INCLUDED
diff --git a/gs/src/inameidx.h b/gs/src/inameidx.h
index b10857742..c526c2248 100644
--- a/gs/src/inameidx.h
+++ b/gs/src/inameidx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Name index definitions */
#ifndef inameidx_INCLUDED
diff --git a/gs/src/inames.h b/gs/src/inames.h
index d4b6ca1c3..eb3ef6aaf 100644
--- a/gs/src/inames.h
+++ b/gs/src/inames.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Name table interface */
#ifndef inames_INCLUDED
diff --git a/gs/src/inamestr.h b/gs/src/inamestr.h
index 28bc6e2ab..ca77cc4c0 100644
--- a/gs/src/inamestr.h
+++ b/gs/src/inamestr.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Name table strings definition */
#ifndef inamestr_INCLUDED
diff --git a/gs/src/inobtokn.c b/gs/src/inobtokn.c
index aee515b6e..f0346063e 100644
--- a/gs/src/inobtokn.c
+++ b/gs/src/inobtokn.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dummy scan_binary_token for Level 1 systems */
#include "ghost.h"
#include "errors.h"
diff --git a/gs/src/inouparm.c b/gs/src/inouparm.c
index 4e37b5917..7ee896a91 100644
--- a/gs/src/inouparm.c
+++ b/gs/src/inouparm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dummy set_user_params for Level 1 systems */
#include "ghost.h"
#include "icontext.h" /* for set_user_params prototype */
diff --git a/gs/src/instcopy b/gs/src/instcopy
index b3412440d..50d214f73 100755
--- a/gs/src/instcopy
+++ b/gs/src/instcopy
@@ -1,31 +1,44 @@
#!/bin/sh
-
+# $RCSfile$ $Revision$
#
# Implement a uniform 'install' syntax independent of which of the two
# "standard" install programs is installed. Based on ideas in, but not
# copied from, the GNU fileutils install-sh script. Usage:
-# instcopy -c [-m <mode>] <file> <dir>
+# instcopy -c [-m <mode>] <srcfile> (<dstdir>|<dstfile>)
+
+doit=""
+# Uncomment the following line for testing
+#doit="echo "
-c=$1
mode=""
- if [ "$2" = "-m" ]; then mode=$3; shift; shift; else true; fi
+ while true; do
+ case "$1" in
+ -c) ;;
+ -m) mode=$2; shift ;;
+ *) break ;;
+ esac
+ shift; done
-src=$2
-dst=$3
+src=$1
+dst=$2
- if [ x"$c" = x-c -a -f $src -a -d $dst ]; then true; else
- echo "Usage: instcopy -c [-m <mode>] <file> <dir>"
+ if [ $# = 2 -a -f $src ]; then true; else
+ echo "Usage: instcopy -c [-m <mode>] <srcfile> (<dstdir>|<dstfile>)"
exit 1
fi
-dstdir=`echo $dst | sed -e 's,/$,,'`
+if [ -d $dst ]; then
+ dstdir=`echo $dst | sed -e 's,/$,,'`
+ dst="$dstdir"/`basename $src`
+else
+ dstdir=`echo $dst | sed -e 's,/[^/]*$,,'`
+fi
dsttmp=$dstdir/#inst.$$#
-dst="$dstdir"/`basename $src`
-cp $src $dsttmp &&
-trap "rm -f $dsttmp" 0 &&
-if [ x"$mode" != x ]; then chmod $mode $dsttmp; else true; fi &&
-rm -f $dst &&
-mv $dsttmp $dst &&
+$doit cp $src $dsttmp &&
+$doit trap "rm -f $dsttmp" 0 &&
+if [ x"$mode" != x ]; then $doit chmod $mode $dsttmp; else true; fi &&
+$doit rm -f $dst &&
+$doit mv $dsttmp $dst &&
exit 0
diff --git a/gs/src/int.mak b/gs/src/int.mak
index 6e4330e90..175c599c0 100644
--- a/gs/src/int.mak
+++ b/gs/src/int.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# (Platform-independent) makefile for PostScript and PDF language
# interpreters.
# Users of this makefile must define the following:
@@ -280,27 +267,6 @@ $(PSOBJ)sfilter1.$(OBJ) : $(PSSRC)sfilter1.c $(AK) $(stdio__h) $(memory__h)\
$(sfilter_h) $(strimpl_h)
$(PSCC) $(PSO_)sfilter1.$(OBJ) $(C_) $(PSSRC)sfilter1.c
-# GNU readline. This code was contributed by a user: please contact
-# Alexey Subbotin <A.Subbotin@lpi.ru> if you have questions.
-# The references from a gp_ module to the interpreter are a bug,
-# but they are intrinsic to what this implementation does.
-# NOTE: please see gp_gnrdl.c for information about licensing problems
-# that will arise if you add this feature to Aladdin Ghostscript.
-gnrdline_=$(PSOBJ)gp_gnrdl.$(OBJ)
-$(PSD)gnrdline.dev : $(INT_MAK) $(ECHOGS_XE) $(gnrdline_)
- $(SETMOD) $(PSD)gnrdline $(gnrdline_)
- $(ADDMOD) $(PSD)gnrdline -lib readline termcap
- $(ADDMOD) $(PSD)gnrdline -replace $(GLD)strdline
- $(ADDMOD) $(PSD)gnrdline -ps gs_rdlin
-
-$(PSOBJ)gp_gnrdl.$(OBJ) : $(PSSRC)gp_gnrdl.c $(AK)\
- $(ctype__h) $(malloc__h) $(memory__h) $(string__h)\
- $(gp_h) $(gscdefs_h) $(gsmalloc_h) $(gsmemory_h) $(gsstruct_h)\
- $(gxiodev_h) $(stream_h)\
- $(ghost_h) $(dstack_h) $(errors_h) $(ialloc_h) $(idict_h) $(iname_h) $(iutil_h)\
- $(ostack_h)
- $(PSCC) $(PSO_)gp_gnrdl.$(OBJ) $(C_) $(PSSRC)gp_gnrdl.c
-
###### Operators
OP=$(GH) $(oper_h)
@@ -1380,14 +1346,14 @@ $(PSOBJ)zfunc0.$(OBJ) : $(PSSRC)zfunc0.c $(OP) $(memory__h)\
# ---------------- DCT filters ---------------- #
# The definitions for jpeg*.dev are in jpeg.mak.
-$(PSD)dct.dev : $(INT_MAK) $(ECHOGS_XE) $(GLD)dcte.dev $(GLD)dctd.dev
- $(SETMOD) $(PSD)dct -include $(GLD)dcte $(GLD)dctd
+$(PSD)dct.dev : $(INT_MAK) $(ECHOGS_XE) $(PSD)dcte.dev $(PSD)dctd.dev
+ $(SETMOD) $(PSD)dct -include $(PSD)dcte $(PSD)dctd
# Encoding (compression)
-dcte_=$(PSOBJ)zfdcte.$(OBJ) $(GLOBJ)sdeparam.$(OBJ) $(GLOBJ)sdcparam.$(OBJ)
-$(PSD)dcte.dev : $(INT_MAK) $(ECHOGS_XE) $(GLD)sdcte.dev $(dcte_)
- $(SETMOD) $(PSD)dcte -include $(GLD)sdcte
+dcte_=$(PSOBJ)zfdcte.$(OBJ)
+$(PSD)dcte.dev : $(INT_MAK) $(ECHOGS_XE) $(GLD)sdcte.dev $(GLD)sdeparam.dev $(dcte_)
+ $(SETMOD) $(PSD)dcte -include $(GLD)sdcte $(GLD)sdeparam
$(ADDMOD) $(PSD)dcte -obj $(dcte_)
$(ADDMOD) $(PSD)dcte -oper zfdcte
@@ -1400,9 +1366,9 @@ $(PSOBJ)zfdcte.$(OBJ) : $(PSSRC)zfdcte.c $(OP)\
# Decoding (decompression)
-dctd_=$(PSOBJ)zfdctd.$(OBJ) $(GLOBJ)sddparam.$(OBJ) $(GLOBJ)sdcparam.$(OBJ)
-$(PSD)dctd.dev : $(INT_MAK) $(ECHOGS_XE) $(GLD)sdctd.dev $(dctd_)
- $(SETMOD) $(PSD)dctd -include $(GLD)sdctd
+dctd_=$(PSOBJ)zfdctd.$(OBJ)
+$(PSD)dctd.dev : $(INT_MAK) $(ECHOGS_XE) $(GLD)sdctd.dev $(GLD)sddparam.dev $(dctd_)
+ $(SETMOD) $(PSD)dctd -include $(GLD)sdctd $(GLD)sddparam
$(ADDMOD) $(PSD)dctd -obj $(dctd_)
$(ADDMOD) $(PSD)dctd -oper zfdctd
diff --git a/gs/src/interp.c b/gs/src/interp.c
index 015832bf0..16c3d1b06 100644
--- a/gs/src/interp.c
+++ b/gs/src/interp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Ghostscript language interpreter */
#include "memory_.h"
#include "string_.h"
@@ -423,6 +410,7 @@ interp_reclaim(i_ctx_t **pi_ctx_p, int space)
* (This will eventually result in a fatal error if no 'stopped'
* is active.)
* In case of a quit or a fatal error, also store the exit code.
+ * Set *perror_object to null or the error object.
*/
private int gs_call_interp(P5(i_ctx_t **, ref *, int, int *, ref *));
int
@@ -435,8 +423,6 @@ gs_interpret(i_ctx_t **pi_ctx_p, ref * pref, int user_errors, int *pexit_code,
gs_register_ref_root(imemory_system, &error_root,
(void **)&perror_object, "gs_interpret");
- /* Initialize the error object in case of GC. */
- make_null(perror_object);
code = gs_call_interp(pi_ctx_p, pref, user_errors, pexit_code,
perror_object);
i_ctx_p = *pi_ctx_p;
@@ -461,6 +447,8 @@ gs_call_interp(i_ctx_t **pi_ctx_p, ref * pref, int user_errors,
*pexit_code = 0;
ialloc_reset_requested(idmemory);
again:
+ /* Avoid a dangling error object that might get traced by a future GC. */
+ make_null(perror_object);
o_stack.requested = e_stack.requested = d_stack.requested = 0;
while (gc_signal) { /* Some routine below triggered a GC. */
gs_gc_root_t epref_root;
@@ -469,11 +457,11 @@ again:
/* Make sure that doref will get relocated properly if */
/* a garbage collection happens with epref == &doref. */
gs_register_ref_root(imemory_system, &epref_root,
- (void **)&epref, "gs_call_interpret(epref)");
+ (void **)&epref, "gs_call_interp(epref)");
code = interp_reclaim(pi_ctx_p, -1);
i_ctx_p = *pi_ctx_p;
gs_unregister_root(imemory_system, &epref_root,
- "gs_call_interpret(epref)");
+ "gs_call_interp(epref)");
if (code < 0)
return code;
}
diff --git a/gs/src/interp.h b/gs/src/interp.h
index 2d70161c3..22de1bebf 100644
--- a/gs/src/interp.h
+++ b/gs/src/interp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Internal interfaces to interp.c and iinit.c */
#ifndef interp_INCLUDED
diff --git a/gs/src/iosdata.h b/gs/src/iosdata.h
index 1b944626b..90d99e6f4 100644
--- a/gs/src/iosdata.h
+++ b/gs/src/iosdata.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic operand stack API */
#ifndef iosdata_INCLUDED
diff --git a/gs/src/iostack.h b/gs/src/iostack.h
index 6924b3dff..661aae3b6 100644
--- a/gs/src/iostack.h
+++ b/gs/src/iostack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic operand stack API */
#ifndef iostack_INCLUDED
diff --git a/gs/src/ipacked.h b/gs/src/ipacked.h
index 416cc2baa..1a62d4ad5 100644
--- a/gs/src/ipacked.h
+++ b/gs/src/ipacked.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1993, 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Packed array format for Ghostscript */
#ifndef ipacked_INCLUDED
diff --git a/gs/src/iparam.c b/gs/src/iparam.c
index 1c45fb652..febccb413 100644
--- a/gs/src/iparam.c
+++ b/gs/src/iparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter implementations of parameter dictionaries */
#include "memory_.h"
#include "string_.h"
@@ -258,7 +245,7 @@ ref_param_write_typed(gs_param_list * plist, gs_param_name pkey,
case gs_param_type_array:
return ref_param_begin_write_collection(plist, pkey,
&pvalue->value.d,
- pvalue->type - gs_param_type_dict);
+ (gs_param_collection_type_t)(pvalue->type - gs_param_type_dict));
default:
return_error(e_typecheck);
}
diff --git a/gs/src/iparam.h b/gs/src/iparam.h
index 68039e156..90fe99133 100644
--- a/gs/src/iparam.h
+++ b/gs/src/iparam.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions and interface for interpreter parameter list implementations */
/* Requires ialloc.h, istack.h */
#ifndef iparam_INCLUDED
diff --git a/gs/src/iparray.h b/gs/src/iparray.h
index 17ea0597d..515ac3429 100644
--- a/gs/src/iparray.h
+++ b/gs/src/iparray.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Packed array constructor for Ghostscript */
/* Requires ipacked.h, istack.h */
diff --git a/gs/src/ipcolor.h b/gs/src/ipcolor.h
index fdf118d61..02ece4c66 100644
--- a/gs/src/ipcolor.h
+++ b/gs/src/ipcolor.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter definitions for Pattern color */
#ifndef ipcolor_INCLUDED
diff --git a/gs/src/ireclaim.c b/gs/src/ireclaim.c
index 0847ca24c..012f3185e 100644
--- a/gs/src/ireclaim.c
+++ b/gs/src/ireclaim.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter's interface to garbage collector */
#include "ghost.h"
#include "errors.h"
diff --git a/gs/src/iref.h b/gs/src/iref.h
index a6958cc02..42a3a4246 100644
--- a/gs/src/iref.h
+++ b/gs/src/iref.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Object structure and type definitions for Ghostscript */
#ifndef iref_INCLUDED
diff --git a/gs/src/isave.c b/gs/src/isave.c
index 10507b2f2..d3d708104 100644
--- a/gs/src/isave.c
+++ b/gs/src/isave.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Save/restore manager for Ghostscript interpreter */
#include "ghost.h"
#include "memory_.h"
diff --git a/gs/src/isave.h b/gs/src/isave.h
index ec3add9cc..69e2e2e3d 100644
--- a/gs/src/isave.h
+++ b/gs/src/isave.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Procedures for save/restore */
/* Requires imemory.h */
#ifndef isave_INCLUDED
diff --git a/gs/src/iscan.c b/gs/src/iscan.c
index f3d139251..8b2c91046 100644
--- a/gs/src/iscan.c
+++ b/gs/src/iscan.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Token scanner for Ghostscript interpreter */
#include "ghost.h"
#include "memory_.h"
diff --git a/gs/src/iscan.h b/gs/src/iscan.h
index 908eef2c2..1bcbf1cc8 100644
--- a/gs/src/iscan.h
+++ b/gs/src/iscan.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1992, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Token scanner state and interface */
/* Requires gsstruct.h, ostack.h, stream.h */
#ifndef iscan_INCLUDED
diff --git a/gs/src/iscanbin.c b/gs/src/iscanbin.c
index 6448d102b..55751f944 100644
--- a/gs/src/iscanbin.c
+++ b/gs/src/iscanbin.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Ghostscript binary token scanner and writer */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/iscanbin.h b/gs/src/iscanbin.h
index b2e856dd7..501949821 100644
--- a/gs/src/iscanbin.h
+++ b/gs/src/iscanbin.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to binary token scanner */
#ifndef iscanbin_INCLUDED
diff --git a/gs/src/iscannum.c b/gs/src/iscannum.c
index 8654b081d..9c460a2ff 100644
--- a/gs/src/iscannum.c
+++ b/gs/src/iscannum.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Number scanner for Ghostscript interpreter */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/iscannum.h b/gs/src/iscannum.h
index f4ce1e1c1..4997dabff 100644
--- a/gs/src/iscannum.h
+++ b/gs/src/iscannum.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to Ghostscript number scanner */
#ifndef iscannum_INCLUDED
diff --git a/gs/src/isdata.h b/gs/src/isdata.h
index 3828f4c0d..b1f0003a9 100644
--- a/gs/src/isdata.h
+++ b/gs/src/isdata.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Structure for expandable stacks of refs */
/* Requires iref.h */
diff --git a/gs/src/isstate.h b/gs/src/isstate.h
index bf3465832..a81d7b55b 100644
--- a/gs/src/isstate.h
+++ b/gs/src/isstate.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definition of 'save' structure */
/* Requires isave.h */
#ifndef isstate_INCLUDED
diff --git a/gs/src/istack.c b/gs/src/istack.c
index 9f7caa14d..240822051 100644
--- a/gs/src/istack.c
+++ b/gs/src/istack.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Manager for expandable stacks of refs */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/istack.h b/gs/src/istack.h
index 459ee3846..69bcbd2ad 100644
--- a/gs/src/istack.h
+++ b/gs/src/istack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for expandable stacks of refs */
/* Requires iref.h */
diff --git a/gs/src/istkparm.h b/gs/src/istkparm.h
index 3ca9362d7..fa14c53ab 100644
--- a/gs/src/istkparm.h
+++ b/gs/src/istkparm.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Parameter structure for expandable stacks of refs */
#ifndef istkparm_INCLUDED
diff --git a/gs/src/istream.h b/gs/src/istream.h
index e71acffa9..8d04ca507 100644
--- a/gs/src/istream.h
+++ b/gs/src/istream.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Interpreter support procedures for streams */
/* Requires scommon.h */
#ifndef istream_INCLUDED
diff --git a/gs/src/istruct.h b/gs/src/istruct.h
index c4a6af198..36023e429 100644
--- a/gs/src/istruct.h
+++ b/gs/src/istruct.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interpreter-level extension of gsstruct.h */
#ifndef istruct_INCLUDED
diff --git a/gs/src/iutil.c b/gs/src/iutil.c
index 0f2d84d06..05485002e 100644
--- a/gs/src/iutil.c
+++ b/gs/src/iutil.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Utilities for Ghostscript interpreter */
#include "math_.h" /* for fabs */
#include "memory_.h"
@@ -499,7 +486,7 @@ ensure_dot(char *buf)
strcpy(buf1, ept);
strcpy(ept, ".0");
- strcat(buf, ept);
+ strcat(ept, buf1);
}
}
}
diff --git a/gs/src/iutil.h b/gs/src/iutil.h
index 2a0a0c9c2..8d05e9cc4 100644
--- a/gs/src/iutil.h
+++ b/gs/src/iutil.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Interface to interpreter utilities */
/* Requires imemory.h, ostack.h */
#ifndef iutil_INCLUDED
diff --git a/gs/src/iutil2.c b/gs/src/iutil2.c
index b0c5195a2..bd607f542 100644
--- a/gs/src/iutil2.c
+++ b/gs/src/iutil2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 utilities for Ghostscript interpreter */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/iutil2.h b/gs/src/iutil2.h
index eb64726c2..920e98336 100644
--- a/gs/src/iutil2.h
+++ b/gs/src/iutil2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface to procedures in iutil2.c */
#ifndef iutil2_INCLUDED
diff --git a/gs/src/iutilasm.asm b/gs/src/iutilasm.asm
index d5a7027fe..0856b78c1 100644
--- a/gs/src/iutilasm.asm
+++ b/gs/src/iutilasm.asm
@@ -1,21 +1,8 @@
; Copyright (C) 1989, 1992, 1993 Aladdin Enterprises. All rights reserved.
-;
-; This file is part of Aladdin Ghostscript.
-;
-; Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-; or distributor accepts any responsibility for the consequences of using it,
-; or for whether it serves any particular purpose or works at all, unless he
-; or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-; License (the "License") for full details.
-;
-; Every copy of Aladdin Ghostscript must include a copy of the License,
-; normally in a plain ASCII text file named PUBLIC. The License grants you
-; the right to copy, modify and redistribute Aladdin Ghostscript, but only
-; under certain conditions described in the License. Among other things, the
-; License requires that the copyright notice and this notice be preserved on
-; all copies.
-
+; This software is licensed to a single customer by Artifex Software Inc.
+; under the terms of a specific OEM agreement.
+; $RCSfile$ $Revision$
; iutilasm.asm
; Assembly code for Ghostscript interpreter on MS-DOS systems
diff --git a/gs/src/ivmem2.h b/gs/src/ivmem2.h
index 9fe8750ec..49ef30d52 100644
--- a/gs/src/ivmem2.h
+++ b/gs/src/ivmem2.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* VM control user parameter procedures */
#ifndef ivmem2_INCLUDED
diff --git a/gs/src/ivmspace.h b/gs/src/ivmspace.h
index 60b22d0d4..47d9bcd82 100644
--- a/gs/src/ivmspace.h
+++ b/gs/src/ivmspace.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Local/global space management */
/* Requires iref.h */
diff --git a/gs/src/jerror_.h b/gs/src/jerror_.h
index ff92274e2..8a299562d 100644
--- a/gs/src/jerror_.h
+++ b/gs/src/jerror_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Wrapper for jerror.h */
#if SHARE_JPEG
diff --git a/gs/src/jpeg.mak b/gs/src/jpeg.mak
index 780f593cc..334090357 100644
--- a/gs/src/jpeg.mak
+++ b/gs/src/jpeg.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Independent JPEG Group library code.
# Users of this makefile must define the following:
# GSSRCDIR - the GS library source directory
diff --git a/gs/src/lib.mak b/gs/src/lib.mak
index e0428ad74..8d5da46a5 100644
--- a/gs/src/lib.mak
+++ b/gs/src/lib.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# (Platform-independent) makefile for Ghostscript graphics library
# and other support code.
# Users of this makefile must define the following:
@@ -176,7 +163,8 @@ $(GLOBJ)gsmemret.$(OBJ) : $(GLSRC)gsmemret.c $(GXERR) $(gsmemret_h)
$(GLCC) $(GLO_)gsmemret.$(OBJ) $(C_) $(GLSRC)gsmemret.c
# gsnogc is not part of the base configuration.
-# This is available as a .dev so it can be used by non PS parsers
+# We make it available as a .dev so it can be used in configurations that
+# don't include the garbage collector, as well as by the "async" logic.
gsnogc_=$(GLOBJ)gsnogc.$(OBJ)
$(GLD)gsnogc.dev : $(LIB_MAK) $(ECHOGS_XE) $(gsnogc_)
$(SETMOD) $(GLD)gsnogc $(gsnogc_)
@@ -502,7 +490,7 @@ $(GLOBJ)gxdither.$(OBJ) : $(GLSRC)gxdither.c $(GX)\
$(gxcmap_h) $(gxdevice_h) $(gxdither_h) $(gxlum_h) $(gzht_h)
$(GLCC) $(GLO_)gxdither.$(OBJ) $(C_) $(GLSRC)gxdither.c
-$(GLOBJ)gxfill.$(OBJ) : $(GLSRC)gxfill.c $(GXERR) $(math__h)\
+$(GLOBJ)gxfill.$(OBJ) : $(GLSRC)gxfill.c $(GXERR)\
$(gsstruct_h)\
$(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxhttile_h)\
$(gxistate_h) $(gxpaint_h)\
@@ -1068,6 +1056,10 @@ $(GLOBJ)sjpege.$(OBJ) : $(GLSRC)sjpege.c $(AK)\
# sdeparam is used by the filter operator and the PS/PDF writer.
# It is not included automatically in sdcte.
+sdeparam_=$(GLOBJ)sdeparam.$(OBJ) $(GLOBJ)sdcparam.$(OBJ)
+$(GLD)sdeparam.dev : $(LIB_MAK) $(ECHOGS_XE) $(sdeparam_)
+ $(SETMOD) $(GLD)sdeparam $(sdeparam_)
+
$(GLOBJ)sdeparam.$(OBJ) : $(GLSRC)sdeparam.c $(AK) $(memory__h)\
$(jpeglib__h)\
$(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gstypes_h)\
@@ -1095,6 +1087,10 @@ $(GLOBJ)sjpegd.$(OBJ) : $(GLSRC)sjpegd.c $(AK)\
# sddparam is used by the filter operator.
# It is not included automatically in sdctd.
+sddparam_=$(GLOBJ)sddparam.$(OBJ) $(GLOBJ)sdcparam.$(OBJ)
+$(GLD)sddparam.dev : $(LIB_MAK) $(ECHOGS_XE) $(sddparam_)
+ $(SETMOD) $(GLD)sddparam $(sddparam_)
+
$(GLOBJ)sddparam.$(OBJ) : $(GLSRC)sddparam.c $(AK) $(std_h)\
$(jpeglib__h)\
$(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gstypes_h)\
@@ -1104,9 +1100,7 @@ $(GLOBJ)sddparam.$(OBJ) : $(GLSRC)sddparam.c $(AK) $(std_h)\
# ---------------- LZW filters ---------------- #
# These are used by Level 2 in general.
-slzwe_=slzwce
-#slzwe_=slzwe
-lzwe_=$(GLOBJ)$(slzwe_).$(OBJ) $(GLOBJ)slzwc.$(OBJ)
+lzwe_=$(GLOBJ)slzwce.$(OBJ) $(GLOBJ)slzwc.$(OBJ)
$(GLD)lzwe.dev : $(LIB_MAK) $(ECHOGS_XE) $(lzwe_)
$(SETMOD) $(GLD)lzwe $(lzwe_)
@@ -1118,10 +1112,6 @@ $(GLOBJ)slzwce.$(OBJ) : $(GLSRC)slzwce.c $(AK) $(stdio__h) $(gdebug_h)\
$(slzwx_h) $(strimpl_h)
$(GLCC) $(GLO_)slzwce.$(OBJ) $(C_) $(GLSRC)slzwce.c
-$(GLOBJ)slzwe.$(OBJ) : $(GLSRC)slzwe.c $(AK) $(stdio__h) $(gdebug_h)\
- $(slzwx_h) $(strimpl_h)
- $(GLCC) $(GLO_)slzwe.$(OBJ) $(C_) $(GLSRC)slzwe.c
-
$(GLOBJ)slzwc.$(OBJ) : $(GLSRC)slzwc.c $(AK) $(std_h)\
$(slzwx_h) $(strimpl_h)
$(GLCC) $(GLO_)slzwc.$(OBJ) $(C_) $(GLSRC)slzwc.c
@@ -1537,7 +1527,7 @@ gxpageq_h=$(GLSRC)gxpageq.h $(gsmemory_h) $(gxband_h) $(gxsync_h)
gdevprna_h=$(GLSRC)gdevprna.h $(gdevprn_h) $(gxsync_h)
async_=$(GLOBJ)gdevprna.$(OBJ) $(GLOBJ)gxpageq.$(OBJ)
-async_inc=$(GLD)clist.dev $(GLD)$(SYNC).dev $(GLD)gsnogc.dev
+async_inc=$(GLD)clist.dev $(GLD)gsnogc.dev $(GLD)$(SYNC).dev
$(GLD)async.dev : $(LIB_MAK) $(ECHOGS_XE) $(async_) $(async_inc)
$(SETMOD) $(GLD)async $(async_)
$(ADDMOD) $(GLD)async -include $(async_inc)
@@ -1647,7 +1637,7 @@ $(GLOBJ)gxhint2.$(OBJ) : $(GLSRC)gxhint2.c $(GXERR) $(memory__h)\
$(gxfont_h) $(gxfont1_h) $(gxtype1_h)
$(GLCC) $(GLO_)gxhint2.$(OBJ) $(C_) $(GLSRC)gxhint2.c
-$(GLOBJ)gxhint3.$(OBJ) : $(GLSRC)gxhint3.c $(GXERR) $(math__h)\
+$(GLOBJ)gxhint3.$(OBJ) : $(GLSRC)gxhint3.c $(GXERR)\
$(gxarith_h) $(gxfixed_h) $(gxmatrix_h)\
$(gxfont_h) $(gxfont1_h) $(gxtype1_h)\
$(gzpath_h)
@@ -1690,7 +1680,7 @@ $(GLD)ttflib.dev : $(LIB_MAK) $(ECHOGS_XE) $(ttflib_)
gxfont42_h=$(GLSRC)gxfont42.h
$(GLOBJ)gstype42.$(OBJ) : $(GLSRC)gstype42.c $(GXERR) $(memory__h)\
- $(gsccode_h) $(gsmatrix_h) $(gsstruct_h)\
+ $(gsccode_h) $(gsmatrix_h) $(gsstruct_h) $(gsutil_h)\
$(gxfixed_h) $(gxfont_h) $(gxfont42_h) $(gxistate_h) $(gxpath_h)
$(GLCC) $(GLO_)gstype42.$(OBJ) $(C_) $(GLSRC)gstype42.c
@@ -2093,6 +2083,11 @@ $(GLOBJ)gp_posem.$(OBJ) : $(GLSRC)gp_posem.c $(AK) $(std_h)\
$(gpsync_h) $(gserror_h) $(gserrors_h)
$(GLCC) $(GLO_)gp_posem.$(OBJ) $(C_) $(GLSRC)gp_posem.c
+# (POSIX) pthreads semaphores. DOESN'T WORK.
+$(GLOBJ)gp_ptsem.$(OBJ) : $(GLSRC)gp_ptsem.c $(AK) $(std_h)\
+ $(gpsync_h) $(gserror_h) $(gserrors_h)
+ $(GLCC) $(GLO_)gp_ptsem.$(OBJ) $(C_) $(GLSRC)gp_ptsem.c
+
# Monitors built out of semaphores.
$(GLOBJ)gp_semon.$(OBJ) : $(GLSRC)gp_semon.c $(AK) $(std_h)\
$(gpsync_h) $(gserror_h) $(gserrors_h)
@@ -2103,7 +2098,7 @@ pthreads_=$(GLOBJ)gp_pthr.$(OBJ)
$(GLD)pthreads.dev : $(LIB_MAK) $(ECHOGS_XE) $(pthreads_)
$(SETMOD) $(GLD)pthreads $(pthreads_) -lib pthread
-$(GLOBJ)gp_pthr.$(OBJ) : $(GLSRC)gp_pthr.c $(AK) $(std_h)\
+$(GLOBJ)gp_pthr.$(OBJ) : $(GLSRC)gp_pthr.c $(AK) $(malloc__h) $(std_h)\
$(gpsync_h) $(gserror_h) $(gserrors_h)
$(GLCC) $(GLO_)gp_pthr.$(OBJ) $(C_) $(GLSRC)gp_pthr.c
@@ -2113,6 +2108,11 @@ $(GLD)posync.dev : $(LIB_MAK) $(ECHOGS_XE) $(posync_) $(GLD)pthreads.dev
$(SETMOD) $(GLD)posync $(posync_) -include $(GLD)pthreads
$(ADDMOD) $(GLD)posync -replace $(GLD)nosync
+# FreeBSD has its own, idiosyncratic pthreads implementation.
+$(GLD)fbsdsync.dev : $(LIB_MAK) $(ECHOGS_XE) $(posync_)
+ $(SETMOD) $(GLD)fbsdsync $(posync_) -lib c_r
+ $(ADDMOD) $(GLD)fbsdsync -replace $(GLD)nosync
+
# Other stuff.
# Other MS-DOS facilities.
diff --git a/gs/src/libpng.mak b/gs/src/libpng.mak
index 2789a968d..59940ca8d 100644
--- a/gs/src/libpng.mak
+++ b/gs/src/libpng.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for PNG (Portable Network Graphics) code.
# Users of this makefile must define the following:
# ZSRCDIR - the zlib source directory
diff --git a/gs/src/main.h b/gs/src/main.h
index 44b68688e..7a66acf50 100644
--- a/gs/src/main.h
+++ b/gs/src/main.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Backward-compatible interface to gsmain.c */
#ifndef main_INCLUDED
diff --git a/gs/src/malloc_.h b/gs/src/malloc_.h
index 7ccb13fea..ab9cc2b03 100644
--- a/gs/src/malloc_.h
+++ b/gs/src/malloc_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix malloc.h */
#ifndef malloc__INCLUDED
diff --git a/gs/src/math_.h b/gs/src/math_.h
index 6fca7aee8..75550fc3f 100644
--- a/gs/src/math_.h
+++ b/gs/src/math_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for math.h */
#ifndef math__INCLUDED
diff --git a/gs/src/md5.c b/gs/src/md5.c
index 0dbff594d..c70a0de35 100644
--- a/gs/src/md5.c
+++ b/gs/src/md5.c
@@ -21,19 +21,23 @@
ghost@aladdin.com
*/
+/*$RCSfile$ $Revision$ */
/*
+ Independent implementation of MD5 (RFC 1321).
+
This code implements the MD5 Algorithm defined in RFC 1321.
It is derived directly from the text of the RFC and not from the
reference implementation.
- The original and principal author of ansi2knr is L. Peter Deutsch
+ The original and principal author of md5.c is L. Peter Deutsch
<ghost@aladdin.com>. Other authors are noted in the change history
that follows (in reverse chronological order):
+ 1999-11-04 lpd Edited comments slightly for automatic TOC extraction.
+ 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5).
1999-05-03 lpd Original version.
*/
-
#include "md5.h"
#ifdef TEST
diff --git a/gs/src/md5.h b/gs/src/md5.h
index 1d3b6e444..134ff8fe6 100644
--- a/gs/src/md5.h
+++ b/gs/src/md5.h
@@ -21,19 +21,25 @@
ghost@aladdin.com
*/
+/*$RCSfile$ $Revision$ */
/*
+ Independent implementation of MD5 (RFC 1321).
+
This code implements the MD5 Algorithm defined in RFC 1321.
It is derived directly from the text of the RFC and not from the
reference implementation.
- The original and principal author of ansi2knr is L. Peter Deutsch
+ The original and principal author of md5.h is L. Peter Deutsch
<ghost@aladdin.com>. Other authors are noted in the change history
that follows (in reverse chronological order):
+ 1999-11-04 lpd Edited comments slightly for automatic TOC extraction.
+ 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5);
+ added conditionalization for C++ compilation from Martin
+ Purschke <purschke@bnl.gov>.
1999-05-03 lpd Original version.
*/
-
#ifndef md5_INCLUDED
# define md5_INCLUDED
@@ -55,6 +61,11 @@ typedef struct md5_state_s {
md5_byte_t buf[64]; /* accumulate block */
} md5_state_t;
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
/* Initialize the algorithm. */
#ifdef P1
void md5_init(P1(md5_state_t *pms));
@@ -76,4 +87,8 @@ void md5_finish(P2(md5_state_t *pms, md5_byte_t digest[16]));
void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
#endif
+#ifdef __cplusplus
+} /* end extern "C" */
+#endif
+
#endif /* md5_INCLUDED */
diff --git a/gs/src/memory_.h b/gs/src/memory_.h
index 80f131009..1ad311973 100644
--- a/gs/src/memory_.h
+++ b/gs/src/memory_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix memory.h */
#ifndef memory__INCLUDED
diff --git a/gs/src/msvc32.mak b/gs/src/msvc32.mak
index 48cdbf02a..972e6e510 100644
--- a/gs/src/msvc32.mak
+++ b/gs/src/msvc32.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1991-1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for 32-bit Microsoft Visual C++, Windows NT or Windows 95 platform.
#
# All configurable options are surrounded by !ifndef/!endif to allow
@@ -34,10 +21,48 @@
# ------ Generic options ------ #
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+!ifndef BINDIR
+BINDIR=.\bin
+!endif
+!ifndef GLSRCDIR
+GLSRCDIR=.\src
+!endif
+!ifndef GLGENDIR
+GLGENDIR=.\obj
+!endif
+!ifndef GLOBJDIR
+GLOBJDIR=.\obj
+!endif
+!ifndef PSSRCDIR
+PSSRCDIR=.\src
+!endif
+!ifndef PSLIBDIR
+PSLIBDIR=.\lib
+!endif
+!ifndef PSGENDIR
+PSGENDIR=.\obj
+!endif
+!ifndef PSOBJDIR
+PSOBJDIR=.\obj
+!endif
+
+# Define the root directory for Ghostscript installation.
+
+!ifndef AROOTDIR
+AROOTDIR=c:/Aladdin
+!endif
+!ifndef GSROOTDIR
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+!endif
+
# Define the directory that will hold documentation at runtime.
!ifndef GS_DOCDIR
-GS_DOCDIR=c:/gs
+GS_DOCDIR=$(GSROOTDIR)/doc
!endif
# Define the default directory/ies for the runtime initialization and
@@ -47,7 +72,7 @@ GS_DOCDIR=c:/gs
# illegal escape.
!ifndef GS_LIB_DEFAULT
-GS_LIB_DEFAULT=.;c:/gs/lib;c:/gs/fonts
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib;$(AROOTDIR)/fonts
!endif
# Define whether or not searching for initialization files should always
@@ -108,6 +133,18 @@ GSCONSOLE=gswin32c
GSDLL=gsdll32
!endif
+!ifndef BUILD_TIME_GS
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gswin32c
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)\$(GS) -I$(PSLIBDIR)
+!endif
+
# To build two small executables and a large DLL use MAKEDLL=1
# To build two large executables use MAKEDLL=0
@@ -115,35 +152,6 @@ GSDLL=gsdll32
MAKEDLL=1
!endif
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-!ifndef BINDIR
-BINDIR=.\bin
-!endif
-!ifndef GLSRCDIR
-GLSRCDIR=.\src
-!endif
-!ifndef GLGENDIR
-GLGENDIR=.\obj
-!endif
-!ifndef GLOBJDIR
-GLOBJDIR=.\obj
-!endif
-!ifndef PSSRCDIR
-PSSRCDIR=.\src
-!endif
-!ifndef PSLIBDIR
-PSLIBDIR=.\lib
-!endif
-!ifndef PSGENDIR
-PSGENDIR=.\obj
-!endif
-!ifndef PSOBJDIR
-PSOBJDIR=.\obj
-!endif
-
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
@@ -300,14 +308,14 @@ SYNC=winsync
# Choose the language feature(s) to include. See gs.mak for details.
!ifndef FEATURE_DEVS
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)mshandle.dev $(PSD)pipe.dev
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)mshandle.dev $(GLD)pipe.dev
!endif
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
!ifndef COMPILE_INITS
-COMPILE_INITS=0
+COMPILE_INITS=1
!endif
# Choose whether to store band lists on files or in memory.
@@ -385,7 +393,7 @@ TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)\msvccmd.mak $(GLSRCDIR)\msvctail.mak $(GLS
# nmake expands macros when encountered, not when used,
# so this must precede the !include statements.
-BEGINFILES2=$(GLOBJDIR)\gs*32*.exp $(GLOBJDIR)\gs*32*.ilk $(GLOBJDIR)\gs*32*.pdb $(GLOBJDIR)\gs*32*.lib $(GLGENDIR)\lib32.rsp
+BEGINFILES2=$(GLOBJDIR)\*.exp $(GLOBJDIR)\*.ilk $(GLOBJDIR)\*.pdb $(GLOBJDIR)\*.lib $(GLGENDIR)\lib32.rsp $(GLOBJDIR)\dw*.res $(SETUP_XE) $(UNINSTALL_XE) $(BINDIR)\*.exp $(BINDIR)\*.ilk $(BINDIR)\*.pdb $(BINDIR)\*.lib
!include $(GLSRCDIR)\msvccmd.mak
!include $(GLSRCDIR)\winlib.mak
@@ -403,7 +411,7 @@ $(GLGEN)lib32.rsp: $(TOP_MAKEFILES)
!if $(MAKEDLL)
# The graphical small EXE loader
-$(GS_XE): $(GSDLL_DLL) $(DWOBJ) $(GSCONSOLE_XE)
+$(GS_XE): $(GSDLL_DLL) $(DWOBJ) $(GSCONSOLE_XE) $(SETUP_XE) $(UNINSTALL_XE)
echo /SUBSYSTEM:WINDOWS > $(GLGEN)gswin32.rsp
echo /DEF:$(GLSRCDIR)\dwmain32.def /OUT:$(GS_XE) >> $(GLGEN)gswin32.rsp
$(LINK) $(LCT) @$(GLGEN)gswin32.rsp $(DWOBJ) @$(LIBCTR) $(GS_OBJ).res
@@ -451,4 +459,33 @@ $(GSCONSOLE_XE): $(GS_ALL) $(DEVS_ALL) $(GLOBJ)gsdll.$(OBJ) $(OBJCNO) $(GS_OBJ).
del $(GLGEN)gswin32c.tr
!endif
+# ---------------------- Setup and uninstall programs ---------------------- #
+
+!if $(MAKEDLL)
+
+$(SETUP_XE): $(GLOBJ)dwsetup.obj $(GLOBJ)dwinst.obj $(GLOBJ)dwsetup.res $(GLSRC)dwsetup.def
+ echo /DEF:$(GLSRC)dwsetup.def /OUT:$(SETUP_XE) > $(GLGEN)dwsetup.rsp
+ echo $(GLOBJ)dwsetup.obj $(GLOBJ)dwinst.obj >> $(GLGEN)dwsetup.rsp
+ copy $(LIBCTR) $(GLGEN)dwsetup.tr
+ echo $(LIBDIR)\ole32.lib >> $(GLGEN)dwsetup.tr
+ echo $(LIBDIR)\uuid.lib >> $(GLGEN)dwsetup.tr
+ $(LINK_SETUP)
+ $(LINK) $(LCT) @$(GLGEN)dwsetup.rsp @$(GLGEN)dwsetup.tr $(GLOBJ)dwsetup.res
+ del $(GLGEN)dwsetup.rsp
+ del $(GLGEN)dwsetup.tr
+
+$(UNINSTALL_XE): $(GLOBJ)dwuninst.obj $(GLOBJ)dwuninst.res $(GLSRC)dwuninst.def
+ echo /DEF:$(GLSRC)dwuninst.def /OUT:$(UNINSTALL_XE) > $(GLGEN)dwuninst.rsp
+ echo $(GLOBJ)dwuninst.obj >> $(GLGEN)dwuninst.rsp
+ copy $(LIBCTR) $(GLGEN)dwuninst.tr
+ echo $(LIBDIR)\ole32.lib >> $(GLGEN)dwuninst.tr
+ echo $(LIBDIR)\uuid.lib >> $(GLGEN)dwuninst.tr
+ $(LINK_SETUP)
+ $(LINK) $(LCT) @$(GLGEN)dwuninst.rsp @$(GLGEN)dwuninst.tr $(GLOBJ)dwuninst.res
+ del $(GLGEN)dwuninst.rsp
+ del $(GLGEN)dwuninst.tr
+
+!endif
+
+
# end of makefile
diff --git a/gs/src/msvccmd.mak b/gs/src/msvccmd.mak
index 9108e4fc9..2ea8cb211 100644
--- a/gs/src/msvccmd.mak
+++ b/gs/src/msvccmd.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Command definition section for Microsoft Visual C++ 4.x/5.x,
# Windows NT or Windows 95 platform.
# Created 1997-05-22 by L. Peter Deutsch from msvc4/5 makefiles.
diff --git a/gs/src/msvclib.mak b/gs/src/msvclib.mak
index 1375d23e5..af51a6251 100644
--- a/gs/src/msvclib.mak
+++ b/gs/src/msvclib.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1991-1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Microsoft Visual C++ 4.1 or later, Windows NT or Windows 95 LIBRARY.
#
# All configurable options are surrounded by !ifndef/!endif to allow
@@ -27,10 +14,19 @@
# ------ Generic options ------ #
+# Define the root directory for Ghostscript installation.
+
+!ifndef AROOTDIR
+AROOTDIR=c:/Aladdin
+!endif
+!ifndef GSROOTDIR
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+!endif
+
# Define the directory that will hold documentation at runtime.
!ifndef GS_DOCDIR
-GS_DOCDIR=c:/gs
+GS_DOCDIR=$(GSROOTDIR)/doc
!endif
# Define the default directory/ies for the runtime initialization and
@@ -40,7 +36,7 @@ GS_DOCDIR=c:/gs
# illegal escape.
!ifndef GS_LIB_DEFAULT
-GS_LIB_DEFAULT=.;c:/gs/lib;c:/gs/fonts
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib;$(AROOTDIR)/fonts
!endif
# Define whether or not searching for initialization files should always
@@ -251,7 +247,7 @@ FEATURE_DEVS=dps2lib.dev psl2cs.dev cielib.dev imasklib.dev patlib.dev htxlib.de
# See gs.mak for details.
!ifndef COMPILED_INITS
-COMPILE_INITS=0
+COMPILE_INITS=1
!endif
# Choose whether to store band lists on files or in memory.
diff --git a/gs/src/msvctail.mak b/gs/src/msvctail.mak
index 77858aa02..5d0adc7b9 100644
--- a/gs/src/msvctail.mak
+++ b/gs/src/msvctail.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Common tail section for Microsoft Visual C++ 4.x/5.x,
# Windows NT or Windows 95 platform.
# Created 1997-05-22 by L. Peter Deutsch from msvc4/5 makefiles.
diff --git a/gs/src/mv.bat b/gs/src/mv.bat
index 8b2dfeb24..4757963f4 100755
--- a/gs/src/mv.bat
+++ b/gs/src/mv.bat
@@ -1,2 +1,2 @@
-
+@rem $RCSfile$ $Revision$
@rename %1 %2
diff --git a/gs/src/mv.cmd b/gs/src/mv.cmd
index 47a3c6412..d40b35e0b 100755
--- a/gs/src/mv.cmd
+++ b/gs/src/mv.cmd
@@ -1,2 +1,2 @@
@rename %1 %2
-
+@rem $RCSfile$ $Revision$
diff --git a/gs/src/oparc.h b/gs/src/oparc.h
index 7d79a04b1..a920e91d8 100644
--- a/gs/src/oparc.h
+++ b/gs/src/oparc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Arc operator declarations */
#ifndef oparc_INCLUDED
diff --git a/gs/src/opcheck.h b/gs/src/opcheck.h
index 6e9283e53..b97597757 100644
--- a/gs/src/opcheck.h
+++ b/gs/src/opcheck.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for operator operand checking */
/* Requires ialloc.h (for imemory), iref.h, errors.h */
#ifndef opcheck_INCLUDED
diff --git a/gs/src/opdef.h b/gs/src/opdef.h
index 5cc36f811..cc9cf3dfa 100644
--- a/gs/src/opdef.h
+++ b/gs/src/opdef.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Operator definition interface for Ghostscript */
#ifndef opdef_INCLUDED
diff --git a/gs/src/openvms.mak b/gs/src/openvms.mak
index 6bc601d50..f71bbe109 100644
--- a/gs/src/openvms.mak
+++ b/gs/src/openvms.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for OpenVMS VAX and Alpha
#
# Please contact Jim Dunham (dunham@omtool.com) if you have questions.
@@ -99,6 +86,16 @@ CDEBUG=
GS=GS
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=GS
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)$(GS) -I$(PSLIBDIR)
+
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
@@ -182,7 +179,6 @@ SYNC=posync
# devs.mak and contrib.mak for the list of available devices.
DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
-#DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpamono.dev $(DD)posync.dev
DEVICE_DEVS1=
DEVICE_DEVS2=
DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
@@ -191,14 +187,15 @@ DEVICE_DEVS5=$(DD)uniprint.dev
DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev
DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
-DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
+DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev
DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
-DEVICE_DEVS16=
+# Overflow from DEVS9
+DEVICE_DEVS16=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
DEVICE_DEVS17=
DEVICE_DEVS18=
DEVICE_DEVS19=
@@ -211,7 +208,7 @@ FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
@@ -362,6 +359,19 @@ CONFLDTR=-o
# ---------------------------- End of options ---------------------------- #
+# Define the default build rule, so the object directories get created
+# automatically.
+
+# I wasn't able to find a "do nothing" command in the DCL manual!
+std: STDDIRS default
+ WRITE SYS$$OUTPUT "Done."
+
+STDDIRS:
+ $$ If F$$Search("$(BINDIR)") .EQS. "" Then Create/Directory/Log $(BINDIR)
+ $$ If F$$Search("$(GLGENDIR)") .EQS. "" Then Create/Directory/Log $(GLGENDIR)
+ $$ If F$$Search("$(GLOBJDIR)") .EQS. "" Then Create/Directory/Log $(GLOBJDIR)
+ $$ If F$$Search("$(PSGENDIR)") .EQS. "" Then Create/Directory/Log $(PSGENDIR)
+ $$ If F$$Search("$(PSOBJDIR)") .EQS. "" Then Create/Directory/Log $(PSOBJDIR)
# ------------------- Include the generic makefiles ---------------------- #
diff --git a/gs/src/openvms.mmk b/gs/src/openvms.mmk
index da98df829..e9e91ec62 100644
--- a/gs/src/openvms.mmk
+++ b/gs/src/openvms.mmk
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for OpenVMS VAX and Alpha using MMK
#
# Please contact Jim Dunham (dunham@omtool.com) if you have questions.
@@ -102,12 +89,22 @@ CDEBUG=
GS=GS
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=GS
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)$(GS) -I$(PSLIBDIR)
+
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
# See jpeg.mak for more information.
-JSRCDIR=[-.jpeg-6b]
+JSRCDIR=[.jpeg-6b]
JVERSION=6
# Define the directory where the PNG library sources are stored,
@@ -115,13 +112,13 @@ JVERSION=6
# You may need to change this if the libpng version changes.
# See libpng.mak for more information.
-PSRCDIR=[-.libpng-1_0_3]
+PSRCDIR=[.libpng-1_0_3]
PVERSION=10003
# Define the directory where the zlib sources are stored.
# See zlib.mak for more information.
-ZSRCDIR=[-.zlib-1_1_3]
+ZSRCDIR=[.zlib-1_1_3]
# Note that built-in third-party libraries aren't available.
@@ -187,7 +184,6 @@ SYNC=posync
# devs.mak and contrib.mak for the list of available devices.
DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
-#DEVICE_DEVS1=$(DD)bmpmono.dev $(DD)bmpamono.dev $(DD)posync.dev
DEVICE_DEVS1=
DEVICE_DEVS2=
DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
@@ -204,7 +200,7 @@ DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $
DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
# Overflow from DEVS9
-DEVICE_DEVS16=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev
+DEVICE_DEVS16=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
DEVICE_DEVS17=
DEVICE_DEVS18=
DEVICE_DEVS19=
diff --git a/gs/src/oper.h b/gs/src/oper.h
index 5c588a173..15c3abcf3 100644
--- a/gs/src/oper.h
+++ b/gs/src/oper.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for Ghostscript operators */
#ifndef oper_INCLUDED
diff --git a/gs/src/opextern.h b/gs/src/opextern.h
index efd8bd265..a4ca83823 100644
--- a/gs/src/opextern.h
+++ b/gs/src/opextern.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Externally accessible operator declarations */
#ifndef opextern_INCLUDED
diff --git a/gs/src/os2.mak b/gs/src/os2.mak
index 175064e81..e4adc7189 100644
--- a/gs/src/os2.mak
+++ b/gs/src/os2.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for MS-DOS or OS/2 GCC/EMX platform.
# Uses Borland (MSDOS) MAKER or
# Uses IBM NMAKE.EXE Version 2.000.000 Mar 27 1992
@@ -26,15 +13,35 @@
# ------ Generic options ------ #
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+# This makefile has never been tested with any other values than these,
+# and almost certainly won't work with other values.
+BINDIR=bin
+GLSRCDIR=src
+GLGENDIR=obj
+GLOBJDIR=obj
+PSSRCDIR=src
+PSLIBDIR=src
+PSGENDIR=obj
+PSOBJDIR=obj
+
+# Define the root directory for Ghostscript installation.
+
+AROOTDIR=c:/Aladdin
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+
# Define the directory that will hold documentation at runtime.
-GS_DOCDIR=c:/gs
+GS_DOCDIR=$(GSROOTDIR)/doc
# Define the default directory/ies for the runtime
# initialization and font files. Separate multiple directories with ;.
# Use / to indicate directories, not a single \.
-GS_LIB_DEFAULT=c:/gs/lib;c:/gs/fonts
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib;$(AROOTDIR)/fonts
# Define whether or not searching for initialization files should always
# look in the current directory first. This leads to well-known security
@@ -82,20 +89,15 @@ IBMCPP=0
GS=gsos2
GSDLL=gsdll2
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-# This makefile has never been tested with any other values than these,
-# and almost certainly won't work with other values.
-BINDIR=.
-GLSRCDIR=.
-GLGENDIR=.
-GLOBJDIR=.
-PSSRCDIR=.
-PSLIBDIR=.
-PSGENDIR=.
-PSOBJDIR=.
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gsos2
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)\$(GS) -I$(PSLIBDIR)
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
@@ -118,6 +120,14 @@ PVERSION=10002
ZSRCDIR=zlib
+# The following is a hack to get around the special treatment of \ at
+# the end of a line.
+NUL=
+DD=$(GLGENDIR)\$(NUL)
+GLD=$(GLGENDIR)\$(NUL)
+PSD=$(PSGENDIR)\$(NUL)
+
+
# ------ Platform-specific options ------ #
# If you don't have an assembler, set USE_ASM=0. Otherwise, set USE_ASM=1,
@@ -206,7 +216,7 @@ TOP_MAKEFILES=$(MAKEFILE)
# Define the files to be deleted by 'make clean'.
-BEGINFILES=gspmdrv.exe gs*.res gs*.ico $(GSDLL).dll
+BEGINFILES=$(BINDIR)\gspmdrv.exe $(GLOBJDIR)\gspmdrv.o $(GLOBJDIR)\gs*.res $(GLOBJDIR)\gs*.ico $(BINDIR)\$(GSDLL).dll
# Define the ANSI-to-K&R dependency.
@@ -223,7 +233,7 @@ CO=/O-
# Make sure we get the right default target for make.
-dosdefault: default gspmdrv.exe
+dosdefault: default $(BINDIR)\gspmdrv.exe
# Define a rule for invoking just the preprocessor.
@@ -264,12 +274,12 @@ SH=
# Define generic commands.
# We use cp.cmd rather than copy /B so that we update the write date.
-CP_=cp.cmd
+CP_=$(GLSRCDIR)\cp.cmd
# We use rm.cmd rather than erase because rm.cmd never generates
# a non-zero return code.
-RM_=rm.cmd
+RM_=$(GLSRCDIR)\rm.cmd
# OS/2 erase, unlike MS-DOS erase, accepts multiple files or patterns.
-RMN_=rm.cmd
+RMN_=$(GLSRCDIR)\rm.cmd
# Define the arguments for genconf.
@@ -370,7 +380,7 @@ CDLL=
GENOPT=$(CP) $(CD) $(CGDB) $(CDLL) $(CO)
-CCFLAGS0=$(GENOPT) $(PLATOPT)
+CCFLAGS0=$(GENOPT) $(PLATOPT) -D__OS2__
CCFLAGS=$(CCFLAGS0)
CC=$(COMPDIR)\$(COMP) $(CCFLAGS0)
CC_=$(CC)
@@ -389,7 +399,7 @@ FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
@@ -411,54 +421,54 @@ FILE_IMPLEMENTATION=stdio
# devs.mak, pcwin.mak, and contrib.mak for the list of available devices.
!if $(MAKEDLL)
-DEVICE_DEVS=os2pm.dev os2dll.dev os2prn.dev
+DEVICE_DEVS=$(DD)os2pm.dev $(DD)os2dll.dev $(DD)os2prn.dev
!else
-DEVICE_DEVS=os2pm.dev
+DEVICE_DEVS=$(DD)os2pm.dev
!endif
-#DEVICE_DEVS1=x11.dev x11alpha.dev x11cmyk.dev x11mono.dev
+#DEVICE_DEVS1=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11mono.dev
DEVICE_DEVS1=
-DEVICE_DEVS2=epson.dev eps9high.dev eps9mid.dev epsonc.dev ibmpro.dev
-DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev
-DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev
-DEVICE_DEVS5=djet500c.dev declj250.dev lj250.dev jetp3852.dev r4081.dev t4693d2.dev t4693d4.dev t4693d8.dev tek4696.dev lbp8.dev uniprint.dev
-DEVICE_DEVS6=st800.dev stcolor.dev bj10e.dev bj200.dev bjc600.dev bjc800.dev m8510.dev necp6.dev
-DEVICE_DEVS7=dfaxhigh.dev dfaxlow.dev
-DEVICE_DEVS8=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev
-DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
-DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
-DEVICE_DEVS11=bmpmono.dev bmpgray.dev bmp16.dev bmp256.dev bmp16m.dev tiff12nc.dev tiff24nc.dev
-DEVICE_DEVS12=psmono.dev psgray.dev bit.dev bitrgb.dev bitcmyk.dev
-DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
-DEVICE_DEVS14=jpeg.dev jpeggray.dev
-DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
+DEVICE_DEVS2=$(DD)epson.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epsonc.dev $(DD)ibmpro.dev
+DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev
+DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.dev
+DEVICE_DEVS5=$(DD)djet500c.dev $(DD)declj250.dev $(DD)lj250.dev
+DEVICE_DEVS6=$(DD)st800.dev $(DD)stcolor.dev $(DD)bj10e.dev $(DD)bj200.dev
+DEVICE_DEVS7=$(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev
+DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev
+DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev
+DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
+DEVICE_DEVS11=$(DD)bmpmono.dev $(DD)bmp16.dev $(DD)bmp256.dev $(DD)bmp16m.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev
+DEVICE_DEVS12=$(DD)psmono.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
+DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
+DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
+DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
# Overflow for DEVS3,4,5,6,9
-DEVICE_DEVS16=ljet3.dev ljet3d.dev ljet4.dev ljet4d.dev
-DEVICE_DEVS17=pj.dev pjxl.dev pjxl300.dev
-DEVICE_DEVS18=
-DEVICE_DEVS19=
-DEVICE_DEVS20=
+DEVICE_DEVS16=$(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
+DEVICE_DEVS17=$(DD)pj.dev $(DD)pjxl.dev $(DD)pjxl300.dev
+DEVICE_DEVS18=$(DD)jetp3852.dev $(DD)r4081.dev $(DD)lbp8.dev $(DD)uniprint.dev
+DEVICE_DEVS19=$(DD)m8510.dev $(DD)necp6.dev $(DD)bjc600.dev $(DD)bjc800.dev
+DEVICE_DEVS20=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev
# Include the generic makefiles.
-!include "version.mak"
-!include "gs.mak"
-!include "lib.mak"
-!include "jpeg.mak"
+!include "$(GLSRCDIR)\version.mak"
+!include "$(GLSRCDIR)\gs.mak"
+!include "$(GLSRCDIR)\lib.mak"
+!include "$(GLSRCDIR)\jpeg.mak"
# zlib.mak must precede libpng.mak
-!include "zlib.mak"
-!include "libpng.mak"
-!include "devs.mak"
-!include "pcwin.mak"
-!include "contrib.mak"
-!include "int.mak"
-!include "cfonts.mak"
+!include "$(GLSRCDIR)\zlib.mak"
+!include "$(GLSRCDIR)\libpng.mak"
+!include "$(GLSRCDIR)\devs.mak"
+!include "$(GLSRCDIR)\pcwin.mak"
+!include "$(GLSRCDIR)\contrib.mak"
+!include "$(GLSRCDIR)\int.mak"
+!include "$(GLSRCDIR)\cfonts.mak"
# -------------------------------- Library -------------------------------- #
# The GCC/EMX platform
os2__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_nofb.$(OBJ) $(GLOBJ)gp_os2.$(OBJ)
-$(GLGEN)os2_.dev: $(os2__) nosync.dev
- $(SETMOD) $(GLGEN)os2_ $(os2__) -include nosync
+$(GLGEN)os2_.dev: $(os2__) $(GLD)nosync.dev
+ $(SETMOD) $(GLGEN)os2_ $(os2__) -include $(GLD)nosync
!if $(MAKEDLL)
# Using a file device resource to get the console streams re-initialized
# is bad architecture (an upward reference to ziodev),
@@ -468,7 +478,7 @@ $(GLGEN)os2_.dev: $(os2__) nosync.dev
!endif
-$(GLOBJ)gp_os2.$(OBJ): $(GSLRC)gp_os2.c\
+$(GLOBJ)gp_os2.$(OBJ): $(GLSRC)gp_os2.c\
$(dos__h) $(pipe__h) $(string__h) $(time__h)\
$(gsdll_h) $(gx_h) $(gsexit_h) $(gsutil_h) $(gp_h)
$(GLCC) $(GLO_)gp_os2.$(OBJ) $(C_) $(GLSRC)gp_os2.c
@@ -477,44 +487,44 @@ $(GLOBJ)gp_os2.$(OBJ): $(GSLRC)gp_os2.c\
CCAUX=$(COMPDIR)\$(COMP) $(CO)
-$(ECHOGS_XE): echogs.c
+$(ECHOGS_XE): $(GLSRCDIR)\echogs.c
!if $(EMX)
- $(CCAUX) -o $(AUXGEN)echogs echogs.c
+ $(CCAUX) -o $(AUXGEN)echogs $(GLSRCDIR)\echogs.c
$(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)echogs $(ECHOGS_XE)
del $(AUXGEN)echogs
!endif
!if $(IBMCPP)
- $(CCAUX) /Fe$(ECHOGS_XE) echogs.c
+ $(CCAUX) /Fe$(ECHOGS_XE) $(GLSRCDIR)\echogs.c
!endif
-$(GENARCH_XE): genarch.c $(GENARCH_DEPS)
+$(GENARCH_XE): $(GLSRCDIR)\genarch.c $(GENARCH_DEPS)
!if $(EMX)
- $(CCAUX) -o $(AUXGEN)genarch genarch.c
+ $(CCAUX) -o $(AUXGEN)genarch $(GLSRCDIR)\genarch.c
$(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genarch $(GENARCH_XE)
del $(AUXGEN)genarch
!endif
!if $(IBMCPP)
- $(CCAUX) /Fe$(GENARCH_XE) genarch.c
+ $(CCAUX) /Fe$(GENARCH_XE) $(GLSRCDIR)\genarch.c
!endif
-$(GENCONF_XE): genconf.c $(GENCONF_DEPS)
+$(GENCONF_XE): $(GLSRCDIR)\genconf.c $(GENCONF_DEPS)
!if $(EMX)
- $(CCAUX) -o $(AUXGEN)genconf genconf.c
+ $(CCAUX) -o $(AUXGEN)genconf $(GLSRCDIR)\genconf.c
$(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)genconf $(GENCONF_XE)
del $(AUXGEN)genconf
!endif
!if $(IBMCPP)
- $(CCAUX) /Fe$(GENCONF_XE) genconf.c
+ $(CCAUX) /Fe$(GENCONF_XE) $(GLSRCDIR)\genconf.c
!endif
-$(GENDEV_XE): gendev.c $(GENDEV_DEPS)
+$(GENDEV_XE): $(GLSRCDIR)\gendev.c $(GENDEV_DEPS)
!if $(EMX)
- $(CCAUX) -o $(AUXGEN)gendev gendev.c
+ $(CCAUX) -o $(AUXGEN)gendev $(GLSRCDIR)\gendev.c
$(COMPDIR)\emxbind $(EMXPATH)/bin/emxl.exe $(AUXGEN)gendev $(GENDEV_XE)
del $(AUXGEN)gendev
!endif
!if $(IBMCPP)
- $(CCAUX) /Fe$(GENDEV_XE) gendev.c
+ $(CCAUX) /Fe$(GENDEV_XE) $(GLSRCDIR)\gendev.c
!endif
$(GENHT_XE): $(PSSRC)genht.c $(GENHT_DEPS)
@@ -541,7 +551,7 @@ $(GENINIT_XE): $(PSSRC)geninit.c $(GENINIT_DEPS)
$(gconfig__h): $(TOP_MAKEFILES) $(ECHOGS_XE)
$(ECHOGS_XE) -w $(gconfig__h) /* This file deliberately left blank. */
-$(gconfigv_h): os2.mak $(TOP_MAKEFILES) $(ECHOGS_XE)
+$(gconfigv_h): $(GLSRCDIR)\os2.mak $(TOP_MAKEFILES) $(ECHOGS_XE)
$(ECHOGS_XE) -w $(gconfigv_h) -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
$(ECHOGS_XE) -a $(gconfigv_h) -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
$(ECHOGS_XE) -a $(gconfigv_h) -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
@@ -553,64 +563,65 @@ gsdllos2_h=$(GLSRC)gsdllos2.h
# Interpreter main program
-ICONS=gsos2.ico gspmdrv.ico
+ICONS=$(GLOBJ)gsos2.ico $(GLOBJ)gspmdrv.ico
!if $(MAKEDLL)
#making a DLL
GS_ALL=$(GLOBJ)gsdll.$(OBJ) $(INT_ALL) $(INTASM)\
- $(LIB_ALL) $(LIBCTR) $(ld_tr) $(GLGEN)lib.tr $(GS).res $(ICONS)
+ $(LIB_ALL) $(LIBCTR) $(ld_tr) $(GLGEN)lib.tr $(GLOBJ)$(GS).res $(ICONS)
-$(GS_XE): $(GSDLL).dll dpmainc.c $(gsdll_h) $(gsdllos2_h) gsos2.rc gscdefs.$(OBJ)
+$(GS_XE): $(BINDIR)\$(GSDLL).dll $(GLSRC)dpmainc.c $(gsdll_h) $(gsdllos2_h) $(GLSRC)gsos2.rc $(GLOBJ)gscdefs.$(OBJ)
!if $(EMX)
- $(COMPDIR)\gcc $(CGDB) $(CO) -Zomf -o$(GS_XE) dpmainc.c gscdefs.$(OBJ) gsos2.def
+ $(COMPDIR)\gcc $(CGDB) $(CO) -Zomf -I$(GLSRCDIR) -I$(GLOBJDIR) -o$(GS_XE) $(GLSRC)dpmainc.c $(GLOBJ)gscdefs.$(OBJ) $(GLSRC)gsos2.def
!endif
!if $(IBMCPP)
- $(CCAUX) /Fe$(GX_XE) dpmainc.c gscdefs.$(OBJ)
+ $(CCAUX) -I$(GLSRCDIR) -I$(GLOBJDIR) /Fe$(GX_XE) $(GLSRC)dpmainc.c $(GLOBJ)gscdefs.$(OBJ)
!endif
- rc gsos2.res $(GS_XE)
+ rc $(GLOBJ)$(GS).res $(GS_XE)
$(GLOBJ)gsdll.$(OBJ): $(GLSRC)gsdll.c $(gsdll_h) $(ghost_h) $(gscdefs_h)
$(PSCC) $(GLO_)gsdll.$(OBJ) $(C_) $(GLSRC)gsdll.c
-$(GSDLL).dll: $(GS_ALL) $(ALL_DEVS) $(GLOBJ)gsdll.$(OBJ)
+$(BINDIR)\$(GSDLL).dll: $(GS_ALL) $(ALL_DEVS) $(GLOBJ)gsdll.$(OBJ)
!if $(EMX)
- LINK386 /DEBUG $(COMPBASE)\lib\dll0.obj $(COMPBASE)\lib\end.lib @$(ld_tr) $(GLOBJ)gsdll.obj, $(GSDLL).dll, ,$(COMPBASE)\lib\gcc.lib $(COMPBASE)\lib\st\c.lib $(COMPBASE)\lib\st\c_dllso.lib $(COMPBASE)\lib\st\sys.lib $(COMPBASE)\lib\c_alias.lib $(COMPBASE)\lib\os2.lib, gsdll2.def
+ LINK386 /DEBUG $(COMPBASE)\lib\dll0.obj $(COMPBASE)\lib\end.lib @$(ld_tr) $(GLOBJ)gsdll.obj, $(BINDIR)\$(GSDLL).dll, ,$(COMPBASE)\lib\gcc.lib $(COMPBASE)\lib\st\c.lib $(COMPBASE)\lib\st\c_dllso.lib $(COMPBASE)\lib\st\sys.lib $(COMPBASE)\lib\c_alias.lib $(COMPBASE)\lib\os2.lib, $(GLSRC)gsdll2.def
!endif
!if $(IBMCPP)
- LINK386 /NOE /DEBUG @$(ld_tr) $(GLOBJ)gsdll.obj, $(GSDLL).dll, , , gsdll2.def
+ LINK386 /NOE /DEBUG @$(ld_tr) $(GLOBJ)gsdll.obj, $(BINDIR)\$(GSDLL).dll, , , $(GLSRC)gsdll2.def
!endif
!else
#making an EXE
GS_ALL=$(GLOBJ)gs.$(OBJ) $(INT_ALL) $(INTASM)\
- $(LIB_ALL) $(LIBCTR) $(ld_tr) $(GLGEN)lib.tr $(GS).res $(ICONS)
+ $(LIB_ALL) $(LIBCTR) $(ld_tr) $(GLGEN)lib.tr $(GLOBJ)$(GS).res $(ICONS)
$(GS_XE): $(GS_ALL) $(ALL_DEVS)
- $(COMPDIR)\gcc $(CGDB) -o $(GS) $(GLOBJ)gs.$(OBJ) @$(ld_tr) $(INTASM) -lm
- $(COMPDIR)\emxbind -r$*.res $(COMPDIR)\emxl.exe $(GS) $(GS_XE) -ac
- del $(GS)
+ $(COMPDIR)\gcc $(CGDB) -I$(GLSRCDIR) -o $(GLOBJ)$(GS) $(GLOBJ)gs.$(OBJ) @$(ld_tr) $(INTASM) -lm
+ $(COMPDIR)\emxbind -r$(GLOBJ)$(GS).res $(COMPDIR)\emxl.exe $(GLOBJ)$(GS) $(GS_XE) -ac
+ del $(GLOBJ)$(GS)
!endif
# Make the icons from their text form.
-gsos2.ico: gsos2.icx $(ECHOGS_XE)
- $(ECHOGS_XE) -wb gsos2.ico -n -X -r gsos2.icx
+$(GLOBJ)gsos2.ico: $(GLSRC)gsos2.icx $(ECHOGS_XE)
+ $(ECHOGS_XE) -wb $(GLOBJ)gsos2.ico -n -X -r $(GLSRC)gsos2.icx
-gspmdrv.ico: gspmdrv.icx $(ECHOGS_XE)
- $(ECHOGS_XE) -wb gspmdrv.ico -n -X -r gspmdrv.icx
+$(GLOBJ)gspmdrv.ico: $(GLSRC)gspmdrv.icx $(ECHOGS_XE)
+ $(ECHOGS_XE) -wb $(GLOBJ)gspmdrv.ico -n -X -r $(GLSRC)gspmdrv.icx
-$(GS).res: $(GS).rc gsos2.ico
- rc -i $(COMPBASE)\include -r $*.rc
+$(GLOBJ)$(GS).res: $(GLSRC)$(GS).rc $(GLOBJ)gsos2.ico
+ rc -i $(COMPBASE)\include -i $(GLSRCDIR) -i $(GLOBJDIR) -r $(GLSRC)$(GS).rc $(GLOBJ)$(GS).res
+
# PM driver program
-gspmdrv.o: gspmdrv.c $(GLSRC)gspmdrv.h
- $(COMPDIR)\gcc $(CGDB) $(CO) -c $*.c
+$(GLOBJ)gspmdrv.o: $(GLSRC)gspmdrv.c $(GLSRC)gspmdrv.h
+ $(COMPDIR)\gcc $(CGDB) $(CO) -I$(GLSRCDIR) -o $(GLOBJ)gspmdrv.o -c $(GLSRC)gspmdrv.c
-gspmdrv.res: gspmdrv.rc $(GLSRC)gspmdrv.h gspmdrv.ico
- rc -i $(COMPBASE)\include -r $*.rc
+$(GLOBJ)gspmdrv.res: $(GLSRC)gspmdrv.rc $(GLSRC)gspmdrv.h $(GLOBJ)gspmdrv.ico
+ rc -i $(COMPBASE)\include -i $(GLSRCDIR) -i $(GLOBJDIR) -r $(GLSRC)gspmdrv.rc $(GLOBJ)gspmdrv.res
-gspmdrv.exe: gspmdrv.o gspmdrv.res gspmdrv.def
- $(COMPDIR)\gcc $(CGDB) $(CO) -o $* $*.o
- $(COMPDIR)\emxbind -p -r$*.res -d$*.def $(COMPDIR)\emxl.exe $* $*.exe
- del $*
+$(BINDIR)\gspmdrv.exe: $(GLOBJ)gspmdrv.o $(GLOBJ)gspmdrv.res $(GLSRC)gspmdrv.def
+ $(COMPDIR)\gcc $(CGDB) $(CO) -o $(GLOBJ)gspmdrv $(GLOBJ)gspmdrv.o
+ $(COMPDIR)\emxbind -p -r$(GLOBJ)gspmdrv.res -d$(GLSRC)gspmdrv.def $(COMPDIR)\emxl.exe $(GLOBJ)gspmdrv $(BINDIR)\gspmdrv.exe
+ del $(GLOBJ)gspmdrv
diff --git a/gs/src/ostack.h b/gs/src/ostack.h
index bf149ca40..0973eff88 100644
--- a/gs/src/ostack.h
+++ b/gs/src/ostack.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for Ghostscript operand stack */
#ifndef ostack_INCLUDED
diff --git a/gs/src/pcwin.mak b/gs/src/pcwin.mak
index 950f9abcb..676fb573f 100644
--- a/gs/src/pcwin.mak
+++ b/gs/src/pcwin.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for PC window system (MS Windows and OS/2) -specific device
# drivers.
@@ -98,5 +85,5 @@ os2prn_=$(GLOBJ)gdevos2p.$(OBJ)
$(DD)os2prn.dev: $(os2prn_) $(GLD)page.dev
$(SETPDEV) $(DD)os2prn $(os2prn_)
-$(GLOBJ)gdevos2p.$(OBJ): gdevos2p.c $(gp_h) $(gdevpccm_h) $(gdevprn_h) $(gscdefs_h)
+$(GLOBJ)gdevos2p.$(OBJ): $(GLSRC)gdevos2p.c $(gp_h) $(gdevpccm_h) $(gdevprn_h) $(gscdefs_h)
$(GLCC) $(GLO_)gdevos2p.$(OBJ) $(C_) $(GLSRC)gdevos2p.c
diff --git a/gs/src/pipe_.h b/gs/src/pipe_.h
index fd2fc989a..dc876cf12 100644
--- a/gs/src/pipe_.h
+++ b/gs/src/pipe_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Declaration of popen and pclose */
#ifndef pipe__INCLUDED
diff --git a/gs/src/png_.h b/gs/src/png_.h
index 250fe9cd6..66cd8afda 100644
--- a/gs/src/png_.h
+++ b/gs/src/png_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Wrapper for png.h */
#if SHARE_LIBPNG
diff --git a/gs/src/rm.bat b/gs/src/rm.bat
index 96fe999e0..0e486b51d 100755
--- a/gs/src/rm.bat
+++ b/gs/src/rm.bat
@@ -1,4 +1,4 @@
-
+@rem $RCSfile$ $Revision$
@echo off
:next
if '%1'=='' goto exit
diff --git a/gs/src/rm.cmd b/gs/src/rm.cmd
index 128ff47b6..0c9328e4d 100755
--- a/gs/src/rm.cmd
+++ b/gs/src/rm.cmd
@@ -1,5 +1,5 @@
@echo off
-
+@rem $RCSfile$ $Revision$
:next
if '%1'=='' goto exit
if '%1'=='-f' goto sh
diff --git a/gs/src/sa85d.c b/gs/src/sa85d.c
index 6e14b0ee4..7c1ce5f0d 100644
--- a/gs/src/sa85d.c
+++ b/gs/src/sa85d.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ASCII85Decode filter */
#include "std.h"
#include "strimpl.h"
diff --git a/gs/src/sa85d.h b/gs/src/sa85d.h
index 854750571..27d729071 100644
--- a/gs/src/sa85d.h
+++ b/gs/src/sa85d.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ASCII85Decode filter interface */
/* Requires scommon.h; strimpl.h if any templates are referenced */
diff --git a/gs/src/sa85x.h b/gs/src/sa85x.h
index bcda3f18b..6ecb03b47 100644
--- a/gs/src/sa85x.h
+++ b/gs/src/sa85x.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ASCII85 filter interface */
/* Requires scommon.h; strimpl.h if any templates are referenced */
diff --git a/gs/src/sbcp.c b/gs/src/sbcp.c
index 901b78046..39b44ff56 100644
--- a/gs/src/sbcp.c
+++ b/gs/src/sbcp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* BCP and TBCP filters */
#include "stdio_.h"
#include "strimpl.h"
diff --git a/gs/src/sbhc.c b/gs/src/sbhc.c
index 42508a874..5837d87fc 100644
--- a/gs/src/sbhc.c
+++ b/gs/src/sbhc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Bounded Huffman code filters */
#include "memory_.h"
#include "stdio_.h"
diff --git a/gs/src/sbhc.h b/gs/src/sbhc.h
index 70b298d8f..711fc4645 100644
--- a/gs/src/sbhc.h
+++ b/gs/src/sbhc.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for BoundedHuffman filters */
/* Requires strimpl.h */
#ifndef sbhc_INCLUDED
diff --git a/gs/src/sbtx.h b/gs/src/sbtx.h
index 070de1581..a187b5ee8 100644
--- a/gs/src/sbtx.h
+++ b/gs/src/sbtx.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for ByteTranslate filters */
/* Requires scommon.h; strimpl.h if any templates are referenced */
#ifndef sbtx_INCLUDED
diff --git a/gs/src/sbwbs.c b/gs/src/sbwbs.c
index 2783ac9c1..ab5c986d1 100644
--- a/gs/src/sbwbs.c
+++ b/gs/src/sbwbs.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Burrows/Wheeler block sorting compression filters */
#include "stdio_.h"
#include "memory_.h"
diff --git a/gs/src/sbwbs.h b/gs/src/sbwbs.h
index d4ac662fd..08cfc6e3b 100644
--- a/gs/src/sbwbs.h
+++ b/gs/src/sbwbs.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for BWBlockSort (Burroughs-Wheeler) filters */
/* Requires scommon.h; strimpl.h if any templates are referenced */
#ifndef sbwbs_INCLUDED
diff --git a/gs/src/scanchar.h b/gs/src/scanchar.h
index 93553da49..957ac3fda 100644
--- a/gs/src/scanchar.h
+++ b/gs/src/scanchar.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1990, 1995, 1996 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for token scanner character type table */
/* Requires scommon.h */
#ifndef scanchar_INCLUDED
diff --git a/gs/src/scantab.c b/gs/src/scantab.c
index f88e7cf65..909df1688 100644
--- a/gs/src/scantab.c
+++ b/gs/src/scantab.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Scanner table for PostScript/PDF tokens */
#include "stdpre.h"
#include "scommon.h"
diff --git a/gs/src/scf.h b/gs/src/scf.h
index bef21ec31..cff48d197 100644
--- a/gs/src/scf.h
+++ b/gs/src/scf.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common definitions for CCITTFax encoding and decoding filters */
#ifndef scf_INCLUDED
diff --git a/gs/src/scfd.c b/gs/src/scfd.c
index 493a7ea59..612e5bf67 100644
--- a/gs/src/scfd.c
+++ b/gs/src/scfd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CCITTFax decoding filter */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
@@ -487,7 +474,7 @@ cf_decode_1d(stream_CFD_state * ss, stream_cursor_read * pr)
}
run_color = 1;
db: /* Decode a black run. */
- get_run(cf_black_decode, cfd_black_initial_bits, cfd_black_initial_bits,
+ get_run(cf_black_decode, cfd_black_initial_bits, cfd_black_min_bits,
bcnt, "[w1]black", dbl, out1);
if (bcnt < 0) { /* All exceptional codes are invalid here. */
/****** WRONG, uncompressed IS ALLOWED ******/
diff --git a/gs/src/scfdgen.c b/gs/src/scfdgen.c
index 31eb31fa7..75e587fd6 100644
--- a/gs/src/scfdgen.c
+++ b/gs/src/scfdgen.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generate the CCITTFaxDecode tables */
#include "stdio_.h" /* includes std.h */
#include "scf.h"
@@ -43,11 +30,11 @@ main()
cfd_node area[1 << max(cfd_white_initial_bits, cfd_black_initial_bits)];
fputs("/* Copyright (C) 1992, 1993, 1998, 1999 Aladdin Enterprises. All rights reserved. */\n\n", out);
+ fputs("/* $Id$ */\n", out);
+ fputs("/* Tables for CCITTFaxDecode filter. */\n\n", out);
fputs("/* This file was generated automatically. It is governed by the same terms */\n", out);
fputs("/* as the files scfetab.c and scfdgen.c from which it was derived. */\n", out);
fputs("/* Consult those files for the licensing terms and conditions. */\n\n", out);
- fputs("/* scfdtab.c */\n", out);
- fputs("/* Tables for CCITTFaxDecode filter. */\n\n", out);
fputs("#include \"std.h\"\n", out);
fputs("#include \"scommon.h\"\t\t/* for scf.h */\n", out);
fputs("#include \"scf.h\"\n\n", out);
diff --git a/gs/src/scfdtab.c b/gs/src/scfdtab.c
index 27a44ce2a..e6d10b3a1 100644
--- a/gs/src/scfdtab.c
+++ b/gs/src/scfdtab.c
@@ -1,12 +1,12 @@
/* Copyright (C) 1992, 1993, 1998, 1999 Aladdin Enterprises. All rights reserved. */
+/* $RCSfile$ $Revision$ */
+/* Tables for CCITTFaxDecode filter. */
+
/* This file was generated automatically. It is governed by the same terms */
/* as the files scfetab.c and scfdgen.c from which it was derived. */
/* Consult those files for the licensing terms and conditions. */
-/* scfdtab.c */
-/* Tables for CCITTFaxDecode filter. */
-
#include "std.h"
#include "scommon.h" /* for scf.h */
#include "scf.h"
diff --git a/gs/src/scfe.c b/gs/src/scfe.c
index 800dc96d5..10dcf4a6a 100644
--- a/gs/src/scfe.c
+++ b/gs/src/scfe.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CCITTFax encoding filter */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
diff --git a/gs/src/scfetab.c b/gs/src/scfetab.c
index 3fb419bc9..0b57d4d42 100644
--- a/gs/src/scfetab.c
+++ b/gs/src/scfetab.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Tables for CCITTFaxEncode filter */
#include "std.h"
#include "scommon.h" /* for scf.h */
diff --git a/gs/src/scfparam.c b/gs/src/scfparam.c
index b8b93ef3e..7b647d9c0 100644
--- a/gs/src/scfparam.c
+++ b/gs/src/scfparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CCITTFax filter parameter setting and reading */
#include "std.h"
#include "gserror.h"
diff --git a/gs/src/scfx.h b/gs/src/scfx.h
index 0957a2abf..0d1712356 100644
--- a/gs/src/scfx.h
+++ b/gs/src/scfx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CCITTFax filter state definition */
/* Requires strimpl.h */
diff --git a/gs/src/scommon.h b/gs/src/scommon.h
index 618496899..055278f17 100644
--- a/gs/src/scommon.h
+++ b/gs/src/scommon.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions common to stream clients and implementors */
#ifndef scommon_DEFINED
diff --git a/gs/src/sdcparam.c b/gs/src/sdcparam.c
index db4fa6f9d..cea3669a2 100644
--- a/gs/src/sdcparam.c
+++ b/gs/src/sdcparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCT filter parameter setting and reading */
#include "memory_.h"
#include "jpeglib_.h"
diff --git a/gs/src/sdcparam.h b/gs/src/sdcparam.h
index 1d45343d5..d85819341 100644
--- a/gs/src/sdcparam.h
+++ b/gs/src/sdcparam.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCT filter parameter setting and reading interface */
#ifndef sdcparam_INCLUDED
diff --git a/gs/src/sdct.h b/gs/src/sdct.h
index 5aff8eb3a..948053d15 100644
--- a/gs/src/sdct.h
+++ b/gs/src/sdct.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for DCT filters */
/* Requires stream.h, strimpl.h, jpeg/jpeglib.h */
#ifndef sdct_INCLUDED
diff --git a/gs/src/sdctc.c b/gs/src/sdctc.c
index c912e9f19..5528e170a 100644
--- a/gs/src/sdctc.c
+++ b/gs/src/sdctc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Code common to DCT encoding and decoding streams */
#include "stdio_.h"
#include "jpeglib_.h"
diff --git a/gs/src/sdctd.c b/gs/src/sdctd.c
index 1dd74ad42..9e52a1bf7 100644
--- a/gs/src/sdctd.c
+++ b/gs/src/sdctd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCT decoding filter stream */
#include "memory_.h"
#include "stdio_.h"
diff --git a/gs/src/sdcte.c b/gs/src/sdcte.c
index 6fa0bc358..4b5e85e8b 100644
--- a/gs/src/sdcte.c
+++ b/gs/src/sdcte.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCT encoding filter stream */
#include "memory_.h"
#include "stdio_.h"
diff --git a/gs/src/sddparam.c b/gs/src/sddparam.c
index 15f2ea74d..49f315ff7 100644
--- a/gs/src/sddparam.c
+++ b/gs/src/sddparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCTDecode filter parameter setting and reading */
#include "std.h"
#include "jpeglib_.h"
diff --git a/gs/src/sdeparam.c b/gs/src/sdeparam.c
index b1b74e65e..3eb981f05 100644
--- a/gs/src/sdeparam.c
+++ b/gs/src/sdeparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCTEncode filter parameter setting and reading */
#include "memory_.h"
#include "jpeglib_.h"
diff --git a/gs/src/seexec.c b/gs/src/seexec.c
index 147a30958..64b8a7d80 100644
--- a/gs/src/seexec.c
+++ b/gs/src/seexec.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* eexec filters */
#include "stdio_.h" /* includes std.h */
#include "strimpl.h"
diff --git a/gs/src/sfilter.h b/gs/src/sfilter.h
index 1187538ac..120180611 100644
--- a/gs/src/sfilter.h
+++ b/gs/src/sfilter.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for simple Ghostscript streams */
/* Requires scommon.h; should require strimpl.h only if any templates */
/* are referenced, but some compilers always require strimpl.h. */
diff --git a/gs/src/sfilter1.c b/gs/src/sfilter1.c
index 842207faa..515c87070 100644
--- a/gs/src/sfilter1.c
+++ b/gs/src/sfilter1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Filters included in Level 1 systems: NullEncode/Decode, PFBDecode, */
/* SubFileDecode. */
#include "stdio_.h" /* includes std.h */
diff --git a/gs/src/sfilter2.c b/gs/src/sfilter2.c
index e3636d791..a9180f30c 100644
--- a/gs/src/sfilter2.c
+++ b/gs/src/sfilter2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Simple Level 2 filters */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
diff --git a/gs/src/sfxboth.c b/gs/src/sfxboth.c
index 42c677584..0830b4e53 100644
--- a/gs/src/sfxboth.c
+++ b/gs/src/sfxboth.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* File stream implementation using both stdio and direct OS calls */
#include "sfxstdio.c"
diff --git a/gs/src/sfxfd.c b/gs/src/sfxfd.c
index 95792e0fe..87a8f645f 100644
--- a/gs/src/sfxfd.c
+++ b/gs/src/sfxfd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* File stream implementation using direct OS calls */
/******
****** NOTE: THIS FILE MAY NOT COMPILE ON NON-UNIX PLATFORMS, AND MAY
diff --git a/gs/src/sfxstdio.c b/gs/src/sfxstdio.c
index 67cc5d4f7..ae318397d 100644
--- a/gs/src/sfxstdio.c
+++ b/gs/src/sfxstdio.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* File stream implementation using stdio */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
diff --git a/gs/src/shc.c b/gs/src/shc.c
index 933fd98f3..4311e3519 100644
--- a/gs/src/shc.c
+++ b/gs/src/shc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Support code for shc.h */
#include "std.h"
#include "scommon.h"
diff --git a/gs/src/shc.h b/gs/src/shc.h
index 11eeb75b8..b1638d66b 100644
--- a/gs/src/shc.h
+++ b/gs/src/shc.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common definitions for filters using Huffman coding */
#ifndef shc_INCLUDED
diff --git a/gs/src/shcgen.c b/gs/src/shcgen.c
index 62eef1923..176800544 100644
--- a/gs/src/shcgen.c
+++ b/gs/src/shcgen.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generate (bounded) Huffman code definitions from frequencies, */
/* and tables from definitions. */
#include "memory_.h"
diff --git a/gs/src/shcgen.h b/gs/src/shcgen.h
index 06aa2a96d..ee176975a 100644
--- a/gs/src/shcgen.h
+++ b/gs/src/shcgen.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Interface for Huffman code generation */
/* Requires shc.h */
#ifndef shcgen_INCLUDED
diff --git a/gs/src/siinterp.c b/gs/src/siinterp.c
index 823789f49..7d55d1926 100644
--- a/gs/src/siinterp.c
+++ b/gs/src/siinterp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image interpolation filter */
#include "memory_.h"
#include <assert.h>
diff --git a/gs/src/siinterp.h b/gs/src/siinterp.h
index 3b3f0e508..ffdaf541f 100644
--- a/gs/src/siinterp.h
+++ b/gs/src/siinterp.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for image interpolation filter */
/* Requires strimpl.h */
diff --git a/gs/src/siscale.c b/gs/src/siscale.c
index 064924b3b..4f0d68cb8 100644
--- a/gs/src/siscale.c
+++ b/gs/src/siscale.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image scaling filters */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/siscale.h b/gs/src/siscale.h
index 5f14231e7..488afa64a 100644
--- a/gs/src/siscale.h
+++ b/gs/src/siscale.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for smoothed image scaling filter */
/* Requires strimpl.h */
#ifndef siscale_INCLUDED
diff --git a/gs/src/sisparam.h b/gs/src/sisparam.h
index fd4387187..3991f48ec 100644
--- a/gs/src/sisparam.h
+++ b/gs/src/sisparam.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic image scaling stream definitions */
/* Requires strimpl.h */
diff --git a/gs/src/sjpeg.h b/gs/src/sjpeg.h
index 7298ccea6..e47c17926 100644
--- a/gs/src/sjpeg.h
+++ b/gs/src/sjpeg.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* IJG entry point wrappers */
/* Requires sdct.h, jpeg/jpeglib.h */
#ifndef sjpeg_INCLUDED
diff --git a/gs/src/sjpegc.c b/gs/src/sjpegc.c
index ca27b1675..1758c2036 100644
--- a/gs/src/sjpegc.c
+++ b/gs/src/sjpegc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface routines for IJG code, common to encode/decode. */
#include "stdio_.h"
#include "string_.h"
diff --git a/gs/src/sjpegd.c b/gs/src/sjpegd.c
index 5e8402e60..77f9029c2 100644
--- a/gs/src/sjpegd.c
+++ b/gs/src/sjpegd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface routines for IJG decoding code. */
#include "stdio_.h"
#include "string_.h"
diff --git a/gs/src/sjpege.c b/gs/src/sjpege.c
index a0df585a4..95c5f0088 100644
--- a/gs/src/sjpege.c
+++ b/gs/src/sjpege.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface routines for IJG encoding code. */
#include "stdio_.h"
#include "string_.h"
diff --git a/gs/src/slzwc.c b/gs/src/slzwc.c
index 66f37e3c1..3504c373f 100644
--- a/gs/src/slzwc.c
+++ b/gs/src/slzwc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Code common to LZW encoding and decoding streams */
#include "std.h"
#include "strimpl.h"
diff --git a/gs/src/slzwce.c b/gs/src/slzwce.c
index 55ef28dc1..41df9972b 100644
--- a/gs/src/slzwce.c
+++ b/gs/src/slzwce.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Simple encoder compatible with LZW decoding filter */
#include "stdio_.h" /* includes std.h */
#include "gdebug.h"
diff --git a/gs/src/slzwd.c b/gs/src/slzwd.c
index 455346fa5..3fabb6360 100644
--- a/gs/src/slzwd.c
+++ b/gs/src/slzwd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* LZW decoding filter */
#include "stdio_.h" /* includes std.h */
#include "gdebug.h"
diff --git a/gs/src/slzwx.h b/gs/src/slzwx.h
index f63f490fa..7f980becf 100644
--- a/gs/src/slzwx.h
+++ b/gs/src/slzwx.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1993, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for LZW filters */
/* Requires strimpl.h */
#ifndef slzwx_INCLUDED
diff --git a/gs/src/smtf.c b/gs/src/smtf.c
index a49a78ae4..0915912ad 100644
--- a/gs/src/smtf.c
+++ b/gs/src/smtf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MoveToFront filters */
#include "stdio_.h"
#include "strimpl.h"
diff --git a/gs/src/smtf.h b/gs/src/smtf.h
index 764ddf321..c849e1036 100644
--- a/gs/src/smtf.h
+++ b/gs/src/smtf.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for MoveToFront filters */
/* Requires scommon.h; strimpl.h if any templates are referenced */
#ifndef smtf_INCLUDED
diff --git a/gs/src/spdiff.c b/gs/src/spdiff.c
index 660d03dad..9a3c81952 100644
--- a/gs/src/spdiff.c
+++ b/gs/src/spdiff.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Pixel differencing filters */
#include "stdio_.h" /* should be std.h, but needs NULL */
#include "memory_.h"
diff --git a/gs/src/spdiffx.h b/gs/src/spdiffx.h
index 18e4aeeb4..479f35e43 100644
--- a/gs/src/spdiffx.h
+++ b/gs/src/spdiffx.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for PixelDifference filters */
/* Requires strimpl.h */
#ifndef spdiffx_INCLUDED
diff --git a/gs/src/spngp.c b/gs/src/spngp.c
index de51c6b5d..30a9d0468 100644
--- a/gs/src/spngp.c
+++ b/gs/src/spngp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PNG pixel prediction filters */
#include "memory_.h"
#include "strimpl.h"
diff --git a/gs/src/spngpx.h b/gs/src/spngpx.h
index b33b95639..6b8adde1c 100644
--- a/gs/src/spngpx.h
+++ b/gs/src/spngpx.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1996, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for PNGPredictor filters */
/* Requires strimpl.h */
#ifndef spngpx_INCLUDED
diff --git a/gs/src/spprint.c b/gs/src/spprint.c
index 538c5608a..48b4185ea 100644
--- a/gs/src/spprint.c
+++ b/gs/src/spprint.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Print values in ASCII form on a stream */
#include "math_.h" /* for fabs */
#include "stdio_.h" /* for stream.h */
diff --git a/gs/src/spprint.h b/gs/src/spprint.h
index 6d097659a..a0045e360 100644
--- a/gs/src/spprint.h
+++ b/gs/src/spprint.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Print values in ASCII form on a stream */
#ifndef spprint_INCLUDED
diff --git a/gs/src/spsdf.c b/gs/src/spsdf.c
index df6383ded..127e0fdaa 100644
--- a/gs/src/spsdf.c
+++ b/gs/src/spsdf.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common utilities for PostScript and PDF format printing */
#include "stdio_.h" /* for stream.h */
#include "string_.h"
diff --git a/gs/src/spsdf.h b/gs/src/spsdf.h
index 5633540b7..8117c58cf 100644
--- a/gs/src/spsdf.h
+++ b/gs/src/spsdf.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common output syntax and parameters for PostScript and PDF writers */
#ifndef spsdf_INCLUDED
diff --git a/gs/src/srdline.h b/gs/src/srdline.h
index 62d5d99a8..f59ed769b 100644
--- a/gs/src/srdline.h
+++ b/gs/src/srdline.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Interface for readline */
/* Requires gsmemory.h, gstypes.h */
diff --git a/gs/src/srld.c b/gs/src/srld.c
index 218259aa3..c510c4fae 100644
--- a/gs/src/srld.c
+++ b/gs/src/srld.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RunLengthDecode filter */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
diff --git a/gs/src/srle.c b/gs/src/srle.c
index 08026cf13..9ac2f9e75 100644
--- a/gs/src/srle.c
+++ b/gs/src/srle.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RunLengthEncode filter */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
diff --git a/gs/src/srlx.h b/gs/src/srlx.h
index a6176e116..32e78a28d 100644
--- a/gs/src/srlx.h
+++ b/gs/src/srlx.h
@@ -1,22 +1,10 @@
/* Copyright (C) 1994, 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
+/* Definitions for RunLength filters */
/* Requires scommon.h; strimpl.h if any templates are referenced */
#ifndef srlx_INCLUDED
diff --git a/gs/src/sstring.c b/gs/src/sstring.c
index 7f7e395ae..58e3eaf12 100644
--- a/gs/src/sstring.c
+++ b/gs/src/sstring.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* String and hexstring streams (filters) */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
diff --git a/gs/src/sstring.h b/gs/src/sstring.h
index 8b89acd8b..3c89e148f 100644
--- a/gs/src/sstring.h
+++ b/gs/src/sstring.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* are referenced, but some compilers always require strimpl.h. */
#ifndef sstring_INCLUDED
diff --git a/gs/src/stat_.h b/gs/src/stat_.h
index 05eba3759..91ef70fd1 100644
--- a/gs/src/stat_.h
+++ b/gs/src/stat_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix sys/stat.h */
#ifndef stat__INCLUDED
diff --git a/gs/src/std.h b/gs/src/std.h
index c370fda1d..95a88721b 100644
--- a/gs/src/std.h
+++ b/gs/src/std.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Standard definitions for Aladdin Enterprises code */
#ifndef std_INCLUDED
diff --git a/gs/src/stdio_.h b/gs/src/stdio_.h
index ca7c29b73..6abdf2a6b 100644
--- a/gs/src/stdio_.h
+++ b/gs/src/stdio_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for stdio.h */
#ifndef stdio__INCLUDED
diff --git a/gs/src/stdpre.h b/gs/src/stdpre.h
index 8c4452527..00dc4253b 100644
--- a/gs/src/stdpre.h
+++ b/gs/src/stdpre.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Standard definitions for Aladdin Enterprises code not needing arch.h */
#ifndef stdpre_INCLUDED
diff --git a/gs/src/store.h b/gs/src/store.h
index cb2d8a4f9..2cbc8c1f8 100644
--- a/gs/src/store.h
+++ b/gs/src/store.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Assignment-related macros */
#ifndef store_INCLUDED
diff --git a/gs/src/stream.c b/gs/src/stream.c
index c0407ebb6..c738aa502 100644
--- a/gs/src/stream.c
+++ b/gs/src/stream.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Stream package for Ghostscript interpreter */
#include "stdio_.h" /* includes std.h */
#include "memory_.h"
@@ -712,15 +699,20 @@ sreadbuf(stream * s, stream_cursor_write * pbuf)
stream_cursor_read cr;
stream_cursor_read *pr;
stream_cursor_write *pw;
+ int left;
bool eof;
strm = curr->strm;
if (strm == 0) {
cr.ptr = 0, cr.limit = 0;
pr = &cr;
+ left = 0;
eof = false;
} else {
pr = &strm->cursor.r;
+ left = sbuf_min_left(strm);
+ left = min(left, pr->limit - pr->ptr);
+ pr->limit -= left;
eof = strm->end_status == EOFC;
}
pw = (prev == 0 ? pbuf : &curr->cursor.w);
@@ -728,6 +720,7 @@ sreadbuf(stream * s, stream_cursor_write * pbuf)
(ulong) curr, (uint) (pr->limit - pr->ptr),
(uint) (pw->limit - pw->ptr), eof);
status = (*curr->procs.process) (curr->state, pr, pw, eof);
+ pr->limit += left;
if_debug4('s', "[s]after read 0x%lx, nr=%u, nw=%u, status=%d\n",
(ulong) curr, (uint) (pr->limit - pr->ptr),
(uint) (pw->limit - pw->ptr), status);
diff --git a/gs/src/stream.h b/gs/src/stream.h
index 95ebcdc9f..7798848f2 100644
--- a/gs/src/stream.h
+++ b/gs/src/stream.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for Ghostscript stream package */
/* Requires stdio.h */
@@ -266,10 +253,13 @@ int spseek(P2(stream *, long));
/*
* Define the minimum amount of data that must be left in an input buffer
* after a read operation to handle filter read-ahead. This is 1 byte for
- * filters (including procedure data sources), 0 for files.
+ * filters (including procedure data sources) that haven't reached EOD,
+ * 0 for files.
*/
#define max_min_left 1
-#define sbuf_min_left(s) (s->strm == 0 && s->end_status != CALLC ? 0 : 1)
+#define sbuf_min_left(s)\
+ (s->strm == 0 ? (s->end_status != CALLC ? 0 : 1) :\
+ s->end_status == EOFC || s->end_status == ERRC ? 0 : 1)
/* The following are for very high-performance clients of read streams, */
/* who unpack the stream state into local variables. */
diff --git a/gs/src/strimpl.h b/gs/src/strimpl.h
index 5839c635e..a2b86fa9a 100644
--- a/gs/src/strimpl.h
+++ b/gs/src/strimpl.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Definitions for stream implementors */
/* Requires stdio.h */
diff --git a/gs/src/string_.h b/gs/src/string_.h
index 033b9c1a5..32d783992 100644
--- a/gs/src/string_.h
+++ b/gs/src/string_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix string.h */
#ifndef string__INCLUDED
diff --git a/gs/src/szlibc.c b/gs/src/szlibc.c
index 0e6fecfa0..8ead4aa5d 100644
--- a/gs/src/szlibc.c
+++ b/gs/src/szlibc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Code common to zlib encoding and decoding streams */
#include "std.h"
#include "gserror.h"
diff --git a/gs/src/szlibd.c b/gs/src/szlibd.c
index 5502b1807..7f1d9dfb4 100644
--- a/gs/src/szlibd.c
+++ b/gs/src/szlibd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* zlib decoding (decompression) filter stream */
#include "std.h"
#include "gsmemory.h"
diff --git a/gs/src/szlibe.c b/gs/src/szlibe.c
index 18f3efa8a..2abfd25f6 100644
--- a/gs/src/szlibe.c
+++ b/gs/src/szlibe.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* zlib encoding (compression) filter stream */
#include "std.h"
#include "gsmemory.h"
diff --git a/gs/src/szlibx.h b/gs/src/szlibx.h
index 8de6b86c2..42f0fa8b3 100644
--- a/gs/src/szlibx.h
+++ b/gs/src/szlibx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* zlib filter state definition */
#ifndef szlibx_INCLUDED
diff --git a/gs/src/szlibxx.h b/gs/src/szlibxx.h
index df38b531b..13c508f24 100644
--- a/gs/src/szlibxx.h
+++ b/gs/src/szlibxx.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Implementation definitions for zlib interface */
/* Must be compiled with -I$(ZSRCDIR) */
diff --git a/gs/src/time_.h b/gs/src/time_.h
index ac3e19523..e22cadbcd 100644
--- a/gs/src/time_.h
+++ b/gs/src/time_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1997, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic substitute for Unix sys/time.h */
#ifndef time__INCLUDED
diff --git a/gs/src/ugcclib.mak b/gs/src/ugcclib.mak
index 080475c45..a38a5fe97 100644
--- a/gs/src/ugcclib.mak
+++ b/gs/src/ugcclib.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Unix / gcc library testing.
BINDIR=./libobj
@@ -66,6 +53,7 @@ XCFLAGS=
CFLAGS=-g -O $(GCFLAGS) $(XCFLAGS)
CFLAGS_NO_WARN=-g -O $(GCFLAGS_NO_WARN) $(XCFLAGS)
LDFLAGS=$(XLDFLAGS)
+STDLIBS=-lm
EXTRALIBS=
XINCLUDE=-I/usr/local/X/include
XLIBDIRS=-L/usr/X11/lib
@@ -78,7 +66,7 @@ SYNC=posync
FEATURE_DEVS=$(GLD)dps2lib.dev $(GLD)psl2cs.dev $(GLD)cielib.dev\
$(GLD)imasklib.dev $(GLD)patlib.dev $(GLD)htxlib.dev $(GLD)roplib.dev\
$(GLD)devcmap.dev
-COMPILE_INITS=0
+COMPILE_INITS=1
BAND_LIST_STORAGE=file
BAND_LIST_COMPRESSOR=zlib
FILE_IMPLEMENTATION=stdio
@@ -134,10 +122,10 @@ include $(GLSRCDIR)/unix-aux.mak
LIB_ONLY=$(GLOBJ)gslib.$(OBJ) $(GLOBJ)gsnogc.$(OBJ) $(GLOBJ)gconfig.$(OBJ) $(GLOBJ)gscdefs.$(OBJ)
ldt_tr=$(GLOBJ)ldt.tr
$(GS_XE): $(ld_tr) $(ECHOGS_XE) $(LIB_ALL) $(DEVS_ALL) $(LIB_ONLY)
- $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) $(XLIBDIRS) -o $(GS_XE)
+ $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) -o $(GS_XE)
$(ECHOGS_XE) -a $(ldt_tr) -n -s $(LIB_ONLY) -s
cat $(ld_tr) >>$(ldt_tr)
- $(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) -lm
+ $(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) $(STDLIBS)
LD_RUN_PATH=$(XLIBDIR); export LD_RUN_PATH; $(SH) <$(ldt_tr)
include $(GLSRCDIR)/unix-end.mak
diff --git a/gs/src/unix-aux.mak b/gs/src/unix-aux.mak
index 2eaf4649e..938188dc6 100644
--- a/gs/src/unix-aux.mak
+++ b/gs/src/unix-aux.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile common to all Unix configurations.
# This makefile contains the build rules for the auxiliary programs such as
# echogs, and the 'platform' modules.
diff --git a/gs/src/unix-end.mak b/gs/src/unix-end.mak
index 56dd6d849..b7357a918 100644
--- a/gs/src/unix-end.mak
+++ b/gs/src/unix-end.mak
@@ -1,21 +1,8 @@
-# Copyright (C) 1994, 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile common to all Unix and Desqview/X configurations.
# This is the next-to-last part of the makefile for these configurations.
@@ -42,10 +29,10 @@ PGDEFS=GENOPT='-DPROFILE' CFLAGS='$(CFLAGS_PROFILE) $(GCFLAGS) $(XCFLAGS)'\
PSGENDIR=$(PSGENDIR)/$(PGRELDIR) PSOBJDIR=$(PSOBJDIR)/$(PGRELDIR)
pg: PGDIRS
- make $(PGDEFS) default
+ $(MAKE) $(PGDEFS) default
pgclean: PGDIRS
- make $(PGDEFS) clean
+ $(MAKE) $(PGDEFS) clean
# Define a rule for building debugging configurations.
DEBUGDIRS: STDDIRS
@@ -61,10 +48,10 @@ DEBUGDEFS=GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\
PSGENDIR=$(PSGENDIR)/$(DEBUGRELDIR) PSOBJDIR=$(PSOBJDIR)/$(DEBUGRELDIR)
debug: DEBUGDIRS
- make $(DEBUGDEFS) default
+ $(MAKE) $(DEBUGDEFS) default
debugclean: DEBUGDIRS
- make $(DEBUGDEFS) clean
+ $(MAKE) $(DEBUGDEFS) clean
# The rule for gconfigv.h is here because it is shared between Unix and
# DV/X environments.
diff --git a/gs/src/unix-gcc.mak b/gs/src/unix-gcc.mak
index e50210dcb..389902685 100755
--- a/gs/src/unix-gcc.mak
+++ b/gs/src/unix-gcc.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Unix/gcc/X11 configuration.
# ------------------------------- Options ------------------------------- #
@@ -107,6 +94,16 @@ GENOPT=
GS=gs
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gs
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
+
# Define the directories for debugging and profiling binaries, relative to
# the standard binaries.
@@ -186,7 +183,8 @@ GCFLAGS=-Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -W
# Define the added flags for standard, debugging, and profiling builds.
-CFLAGS_STANDARD=-O2
+#CFLAGS_STANDARD=-O2
+CFLAGS_STANDARD=-O
CFLAGS_DEBUG=-g -O
CFLAGS_PROFILE=-pg -O2
@@ -225,6 +223,12 @@ LDFLAGS=$(XLDFLAGS) -fno-common
EXTRALIBS=
+# Define the standard libraries to search at the end of linking.
+# All reasonable platforms require -lm, but Rhapsody and perhaps one or
+# two others fold libm into libc and require STDLIBS to be empty.
+
+STDLIBS=-lm
+
# Define the include switch(es) for the X11 header files.
# This can be null if handled in some other way (e.g., the files are
# in /usr/include, or the directory is supplied by an environment variable);
@@ -264,30 +268,25 @@ XLIBS=Xt Xext X11
FPU_TYPE=1
# Define the .dev module that implements thread and synchronization
-# primitives for this platform. Don't change this unless you really know
-# what you're doing.
+# primitives for this platform. On FreeBSD, change posync to fbsdsync.
+# Otherwise, don't change this unless you really know what you're doing.
SYNC=posync
# ------ Devices and features ------ #
# Choose the language feature(s) to include. See gs.mak for details.
-# Note that there is one feature that requires a GNU library:
-# $(PSD)gnrdline.dev, which adds support for GNU readline, including
-# on-the-fly name completion and evaluation. For details, including
-# licensing problems that will arise if you add this feature to Aladdin
-# Ghostscript releases, see gp_gnrdl.c.
-
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)pipe.dev
-#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)pipe.dev $(PSD)rasterop.dev
+
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(GLD)pipe.dev
+#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev
# The following is strictly for testing.
-FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)pipe.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)compht.dev $(PSD)gnrdline.dev
+FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)compht.dev $(GLD)pipe.dev
#FEATURE_DEVS=$(FEATURE_DEVS_ALL)
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
@@ -351,7 +350,7 @@ DEVICE_DEVS16=
DEVICE_DEVS17=
DEVICE_DEVS18=
DEVICE_DEVS19=
-DEVICE_DEVS20=
+DEVICE_DEVS20=$(DD)cljet5.dev $(DD)cljet5pr.dev
# ---------------------------- End of options --------------------------- #
diff --git a/gs/src/unixansi.mak b/gs/src/unixansi.mak
index e61012016..fa89ff972 100755
--- a/gs/src/unixansi.mak
+++ b/gs/src/unixansi.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Unix/ANSI C/X11 configuration.
# ------------------------------- Options ------------------------------- #
@@ -107,6 +94,16 @@ GENOPT=
GS=gs
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gs
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
+
# Define the directories for debugging and profiling binaries, relative to
# the standard binaries.
@@ -218,6 +215,12 @@ LDFLAGS=$(XLDFLAGS)
EXTRALIBS=
+# Define the standard libraries to search at the end of linking.
+# All reasonable platforms require -lm, but Rhapsody and perhaps one or
+# two others fold libm into libc and require STDLIBS to be empty.
+
+STDLIBS=-lm
+
# Define the include switch(es) for the X11 header files.
# This can be null if handled in some other way (e.g., the files are
# in /usr/include, or the directory is supplied by an environment variable);
@@ -256,8 +259,8 @@ XLIBS=Xt Xext X11
FPU_TYPE=1
# Define the .dev module that implements thread and synchronization
-# primitives for this platform. Don't change this unless you really know
-# what you're doing.
+# primitives for this platform. On FreeBSD, change posync to fbsdsync.
+# Otherwise, don't change this unless you really know what you're doing.
SYNC=posync
@@ -265,12 +268,12 @@ SYNC=posync
# Choose the language feature(s) to include. See gs.mak for details.
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)pipe.dev
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(GLD)pipe.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
@@ -291,7 +294,7 @@ FILE_IMPLEMENTATION=stdio
# Choose the device(s) to include. See devs.mak for details,
# devs.mak and contrib.mak for the list of available devices.
-DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11mono.dev
+DEVICE_DEVS=$(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
DEVICE_DEVS1=
DEVICE_DEVS2=
DEVICE_DEVS3=$(DD)deskjet.dev $(DD)djet500.dev $(DD)laserjet.dev $(DD)ljetplus.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev
@@ -299,15 +302,16 @@ DEVICE_DEVS4=$(DD)cdeskjet.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)cdj550.de
DEVICE_DEVS5=$(DD)uniprint.dev
DEVICE_DEVS6=$(DD)bj10e.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev
DEVICE_DEVS7=$(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev
-DEVICE_DEVS8=$(DD)jpeg.dev $(DD)jpeggray.dev $(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev
-DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev
+DEVICE_DEVS8=$(DD)pcxmono.dev $(DD)pcxgray.dev $(DD)pcx16.dev $(DD)pcx256.dev $(DD)pcx24b.dev $(DD)pcxcmyk.dev
+DEVICE_DEVS9=$(DD)pbm.dev $(DD)pbmraw.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev
DEVICE_DEVS10=$(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev
DEVICE_DEVS11=$(DD)tiff12nc.dev $(DD)tiff24nc.dev
-DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
+DEVICE_DEVS12=$(DD)psmono.dev $(DD)psgray.dev $(DD)psrgb.dev $(DD)bit.dev $(DD)bitrgb.dev $(DD)bitcmyk.dev
DEVICE_DEVS13=$(DD)pngmono.dev $(DD)pnggray.dev $(DD)png16.dev $(DD)png256.dev $(DD)png16m.dev
-DEVICE_DEVS14=
+DEVICE_DEVS14=$(DD)jpeg.dev $(DD)jpeggray.dev
DEVICE_DEVS15=$(DD)pdfwrite.dev $(DD)pswrite.dev $(DD)epswrite.dev $(DD)pxlmono.dev $(DD)pxlcolor.dev
-DEVICE_DEVS16=
+# Overflow from DEVS9
+DEVICE_DEVS16=$(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev
DEVICE_DEVS17=
DEVICE_DEVS18=
DEVICE_DEVS19=
diff --git a/gs/src/unixhead.mak b/gs/src/unixhead.mak
index 969da00ea..ff9390d5b 100644
--- a/gs/src/unixhead.mak
+++ b/gs/src/unixhead.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1990, 1993, 1996, 1997 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile common to all Unix configurations.
# This part of the makefile gets inserted after the compiler-specific part
diff --git a/gs/src/unixinst.mak b/gs/src/unixinst.mak
index 8b63cabcd..48f7ca874 100644
--- a/gs/src/unixinst.mak
+++ b/gs/src/unixinst.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile common to all Unix and Desqview/X configurations,
# containing the `install' targets.
# This is the very last part of the makefile for these configurations.
@@ -46,32 +33,36 @@ gsbj gsdj gsdj500 gslj gslp gsnd \
bdftops dvipdf font2c \
pdf2dsc pdf2ps pf2afm pfbtopfa printafm \
ps2ascii ps2epsi ps2pdf ps2ps wftopfa ;\
- do if ( test -f lib/$$f ); then $(INSTALL_PROGRAM) lib/$$f $(scriptdir)/$$f; fi;\
+ do if ( test -f $(PSLIBDIR)/$$f ); then $(INSTALL_PROGRAM) $(PSLIBDIR)/$$f $(scriptdir); fi;\
done'
+PSDOCDIR=$(PSLIBDIR)/../doc
+PSEXDIR=$(PSLIBDIR)/../examples
+PSMANDIR=$(PSLIBDIR)/../man
+
MAN1_PAGES=gs pdf2dsc pdf2ps ps2ascii ps2epsi ps2pdf ps2ps
install-data: man/gs.1
-mkdir $(mandir)
-mkdir $(man1dir)
- cd man; $(SH) -c 'for f in $(MAN1_PAGES) ;\
- do if ( test -f $$f.1 ); then $(INSTALL_DATA) $$f.1 $(man1dir)/$$f.$(man1ext); fi;\
+ $(SH) -c 'for f in $(MAN1_PAGES) ;\
+ do if ( test -f $(PSMANDIR)/$$f.1 ); then $(INSTALL_DATA) $(PSMANDIR)/$$f.1 $(man1dir)/$$f.$(man1ext); fi;\
done'
-mkdir $(datadir)
-mkdir $(gsdir)
-mkdir $(gsdatadir)
-mkdir $(gsdatadir)/lib
- cd lib; $(SH) -c 'for f in \
+ $(SH) -c 'for f in \
Fontmap Fontmap.GS \
-cbjc600.ppd cbjc800.ppd *.upp \
gs_init.ps gs_btokn.ps gs_ccfnt.ps gs_cff.ps gs_cidfn.ps gs_cmap.ps \
gs_diskf.ps gs_dpnxt.ps gs_dps.ps gs_dps1.ps gs_dps2.ps gs_epsf.ps \
gs_fonts.ps gs_kanji.ps gs_lev2.ps gs_ll3.ps \
gs_pfile.ps gs_rdlin.ps gs_res.ps gs_setpd.ps gs_statd.ps \
gs_trap.ps gs_ttf.ps gs_typ32.ps gs_typ42.ps gs_type1.ps \
-gs_dbt_e.ps gs_il1_e.ps gs_il2_e.ps gs_ksb_e.ps gs_std_e.ps gs_sym_e.ps \
+gs_ce_e.ps gs_dbt_e.ps gs_il1_e.ps gs_il2_e.ps gs_ksb_e.ps \
+gs_std_e.ps gs_sym_e.ps \
ht_ccbnm.ps \
acctest.ps align.ps bdftops.ps caption.ps cid2code.ps decrypt.ps docie.ps \
-errpage.ps font2c.ps font2pcl.ps gslp.ps impath.ps \
+errpage.ps font2c.ps font2pcl.ps gslp.ps gsnup.ps impath.ps \
landscap.ps level1.ps lines.ps markhint.ps markpath.ps \
packfile.ps pcharstr.ps pf2afm.ps ppath.ps prfont.ps printafm.ps \
ps2ai.ps ps2ascii.ps ps2epsi.ps quit.ps rollconv.ps \
@@ -86,10 +77,13 @@ pdf_base.ps pdf_draw.ps pdf_font.ps pdf_main.ps pdf_ops.ps pdf_sec.ps \
gs_lgo_e.ps gs_lgx_e.ps gs_mex_e.ps gs_mgl_e.ps gs_mro_e.ps \
gs_pdf_e.ps gs_wan_e.ps \
gs_pdfwr.ps ;\
- do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(gsdatadir)/lib/$$f; fi;\
+ do if ( test -f $(PSLIBDIR)/$$f ); then $(INSTALL_DATA) $(PSLIBDIR)/$$f $(gsdatadir)/lib; fi;\
+ done'
+ $(SH) -c 'for f in $(PSLIBDIR)/*.ppd $(PSLIBDIR)/*.upp $(PSLIBDIR)/*.xbm $(PSLIBDIR)/*.xpm;\
+ do $(INSTALL_DATA) $$f $(gsdatadir)/lib ;\
done'
-mkdir $(docdir)
- cd doc; $(SH) -c 'for f in \
+ $(SH) -c 'for f in \
PUBLIC README \
ps2epsi.txt \
Bug-form.htm C-style.htm Commprod.htm Copying.htm Current.htm \
@@ -99,12 +93,12 @@ History1.htm History2.htm History3.htm History4.htm History5.htm \
Htmstyle.htm Humor.htm Install.htm Language.htm Lib.htm Make.htm New-user.htm \
News.htm Ps2pdf.htm Psfiles.htm Public.htm Readme.htm Release.htm \
Source.htm Tester.htm Unix-lpr.htm Use.htm Xfonts.htm ;\
- do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(docdir)/$$f; fi;\
+ do if ( test -f $(PSDOCDIR)/$$f ); then $(INSTALL_DATA) $(PSDOCDIR)/$$f $(docdir); fi;\
done'
-mkdir $(exdir)
- cd examples; for f in \
+ for f in \
alphabet.ps chess.ps cheq.ps colorcir.ps escher.ps golfer.ps \
grayalph.ps snowflak.ps tiger.ps vasarely.ps waterfal.ps \
ridt91.eps ;\
- do $(INSTALL_DATA) $$f $(exdir)/$$f ;\
+ do $(INSTALL_DATA) $(PSEXDIR)/$$f $(exdir) ;\
done
diff --git a/gs/src/unixlink.mak b/gs/src/unixlink.mak
index 3307b7f15..a46ef49c9 100644
--- a/gs/src/unixlink.mak
+++ b/gs/src/unixlink.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1990, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Partial makefile common to all Unix configurations.
# This part of the makefile contains the linking steps.
@@ -63,10 +50,10 @@ $(GS_A): $(INT_ARCHIVE_ALL)
# which has limited environment space.
ldt_tr=$(PSOBJ)ldt.tr
$(GS_XE): $(ld_tr) $(ECHOGS_XE) $(XE_ALL)
- $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) $(XLIBDIRS) -o $(GS_XE)
+ $(ECHOGS_XE) -w $(ldt_tr) -n - $(CCLD) $(LDFLAGS) -o $(GS_XE)
$(ECHOGS_XE) -a $(ldt_tr) -n -s $(PSOBJ)gs.$(OBJ) -s
cat $(ld_tr) >>$(ldt_tr)
- $(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) -lm
+ $(ECHOGS_XE) -a $(ldt_tr) -s - $(EXTRALIBS) $(STDLIBS)
LD_RUN_PATH=$(XLIBDIR); export LD_RUN_PATH; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
diff --git a/gs/src/unixtrad.mak b/gs/src/unixtrad.mak
index 86b09ba23..67a8f14fa 100644
--- a/gs/src/unixtrad.mak
+++ b/gs/src/unixtrad.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for Unix/"Traditional" C/X11 configuration.
# ------------------------------- Options ------------------------------- #
@@ -107,6 +94,16 @@ GENOPT=
GS=gs
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gs
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
+
# Define the directories for debugging and profiling binaries, relative to
# the standard binaries.
@@ -213,6 +210,12 @@ LDFLAGS=$(XLDFLAGS)
EXTRALIBS=
+# Define the standard libraries to search at the end of linking.
+# All reasonable platforms require -lm, but Rhapsody and perhaps one or
+# two others fold libm into libc and require STDLIBS to be empty.
+
+STDLIBS=-lm
+
# Define the include switch(es) for the X11 header files.
# This can be null if handled in some other way (e.g., the files are
# in /usr/include, or the directory is supplied by an environment variable);
@@ -251,8 +254,8 @@ XLIBS=Xt Xext X11
FPU_TYPE=1
# Define the .dev module that implements thread and synchronization
-# primitives for this platform. Don't change this unless you really know
-# what you're doing.
+# primitives for this platform. On FreeBSD, change posync to fbsdsync.
+# Otherwise, don't change this unless you really know what you're doing.
SYNC=posync
@@ -260,12 +263,12 @@ SYNC=posync
# Choose the language feature(s) to include. See gs.mak for details.
-FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)pipe.dev
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(GLD)pipe.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
diff --git a/gs/src/version.mak b/gs/src/version.mak
index d1f84ef3b..863ceef5e 100644
--- a/gs/src/version.mak
+++ b/gs/src/version.mak
@@ -1,30 +1,17 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Makefile fragment containing the current revision identification.
# Major and minor version numbers.
# MINOR0 is different from MINOR only if MINOR is a single digit.
-GS_VERSION_MAJOR=5
-GS_VERSION_MINOR=93
-GS_VERSION_MINOR0=93
+GS_VERSION_MAJOR=6
+GS_VERSION_MINOR=10
+GS_VERSION_MINOR0=10
# Revision date: year x 10000 + month x 100 + day.
-GS_REVISIONDATE=19990911
+GS_REVISIONDATE=19991212
# Derived values
GS_VERSION=$(GS_VERSION_MAJOR)$(GS_VERSION_MINOR0)
GS_DOT_VERSION=$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR)
diff --git a/gs/src/vmsmath.h b/gs/src/vmsmath.h
index fd4872bb2..6b59676cc 100644
--- a/gs/src/vmsmath.h
+++ b/gs/src/vmsmath.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Substitute for math.h on VAX/VMS systems */
#ifndef vmsmath_INCLUDED
diff --git a/gs/src/watc.mak b/gs/src/watc.mak
index dde7e2260..235bb2707 100644
--- a/gs/src/watc.mak
+++ b/gs/src/watc.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for MS-DOS/Watcom C386 platform.
# We strongly recommend that you read the Watcom section of Make.htm
# before attempting to build Ghostscript with the Watcom compiler.
@@ -26,15 +13,33 @@
# ------ Generic options ------ #
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+BINDIR=bin
+GLSRCDIR=src
+GLGENDIR=obj
+GLOBJDIR=obj
+PSSRCDIR=src
+PSLIBDIR=lib
+PSGENDIR=obj
+PSOBJDIR=obj
+
+# Define the root directory for Ghostscript installation.
+
+AROOTDIR=c:/Aladdin
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+
# Define the directory that will hold documentation at runtime.
-GS_DOCDIR=c:/gs
+GS_DOCDIR=$(GSROOTDIR)/doc
# Define the default directory/ies for the runtime
# initialization and font files. Separate multiple directories with \;.
# Use / to indicate directories, not a single \.
-GS_LIB_DEFAULT=.\;c:/gs/lib\;c:/gs/fonts
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib\;$(AROOTDIR)/fonts
# Define whether or not searching for initialization files should always
# look in the current directory first. This leads to well-known security
@@ -74,18 +79,15 @@ NOPRIVATE=0
GS=gs386
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-BINDIR=bin
-GLSRCDIR=src
-GLGENDIR=obj
-GLOBJDIR=obj
-PSSRCDIR=src
-PSLIBDIR=lib
-PSGENDIR=obj
-PSOBJDIR=obj
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gs386
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)\$(GS) -I$(PSLIBDIR)
# Do not edit the next group of lines.
NUL=
@@ -185,7 +187,7 @@ FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
diff --git a/gs/src/watclib.mak b/gs/src/watclib.mak
index ab437893a..b1bf1ef20 100644
--- a/gs/src/watclib.mak
+++ b/gs/src/watclib.mak
@@ -1,28 +1,17 @@
# Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for MS-DOS / Watcom C/C++ library testing.
libdefault: $(GLOBJ)gslib.exe
$(NO_OP)
-GS_DOCDIR=c:/gs
-GS_LIB_DEFAULT=.;c:/gs/lib\;c:/gs/fonts
+AROOTDIR=c:/Aladdin
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+GS_DOCDIR=$(GSROOTDIR)/doc
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib\;$(AROOTDIR)/fonts
SEARCH_HERE_FIRST=1
GS_INIT=gs_init.ps
@@ -39,16 +28,16 @@ NOPRIVATE=1
GS=gslib
!ifndef BINDIR
-BINDIR=.\obj
+BINDIR=.\debugobj
!endif
!ifndef GLSRCDIR
GLSRCDIR=.\src
!endif
!ifndef GLGENDIR
-GLGENDIR=.\obj
+GLGENDIR=.\debugobj
!endif
!ifndef GLOBJDIR
-GLOBJDIR=.\obj
+GLOBJDIR=.\debugobj
!endif
# Do not edit the next group of lines.
@@ -107,7 +96,7 @@ FEATURE_DEVS=$(GLD)patlib.dev $(GLD)path1lib.dev $(GLD)hsblib.dev
DEVICE_DEVS=$(DD)vga.dev
!endif
!ifndef COMPILE_INITS
-COMPILE_INITS=0
+COMPILE_INITS=1
!endif
!ifndef BAND_LIST_STORAGE
BAND_LIST_STORAGE=file
diff --git a/gs/src/watcw32.mak b/gs/src/watcw32.mak
index 42dd7decd..f5e08e62f 100644
--- a/gs/src/watcw32.mak
+++ b/gs/src/watcw32.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1991-1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# watcw32.mak
# makefile for Watcom C++ v??, Windows NT or Windows 95 platform.
# Does NOT build gs16spl.exe, which is 16-bit and is used under Win32s.
@@ -30,15 +17,33 @@
# ------ Generic options ------ #
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+BINDIR=bin
+GLSRCDIR=src
+GLGENDIR=obj
+GLOBJDIR=obj
+PSSRCDIR=src
+PSLIBDIR=lib
+PSGENDIR=obj
+PSOBJDIR=obj
+
+# Define the root directory for Ghostscript installation.
+
+AROOTDIR=c:/Aladdin
+GSROOTDIR=$(AROOTDIR)/gs$(GS_DOT_VERSION)
+
# Define the directory that will hold documentation at runtime.
-GS_DOCDIR=c:/gs
+GS_DOCDIR=$(GSROOTDIR)/doc
# Define the default directory/ies for the runtime
# initialization and font files. Separate multiple directories with \;.
# Use / to indicate directories, not a single \.
-GS_LIB_DEFAULT=.;c:/gs/lib\;c:/gs/fonts
+GS_LIB_DEFAULT=$(GSROOTDIR)/lib\;$(AROOTDIR)/fonts
# Define whether or not searching for initialization files should always
# look in the current directory first. This leads to well-known security
@@ -79,24 +84,21 @@ GS=gswin32
GSCONSOLE=gswin32c
GSDLL=gsdll32
+# Define the name of a pre-built executable that can be invoked at build
+# time. Currently, this is only needed for compiled fonts. The usual
+# alternatives are:
+# - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gswin32c
+# - the name of the executable you are building now. If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)\$(GS) -I$(PSLIBDIR)
+
# To build two small executables and a large DLL use MAKEDLL=1
# To build two large executables use MAKEDLL=0
MAKEDLL=1
-# Define the directory for the final executable, and the
-# source, generated intermediate file, and object directories
-# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
-
-BINDIR=bin
-GLSRCDIR=src
-GLGENDIR=obj
-GLOBJDIR=obj
-PSSRCDIR=src
-PSLIBDIR=lib
-PSGENDIR=obj
-PSOBJDIR=obj
-
# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
@@ -186,7 +188,7 @@ FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev
# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.
-COMPILE_INITS=0
+COMPILE_INITS=1
# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.
diff --git a/gs/src/wccommon.mak b/gs/src/wccommon.mak
index 084cf6f5f..befb1367d 100644
--- a/gs/src/wccommon.mak
+++ b/gs/src/wccommon.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# wccommon.mak
# Section of Watcom C/C++ makefile common to MS-DOS and MS Windows.
# We strongly recommend that you read the Watcom section of Make.htm
diff --git a/gs/src/wctail.mak b/gs/src/wctail.mak
index 00343f2b6..e24a92374 100644
--- a/gs/src/wctail.mak
+++ b/gs/src/wctail.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# wctail.mak
# Last part of Watcom C/C++ makefile common to MS-DOS and MS Windows.
diff --git a/gs/src/windows_.h b/gs/src/windows_.h
index 3bcc72101..a5493c629 100644
--- a/gs/src/windows_.h
+++ b/gs/src/windows_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Wrapper for windows.h */
#ifndef windows__INCLUDED
diff --git a/gs/src/winint.mak b/gs/src/winint.mak
index 394308dcc..f4f17baaa 100644
--- a/gs/src/winint.mak
+++ b/gs/src/winint.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Common interpreter makefile section for 32-bit MS Windows.
# This makefile must be acceptable to Microsoft Visual C++, Watcom C++,
@@ -37,6 +24,28 @@ PSCCWIN=$(CC_WX) $(CCWINFLAGS) $(I_)$(PSI_)$(_I) $(PSF_)
# Define the name of this makefile.
WININT_MAK=$(PSSRC)winint.mak
+# Define the location of the WinZip self-extracting-archive-maker.
+!ifndef WINZIPSE_XE
+WINZIPSE_XE="C:\Program Files\WinZip Self-Extractor\WZIPSE32.EXE"
+!endif
+
+# Define the setup and install programs, which are only suitable
+# for the DLL build.
+!if $(MAKEDLL)
+!ifndef SETUP_XE_NAME
+SETUP_XE_NAME=setupgs.exe
+!endif
+!ifndef SETUP_XE
+SETUP_XE=$(BINDIR)\$(SETUP_XE_NAME)
+!endif
+!ifndef UNINSTALL_XE_NAME
+UNINSTALL_XE_NAME=uninstgs.exe
+!endif
+!ifndef UNINSTALL_XE
+UNINSTALL_XE=$(BINDIR)\$(UNINSTALL_XE_NAME)
+!endif
+!endif
+
# ----------------------------- Main program ------------------------------ #
ICONS=$(GLGEN)gsgraph.ico $(GLGEN)gstext.ico
@@ -121,4 +130,107 @@ $(GLOBJ)dwdllc.obj: $(GLSRC)dwdll.cpp $(AK) $(dwdll_h) $(gsdll_h)
$(GLOBJ)dwnodllc.obj: $(GLSRC)dwnodll.cpp $(AK) $(dwdll_h) $(gsdll_h)
$(GLCPP) $(COMPILE_FOR_CONSOLE_EXE) $(GLO_)dwnodllc.obj $(C_) $(GLSRC)dwnodll.cpp
+
+# ---------------------- Setup and uninstall program ---------------------- #
+
+!if $(MAKEDLL)
+
+# Modules for setup program
+
+$(GLOBJ)dwsetup.res: $(GLSRC)dwsetup.rc $(GLSRC)dwsetup.h $(GLGEN)gstext.ico
+ $(RCOMP) -I$(GLSRCDIR) -i$(GLOBJDIR) -i$(INCDIR)$(_I) -r $(RO_)$(GLOBJ)dwsetup.res $(GLSRC)dwsetup.rc
+
+$(GLOBJ)dwsetup.obj: $(GLSRC)dwsetup.cpp $(GLSRC)dwsetup.h $(GLSRC)dwinst.h
+ $(GLCPP) $(COMPILE_FOR_EXE) $(GLO_)dwsetup.obj $(C_) $(GLSRC)dwsetup.cpp
+
+$(GLOBJ)dwinst.obj: $(GLSRC)dwinst.cpp $(GLSRC)dwinst.h
+ $(GLCPP) $(COMPILE_FOR_EXE) $(GLO_)dwinst.obj $(C_) $(GLSRC)dwinst.cpp
+
+# Modules for uninstall program
+
+$(GLOBJ)dwuninst.res: $(GLSRC)dwuninst.rc $(GLSRC)dwuninst.h $(GLGEN)gstext.ico
+ $(RCOMP) -I$(GLSRCDIR) -i$(GLOBJDIR) -i$(INCDIR)$(_I) -r $(RO_)$(GLOBJ)dwuninst.res $(GLSRC)dwuninst.rc
+
+$(GLOBJ)dwuninst.obj: $(GLSRC)dwuninst.cpp $(GLSRC)dwuninst.h
+ $(GLCPP) $(COMPILE_FOR_EXE) $(GLO_)dwuninst.obj $(C_) $(GLSRC)dwuninst.cpp
+
+!endif
+
+
+# ------------------------- Distribution archive -------------------------- #
+
+# Create a self-extracting archive with setup program.
+# This assumes that the current directory is named gs#.## relative to its
+# parent, where #.## is the Ghostscript version, and that the files and
+# directories listed in ZIPTEMPFILE and ZIPFONTFILES are the complete list
+# of needed files and directories.
+
+ZIPTEMPFILE=gs$(GS_DOT_VERSION)\obj\dwfiles.rsp
+ZIPPROGFILE1=gs$(GS_DOT_VERSION)\bin\gsdll32.dll
+ZIPPROGFILE2=gs$(GS_DOT_VERSION)\bin\gswin32.exe
+ZIPPROGFILE3=gs$(GS_DOT_VERSION)\bin\gswin32c.exe
+ZIPPROGFILE4=gs$(GS_DOT_VERSION)\bin\gs16spl.exe
+ZIPPROGFILE5=gs$(GS_DOT_VERSION)\doc
+ZIPPROGFILE6=gs$(GS_DOT_VERSION)\examples
+ZIPPROGFILE7=gs$(GS_DOT_VERSION)\lib
+ZIPFONTFILES=fonts
+
+# Make the zip archive.
+FILELIST_TXT=filelist.txt
+FONTLIST_TXT=fontlist.txt
+zip: $(SETUP_XE) $(UNINSTALL_XE)
+ cd ..
+ copy gs$(GS_DOT_VERSION)\$(SETUP_XE) .
+ copy gs$(GS_DOT_VERSION)\$(UNINSTALL_XE) .
+ echo $(ZIPPROGFILE1) > $(ZIPTEMPFILE)
+ echo $(ZIPPROGFILE2) >> $(ZIPTEMPFILE)
+ echo $(ZIPPROGFILE3) >> $(ZIPTEMPFILE)
+ echo $(ZIPPROGFILE4) >> $(ZIPTEMPFILE)
+ echo $(ZIPPROGFILE5) >> $(ZIPTEMPFILE)
+ echo $(ZIPPROGFILE6) >> $(ZIPTEMPFILE)
+ echo $(ZIPPROGFILE7) >> $(ZIPTEMPFILE)
+ $(SETUP_XE_NAME) -title "Aladdin Ghostscript $(GS_DOT_VERSION)" -dir "gs$(GS_DOT_VERSION)" -list "$(FILELIST_TXT)" @$(ZIPTEMPFILE)
+ $(SETUP_XE_NAME) -title "Aladdin Ghostscript Fonts" -dir "fonts" -list "$(FONTLIST_TXT)" $(ZIPFONTFILES)
+ -del gs$(GS_VERSION)w32.zip
+ zip -9 -r gs$(GS_VERSION)w32.zip $(SETUP_XE_NAME) $(UNINSTALL_XE_NAME) $(FILELIST_TXT) $(FONTLIST_TXT)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPFONTFILES)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE1)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE2)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE3)
+ rem Don't flag error if Win32s spooler file is missing.
+ rem This occurs when using MSVC++.
+ -zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE4)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE5)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE6)
+ zip -9 -r gs$(GS_VERSION)w32.zip $(ZIPPROGFILE7)
+ -del $(ZIPTEMPFILE)
+ -del $(SETUP_XE_NAME)
+ -del $(UNINSTALL_XE_NAME)
+ -del $(FILELIST_TXT)
+ -del $(FONTLIST_TXT)
+ cd gs$(GS_DOT_VERSION)
+
+# Now convert to a self extracting archive.
+# This involves making a few temporary files.
+ZIP_RSP = $(GLOBJ)setupgs.rsp
+# Note that we use ECHOGS_XE rather than echo for the .txt files
+# to avoid ANSI/OEM character mapping.
+archive: zip $(GLOBJ)gstext.ico $(ECHOGS_XE)
+ $(ECHOGS_XE) -w $(ZIP_RSP) -q "-win32 -setup"
+ $(ECHOGS_XE) -a $(ZIP_RSP) -q -st -x 22 Aladdin Ghostscript $(GS_DOT_VERSION) for Win32 -x 22
+ $(ECHOGS_XE) -a $(ZIP_RSP) -q -i -s $(GLOBJ)gstext.ico
+ $(ECHOGS_XE) -a $(ZIP_RSP) -q -a -s $(GLOBJ)about.txt
+ $(ECHOGS_XE) -a $(ZIP_RSP) -q -t -s $(GLOBJ)dialog.txt
+ $(ECHOGS_XE) -a $(ZIP_RSP) -q -c -s $(SETUP_XE_NAME)
+ $(ECHOGS_XE) -w $(GLOBJ)about.txt "Aladdin Ghostscript is Copyright " -x A9 " 1999 Aladdin Enterprises."
+ $(ECHOGS_XE) -a $(GLOBJ)about.txt See license in gs$(GS_DOT_VERSION)\doc\PUBLIC.
+ $(ECHOGS_XE) -a $(GLOBJ)about.txt See gs$(GS_DOT_VERSION)\doc\Commprod.htm regarding commercial distribution.
+ $(ECHOGS_XE) -w $(GLOBJ)dialog.txt This installs Aladdin Ghostscript $(GS_DOT_VERSION).
+ $(ECHOGS_XE) -a $(GLOBJ)dialog.txt Aladdin Ghostscript displays, prints and converts PostScript and PDF files.
+ $(WINZIPSE_XE) ..\gs$(GS_VERSION)w32 @$(GLOBJ)setupgs.rsp
+ -del $(ZIP_RSP)
+ -del $(GLOBJ)about.txt
+ -del $(GLOBJ)dialog.txt
+
+
# end of winint.mak
diff --git a/gs/src/winlib.mak b/gs/src/winlib.mak
index b94854b01..2419109a6 100644
--- a/gs/src/winlib.mak
+++ b/gs/src/winlib.mak
@@ -1,20 +1,8 @@
# Copyright (C) 1991-1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Common makefile section for 32-bit MS Windows.
# This makefile must be acceptable to Microsoft Visual C++, Watcom C++,
@@ -45,10 +33,6 @@ AK=$(GLGENDIR)\ccf32.tr
NULL=
CMD=.bat
-
-!ifndef C_
-C_=-c
-!endif
D_=-D
_D_=$(NULL)=
_D=
diff --git a/gs/src/winplat.mak b/gs/src/winplat.mak
index bf98a883d..8d092bb6e 100644
--- a/gs/src/winplat.mak
+++ b/gs/src/winplat.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Common makefile section for builds on 32-bit MS Windows, including the
# Watcom MS-DOS build.
diff --git a/gs/src/wmin.mak b/gs/src/wmin.mak
index 95cb13528..ca8adced7 100644
--- a/gs/src/wmin.mak
+++ b/gs/src/wmin.mak
@@ -1,21 +1,8 @@
# Copyright (C) 1994 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# Makefile for compiling the Wadalab free Kanji font into the executable.
# This does not yet include rules for creating the wmin*.c files.
diff --git a/gs/src/x_.h b/gs/src/x_.h
index 75def5a6d..cb4641f4c 100644
--- a/gs/src/x_.h
+++ b/gs/src/x_.h
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Header for including X library calls in Ghostscript X11 driver */
#ifndef x__INCLUDED
diff --git a/gs/src/zarith.c b/gs/src/zarith.c
index c93779bc3..22a5d7231 100644
--- a/gs/src/zarith.c
+++ b/gs/src/zarith.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Arithmetic operators */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/zarray.c b/gs/src/zarray.c
index 234ac898c..5af6e8926 100644
--- a/gs/src/zarray.c
+++ b/gs/src/zarray.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Array operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zbfont.c b/gs/src/zbfont.c
index 2061fdca1..e1378ad50 100644
--- a/gs/src/zbfont.c
+++ b/gs/src/zbfont.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Font creation utilities */
#include "memory_.h"
#include "string_.h"
@@ -213,6 +200,7 @@ build_gs_primitive_font(i_ctx_t *i_ctx_p, os_ptr op, gs_font_base ** ppfont,
int painttype;
float strokewidth;
ref *pcharstrings = 0;
+ ref CharStrings;
gs_font_base *pfont;
font_data *pdata;
int code;
@@ -235,6 +223,11 @@ build_gs_primitive_font(i_ctx_t *i_ctx_p, os_ptr op, gs_font_base ** ppfont,
dict_find_string(pcharstrings, ".notdef", &ignore) <= 0
)
return_error(e_invalidfont);
+ /*
+ * Since build_gs_simple_font may resize the dictionary and cause
+ * pointers to become invalid, save CharStrings.
+ */
+ CharStrings = *pcharstrings;
}
code = build_gs_simple_font(i_ctx_p, op, &pfont, ftype, pstype, pbuild,
options);
@@ -244,7 +237,7 @@ build_gs_primitive_font(i_ctx_t *i_ctx_p, os_ptr op, gs_font_base ** ppfont,
pfont->StrokeWidth = strokewidth;
pdata = pfont_data(pfont);
if (pcharstrings)
- ref_assign(&pdata->CharStrings, pcharstrings);
+ ref_assign(&pdata->CharStrings, &CharStrings);
else
make_null(&pdata->CharStrings);
/* Check that the UniqueIDs match. This is part of the */
@@ -307,7 +300,7 @@ lookup_gs_simple_font_encoding(gs_font_base * pfont)
const ref *pfe = &pfont_data(pfont)->Encoding;
int index;
- for (index = registered_Encodings_countof; --index >= 0;)
+ for (index = NUM_KNOWN_REAL_ENCODINGS; --index >= 0;)
if (obj_eq(pfe, &registered_Encoding(index)))
break;
pfont->encoding_index = index;
@@ -316,7 +309,7 @@ lookup_gs_simple_font_encoding(gs_font_base * pfont)
uint esize = r_size(pfe);
uint best = esize / 3; /* must match at least this many */
- for (index = registered_Encodings_countof; --index >= 0;) {
+ for (index = NUM_KNOWN_REAL_ENCODINGS; --index >= 0;) {
const ref *pre = &registered_Encoding(index);
bool r_packed = r_has_type(pre, t_shortarray);
bool f_packed = !r_has_type(pfe, t_array);
diff --git a/gs/src/zbseq.c b/gs/src/zbseq.c
index 005a3f52e..7b603092a 100644
--- a/gs/src/zbseq.c
+++ b/gs/src/zbseq.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 binary object sequence operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zcfont.c b/gs/src/zcfont.c
index edeeef2ab..40cde4430 100644
--- a/gs/src/zcfont.c
+++ b/gs/src/zcfont.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Composite font-related character operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zchar.c b/gs/src/zchar.c
index b026552e5..478cdad5a 100644
--- a/gs/src/zchar.c
+++ b/gs/src/zchar.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Character operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zchar1.c b/gs/src/zchar1.c
index 4ef90aac7..6eb7f5708 100644
--- a/gs/src/zchar1.c
+++ b/gs/src/zchar1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 1 character display operator */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zchar2.c b/gs/src/zchar2.c
index ab98acd55..d4c85abe8 100644
--- a/gs/src/zchar2.c
+++ b/gs/src/zchar2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 2 character display operator */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zchar32.c b/gs/src/zchar32.c
index f9eecceda..59edc1711 100644
--- a/gs/src/zchar32.c
+++ b/gs/src/zchar32.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 32 font glyph operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zchar42.c b/gs/src/zchar42.c
index aa9506c28..09118d2db 100644
--- a/gs/src/zchar42.c
+++ b/gs/src/zchar42.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 42 character display operator */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcharout.c b/gs/src/zcharout.c
index b7d96df6a..1c74f4fb3 100644
--- a/gs/src/zcharout.c
+++ b/gs/src/zcharout.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Common code for outline (Type 1 / 4 / 42) fonts */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcharx.c b/gs/src/zcharx.c
index 4f0cc5b9a..08280a0bb 100644
--- a/gs/src/zcharx.c
+++ b/gs/src/zcharx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 character operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcid.c b/gs/src/zcid.c
index 2bc33afca..3697cb018 100644
--- a/gs/src/zcid.c
+++ b/gs/src/zcid.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CID-keyed font operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcie.c b/gs/src/zcie.c
index 9eb58c006..bdd430a4c 100644
--- a/gs/src/zcie.c
+++ b/gs/src/zcie.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color operators */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/zcolor.c b/gs/src/zcolor.c
index 8ab2e6ec4..e0b194182 100644
--- a/gs/src/zcolor.c
+++ b/gs/src/zcolor.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1996, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Color operators */
#include "ghost.h"
#include "oper.h"
@@ -164,7 +151,12 @@ zcolor_remap_one(i_ctx_t *i_ctx_p, const ref * pproc,
*/
if (r_size(pproc) == 0) {
pmap->proc = gs_identity_transfer;
- return 0;
+ /*
+ * Even though we don't actually push anything on the e-stack, all
+ * clients do, so we return o_push_estack in this case. This is
+ * needed so that clients' finishing procedures will get run.
+ */
+ return o_push_estack;
}
op = osp += 4;
make_int(op - 3, 0);
diff --git a/gs/src/zcolor1.c b/gs/src/zcolor1.c
index 17972661a..381bce6c9 100644
--- a/gs/src/zcolor1.c
+++ b/gs/src/zcolor1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 1 extended color operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcolor2.c b/gs/src/zcolor2.c
index 4919e7e76..52c39ee84 100644
--- a/gs/src/zcolor2.c
+++ b/gs/src/zcolor2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 color operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcontext.c b/gs/src/zcontext.c
index c79885c4d..332fdad91 100644
--- a/gs/src/zcontext.c
+++ b/gs/src/zcontext.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Display PostScript context operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zcontrol.c b/gs/src/zcontrol.c
index 9d81a5e00..d4b11c2f2 100644
--- a/gs/src/zcontrol.c
+++ b/gs/src/zcontrol.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Control operators */
#include "string_.h"
#include "ghost.h"
diff --git a/gs/src/zcrd.c b/gs/src/zcrd.c
index 5737b9325..7949cba57 100644
--- a/gs/src/zcrd.c
+++ b/gs/src/zcrd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CIE color rendering operators */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/zcsdevn.c b/gs/src/zcsdevn.c
index 2cec8edd8..8cd4b45c3 100644
--- a/gs/src/zcsdevn.c
+++ b/gs/src/zcsdevn.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DeviceN color space support */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zcsindex.c b/gs/src/zcsindex.c
index 5c4119f23..bad8f3c4a 100644
--- a/gs/src/zcsindex.c
+++ b/gs/src/zcsindex.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Indexed color space support */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zcspixel.c b/gs/src/zcspixel.c
index 49e2a6a15..2332a887a 100644
--- a/gs/src/zcspixel.c
+++ b/gs/src/zcspixel.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DevicePixel color space support */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zcssepr.c b/gs/src/zcssepr.c
index f02bf61e4..7cc842d29 100644
--- a/gs/src/zcssepr.c
+++ b/gs/src/zcssepr.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Separation color space support */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zdevcal.c b/gs/src/zdevcal.c
index df802072b..eeb8b811f 100644
--- a/gs/src/zdevcal.c
+++ b/gs/src/zdevcal.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1998 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* %Calendar% IODevice */
#include "time_.h"
#include "ghost.h"
diff --git a/gs/src/zdevice.c b/gs/src/zdevice.c
index 1c55fa98c..9572bffba 100644
--- a/gs/src/zdevice.c
+++ b/gs/src/zdevice.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Device-related operators */
#include "string_.h"
#include "ghost.h"
diff --git a/gs/src/zdevice2.c b/gs/src/zdevice2.c
index fbae5e8f7..6943ccd81 100644
--- a/gs/src/zdevice2.c
+++ b/gs/src/zdevice2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 device operators */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/zdict.c b/gs/src/zdict.c
index a6dbac2e5..271770b27 100644
--- a/gs/src/zdict.c
+++ b/gs/src/zdict.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Dictionary operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zdosio.c b/gs/src/zdosio.c
index 47f01d1b8..4263ef596 100644
--- a/gs/src/zdosio.c
+++ b/gs/src/zdosio.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* MS-DOS direct I/O operators. */
/* These should NEVER be included in a released configuration! */
#include "dos_.h"
diff --git a/gs/src/zdouble.c b/gs/src/zdouble.c
index 3d999678b..7c6d975e6 100644
--- a/gs/src/zdouble.c
+++ b/gs/src/zdouble.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Double-precision floating point arithmetic operators */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/zdpnext.c b/gs/src/zdpnext.c
index 93b79a1ce..deed08756 100644
--- a/gs/src/zdpnext.c
+++ b/gs/src/zdpnext.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* NeXT Display PostScript extensions */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/zdps.c b/gs/src/zdps.c
index 12d000694..09af7afea 100644
--- a/gs/src/zdps.c
+++ b/gs/src/zdps.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Display PostScript extensions */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zdps1.c b/gs/src/zdps1.c
index 66254af71..3d7b06a38 100644
--- a/gs/src/zdps1.c
+++ b/gs/src/zdps1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 / Display PostScript graphics extensions */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zfbcp.c b/gs/src/zfbcp.c
index e71c7a2e4..86fe7502b 100644
--- a/gs/src/zfbcp.c
+++ b/gs/src/zfbcp.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* (T)BCP filter creation */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfcmap.c b/gs/src/zfcmap.c
index 63f450b02..fa70ce50d 100644
--- a/gs/src/zfcmap.c
+++ b/gs/src/zfcmap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* CMap creation operator */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zfdctd.c b/gs/src/zfdctd.c
index 5ee75e8eb..80e086b61 100644
--- a/gs/src/zfdctd.c
+++ b/gs/src/zfdctd.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCTDecode filter creation */
#include "memory_.h"
#include "stdio_.h" /* for jpeglib.h */
diff --git a/gs/src/zfdcte.c b/gs/src/zfdcte.c
index 824617526..1c55986d1 100644
--- a/gs/src/zfdcte.c
+++ b/gs/src/zfdcte.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* DCTEncode filter creation */
#include "memory_.h"
#include "stdio_.h" /* for jpeglib.h */
diff --git a/gs/src/zfdecode.c b/gs/src/zfdecode.c
index 90d01382f..fb6d08a35 100644
--- a/gs/src/zfdecode.c
+++ b/gs/src/zfdecode.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Additional decoding filter creation */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfile.c b/gs/src/zfile.c
index af38d19ef..2dae1b7f8 100644
--- a/gs/src/zfile.c
+++ b/gs/src/zfile.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Non-I/O file operators */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/zfileio.c b/gs/src/zfileio.c
index 60d2f7806..19bbf6ce8 100644
--- a/gs/src/zfileio.c
+++ b/gs/src/zfileio.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* File I/O operators */
#include "ghost.h"
#include "gp.h"
@@ -598,6 +585,20 @@ zsetfileposition(i_ctx_t *i_ctx_p)
/* ------ Non-standard extensions ------ */
+/* <file> .isprocfilter <bool> */
+private int
+zisprocfilter(i_ctx_t *i_ctx_p)
+{
+ os_ptr op = osp;
+ stream *s;
+
+ check_file(s, op);
+ while (s->strm != 0)
+ s = s->strm;
+ make_bool(op, s_is_proc(s));
+ return 0;
+}
+
/* <file> <int> unread - */
private int
zunread(i_ctx_t *i_ctx_p)
@@ -711,6 +712,7 @@ const op_def zfileio1_op_defs[] = {
op_def_end(0)
};
const op_def zfileio2_op_defs[] = {
+ {"1.isprocfilter", zisprocfilter},
{"2setfileposition", zsetfileposition},
{"2unread", zunread},
{"2write", zwrite},
diff --git a/gs/src/zfilter.c b/gs/src/zfilter.c
index c1b414026..84519fbcd 100644
--- a/gs/src/zfilter.c
+++ b/gs/src/zfilter.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Filter creation */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfilter2.c b/gs/src/zfilter2.c
index f45e44b64..142574649 100644
--- a/gs/src/zfilter2.c
+++ b/gs/src/zfilter2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Additional filter creation */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfilterx.c b/gs/src/zfilterx.c
index cd4c91be4..d767fe7b0 100644
--- a/gs/src/zfilterx.c
+++ b/gs/src/zfilterx.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Extended (non-standard) filter creation */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfont.c b/gs/src/zfont.c
index 2732b875d..ccd6140be 100644
--- a/gs/src/zfont.c
+++ b/gs/src/zfont.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic font operators */
#include "ghost.h"
#include "oper.h"
@@ -182,6 +169,21 @@ zcurrentcacheparams(i_ctx_t *i_ctx_p)
return 0;
}
+/* <font> .registerfont - */
+private int
+zregisterfont(i_ctx_t *i_ctx_p)
+{
+ os_ptr op = osp;
+ gs_font *pfont;
+ int code = font_param(op, &pfont);
+
+ if (code < 0)
+ return code;
+ pfont->is_resource = true;
+ pop(1);
+ return 0;
+}
+
/* ------ Initialization procedure ------ */
const op_def zfont_op_defs[] =
@@ -194,6 +196,7 @@ const op_def zfont_op_defs[] =
{"1setcachelimit", zsetcachelimit},
{"1setcacheparams", zsetcacheparams},
{"0currentcacheparams", zcurrentcacheparams},
+ {"1.registerfont", zregisterfont},
op_def_end(zfont_init)
};
diff --git a/gs/src/zfont0.c b/gs/src/zfont0.c
index 4f08a823a..aa39b9d28 100644
--- a/gs/src/zfont0.c
+++ b/gs/src/zfont0.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Composite font creation operator */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zfont1.c b/gs/src/zfont1.c
index b985fbe37..3d6c8210e 100644
--- a/gs/src/zfont1.c
+++ b/gs/src/zfont1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 1 and Type 4 font creation operators */
#include "ghost.h"
#include "oper.h"
@@ -37,6 +24,9 @@
/* Type 1 font procedures (defined in zchar1.c) */
extern const gs_type1_data_procs_t z1_data_procs;
font_proc_glyph_outline(zcharstring_glyph_outline);
+/* Font procedures defined here */
+private font_proc_font_info(z1_font_info);
+private font_proc_same_font(z1_same_font);
/* Default value of lenIV */
#define DEFAULT_LENIV_1 4
@@ -190,6 +180,9 @@ build_charstring_font(i_ctx_t *i_ctx_p, os_ptr op, build_proc_refs *pbuild,
ref_assign(&pdata->u.type1.GlobalSubrs, pfr->GlobalSubrs);
pfont->data.procs = &z1_data_procs;
pfont->data.proc_data = (char *)pdata;
+ pfont->procs.font_info = z1_font_info;
+ pfont->procs.same_font = z1_same_font;
+ pfont->procs.glyph_info = gs_type1_glyph_info;
pfont->procs.enumerate_glyph = z1_enumerate_glyph;
pfont->procs.glyph_outline = zcharstring_glyph_outline;
return define_gs_font((gs_font *)pfont);
@@ -253,3 +246,116 @@ const op_def zfont1_op_defs[] =
{"2.buildfont4", zbuildfont4},
op_def_end(0)
};
+
+/* ------ Font procedures for Type 1 fonts ------ */
+
+/* font_info procedure */
+private bool
+z1_font_info_has(const ref *pfidict, const char *key, gs_const_string *pmember)
+{
+ ref *pvalue;
+
+ if (dict_find_string(pfidict, key, &pvalue) > 0 &&
+ r_has_type(pvalue, t_string)
+ ) {
+ pmember->data = pvalue->value.const_bytes;
+ pmember->size = r_size(pvalue);
+ return true;
+ }
+ return false;
+}
+private int
+z1_font_info(gs_font *font, const gs_point *pscale, int members,
+ gs_font_info_t *info)
+{
+ const gs_font_type1 *const pfont1 = (const gs_font_type1 *)font;
+ int code = gs_default_font_info(font, pscale, members &
+ ~(FONT_INFO_COPYRIGHT | FONT_INFO_NOTICE |
+ FONT_INFO_FAMILY_NAME | FONT_INFO_FULL_NAME),
+ info);
+ const ref *pfdict;
+ ref *pfontinfo;
+
+ if (code < 0)
+ return code;
+ pfdict = &pfont_data(pfont1)->dict;
+ if (dict_find_string(pfdict, "FontInfo", &pfontinfo) <= 0 ||
+ !r_has_type(pfontinfo, t_dictionary))
+ return 0;
+ if ((members & FONT_INFO_COPYRIGHT) &&
+ z1_font_info_has(pfontinfo, "Copyright", &info->Copyright))
+ info->members |= FONT_INFO_COPYRIGHT;
+ if ((members & FONT_INFO_NOTICE) &&
+ z1_font_info_has(pfontinfo, "Notice", &info->Notice))
+ info->members |= FONT_INFO_NOTICE;
+ if ((members & FONT_INFO_FAMILY_NAME) &&
+ z1_font_info_has(pfontinfo, "FamilyName", &info->FamilyName))
+ info->members |= FONT_INFO_FAMILY_NAME;
+ if ((members & FONT_INFO_FULL_NAME) &&
+ z1_font_info_has(pfontinfo, "FullName", &info->FullName))
+ info->members |= FONT_INFO_FULL_NAME;
+ return code;
+}
+
+/* same_font procedure */
+private bool
+same_font_dict(const font_data *pdata, const font_data *podata,
+ const char *key)
+{
+ ref *pvalue;
+ bool present = dict_find_string(&pdata->dict, key, &pvalue) > 0;
+ ref *povalue;
+ bool opresent = dict_find_string(&podata->dict, key, &povalue) > 0;
+
+ return (present == opresent &&
+ (present <= 0 || obj_eq(pvalue, povalue)));
+}
+private int
+z1_same_font(const gs_font *font, const gs_font *ofont, int mask)
+{
+ if (ofont->FontType != font->FontType)
+ return 0;
+ while (font->base != font)
+ font = font->base;
+ while (ofont->base != ofont)
+ ofont = ofont->base;
+ if (ofont == font)
+ return mask;
+ {
+ int same = gs_base_same_font(font, ofont, mask);
+ int check = mask & ~same;
+ const gs_font_type1 *const pfont1 = (const gs_font_type1 *)font;
+ const font_data *const pdata = pfont_data(pfont1);
+ const gs_font_type1 *pofont1 = (const gs_font_type1 *)ofont;
+ const font_data *const podata = pfont_data(pofont1);
+
+ if ((check & (FONT_SAME_OUTLINES | FONT_SAME_OUTLINES)) &&
+ pofont1->data.procs == &z1_data_procs &&
+ obj_eq(&pdata->CharStrings, &podata->CharStrings) &&
+ /*
+ * We use same_font_dict for convenience: we know that
+ * both fonts do have Private dictionaries.
+ */
+ same_font_dict(pdata, podata, "Private")
+ )
+ same |= FONT_SAME_OUTLINES;
+
+ if ((check & FONT_SAME_METRICS) && (same & FONT_SAME_OUTLINES) &&
+ pofont1->data.procs == &z1_data_procs &&
+ /* Metrics may be affected by CDevProc, Metrics, Metrics2. */
+ same_font_dict(pdata, podata, "Metrics") &&
+ same_font_dict(pdata, podata, "Metrics2") &&
+ same_font_dict(pdata, podata, "CDevProc")
+ )
+ same |= FONT_SAME_METRICS;
+
+ if ((check & FONT_SAME_ENCODING) &&
+ pofont1->procs.same_font == z1_same_font &&
+ obj_eq(&pdata->Encoding, &podata->Encoding)
+ )
+ same |= FONT_SAME_ENCODING;
+
+ return same;
+ }
+}
+
diff --git a/gs/src/zfont2.c b/gs/src/zfont2.c
index ee44ddddc..76c9431e7 100644
--- a/gs/src/zfont2.c
+++ b/gs/src/zfont2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1991, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 2 font creation operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zfont32.c b/gs/src/zfont32.c
index 8ee3de2dc..d294479c4 100644
--- a/gs/src/zfont32.c
+++ b/gs/src/zfont32.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 32 font operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zfont42.c b/gs/src/zfont42.c
index bef0a659b..dd9a62b05 100644
--- a/gs/src/zfont42.c
+++ b/gs/src/zfont42.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type 42 font creation operator */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfproc.c b/gs/src/zfproc.c
index 9b52f1152..cd071a5fa 100644
--- a/gs/src/zfproc.c
+++ b/gs/src/zfproc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Procedure-based filter stream support */
#include "memory_.h"
#include "ghost.h"
@@ -360,6 +347,16 @@ s_proc_write_continue(i_ctx_t *i_ctx_p)
return 0;
}
+/* ------ More generic ------ */
+
+/* Test whether a stream is procedure-based. */
+bool
+s_is_proc(const stream *s)
+{
+ return (s->procs.process == s_proc_read_process ||
+ s->procs.process == s_proc_write_process);
+}
+
/* ------ Initialization procedure ------ */
const op_def zfproc_op_defs[] =
diff --git a/gs/src/zfreuse.c b/gs/src/zfreuse.c
index 346aae1a9..bdc4cd485 100644
--- a/gs/src/zfreuse.c
+++ b/gs/src/zfreuse.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* ReusableStreamDecode filter support */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfunc.c b/gs/src/zfunc.c
index df77d30d3..3b763378f 100644
--- a/gs/src/zfunc.c
+++ b/gs/src/zfunc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Generic PostScript language interface to Functions */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfunc0.c b/gs/src/zfunc0.c
index c1701f0f9..8c9dfb73a 100644
--- a/gs/src/zfunc0.c
+++ b/gs/src/zfunc0.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript language interface to FunctionType 0 (Sampled) Functions */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfunc3.c b/gs/src/zfunc3.c
index c55b73fab..546504126 100644
--- a/gs/src/zfunc3.c
+++ b/gs/src/zfunc3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript language interface to LL3 Functions */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfunc4.c b/gs/src/zfunc4.c
index 3b908ee62..6d015aee9 100644
--- a/gs/src/zfunc4.c
+++ b/gs/src/zfunc4.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript language support for FunctionType 4 (PS Calculator) Functions */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zfzlib.c b/gs/src/zfzlib.c
index 26fed95d3..638ad002a 100644
--- a/gs/src/zfzlib.c
+++ b/gs/src/zfzlib.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* zlib and Flate filter creation */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zgeneric.c b/gs/src/zgeneric.c
index 29fdc421a..31f9b7b30 100644
--- a/gs/src/zgeneric.c
+++ b/gs/src/zgeneric.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Array/string/dictionary generic operators for PostScript */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zgstate.c b/gs/src/zgstate.c
index 5c28b93fd..5eb8fc4fa 100644
--- a/gs/src/zgstate.c
+++ b/gs/src/zgstate.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Graphics state operators */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/zhsb.c b/gs/src/zhsb.c
index 78474c970..25c511c60 100644
--- a/gs/src/zhsb.c
+++ b/gs/src/zhsb.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* HSB color operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zht.c b/gs/src/zht.c
index 0277da311..30af106e1 100644
--- a/gs/src/zht.c
+++ b/gs/src/zht.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1991, 1993, 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Halftone definition operators */
#include "ghost.h"
#include "memory_.h"
diff --git a/gs/src/zht1.c b/gs/src/zht1.c
index 04917a6b6..4f0ce381d 100644
--- a/gs/src/zht1.c
+++ b/gs/src/zht1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* setcolorscreen operator */
#include "ghost.h"
#include "memory_.h"
diff --git a/gs/src/zht2.c b/gs/src/zht2.c
index 5b4cf338f..55a535850 100644
--- a/gs/src/zht2.c
+++ b/gs/src/zht2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 sethalftone operator */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zimage.c b/gs/src/zimage.c
index 3ad45ce34..80cb7b7e1 100644
--- a/gs/src/zimage.c
+++ b/gs/src/zimage.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Image operators */
#include "ghost.h"
#include "oper.h"
@@ -368,26 +355,22 @@ image_file_continue(i_ctx_t *i_ctx_p)
if (num_aliases <= 0)
continue; /* this is an alias for an earlier file */
while ((avail = sbufavailable(s)) < min_left + num_aliases) {
- /****** REFILL BUFFER, NOT sgetc ******/
- int next = sgetc(s);
+ int next = s->end_status;
- if (next >= 0) {
- sputback(s);
- if (s->end_status == EOFC || s->end_status == ERRC)
- min_left = 0;
- continue;
- }
switch (next) {
- case EOFC:
- break; /* with avail = 0 */
- case INTC:
- case CALLC:
- return
- s_handle_read_exception(i_ctx_p, next, pp,
- NULL, 0, image_file_continue);
- default:
- /* case ERRC: */
- return_error(e_ioerror);
+ case 0:
+ s_process_read_buf(s);
+ continue;
+ case EOFC:
+ break; /* with avail < min_left */
+ case INTC:
+ case CALLC:
+ return
+ s_handle_read_exception(i_ctx_p, next, pp,
+ NULL, 0, image_file_continue);
+ default:
+ /* case ERRC: */
+ return_error(e_ioerror);
}
break; /* for EOFC */
}
diff --git a/gs/src/zimage2.c b/gs/src/zimage2.c
index d2991662c..71636d6bb 100644
--- a/gs/src/zimage2.c
+++ b/gs/src/zimage2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* image operator extensions for Level 2 PostScript */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/zimage3.c b/gs/src/zimage3.c
index 63541f107..2f14e469f 100644
--- a/gs/src/zimage3.c
+++ b/gs/src/zimage3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* LanguageLevel 3 ImageTypes (3 & 4 - masked images) */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/ziodev.c b/gs/src/ziodev.c
index a3bcd5dff..f97fe71ae 100644
--- a/gs/src/ziodev.c
+++ b/gs/src/ziodev.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Standard IODevice implementation */
#include "memory_.h"
#include "stdio_.h"
@@ -86,7 +73,7 @@ const gx_io_device gs_iodev_statementedit =
/* ------ Operators ------ */
-/* <int> .getiodevice <string> */
+/* <int> .getiodevice <string|null> */
private int
zgetiodevice(i_ctx_t *i_ctx_p)
{
@@ -101,8 +88,11 @@ zgetiodevice(i_ctx_t *i_ctx_p)
if (iodev == 0) /* index out of range */
return_error(e_rangecheck);
dname = (const byte *)iodev->dname;
- make_const_string(op, a_readonly | avm_foreign,
- strlen((const char *)dname), dname);
+ if (dname == 0)
+ make_null(op);
+ else
+ make_const_string(op, a_readonly | avm_foreign,
+ strlen((const char *)dname), dname);
return 0;
}
diff --git a/gs/src/ziodev2.c b/gs/src/ziodev2.c
index 4b56b51e3..d084d477e 100644
--- a/gs/src/ziodev2.c
+++ b/gs/src/ziodev2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* (Level 2) IODevice operators */
#include "string_.h"
#include "ghost.h"
diff --git a/gs/src/zlib.mak b/gs/src/zlib.mak
index 99854a678..630e56497 100644
--- a/gs/src/zlib.mak
+++ b/gs/src/zlib.mak
@@ -1,21 +1,8 @@
-# Copyright (C) 1995, 1996, 1997, 1998 Aladdin Enterprises. All rights reserved.
-#
-# This file is part of Aladdin Ghostscript.
-#
-# Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
-# or distributor accepts any responsibility for the consequences of using it,
-# or for whether it serves any particular purpose or works at all, unless he
-# or she says so in writing. Refer to the Aladdin Ghostscript Free Public
-# License (the "License") for full details.
-#
-# Every copy of Aladdin Ghostscript must include a copy of the License,
-# normally in a plain ASCII text file named PUBLIC. The License grants you
-# the right to copy, modify and redistribute Aladdin Ghostscript, but only
-# under certain conditions described in the License. Among other things, the
-# License requires that the copyright notice and this notice be preserved on
-# all copies.
-
+# Copyright (C) 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
+# This software is licensed to a single customer by Artifex Software Inc.
+# under the terms of a specific OEM agreement.
+# $RCSfile$ $Revision$
# makefile for zlib library code.
# Users of this makefile must define the following:
# GSSRCDIR - the GS library source directory
@@ -39,6 +26,9 @@
# for more convenient access.
#
# This makefile is known to work with zlib versions through 1.1.3.
+# Note that there are obscure bugs in zlib versions before 1.1.3 that
+# may cause the FlateDecode filter to produce an occasional ioerror:
+# we strongly recommend using version 1.1.3 or later.
ZSRC=$(ZSRCDIR)$(D)
ZGEN=$(ZGENDIR)$(D)
diff --git a/gs/src/zmath.c b/gs/src/zmath.c
index 73c9c8d0a..86ef697c1 100644
--- a/gs/src/zmath.c
+++ b/gs/src/zmath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1992, 1993, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Mathematical operators */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/zmatrix.c b/gs/src/zmatrix.c
index 3260ecfdb..1836ed9f8 100644
--- a/gs/src/zmatrix.c
+++ b/gs/src/zmatrix.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Matrix operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zmedia2.c b/gs/src/zmedia2.c
index 501574840..2f975b487 100644
--- a/gs/src/zmedia2.c
+++ b/gs/src/zmedia2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1993, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Media matching for setpagedevice */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/zmisc.c b/gs/src/zmisc.c
index 93984f7a4..d815a2aa2 100644
--- a/gs/src/zmisc.c
+++ b/gs/src/zmisc.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous operators */
#include "errno_.h"
#include "memory_.h"
diff --git a/gs/src/zmisc1.c b/gs/src/zmisc1.c
index 422d1a0b8..c0d96b0ca 100644
--- a/gs/src/zmisc1.c
+++ b/gs/src/zmisc1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1997, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous Type 1 font operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zmisc2.c b/gs/src/zmisc2.c
index be589903e..7c06c6e2a 100644
--- a/gs/src/zmisc2.c
+++ b/gs/src/zmisc2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous Level 2 operators */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/zmisc3.c b/gs/src/zmisc3.c
index f46a6fbd1..681f86386 100644
--- a/gs/src/zmisc3.c
+++ b/gs/src/zmisc3.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Miscellaneous LanguageLevel 3 operators */
#include "ghost.h"
#include "gscspace.h" /* for gscolor2.h */
diff --git a/gs/src/zpacked.c b/gs/src/zpacked.c
index b3e273f2f..b78c0c50c 100644
--- a/gs/src/zpacked.c
+++ b/gs/src/zpacked.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1992, 1993, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Packed array operators */
#include "ghost.h"
#include "ialloc.h"
diff --git a/gs/src/zpaint.c b/gs/src/zpaint.c
index 330f27baf..7ac3a8ea5 100644
--- a/gs/src/zpaint.c
+++ b/gs/src/zpaint.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Painting operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zpath.c b/gs/src/zpath.c
index 12dcd98b7..0d5f86812 100644
--- a/gs/src/zpath.c
+++ b/gs/src/zpath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Basic path operators */
#include "math_.h"
#include "ghost.h"
diff --git a/gs/src/zpath1.c b/gs/src/zpath1.c
index ce2fc725a..3afe13e48 100644
--- a/gs/src/zpath1.c
+++ b/gs/src/zpath1.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript Level 1 additional path operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zpcolor.c b/gs/src/zpcolor.c
index 7c312b044..be88ebe3c 100644
--- a/gs/src/zpcolor.c
+++ b/gs/src/zpcolor.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Pattern color */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zrelbit.c b/gs/src/zrelbit.c
index f6fd429fc..fc1498cff 100644
--- a/gs/src/zrelbit.c
+++ b/gs/src/zrelbit.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Relational, boolean, and bit operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zrop.c b/gs/src/zrop.c
index 2a3d0af3e..878eb80d8 100644
--- a/gs/src/zrop.c
+++ b/gs/src/zrop.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1995, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* RasterOp control operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zshade.c b/gs/src/zshade.c
index 3b39400a5..860942811 100644
--- a/gs/src/zshade.c
+++ b/gs/src/zshade.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* PostScript language interface to shading */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zstack.c b/gs/src/zstack.c
index 587c63523..dde291727 100644
--- a/gs/src/zstack.c
+++ b/gs/src/zstack.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1991, 1992, 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Operand stack operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zstring.c b/gs/src/zstring.c
index fc858f26a..564dcf4f5 100644
--- a/gs/src/zstring.c
+++ b/gs/src/zstring.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* String operators */
#include "memory_.h"
#include "ghost.h"
diff --git a/gs/src/zsysvm.c b/gs/src/zsysvm.c
index e7bca7731..6232ef4b9 100644
--- a/gs/src/zsysvm.c
+++ b/gs/src/zsysvm.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1995, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* System VM and VM-specific operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/ztoken.c b/gs/src/ztoken.c
index 4f29023a7..652fc92b2 100644
--- a/gs/src/ztoken.c
+++ b/gs/src/ztoken.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1994, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Token reading operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/ztrap.c b/gs/src/ztrap.c
index 551828e8a..9e6386a73 100644
--- a/gs/src/ztrap.c
+++ b/gs/src/ztrap.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Operators for setting trapping parameters and zones */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/ztype.c b/gs/src/ztype.c
index 0c619ad81..a87bf1f23 100644
--- a/gs/src/ztype.c
+++ b/gs/src/ztype.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Type, attribute, and conversion operators */
#include "math_.h"
#include "memory_.h"
diff --git a/gs/src/zupath.c b/gs/src/zupath.c
index acc7074d0..bc22ea097 100644
--- a/gs/src/zupath.c
+++ b/gs/src/zupath.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1990, 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Operators related to user paths */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/src/zusparam.c b/gs/src/zusparam.c
index dabd961c3..e108e18f6 100644
--- a/gs/src/zusparam.c
+++ b/gs/src/zusparam.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1996, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* User and system parameter operators */
#include "memory_.h"
#include "string_.h"
diff --git a/gs/src/zvmem.c b/gs/src/zvmem.c
index b7a84e3a3..4f5497a63 100644
--- a/gs/src/zvmem.c
+++ b/gs/src/zvmem.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1989, 1995, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* "Virtual memory" operators */
#include "ghost.h"
#include "gsstruct.h"
diff --git a/gs/src/zvmem2.c b/gs/src/zvmem2.c
index 44d3cacb9..19ccb79a5 100644
--- a/gs/src/zvmem2.c
+++ b/gs/src/zvmem2.c
@@ -1,22 +1,9 @@
/* Copyright (C) 1992, 1993, 1994, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This file is part of Aladdin Ghostscript.
-
- Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
- or distributor accepts any responsibility for the consequences of using it,
- or for whether it serves any particular purpose or works at all, unless he
- or she says so in writing. Refer to the Aladdin Ghostscript Free Public
- License (the "License") for full details.
-
- Every copy of Aladdin Ghostscript must include a copy of the License,
- normally in a plain ASCII text file named PUBLIC. The License grants you
- the right to copy, modify and redistribute Aladdin Ghostscript, but only
- under certain conditions described in the License. Among other things, the
- License requires that the copyright notice and this notice be preserved on
- all copies.
+ * This software is licensed to a single customer by Artifex Software Inc.
+ * under the terms of a specific OEM agreement.
*/
-
+/*$RCSfile$ $Revision$ */
/* Level 2 "Virtual memory" operators */
#include "ghost.h"
#include "oper.h"
diff --git a/gs/zlib/contrib/iostream2/zstream.h b/gs/zlib/contrib/iostream2/zstream.h
index 861ef2bad..9b971a244 100644
--- a/gs/zlib/contrib/iostream2/zstream.h
+++ b/gs/zlib/contrib/iostream2/zstream.h
@@ -21,7 +21,7 @@
/*
* zstream.h - C++ interface to the 'zlib' general purpose compression library
- * $Id$
+ * $RCSfile$ $Revision$
*/
#include <strstream.h>