diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 09:15:25 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 09:15:25 -0800 |
| commit | 3ededef53d0704f8b89c55f60bef52a64b86d62c (patch) | |
| tree | 686fc67dcc174e4ae729408577c93a25fab2592b /pattern.c | |
| parent | 65141b240218df4c40196db63429b90b1cb698a9 (diff) | |
Static analysis part 1
Diffstat (limited to 'pattern.c')
| -rw-r--r-- | pattern.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -21,6 +21,8 @@ __attribute__((nonnull)) static pat_t *_bp_simplepattern(file_t *f, const char *str); __attribute__((nonnull(1,2,3,6))) static pat_t *new_range(file_t *f, const char *start, const char *end, ssize_t min, ssize_t max, pat_t *repeating, pat_t *sep); +__attribute__((nonnull(1,2))) +static pat_t *bp_simplepattern(file_t *f, const char *str); // // Allocate a new pattern for this file (ensuring it will be automatically @@ -149,7 +151,7 @@ pat_t *chain_together(file_t *f, pat_t *first, pat_t *second) // // Wrapper for _bp_simplepattern() that expands any postfix operators // -pat_t *bp_simplepattern(file_t *f, const char *str) +static pat_t *bp_simplepattern(file_t *f, const char *str) { pat_t *pat = _bp_simplepattern(f, str); if (pat == NULL) return pat; |
