summaryrefslogtreecommitdiff
path: root/devices/gdevn533.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 /devices/gdevn533.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 'devices/gdevn533.c')
-rw-r--r--devices/gdevn533.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/devices/gdevn533.c b/devices/gdevn533.c
index 1fbf88cb7..4606258a8 100644
--- a/devices/gdevn533.c
+++ b/devices/gdevn533.c
@@ -61,11 +61,8 @@ nwp533_initialize(gx_device *dev)
return 0;
}
-static gx_device_procs nwp533_procs =
- devprocs_initialize(mwp533_initialize);
-
const gx_device_printer far_data gs_nwp533_device =
- prn_device(nwp533_procs, "nwp533",
+ prn_device(mwp533_initialize, "nwp533",
PAPER_XDOTS * 10.0 / DPI, /* width_10ths */
PAPER_YDOTS * 10.0 / DPI, /* height_10ths */
DPI, /* x_dpi */