/* DO NOT EDIT THIS FILE. It contains C->PostScript communication definitions that were automatically generated from psint.cps */ #define ps_init(P__0) pprintf(PostScript, _CPS_ps_init, 433, P__0, P__0) extern char _CPS_ps_init[]; #define ps_fontsetup(P__0,P__1,P__2,P__3,P__4,P__5) ( pprintf(PostScript, _CPS_ps_fontsetup, 19, P__0, P__1, P__2), ps_waitfor(PostScriptInput, 0), _CPS_RETURN_ps_fontsetup(P__4, P__5, P__3)) #define _CPS_RETURN_ps_fontsetup(P__4, P__5, P__3) pscanf(PostScriptInput,"ddd", P__4, P__5, P__3) extern char _CPS_ps_fontsetup[]; #define ps_setcanvas() pprintf(PostScript, _CPS_ps_setcanvas, 21) extern char _CPS_ps_setcanvas[]; #define ps_setgray(P__0) pprintf(PostScript, _CPS_ps_setgray, 3, P__0) extern char _CPS_ps_setgray[]; #define ps_rotate(P__0) pprintf(PostScript, _CPS_ps_rotate, 4, P__0) extern char _CPS_ps_rotate[]; #define ps_translate(P__0,P__1) pprintf(PostScript, _CPS_ps_translate, 5, P__0, P__1) extern char _CPS_ps_translate[]; #define ps_dorotate(P__0,P__1,P__2) pprintf(PostScript, _CPS_ps_dorotate, 22, P__0, P__1, P__2, P__0, P__1) extern char _CPS_ps_dorotate[]; #define ps_unrotate() pprintf(PostScript, _CPS_ps_unrotate, 2) extern char _CPS_ps_unrotate[]; #define ps_moveinteractive(P__0,P__1,P__2,P__3,P__4,P__5,P__6) pprintf(PostScript, _CPS_ps_moveinteractive, 44, P__0, P__1, P__2, P__3, P__4, P__5, P__6) extern char _CPS_ps_moveinteractive[]; #define ps_pencilCreateinteractive(P__0,P__1) pprintf(PostScript, _CPS_ps_pencilCreateinteractive, 38, P__0, P__1) extern char _CPS_ps_pencilCreateinteractive[]; #define ps_linecreateinteractive(P__0,P__1) pprintf(PostScript, _CPS_ps_linecreateinteractive, 36, P__0, P__1) extern char _CPS_ps_linecreateinteractive[]; #define ps_rectcreateinteractive(P__0,P__1) pprintf(PostScript, _CPS_ps_rectcreateinteractive, 36, P__0, P__1) extern char _CPS_ps_rectcreateinteractive[]; #define ps_ovalcreateinteractive(P__0,P__1) pprintf(PostScript, _CPS_ps_ovalcreateinteractive, 36, P__0, P__1) extern char _CPS_ps_ovalcreateinteractive[]; #define ps_circcreateinteractive(P__0,P__1) pprintf(PostScript, _CPS_ps_circcreateinteractive, 36, P__0, P__1) extern char _CPS_ps_circcreateinteractive[]; #define ps_rotateInteractive(P__0,P__1,P__2,P__3,P__4,P__5,P__6,P__7,P__8) pprintf(PostScript, _CPS_ps_rotateInteractive, 46, P__0, P__1, P__2, P__3, P__4, P__5, P__6, P__7, P__8) extern char _CPS_ps_rotateInteractive[]; #define ps_stdcursor() pprintf(PostScript, _CPS_ps_stdcursor, 49) extern char _CPS_ps_stdcursor[]; #define ps_xcursor() pprintf(PostScript, _CPS_ps_xcursor, 53) extern char _CPS_ps_xcursor[]; #define ps_stroke() psio_putc('\305', PostScript) #define ps_fill() psio_putc('\267', PostScript) #define ps_setlinewidth(P__0) pprintf(PostScript, _CPS_ps_setlinewidth, 4, P__0) extern char _CPS_ps_setlinewidth[]; #define ps_pushclip(P__0,P__1,P__2,P__3) pprintf(PostScript, _CPS_ps_pushclip, 24, P__0, P__1, P__0, P__3, P__2, P__3, P__2, P__1) extern char _CPS_ps_pushclip[]; #define ps_popclip() psio_putc('\271', PostScript) #define ps_savearea(P__0,P__1,P__2,P__3) pprintf(PostScript, _CPS_ps_savearea, 27, P__0, P__1, P__2, P__3) extern char _CPS_ps_savearea[]; #define ps_restorearea() pprintf(PostScript, _CPS_ps_restorearea, 22) extern char _CPS_ps_restorearea[]; #define ps_drawline(P__0,P__1,P__2,P__3) pprintf(PostScript, _CPS_ps_drawline, 10, P__0, P__1, P__2, P__3) extern char _CPS_ps_drawline[]; #define ps_drawrect(P__0,P__1,P__2,P__3) pprintf(PostScript, _CPS_ps_drawrect, 21, P__0, P__1, P__0, P__3, P__2, P__3, P__2, P__1) extern char _CPS_ps_drawrect[]; #define ps_drawcirc(P__0,P__1,P__2) pprintf(PostScript, _CPS_ps_drawcirc, 12, P__0, P__1, P__2) extern char _CPS_ps_drawcirc[]; #define ps_drawoval(P__0,P__1,P__2,P__3) pprintf(PostScript, _CPS_ps_drawoval, 40, P__0, P__1, P__2, P__0, P__3, P__1) extern char _CPS_ps_drawoval[]; #define ps_getcreatepoint(P__0,P__1) (ps_lookingat(PostScriptInput, 400) && (_CPS_RETURN_ps_getcreatepoint(P__0, P__1), 1)) #define _CPS_RETURN_ps_getcreatepoint(P__0, P__1) pscanf(PostScriptInput,"dd", P__0, P__1) #define ps_getcreateangle(P__0) (ps_lookingat(PostScriptInput, 401) && (_CPS_RETURN_ps_getcreateangle(P__0), 1)) #define _CPS_RETURN_ps_getcreateangle(P__0) pscanf(PostScriptInput,"f", P__0) #define ps_getmode(P__0) (ps_lookingat(PostScriptInput, 100) && (_CPS_RETURN_ps_getmode(P__0), 1)) #define _CPS_RETURN_ps_getmode(P__0) pscanf(PostScriptInput,"d", P__0) #define ps_getselect(P__0,P__1) (ps_lookingat(PostScriptInput, 200) && (_CPS_RETURN_ps_getselect(P__0, P__1), 1)) #define _CPS_RETURN_ps_getselect(P__0, P__1) pscanf(PostScriptInput,"dd", P__0, P__1) #define ps_getadjust(P__0,P__1) (ps_lookingat(PostScriptInput, 300) && (_CPS_RETURN_ps_getadjust(P__0, P__1), 1)) #define _CPS_RETURN_ps_getadjust(P__0, P__1) pscanf(PostScriptInput,"dd", P__0, P__1) #define ps_getkey(P__0) (ps_lookingat(PostScriptInput, 500) && (_CPS_RETURN_ps_getkey(P__0), 1)) #define _CPS_RETURN_ps_getkey(P__0) pscanf(PostScriptInput,"d", P__0) #define ps_getprop(P__0) (ps_lookingat(PostScriptInput, 700) && (_CPS_RETURN_ps_getprop(P__0), 1)) #define _CPS_RETURN_ps_getprop(P__0) pscanf(PostScriptInput,"d", P__0) #define ps_getdamage(P__0,P__1,P__2,P__3) (ps_lookingat(PostScriptInput, 600) && (_CPS_RETURN_ps_getdamage(P__0, P__1, P__2, P__3), 1)) #define _CPS_RETURN_ps_getdamage(P__0, P__1, P__2, P__3) pscanf(PostScriptInput,"dddd", P__0, P__1, P__2, P__3) #define ps_getint(P__0) (_CPS_RETURN_ps_getint(P__0)) #define _CPS_RETURN_ps_getint(P__0) pscanf(PostScriptInput,"d", P__0) #define ps_getfloat(P__0) (_CPS_RETURN_ps_getfloat(P__0)) #define _CPS_RETURN_ps_getfloat(P__0) pscanf(PostScriptInput,"f", P__0) #define ps_polyline(P__0) pprintf(PostScript, _CPS_ps_polyline, 9, P__0) extern char _CPS_ps_polyline[]; #define ps_sendpoint(P__0,P__1) pprintf(PostScript, _CPS_ps_sendpoint, 4, P__0, P__1) extern char _CPS_ps_sendpoint[]; #define ps_doclick() pprintf(PostScript, _CPS_ps_doclick, 38) extern char _CPS_ps_doclick[]; #define _CPS_SEENDEFS #ifndef FILE #include #endif #ifndef PSFILE #include #endif extern PSFILE *PostScript, *PostScriptInput; PSFILE *ps_open_PostScript(); #define ps_flush_PostScript() (psio_flush(PostScript),(psio_error(PostScript) ? exit(0) : 0)) #define ps_close_PostScript() (psio_close(PostScript),PostScript = 0) #define ps_moveto(P__0,P__1) pprintf(PostScript, _CPS_ps_moveto, 5, P__0, P__1) extern char _CPS_ps_moveto[]; #define ps_rmoveto(P__0,P__1) pprintf(PostScript, _CPS_ps_rmoveto, 5, P__0, P__1) extern char _CPS_ps_rmoveto[]; #define ps_lineto(P__0,P__1) pprintf(PostScript, _CPS_ps_lineto, 5, P__0, P__1) extern char _CPS_ps_lineto[]; #define ps_rlineto(P__0,P__1) pprintf(PostScript, _CPS_ps_rlineto, 5, P__0, P__1) extern char _CPS_ps_rlineto[]; #define ps_closepath() psio_putc('\263', PostScript) #define ps_arc(P__0,P__1,P__2,P__3,P__4) pprintf(PostScript, _CPS_ps_arc, 11, P__0, P__1, P__2, P__3, P__4) extern char _CPS_ps_arc[]; #define ps_stroke() psio_putc('\305', PostScript) #define ps_fill() psio_putc('\267', PostScript) #define ps_show(P__0) pprintf(PostScript, _CPS_ps_show, 3, P__0) extern char _CPS_ps_show[]; #define ps_cshow(P__0,L__0) pprintf(PostScript, _CPS_ps_cshow, 4, L__0, P__0) extern char _CPS_ps_cshow[]; #define ps_findfont(P__0) pprintf(PostScript, _CPS_ps_findfont, 3, P__0) extern char _CPS_ps_findfont[]; #define ps_scalefont(P__0) pprintf(PostScript, _CPS_ps_scalefont, 3, P__0) extern char _CPS_ps_scalefont[]; #define ps_setfont() psio_putc('\302', PostScript) #define ps_gsave() psio_putc('\272', PostScript) #define ps_grestore() psio_putc('\271', PostScript) extern int ps_next_user_token; #define ps_define_stack_token(u) ps_DO_defuser(u/**/_token = ps_next_user_token++) #define ps_define_value_token(u) (pprintf(PostScript, "/u load ", sizeof "/u load " - 1), \ ps_define_stack_token(u)) #define ps_define_word_token(u) (pprintf(PostScript, "/u cvx ", sizeof "/u cvx " - 1), \ ps_define_stack_token(u)) #define ps_DO_defuser(P__0) pprintf(PostScript, _CPS_ps_DO_defuser, 4, P__0) extern char _CPS_ps_DO_defuser[]; #define ps_DO_finddef(P__0,P__1) pprintf(PostScript, _CPS_ps_DO_finddef, 7, P__0, P__1) extern char _CPS_ps_DO_finddef[]; #define ps_finddef(font,usertoken) ps_DO_finddef(font,(usertoken)=ps_next_user_token++) #define ps_DO_scaledef(P__0,P__1,P__2) pprintf(PostScript, _CPS_ps_DO_scaledef, 9, P__0, P__1, P__2) extern char _CPS_ps_DO_scaledef[]; #define ps_scaledef(font,scale,usertoken) ps_DO_scaledef(font,scale,(usertoken) = ps_next_user_token++) #define ps_usetfont(P__0) pprintf(PostScript, _CPS_ps_usetfont, 3, P__0) extern char _CPS_ps_usetfont[];