| 410 | /* tok822_append_space - see if space is needed after this token */ |
| 411 | |
| 412 | static int tok822_append_space(TOK822 *tp) |
| 413 | { |
| 414 | TOK822 *next; |
| 415 | |
| 416 | if (tp == 0 || (next = tp->next) == 0 || tp->owner != 0) |
| 417 | return (0); |
| 418 | if (tp->type == ',' || tp->type == TOK822_STARTGRP || next->type == '<') |
| 419 | return (1); |
| 420 | |
| 421 | #define NON_OPERATOR(x) \ |
| 422 | (x->type == TOK822_ATOM || x->type == TOK822_QSTRING \ |
| 423 | || x->type == TOK822_COMMENT || x->type == TOK822_DOMLIT \ |
| 424 | || x->type == TOK822_ADDR) |
| 425 | |
| 426 | return (NON_OPERATOR(tp) && NON_OPERATOR(next)); |
| 427 | } |
| 428 | |
| 429 | /* tok822_scan_limit - tokenize string */ |
| 430 |
no outgoing calls
no test coverage detected
searching dependent graphs…