diff options
author | Stefan Kemper <stefan.kemper@artifex.com> | 2004-08-19 19:33:09 +0000 |
---|---|---|
committer | Stefan Kemper <stefan.kemper@artifex.com> | 2004-08-19 19:33:09 +0000 |
commit | 06d4ba3e4b88786b82cf653a56889e2c5defa883 (patch) | |
tree | 079ccdfd3c47f5252e42e0ad85b5314d075f7975 /gs/src/gscspace.c | |
parent | 1c40350c8a76507a967be9db3aa3f6d05329511b (diff) |
Changed iapi to use a void* instead of a gs_main_instance pointer.
Cleaned up warning related to function pointer signature miss-matches.
DETAILS:
iapi.h no longer defines a type for gs_main_instance *
This will likely need to be put back in for backward compatibility.
The iapi interface now uses a void * instance handle reflecting
that it is an opaque type to the outside world.
Note that function pointer argument miss-matches generate warnings in
msvc but not in gcc. These have been fixed.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@5250 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gscspace.c')
-rw-r--r-- | gs/src/gscspace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gs/src/gscspace.c b/gs/src/gscspace.c index 05c1a0135..dd3328d35 100644 --- a/gs/src/gscspace.c +++ b/gs/src/gscspace.c @@ -123,7 +123,7 @@ gs_cspace_init_DeviceGray(const gs_memory_t *mem, gs_color_space *pcs) if (dev_gray_proto.id == 0) gs_cspace_init( &dev_gray_proto, &gs_color_space_type_DeviceGray, - mem, false ); + (gs_memory_t *)mem, false ); *pcs = dev_gray_proto; return 0; } @@ -146,7 +146,7 @@ gs_cspace_init_DeviceRGB(const gs_memory_t *mem, gs_color_space *pcs) if (dev_rgb_proto.id == 0) gs_cspace_init( &dev_rgb_proto, &gs_color_space_type_DeviceRGB, - mem, false ); + (gs_memory_t *)mem, false ); *pcs = dev_rgb_proto; return 0; } @@ -169,7 +169,7 @@ gs_cspace_init_DeviceCMYK(const gs_memory_t *mem, gs_color_space *pcs) if (dev_cmyk_proto.id == 0) gs_cspace_init( &dev_cmyk_proto, &gs_color_space_type_DeviceCMYK, - mem, false ); + (gs_memory_t *)mem, false ); *pcs = dev_cmyk_proto; return 0; } |