| 1768 | } |
| 1769 | |
| 1770 | static char *extract_dump(const char *src, CBMLanguage lang, const char *path, |
| 1771 | uint32_t *module_end) { |
| 1772 | CBMFileResult *r = do_extract(src, lang, path); |
| 1773 | if (!r) { |
| 1774 | return NULL; |
| 1775 | } |
| 1776 | char *d = dump_extraction(r); |
| 1777 | if (module_end) { |
| 1778 | *module_end = module_end_line(r); |
| 1779 | } |
| 1780 | cbm_free_result(r); |
| 1781 | return d; |
| 1782 | } |
| 1783 | |
| 1784 | /* GUARD: for code grammars a trailing newline is insignificant, so a file |
| 1785 | * without one must extract byte-identically to the same file with one -- every |
no test coverage detected