| 1866 | } |
| 1867 | |
| 1868 | int grep_buffer(struct grep_opt *opt, const char *buf, unsigned long size) |
| 1869 | { |
| 1870 | struct grep_source gs; |
| 1871 | int r; |
| 1872 | |
| 1873 | grep_source_init_buf(&gs, buf, size); |
| 1874 | |
| 1875 | r = grep_source(opt, &gs); |
| 1876 | |
| 1877 | grep_source_clear(&gs); |
| 1878 | return r; |
| 1879 | } |
| 1880 | |
| 1881 | void grep_source_init_file(struct grep_source *gs, const char *name, |
| 1882 | const char *path) |
no test coverage detected