diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-03-22 18:16:20 +0000 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-04-20 15:03:02 +0100 |
commit | 1d9b79910d988d074f262c65d3559c5045a5343f (patch) | |
tree | 75c820d2965985d7ff74e6760d5c1a32b4d6a14d /base/gdevflp.c | |
parent | 6f332dd0baee0135ebff0bf25c56e9adff0f944a (diff) | |
download | ghostpdl-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.c | 6 |
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 |