#include <stdio.h>Go to the source code of this file.
Defines | |
| #define | snews_setup() pprintf(PostScript, _CPS_snews_setup, 307) |
| #define | snews_line(P, P, P, P) pprintf(PostScript, _CPS_snews_line, 11, P$0, P$1, P$2, P$3) |
| #define | snews_string(P, P, P) pprintf(PostScript, _CPS_snews_string, 20, P$0, P$1, P$2, P$0) |
| #define | _CPS_SEENDEFS |
| #define | ps_flush_PostScript() (fflush(PostScript),(ferror(PostScript) ? exit(0) : 0)) |
| #define | ps_close_PostScript() (fclose(PostScript),PostScript = 0) |
| #define | ps_moveto(P, P) pprintf(PostScript, _CPS_ps_moveto, 5, P$0, P$1) |
| #define | ps_rmoveto(P, P) pprintf(PostScript, _CPS_ps_rmoveto, 5, P$0, P$1) |
| #define | ps_lineto(P, P) pprintf(PostScript, _CPS_ps_lineto, 5, P$0, P$1) |
| #define | ps_rlineto(P, P) pprintf(PostScript, _CPS_ps_rlineto, 5, P$0, P$1) |
| #define | ps_closepath() putc('\263', PostScript) |
| #define | ps_arc(P, P, P, P, P) pprintf(PostScript, _CPS_ps_arc, 11, P$0, P$1, P$2, P$3, P$4) |
| #define | ps_stroke() putc('\305', PostScript) |
| #define | ps_fill() putc('\267', PostScript) |
| #define | ps_show(P) pprintf(PostScript, _CPS_ps_show, 3, P$0) |
| #define | ps_cshow(P, L) pprintf(PostScript, _CPS_ps_cshow, 4, L$0, P$0) |
| #define | ps_findfont(P) pprintf(PostScript, _CPS_ps_findfont, 3, P$0) |
| #define | ps_scalefont(P) pprintf(PostScript, _CPS_ps_scalefont, 3, P$0) |
| #define | ps_setfont() putc('\302', PostScript) |
| #define | ps_gsave() putc('\272', PostScript) |
| #define | ps_grestore() putc('\271', PostScript) |
| #define | ps_define_stack_token(u) ps_DO_defuser(u/**/_token = next_user_token++) |
| #define | ps_define_value_token(u) |
| #define | ps_define_word_token(u) |
| #define | ps_DO_defuser(P) pprintf(PostScript, _CPS_ps_DO_defuser, 4, P$0) |
| #define | ps_DO_finddef(P, P) pprintf(PostScript, _CPS_ps_DO_finddef, 7, P$0, P$1) |
| #define | ps_finddef(font, usertoken) ps_DO_finddef(font,(usertoken)=ps_next_user_token++) |
| #define | ps_DO_scaledef(P, P, P) pprintf(PostScript, _CPS_ps_DO_scaledef, 9, P$0, P$1, P$2) |
| #define | ps_scaledef(font, scale, usertoken) ps_DO_scaledef(font,scale,(usertoken) = ps_next_user_token++) |
| #define | ps_usetfont(P) pprintf(PostScript, _CPS_ps_usetfont, 3, P$0) |
Functions | |
| FILE * | ps_open_PostScript () |
Variables | |
| static char | _CPS_snews_setup [] = "/painted\246S\264/win framebuffer /new DefaultWindow send\264{ /FrameLabel\237Bertrand Output\264/PaintClient { /painted\246\316\246\303}\264/DestroyClient {\222X\n\246\225}\264/ClientMenu [\223ZAP{\222X\n\246\225\2463killprocessgroup } ] /new DefaultMenu send\264} win send /reshapefromuser win send /map win send { painted {\246O}\246k\246\222}\246\200win /ClientCanvas\246]\246\252/Screen\270\200\016\300\302" |
| static char | _CPS_snews_line [] = "%d%d\274%d%d\273\305" |
| static char | _CPS_snews_string [] = "%s\246\305\275\200\002\246A%d\266\246\307%d\274%s\304" |
| FILE * | PostScript |
| FILE * | PostScriptInput |
| char | _CPS_ps_moveto [] |
| char | _CPS_ps_rmoveto [] |
| char | _CPS_ps_lineto [] |
| char | _CPS_ps_rlineto [] |
| char | _CPS_ps_arc [] |
| char | _CPS_ps_show [] |
| char | _CPS_ps_cshow [] |
| char | _CPS_ps_findfont [] |
| char | _CPS_ps_scalefont [] |
| int | ps_next_user_token |
| char | _CPS_ps_DO_defuser [] |
| char | _CPS_ps_DO_finddef [] |
| char | _CPS_ps_DO_scaledef [] |
| char | _CPS_ps_usetfont [] |
| #define _CPS_SEENDEFS |
Definition at line 10 of file graphics.h.
| #define ps_arc | ( | P, | |||
| P, | |||||
| P, | |||||
| P, | |||||
| P | ) | pprintf(PostScript, _CPS_ps_arc, 11, P$0, P$1, P$2, P$3, P$4) |
Definition at line 27 of file graphics.h.
| #define ps_close_PostScript | ( | ) | (fclose(PostScript),PostScript = 0) |
| #define ps_closepath | ( | ) | putc('\263', PostScript) |
Definition at line 26 of file graphics.h.
| #define ps_cshow | ( | P, | |||
| L | ) | pprintf(PostScript, _CPS_ps_cshow, 4, L$0, P$0) |
Definition at line 33 of file graphics.h.
| #define ps_define_stack_token | ( | u | ) | ps_DO_defuser(u/**/_token = next_user_token++) |
Definition at line 43 of file graphics.h.
| #define ps_define_value_token | ( | u | ) |
Value:
(pprintf(PostScript, "/u load ", -1), \ ps_define_stack_token(u))
Definition at line 44 of file graphics.h.
| #define ps_define_word_token | ( | u | ) |
Value:
(pprintf(PostScript, "/u cvx ", -1), \ ps_define_stack_token(u))
Definition at line 46 of file graphics.h.
| #define ps_DO_defuser | ( | P | ) | pprintf(PostScript, _CPS_ps_DO_defuser, 4, P$0) |
Definition at line 48 of file graphics.h.
| #define ps_DO_finddef | ( | P, | |||
| P | ) | pprintf(PostScript, _CPS_ps_DO_finddef, 7, P$0, P$1) |
Definition at line 50 of file graphics.h.
| #define ps_DO_scaledef | ( | P, | |||
| P, | |||||
| P | ) | pprintf(PostScript, _CPS_ps_DO_scaledef, 9, P$0, P$1, P$2) |
Definition at line 53 of file graphics.h.
| #define ps_fill | ( | ) | putc('\267', PostScript) |
Definition at line 30 of file graphics.h.
| #define ps_finddef | ( | font, | |||
| usertoken | ) | ps_DO_finddef(font,(usertoken)=ps_next_user_token++) |
Definition at line 52 of file graphics.h.
| #define ps_findfont | ( | P | ) | pprintf(PostScript, _CPS_ps_findfont, 3, P$0) |
Definition at line 35 of file graphics.h.
| #define ps_flush_PostScript | ( | ) | (fflush(PostScript),(ferror(PostScript) ? exit(0) : 0)) |
Definition at line 16 of file graphics.h.
Referenced by draw_line(), draw_string(), and graphics_init().
| #define ps_grestore | ( | ) | putc('\271', PostScript) |
Definition at line 41 of file graphics.h.
| #define ps_gsave | ( | ) | putc('\272', PostScript) |
Definition at line 40 of file graphics.h.
| #define ps_lineto | ( | P, | |||
| P | ) | pprintf(PostScript, _CPS_ps_lineto, 5, P$0, P$1) |
Definition at line 22 of file graphics.h.
| #define ps_moveto | ( | P, | |||
| P | ) | pprintf(PostScript, _CPS_ps_moveto, 5, P$0, P$1) |
Definition at line 18 of file graphics.h.
| #define ps_rlineto | ( | P, | |||
| P | ) | pprintf(PostScript, _CPS_ps_rlineto, 5, P$0, P$1) |
Definition at line 24 of file graphics.h.
| #define ps_rmoveto | ( | P, | |||
| P | ) | pprintf(PostScript, _CPS_ps_rmoveto, 5, P$0, P$1) |
Definition at line 20 of file graphics.h.
| #define ps_scaledef | ( | font, | |||
| scale, | |||||
| usertoken | ) | ps_DO_scaledef(font,scale,(usertoken) = ps_next_user_token++) |
Definition at line 55 of file graphics.h.
| #define ps_scalefont | ( | P | ) | pprintf(PostScript, _CPS_ps_scalefont, 3, P$0) |
Definition at line 37 of file graphics.h.
| #define ps_setfont | ( | ) | putc('\302', PostScript) |
Definition at line 39 of file graphics.h.
| #define ps_show | ( | P | ) | pprintf(PostScript, _CPS_ps_show, 3, P$0) |
Definition at line 31 of file graphics.h.
| #define ps_stroke | ( | ) | putc('\305', PostScript) |
Definition at line 29 of file graphics.h.
| #define ps_usetfont | ( | P | ) | pprintf(PostScript, _CPS_ps_usetfont, 3, P$0) |
Definition at line 56 of file graphics.h.
| #define snews_line | ( | P, | |||
| P, | |||||
| P, | |||||
| P | ) | pprintf(PostScript, _CPS_snews_line, 11, P$0, P$1, P$2, P$3) |
| #define snews_setup | ( | ) | pprintf(PostScript, _CPS_snews_setup, 307) |
| #define snews_string | ( | P, | |||
| P, | |||||
| P | ) | pprintf(PostScript, _CPS_snews_string, 20, P$0, P$1, P$2, P$0) |
| FILE* ps_open_PostScript | ( | ) |
Referenced by graphics_init().
| char _CPS_ps_arc[] |
| char _CPS_ps_cshow[] |
| char _CPS_ps_DO_defuser[] |
| char _CPS_ps_DO_finddef[] |
| char _CPS_ps_DO_scaledef[] |
| char _CPS_ps_findfont[] |
| char _CPS_ps_lineto[] |
| char _CPS_ps_moveto[] |
| char _CPS_ps_rlineto[] |
| char _CPS_ps_rmoveto[] |
| char _CPS_ps_scalefont[] |
| char _CPS_ps_show[] |
| char _CPS_ps_usetfont[] |
char _CPS_snews_line[] = "%d%d\274%d%d\273\305" [static] |
Definition at line 7 of file graphics.h.
char _CPS_snews_setup[] = "/painted\246S\264/win framebuffer /new DefaultWindow send\264{ /FrameLabel\237Bertrand Output\264/PaintClient { /painted\246\316\246\303}\264/DestroyClient {\222X\n\246\225}\264/ClientMenu [\223ZAP{\222X\n\246\225\2463killprocessgroup } ] /new DefaultMenu send\264} win send /reshapefromuser win send /map win send { painted {\246O}\246k\246\222}\246\200win /ClientCanvas\246]\246\252/Screen\270\200\016\300\302" [static] |
Definition at line 5 of file graphics.h.
char _CPS_snews_string[] = "%s\246\305\275\200\002\246A%d\266\246\307%d\274%s\304" [static] |
Definition at line 9 of file graphics.h.
| FILE* PostScript |
Definition at line 14 of file graphics.h.
| FILE * PostScriptInput |
Definition at line 42 of file graphics.h.
1.5.4