MCPcopy Create free account
hub / github.com/acl-dev/acl / tok822_append_space

Function tok822_append_space

lib_acl_cpp/src/mime/internal/tok822_parse.cpp:412–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410/* tok822_append_space - see if space is needed after this token */
411
412static 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

Callers 2

tok822_internalizeFunction · 0.85
tok822_externalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…