summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'base/gxcspace.h')
-rw-r--r--base/gxcspace.h23
1 files changed, 1 insertions, 22 deletions
diff --git a/base/gxcspace.h b/base/gxcspace.h
index 40fbee16..56f2d183 100644
--- a/base/gxcspace.h
+++ b/base/gxcspace.h
@@ -152,7 +152,7 @@ struct gs_color_space_type_s {
/* Free contents of composite colorspace objects. */
#define cs_proc_final(proc)\
- void proc(const gs_color_space *)
+ void proc(gs_color_space *)
cs_proc_final((*final));
/* Adjust reference counts of indirect color components. */
@@ -166,29 +166,8 @@ struct gs_color_space_type_s {
#define cs_proc_adjust_color_count(proc)\
void proc(const gs_client_color *, const gs_color_space *, int)
- /* Adjust the color reference counts for the current space. */
-#define cs_adjust_color_count(pgs, delta)\
- (*gs_currentcolorspace_inline(pgs)->type->adjust_color_count)\
- (gs_currentcolor_inline(pgs), gs_currentcolorspace_inline(pgs), delta)
- /* Adjust the color reference counts for the swapped space (i.e.
- * the one that is not current). */
-#define cs_adjust_swappedcolor_count(pgs, delta)\
- (*gs_swappedcolorspace_inline(pgs)->type->adjust_color_count)\
- (gs_swappedcolor_inline(pgs), gs_swappedcolorspace_inline(pgs), delta)
-
cs_proc_adjust_color_count((*adjust_color_count));
-/* Adjust both reference counts for the current color/colorspace. */
-#define cs_adjust_counts(pgs, delta)\
- cs_adjust_color_count(pgs, delta); \
- rc_adjust_const(gs_currentcolorspace_inline(pgs), delta, "cs_adjust_counts")
-
-/* Adjust both reference counts for the swapped (i.e. non-current)
- * color/colorspace. */
-#define cs_adjust_swappedcounts(pgs, delta)\
- cs_adjust_swappedcolor_count(pgs, delta); \
- rc_adjust_const(gs_swappedcolorspace_inline(pgs), delta, "cs_adjust_swappedcounts")
-
/* Serialization. */
/*
* Note : We don't include *(pcs)->type into serialization,