One record: its kind, then each field after a TAB, then a newline. */
| 76 | |
| 77 | /* One record: its kind, then each field after a TAB, then a newline. */ |
| 78 | static void py_rec(py_sb_t *sb, const char *kind, int nfields, const char *const *f, |
| 79 | const size_t *fl) { |
| 80 | py_put(sb, kind, strlen(kind)); |
| 81 | for (int i = 0; i < nfields; i++) { |
| 82 | py_put(sb, "\t", 1); |
| 83 | py_put(sb, f[i], fl[i]); |
| 84 | } |
| 85 | py_put(sb, "\n", 1); |
| 86 | } |
| 87 | |
| 88 | static const char *py_base(const char *path) { |
| 89 | const char *slash = strrchr(path, '/'); |
no test coverage detected