Definition at line 79 of file pr_comment.c.
80{
81 int now_col;
82 int adj_max_col;
83
84 char *last_bl;
85
86 char *t_ptr;
91 last_bl = NULL;
93
94
96
97
98
100
102 break_delim = false;
104 }
105 else {
109
110
111
112
113
114
115 break_delim = false;
116 }
118
119
120
121
122
127 }
128 else {
129 int target_col;
130 break_delim = false;
133 else {
134 target_col = 1;
137 }
139 (strncmp(
s_lab,
"#endif", 6) == 0 ||
140 strncmp(
s_lab,
"#else", 5) == 0))
143 else
150 }
151 }
153
154
155
156
157
158
159
160
162
166 }
167 else {
171 }
177
178
179
180
181 if (break_delim)
182 for (t_ptr =
buf_ptr; *t_ptr !=
'\0' && *t_ptr !=
'\n'; t_ptr++) {
185 if (t_ptr[0] == '*' && t_ptr[1] == '/') {
187 break_delim = false;
188 break;
189 }
190 }
191
192 if (break_delim) {
202 }
203
204
205
206 while (1) {
207
209 case 014:
213
215 last_bl = NULL;
219 ;
220 }
221 else {
225 }
226 break;
227
228 case '\n':
230 printf(
"Unterminated comment\n");
232 return;
233 }
234 last_bl = NULL;
237
244 }
248 }
249 else {
251 if (*(
e_com - 1) ==
' ' || *(
e_com - 1) ==
'\t')
253
254
255
256
257 else {
260 }
261 }
264 int nstar = 1;
265 do {
266
269 if (*
buf_ptr ==
'*' && --nstar >= 0) {
273 goto end_of_comment;
274 }
276 }
279 break;
280
281 case '*':
282
287 end_of_comment:
290 if (break_delim) {
293 }
294 else
297 }
302 return;
303 }
304 else
306 break;
307 default:
309 do {
317 now_col++;
318 }
while (!memchr(
"*\n\r\b\t", *
buf_ptr, 6) &&
319 (now_col <= adj_max_col || !last_bl));
322
323
324
325 if (last_bl == NULL) {
329 break;
330 }
336 for (t_ptr = last_bl + 1; *t_ptr == ' ' || *t_ptr == '\t';
337 t_ptr++)
338 ;
339 last_bl = NULL;
340
341
342
343
344
345 while (*t_ptr != '\0') {
346 if (*t_ptr == ' ' || *t_ptr == '\t')
349 }
350 }
351 break;
352 }
353 }
354}
int compute_code_target(void)
int compute_label_target(void)
int count_spaces_until(int, char *, char *)
int count_spaces(int, char *)
int block_comment_max_col
#define CHECK_SIZE_COM(desired_size)
int prefix_blankline_requested
int blanklines_before_blockcomments
int format_block_comments
int comment_delimiter_on_blankline
if(TABLE==NULL||TABLE_index==NULL)
References blanklines_before_blockcomments, block_comment_max_col, parser_state::box_com, buf_end, buf_ptr, CHECK_SIZE_COM, parser_state::col_1, parser_state::com_col, parser_state::com_ind, comment_delimiter_on_blankline, parser_state::comment_delta, compute_code_target(), compute_label_target(), count_spaces(), count_spaces_until(), parser_state::decl_com_ind, parser_state::decl_on_line, dump_line(), e_code, e_com, e_lab, else_endif_com_ind, fill_buffer(), format_block_comments, format_col1_comments, had_eof, if(), in_buffer, parser_state::ind_level, parser_state::ind_size, parser_state::just_saw_decl, parser_state::last_nl, parser_state::last_token, lbrace, line_no, max_col, parser_state::n_comment_delta, parser_state::out_coms, prefix_blankline_requested, printf, ps, s_code, s_com, s_lab, save_com, sc_buf, sc_size, star_comment_cont, start, tabsize, parser_state::unindent_displace, and parser_state::use_ff.
Referenced by main().