summaryrefslogtreecommitdiff
path: root/contrib/japanese/gdevml6.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 /contrib/japanese/gdevml6.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 'contrib/japanese/gdevml6.c')
-rw-r--r--contrib/japanese/gdevml6.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/japanese/gdevml6.c b/contrib/japanese/gdevml6.c
index 60ab151fd..6aff86ae5 100644
--- a/contrib/japanese/gdevml6.c
+++ b/contrib/japanese/gdevml6.c
@@ -46,11 +46,8 @@ ml600_initialize(gx_device *dev)
return code;
}
-static gx_device_procs ml600_procs =
- devprocs_initialize(ml600_initialize);
-
gx_device_printer gs_ml600_device =
- prn_device(ml600_procs, "ml600",
+ prn_device(ml600_initialize, "ml600",
83, /* width_10ths, 8.3" */
117, /* height_10ths, 11.7" */
600, 600,