| 247 | /* strip_address - strip non-address text from address expression */ |
| 248 | |
| 249 | static void strip_address(ACL_VSTRING *vp, ssize_t start, TOK822 *addr) |
| 250 | { |
| 251 | ACL_VSTRING *tmp; |
| 252 | |
| 253 | /* |
| 254 | * Emit plain <address>. Discard any comments or phrases. |
| 255 | */ |
| 256 | ACL_VSTRING_TERMINATE(vp); |
| 257 | acl_msg_warn("stripping too many comments from address: %.100s...", |
| 258 | acl_vstring_str(vp) + start); |
| 259 | //acl_printable(vstring_str(vp) + start, '?')); //zsx |
| 260 | acl_vstring_truncate(vp, start); |
| 261 | ACL_VSTRING_ADDCH(vp, '<'); |
| 262 | if (addr) { |
| 263 | tmp = acl_vstring_alloc(100); |
| 264 | tok822_internalize(tmp, addr, TOK822_STR_TERM); |
| 265 | quote_822_local_flags(vp, acl_vstring_str(tmp), |
| 266 | QUOTE_FLAG_8BITCLEAN | QUOTE_FLAG_APPEND); |
| 267 | acl_vstring_free(tmp); |
| 268 | } |
| 269 | ACL_VSTRING_ADDCH(vp, '>'); |
| 270 | } |
| 271 | |
| 272 | /* tok822_externalize - token tree to string, external form */ |
| 273 |
nothing calls this directly
no test coverage detected
searching dependent graphs…