🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.lang.postscript
Article #979

Can't compile gdevn533.c in gs23.

#979
From: Hidetaka Ikai
Date: Mon, 30 Mar 1992 23:49
69 lines
3840 bytes
Sony $@$N(J LBP $@$G(J$@$"$k(J NWP533 $@$G(J Gostscript 2.3 $@$rF0$+$=$&$H$7$^$7$?$,!$(J
gdevn533.c $@$O<!$N%(%i!<$G%3%s%Q%$%k$G$-$^$;$s!%(J

cc $@$G$N%a%C%;!<%8(J
"gdevn533.c", line 147: mem undefined
"gdevn533.c", line 147: member of structure or union required

$@$=$3$N%=!<%9$O(J
  if(write(printer_file, prn_dev->mem.base,
           (dev->width * dev->height) / 8) !=
     (dev->width * dev->height) / 8)
    {
      perror("Writting to output");
      return -1;
    }
$@$G!$(JLBP $@$K%S%C%H%^%C%W%G!<%?$rE>Aw$9$k$H$3$m$G$9!%(J
write $@$N(J2$@HVL\$N0z?t$O%G!<(J$@%?$N3JG<$5$l$F$$$k$H$3$m$N%"%I%l%9$G$9!%(J

prn_dev $@$O(J
#define prn_dev ((gx_device_printer *)dev)
$@$H$J$C(J$@$F$$$F!$(J

gx_device_printer $@$O(J
typedef struct gx_device_printer_s gx_device_printer;
struct gx_device_printer_s {
        gx_device_common;
        /* The following is required only for devices where */
        /* output_page is gdev_prn_output_page; */
        /* it is ignored for other devices. */
        dev_proc_print_page((*print_page));
        /* The following two items must be set before calling */
        /* the device open routine. */
        long buffer_space;      /* amount of space for clist buffer, */
                                        /* 0 means don't use clist */
        int write_to_prn;       /* if true, write directly to printer */
        byte *buf;                      /* buffer for rendering */
        char cfname[30];                /* clist file name */
        FILE *cfile;                    /* command list scratch file */
        gx_device_clist clist;          /* buffer device */
        gx_device *bdev;                /* clist or clist.mem */
        char fname[30];                 /* scratch file name, approx */
                                        /* strlen(SCRATCH_TEMPLATE)+1 */
        FILE *file;                     /* scratch file */
};

$@$=$7$F!$(Jgx_device_common $@$O!$(J
#define gx_device_common\
        int params_size;                /* size of this structure */\
        gx_device_procs *procs;\
        char *dname;                    /* the device name */\
        int width;                      /* width in pixels */\
        int height;                     /* height in pixels */\
        float x_pixels_per_inch;        /* x density */\
        float y_pixels_per_inch;        /* y density */\
        float l_margin, b_margin, r_margin, t_margin;   /* margins around */\
                                        /* imageable area, in inches */\
        int has_color;                  /* true if device supports color */\
        unsigned short max_rgb_value;   /* max r, g, b value */\
        int bits_per_color_pixel;       /* for copy_color */\
        int is_open                     /* true if device has been opened */

$@$G$9!%(J
mem.base $@$J$s$+8+$D$+(J$@$j$^$;$s!%(J
$@$I$&$9$l$P$$$$$N$G$7$g$&$+(J?

Mar 31 08:50
                                                       //\      ika!ika!
                        $@5WN1JF9)6HBg3X(J  $@Cv;t=(N4(J       p q v    ika!ika!
                        ikai@cc.kurume-it.ac.jp         o /     ika!ika!
Technical Details
Message-ID: <IKAI.92Mar31084816@ecip00.cc.kurume-it.ac.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!astemgw!wnoc-fukuoka-news!kurume-it-news!kurume-it-news!ikai

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: fa2ca,37548dce40f83b09,start
X-Google-Attributes: gidfa2ca,public
X-Google-ArrivalTime: 1992-03-30 15:49:54 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!astemgw!wnoc-fukuoka-news!kurume-it-news!kurume-it-news!ikai
From: ikai@cc.kurume-it.ac.jp (Hidetaka Ikai)
Newsgroups: fj.lang.postscript
Subject: Can't compile gdevn533.c in gs23.
Message-ID: <IKAI.92Mar31084816@ecip00.cc.kurume-it.ac.jp>
Date: 30 Mar 92 23:49:54 GMT
Sender: news@kurume-it-news.kurume-it.ac.jp
Distribution: fj
Organization: Kurume Institute of Tech., Fukuoka, Japan
Lines: 69