27 lines
756 B
C
27 lines
756 B
C
//
|
|
// 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);
|
|
__attribute__((nonnull))
|
|
void destroy_pat(pat_t *pat);
|
|
|
|
#endif
|
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1
|