| 1691 | } |
| 1692 | |
| 1693 | static void |
| 1694 | set_fgetline_context( |
| 1695 | const char *current_filename, |
| 1696 | boolean do_filtering, |
| 1697 | boolean tabs_are_ok) /* moot for !do_filtering */ |
| 1698 | { |
| 1699 | static const char dummyname[] = "[makedefs input]"; |
| 1700 | |
| 1701 | #ifndef MAKEDEFS_FILTER_NONASCII |
| 1702 | do_filtering = FALSE; |
| 1703 | #endif |
| 1704 | if (!current_filename) |
| 1705 | current_filename = dummyname; |
| 1706 | /* change from relative-to-dat to be relative-to-top, iff that's easy */ |
| 1707 | if (!strncmp(current_filename, "../", 3)) |
| 1708 | current_filename += 3; |
| 1709 | |
| 1710 | ascii_ctx.filename = current_filename; |
| 1711 | ascii_ctx.linenum = ascii_ctx.warncnt = 0; |
| 1712 | ascii_ctx.tabok = tabs_are_ok; |
| 1713 | ascii_ctx.dofilter = do_filtering; |
| 1714 | } |
| 1715 | |
| 1716 | #if defined(OLD_MAKEDEFS_OPTIONS) |
| 1717 | void |
no outgoing calls
no test coverage detected