summaryrefslogtreecommitdiff
path: root/base/gdevflp.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2021-03-22 18:16:20 +0000
committerRobin Watts <Robin.Watts@artifex.com>2021-04-20 15:03:02 +0100
commit1d9b79910d988d074f262c65d3559c5045a5343f (patch)
tree75c820d2965985d7ff74e6760d5c1a32b4d6a14d /base/gdevflp.c
parent6f332dd0baee0135ebff0bf25c56e9adff0f944a (diff)
downloadghostpdl-1d9b79910d988d074f262c65d3559c5045a5343f.tar.gz
Further rationalisation of device init.
Move the initialize procedure out of the device procs table, and into a bare function pointer at the start of the device proc. Devices just initialise this, and the rest should fall into place. This means changes to the device instantion macros (and all the uses thereof), but makes the code nicer overall. In particular, this removes the vestigial 'static_procs' structure.
Diffstat (limited to 'base/gdevflp.c')
-rw-r--r--base/gdevflp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/gdevflp.c b/base/gdevflp.c
index 72985d9b2..63afdac97 100644
--- a/base/gdevflp.c
+++ b/base/gdevflp.c
@@ -134,11 +134,11 @@ public_st_flp_device();
const
gx_device_flp gs_flp_device =
{
- std_device_dci_type_body(gx_device_flp, 0, "first_lastpage", &st_flp_device,
+ std_device_dci_type_body(gx_device_flp, flp_initialize,
+ "first_lastpage", &st_flp_device,
MAX_COORD, MAX_COORD,
MAX_RESOLUTION, MAX_RESOLUTION,
- 1, 8, 255, 0, 256, 1),
- devprocs_initialize(flp_initialize)
+ 1, 8, 255, 0, 256, 1)
};
#undef MAX_COORD