diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 19:32:37 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-15 19:32:37 -0800 |
| commit | 44573fc224796f712254d7ff7fdc0a87aeb6a84c (patch) | |
| tree | c19bd97e082f54d5a73846fb5b8b6fcb295c74dc /pattern.h | |
| parent | 270509af3bb0546abd3265d6b19cb12f975d14a7 (diff) | |
Rename compiler -> pattern
Diffstat (limited to 'pattern.h')
| -rw-r--r-- | pattern.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pattern.h b/pattern.h new file mode 100644 index 0000000..933eb83 --- /dev/null +++ b/pattern.h @@ -0,0 +1,24 @@ +// +// pattern.h - Header file for BP pattern compilation. +// +#ifndef PATTERN__H +#define PATTERN__H + +#include "files.h" +#include "types.h" + +__attribute__((nonnull)) +pat_t *new_pat(file_t *f, const char *start, enum pattype_e type); +__attribute__((nonnull(1,2))) +pat_t *bp_simplepattern(file_t *f, const char *str); +__attribute__((nonnull(1,2))) +pat_t *bp_stringpattern(file_t *f, const char *str); +__attribute__((nonnull(1,2))) +pat_t *bp_replacement(file_t *f, pat_t *replacepat, const char *replacement); +__attribute__((nonnull)) +pat_t *bp_pattern(file_t *f, const char *str); +__attribute__((nonnull)) +def_t *bp_definition(file_t *f, const char *str); + +#endif +// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 |
