summaryrefslogtreecommitdiff
path: root/gs/contrib
AgeCommit message (Collapse)AuthorFilesLines
2011-11-08Bug 692647: Mistaken comparison instead of assignment.Alex Cherepanov1-2/+2
Fix two obvious typos in a contributed Japanese driver.
2011-08-19Bug 689283: latest pcl3/doc/reports.txt fileChris Liddell1-13/+103
Our contrib/pcl3 was already at the latest release, but the reports.txt file had additions post-release. CLUSTER_UNTESTED
2011-08-16Fixes 691820 by removing the device, the authors in the contrib.makHenry Stiles2-2737/+0
and source code file (gdevlx50.c) have been sent email the device is broken. CLUSTER_UNTESTED
2011-08-12Bug 690565: bring the header include up-to-date.Chris Liddell1-0/+2
Pull in the tiny part of the patch in the above bug that is relevant to the current source. No cluster differences.
2011-08-04Added a couple of dependencies to fix parallel make.Marcos H. Woehrmann1-1/+1
2011-06-20Added dependencies to various makefiles to fix parallel make.Marcos H. Woehrmann1-1/+1
2011-05-07Significant change in how the device profile is handled in ghostscript. ThisMichael Vrhel1-6/+0
change adds in a new device procedure called get_profile, which is going to typically be set to gx_forward_get_profile or gx_default_get_profile. Most internal devices like the pattern accumulator, the clip device, memory devices, will use the gx_forward_get_profile procedure. In this way, the profile is typically only maintained by the the target device. The gdevp14 device is the significant internal device that takes special handling due to the way that it can change its ICC profile based upon the current transparency group color space. The get_profile procedure also passes along information about the object type so that we will be able to easily add in the device dependent color management. The rendering intent, which can also be object dependent is also returned by the call. This change has been cluster tested and showed no differences.
2011-04-19Indent with spaces and strip trailing whitespace.Tor Andersson67-18918/+18557
2011-03-25Fixes concerning the compatibility of the OpenPrinting Vector ("opvp")Till Kamppeter1-0/+86
output device with Ghostscript 9.x. 1. If there is any ICCColor based image in the PostScript input, GS crashes. 2. Fallback when path is too complex for some kinds of printers. This problem already existed in GS 8.x. Thanks to Koji Otani from BBR Inc., Japan. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12310 a1074d23-0009-0410-80fe-cf8c14f379e6
2011-01-14Changes to the Unix configure based builds to tidy up specifyingChris Liddell1-2/+32
subsets of output devices. Some devices were always being included regardless of the options given to configure, resolved by tidying up the macro expansions in Makefile.in done by the configure script. Also the page device and clist device are effectively required by all configurations, so those are now included in the core build. Finally, the contrib/gomni.c driver relied on two functions in base/gdevbmpc.c which is an optional driver, so configuring the Omni driver to be built it, and bmp16 not would result in undefined symbols. contrib/gomni.c now has its own equivalents of those functions. The bbox device remains as the ultimate "fallback" device. Bug 689546 git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@12025 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-12-17Removed patch noise file.Till Kamppeter1-1141/+0
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11954 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-07-30Removed unneeded ";" characters from C code to silence warnings of DEC CC ↵Till Kamppeter1-1/+1
(bug 691463) git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11577 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-07-30rollback to revision 11564, 11565 broke the buildHenry Stiles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11572 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-07-30Removed unneeded ";" characters from C code to silence warnings of DEC CC ↵Till Kamppeter1-1/+1
(bug 691463) git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11566 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-06-29Part 2 of update (new files) posted to 687983, corrected for current svn HEAD.Hin-Tak Leung8-0/+11285
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11445 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-06-29Part 1 of the update (modifications to checked-in files)Hin-Tak Leung3-11/+22
to the pscolor code posted in 687983, corrected for current svn head. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11444 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-05-25make static some private functions to remove compiler warningsHin-Tak Leung2-6/+6
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11324 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-05-24Another bunch of CRLF to LF's.Hin-Tak Leung1-342/+342
find . -type f | grep -v 'svn-base' | xargs file | grep CRLF | grep -v -E '\.(dsp|dsw|sln|rc):' | grep -v -E '(cbuilder5|masm|dotzlib|vstudio|BorlandC_5.5|visualc6)' | cut -d ':' -f 1 | xargs -n 1 svn propset svn:eol-style native find . -type f | grep -v 'svn-base' | xargs file | grep CRLF | grep -v -E '\.(dsp|dsw|sln|rc):' | grep -v -E '(cbuilder5|masm|dotzlib|vstudio|BorlandC_5.5|visualc6)' | cut -d ':' -f 1 | xargs dos2unix git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11313 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-05-14HP compiler quirk - apparently the same workaround is needed for SUN Pro C ↵Hin-Tak Leung1-0/+2
and GCC 1.x (see a few lines before this change) ; bug 688184 git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11239 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-05-04As part of the work for bug 691207 (remove global variables) we introduceRobin Watts1-7/+17
a new set of macros, "emprintfX". These do the same as the "eprintfX" macros, except they take an explicit memory reference rather than using the mem_err_print global. The plan is to move everything possible over to using emprintf, leaving callers of eprintf as 'unsafe' in multithreaded builds. This review changes all callers of eprintf in ghostscript except: gdevsco.c, gp_iwatc.c, gp_macio.c, gp_mswin.c, gp_os2.c, gp_os2pr.c, gp_unifs.c, gp_vms.c, gsfid.c, contrib\*, jasper\*. 1 instance in gzspotan.c remains unchanged, but it should never be used. Local cluster testing shows no build problems. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11176 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-05-04As part of the efforts towards bug 691207 (global variables must be removed)Robin Watts3-690/+694
this commit reduces the reliance on mem_err_print. Currently all calls to errwrite and errflush get the stdin/out/err details from a global mem_err_print. For multithreaded gs this will result in output going to the wrong place if any of them are redirected. This review splits errwrite into 2 variants, errwrite and errwrite_nomem. The first takes an explicit mem pointer. The second continues to assume a global one. The plan is to make everything possible use the first. Currently debugging calls and some 'stubborn' devices continue to call errwrite_nomem. Local cluster testing shows no differences. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11173 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-04-21Move CPSI_mode from being a global to living in the libctx, as part of theRobin Watts1-2674/+2674
efforts for bug 691207 (remove global variables). I originally tried moving CPSI_mode into the imager state, which would have been slightly nicer, but had to abandon this due to problems interacting with the command list code. My first thought to make this work was to push the value of CPSI_mode into the clist at initial clist creation time. As the setting of CPSI_mode isn't vectored through the device, we can't detect changes in its setting, but then changing CPSI_mode during the lifespan of a clist would give unpredictable results anyway in many cases. Sadly this was doomed to failure as if a page device is started up that uses the clist code to do banding, then the command list is created before CPSI_mode is enabled, and we'd operate with the incorrect value. Moving CPSI_mode into libctx means we keep exactly the same behaviour as we have now. This has required various functions throughout the code to pass a gs_memory_t * around. Localcluster testing reveals no problems. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11094 a1074d23-0009-0410-80fe-cf8c14f379e6
2010-04-08Make a table of 4 zeros be static const, and update the cast where they areRobin Watts1-3/+3
used to also be static const. This should remove them from the global variable list in bug 691207. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11037 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-12-30Remove C++ comments (//) and commented out code because this is not compatibleAlex Cherepanov1-12/+0
with old compilers and breaks our coding standard. Comments were introduced by rev. 9664 and 9778. Bug 691032. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10571 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-12-26Clear Coverity warnings about unreachable code. Fix incorrect errorAlex Cherepanov4-2503/+16
processing in some contributed drivers. Also remove a spurious *.orig file. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10553 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-12-23Add new assert_.h header file. Convert existing code to use it.Robin Watts4-6/+4
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10550 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-12-20Fix a Coverity warning about an expression with undefined order of evaluation.Alex Cherepanov1-2/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10538 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-12-20Fix a Coverity warning about an expression with undefined order of evaluation.Alex Cherepanov1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10537 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-12-08Fix Coverity warnings caused by a recurring error in opvp driver whereAlex Cherepanov1-8/+8
'if (i > sizeof(foo)/sizeof(*foo)) ...' was used to prevent out-of-bounds access to foo[i] . git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@10462 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-07-27Update of the Esc/Page laser printer drivers from Epson and Avasys, new ↵Till Kamppeter3-13/+150
output devices "eplmono" and "eplcolor", and new media types. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9893 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-07-19Fix a typo in compile time flag that prevented GNU libiconv to emulateAlex Cherepanov1-1/+1
system libiconv and caused link errors on the systems that use GNU headers but system libraries. Bug 690123. DIFFERENCES: None. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9871 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-07-02Use "Perceptual" as render intent for the presentation quality setting in ↵Till Kamppeter1-1/+1
the "cdnj500" (HP DesignJet) driver. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9829 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-04-20Added "cdnj500" device to support HP DesignJet 500 (patch from Timur Maximov).Till Kamppeter2-7/+267
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9664 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-02-09Protect some printf-like calls in the pcl3 output device from spuriousRalph Giles2-2/+2
format specifiers. This eliminates a security-related gcc warning. Details: I believe the previous code was actually safe. However, this approach is more robust. If any of the string buffers passed to errprintf() happened to contain a format specifier (like %d) an out of bounds stack reference could result. This allows the default build to complete with -Werror=format-security, which the Mandriva linux distribution is reported to be using. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9460 a1074d23-0009-0410-80fe-cf8c14f379e6
2009-01-23Convert 24 bit RGB data to grayscale when printing in monochrome withRalph Giles1-1/+21
eplaser device. Previously the RGB data was sent as is, resulting in a stretched and truncated page image. Patch from Olaf Meeuwissen. Bug 690252. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9391 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-11-03Fix Floating Point excpetion caused by improper initializer of a private deviceRay Johnston1-56/+2
structure subclassed (in the klunky C ghostscript fashion) from the gx_device_printers_s structure. Restructure a macro in base/gdevprn.h to help prevent similar bit rot in the future. Bug 690122. DETAILS: The problem was with devices that use the contrib/lips4/gdevlprn.h header files. The lp_duplex_device_body_rest_ and lp_device_body_rest_ macros that initialized the prn_device structure 'common' elements were out of date with respect to the revision in the gx_device_printer_s structure made for the multi-threaded rendering. The num_render_threads_requested integer was added. I restructured the prn_device_body_rest2_ in base/gdevprn.h so that the contrib/lips4/gdevlprn.h initialization macro could use this to minimize the likelihood of bit rot in the future. I did a search for other devices that might have the same problem and did not find them (although I may have missed them). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9192 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-09-18Additional leading space characters before colons in makefiles. Bug 690084.Ralph Giles1-35/+35
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9102 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-09-18Space makefile colons for the benefit of VMS. Bug 690084.Ralph Giles1-117/+117
OpenVMS supports a basic makefile syntax, but requires a space on both sides of the dependency colon. We try to maintain this in our cross-platform makefiles. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9100 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-09-18The SunPro compiler doesn't handle variable length arrays in structs.Ralph Giles1-0/+2
Bug 689079. Patch from Jon Peatfield. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9098 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-09-18Clean up whitespace in the opvp device source.Ralph Giles2-38/+38
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9097 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-09-18Fix: default to MITER line joins in the opvp device. Bug 689079.Ralph Giles1-1/+1
The previous default was BUTT, which is a line cap, not a join. This looks like it was a cut-and-paste error. Patch from Jon Peatfield. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9096 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-09-18Fix: don't treat char as unsigned in the opvp device. Bug 690079.Ralph Giles1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9095 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-14Use GNU iconv.h header in compatibility mode unless we link with GNU libiconv.Alex Cherepanov1-1/+6
This is needed for compiling gs with gcc under HP-UX 11.11. DETAILS: gdevopvp.c uses some basic functionality from iconv library but none of GNU extensions. So the native implementation is searched first. GNU header uses different names in the library and defines some macros to map iconv* names to GNU libiconv* names. gcc looks for GNU version of iconv.h first, which requires a compatibility flag to link with the native libraries. So the compatibility flag is set when iconv* functions are not found but libiconv* functions are found. DIFFERENCES: None git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8992 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-07Add the PSSRC dir to the includes of contrib devices that depend onRalph Giles1-3/+3
the ps interpreter so they can be build when that directory is different from src. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8947 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-08-07Use graphics library instead of interpreter error codes in the gomniRalph Giles1-4/+4
device. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8946 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-07-14Allows the Epson AcuLaser device output to be sent to a pipe (closes bug ↵Marcos H. Woehrmann1-1/+2
689953). Thanks to j@uriah.heep.sax.de (Joerg Wunsch) for the patch. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8839 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-06-25Fixed compile for Linux.Marcos H. Woehrmann1-1/+1
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8804 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-04-04Added the new files of OpenPrinting Vector 1.0.Till Kamppeter2-0/+595
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8624 a1074d23-0009-0410-80fe-cf8c14f379e6
2008-04-04Updated the OpenPrinting Vector driver interface ("opvp", "oprp") to version ↵Till Kamppeter3-3914/+4363
1.0. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8623 a1074d23-0009-0410-80fe-cf8c14f379e6
2007-12-14Added casts to sprintf debugging statements (thanks for Michael Rutter for ↵Marcos H. Woehrmann1-2/+2
finding these). git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@8441 a1074d23-0009-0410-80fe-cf8c14f379e6