Line 0
Link Here
|
|
|
1 |
--- ccgm.c.orig Mon Oct 12 23:59:40 1992 |
2 |
+++ ccgm.c Sat Jun 16 03:06:24 2007 |
3 |
@@ -2,9 +2,118 @@ |
4 |
/* all rights reserved */ |
5 |
/* module to take care of clear text command processing */ |
6 |
#include <stdio.h> |
7 |
+#include <stdlib.h> |
8 |
+#include <string.h> |
9 |
#include "defs.h" /* type definitions */ |
10 |
#include "ccdefs.h" /* clear text definitions */ |
11 |
|
12 |
+static class0(); |
13 |
+static class1(); |
14 |
+static class2(); |
15 |
+static class3(); |
16 |
+static class4(); |
17 |
+static class5(); |
18 |
+static class6(); |
19 |
+static class7(); |
20 |
+static f_b_mf(); |
21 |
+static f_e_mf(); |
22 |
+static f_b_p(); |
23 |
+static f_b_p_body(); |
24 |
+static f_e_pic(); |
25 |
+static rd_mf_version(); |
26 |
+static rd_mf_descriptor(); |
27 |
+static s_vdc_type(); |
28 |
+static s_int_prec(); |
29 |
+static s_real_prec(); |
30 |
+static s_index_prec(); |
31 |
+static s_col_prec(); |
32 |
+static s_cind_prec(); |
33 |
+static s_cvextent(); |
34 |
+static s_mcind(); |
35 |
+static do_mcind(); |
36 |
+static rd_mf_list(); |
37 |
+static s_mf_defs(); |
38 |
+static do_font_list(); |
39 |
+static do_char_list(); |
40 |
+static do_cannounce(); |
41 |
+static s_scalmode(); |
42 |
+static s_c_s_mode(); |
43 |
+static s_lws_mode(); |
44 |
+static s_ms_mode(); |
45 |
+static s_ew_mode(); |
46 |
+static s_vdc_extent(); |
47 |
+static s_back_col(); |
48 |
+static s_vdc_i_p(); |
49 |
+static s_vdc_r_p(); |
50 |
+static s_aux_col(); |
51 |
+static s_transp(); |
52 |
+static s_clip_rec(); |
53 |
+static s_clip_ind(); |
54 |
+static do_polyline(); |
55 |
+static do_dis_polyline(); |
56 |
+static do_polymarker(); |
57 |
+static s_text(); |
58 |
+static s_rex_text(); |
59 |
+static s_app_text(); |
60 |
+static do_polygon(); |
61 |
+static do_polyset(); |
62 |
+static do_cell_array(); |
63 |
+static do_g_d_p(); |
64 |
+static do_rectangle(); |
65 |
+static do_circle(); |
66 |
+static do_c3(); |
67 |
+static do_c3_close(); |
68 |
+static do_c_centre(); |
69 |
+static do_c_c_close(); |
70 |
+static do_ellipse(); |
71 |
+static do_ell_arc(); |
72 |
+static do_e_a_close(); |
73 |
+static s_lbindex(); |
74 |
+static s_l_type(); |
75 |
+static s_l_width(); |
76 |
+static s_l_colour(); |
77 |
+static s_mbindex(); |
78 |
+static s_mk_type(); |
79 |
+static s_mk_size(); |
80 |
+static s_mk_colour(); |
81 |
+static s_tbindex(); |
82 |
+static s_t_index(); |
83 |
+static s_t_prec(); |
84 |
+static s_c_exp(); |
85 |
+static s_c_space(); |
86 |
+static s_t_colour(); |
87 |
+static s_c_height(); |
88 |
+static s_c_orient(); |
89 |
+static s_tpath(); |
90 |
+static s_t_align(); |
91 |
+static s_csindex(); |
92 |
+static s_acsindex(); |
93 |
+static s_fbindex(); |
94 |
+static s_interior_style(); |
95 |
+static s_fill_colour(); |
96 |
+static s_hindex(); |
97 |
+static s_pindex(); |
98 |
+static s_e_b_index(); |
99 |
+static s_edge_t(); |
100 |
+static s_edge_w(); |
101 |
+static s_edge_c(); |
102 |
+static s_edge_v(); |
103 |
+static s_fill_ref(); |
104 |
+static p_tab_entry(); |
105 |
+static s_pat_size(); |
106 |
+static c_tab_entry(); |
107 |
+static do_aspsflags(); |
108 |
+static do_escape(); |
109 |
+static do_message(); |
110 |
+static do_apdata(); |
111 |
+static my_scan_int(); |
112 |
+static get_decimal(); |
113 |
+static get_based(); |
114 |
+static my_scan_float(); |
115 |
+static get_token(); |
116 |
+static cc_same(); |
117 |
+static get_prec(); |
118 |
+ |
119 |
/* global pointers that use storage from the main program */ |
120 |
|
121 |
static struct mf_d_struct *glbl1; /* the class 1 elements */ |
122 |
@@ -62,7 +171,6 @@ |
123 |
|
124 |
/* cgm specific functions */ |
125 |
#define e_size 2 |
126 |
- extern char *malloc(); /* for neatness */ |
127 |
#define intalloc (int *) malloc /* for convenience */ |
128 |
static char *cc_str(); /* does the necessary translation */ |
129 |
static float cc_real(); /* does the necessary translation */ |
130 |
@@ -3367,7 +3475,7 @@ |
131 |
struct ad_struct *this_ad; /* general address structure */ |
132 |
{ |
133 |
static struct ad_struct last_ad; /* last address */ |
134 |
- char *my_ptr, c, *realloc(), last_quote = '\"'; |
135 |
+ char *my_ptr, c, last_quote = '\"'; |
136 |
int p_len, done, new_size; |
137 |
enum {normal, quoting, spacing, commenting} my_state; |
138 |
|