diff options
author | Henry Stiles <henry.stiles@artifex.com> | 1999-04-13 02:20:04 +0000 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 1999-04-13 02:20:04 +0000 |
commit | 4657ae83f626904fa97fc9ff18d07ceeedaa46bf (patch) | |
tree | f7134472fba7e8c55a8a9d687cf798bf85ec0254 /pcl/pccsbase.c | |
parent | b31ea3c32890ba663f63dc895349a8fc6177f3bd (diff) |
WARNING: changes pending - do not release. First stable pcl checkin
with no statics and general code clean up. Modifications for pcl
raster, parser, color, foreground, palette and hpgl/2 parser.
git-svn-id: http://svn.ghostscript.com/ghostpcl/trunk/ghostpcl@806 06663e23-700e-0410-b217-a244a6096597
Diffstat (limited to 'pcl/pccsbase.c')
-rw-r--r-- | pcl/pccsbase.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/pcl/pccsbase.c b/pcl/pccsbase.c index aa0e24e94..9d39a65a7 100644 --- a/pcl/pccsbase.c +++ b/pcl/pccsbase.c @@ -15,14 +15,11 @@ #include "gscie.h" #include "pcmtx3.h" #include "pccsbase.h" +#include "pcstate.h" /* GC routines */ private_st_cs_base_t(); -/* a special "white" color space */ -private pcl_cs_base_t * pwhite_cs; - - /* * Handle min/max values for device-independent color spaces. * @@ -1083,16 +1080,17 @@ pcl_cs_base_build_cspace( */ int pcl_cs_base_build_white_cspace( + pcl_state_t * pcs, pcl_cs_base_t ** ppbase, gs_memory_t * pmem ) { int code = 0; - if (pwhite_cs == 0) - code = alloc_base_cspace(&pwhite_cs, pcl_cspace_White, pmem); + if (pcs->pwhite_cs == 0) + code = alloc_base_cspace(&pcs->pwhite_cs, pcl_cspace_White, pmem); if (code >= 0) - pcl_cs_base_copy_from(*ppbase, pwhite_cs); + pcl_cs_base_copy_from(*ppbase, pcs->pwhite_cs); return code; } @@ -1185,7 +1183,7 @@ pcl_cs_base_install( * initialization of BSS. */ void -pcl_cs_base_init(void) +pcl_cs_base_init(pcl_state_t *pcs) { - pwhite_cs = 0; + pcs->pwhite_cs = 0; } |