2021-01-12 21:04:43 -08:00
|
|
|
//
|
2021-01-15 19:35:39 -08:00
|
|
|
// definitions.h - Header file defining pattern rules
|
2021-01-12 21:04:43 -08:00
|
|
|
//
|
2021-01-15 19:35:39 -08:00
|
|
|
#ifndef DEFINITIONS__H
|
|
|
|
#define DEFINITIONS__H
|
2020-09-11 01:28:06 -07:00
|
|
|
|
2021-01-15 19:27:25 -08:00
|
|
|
#include "files.h"
|
2020-09-11 01:28:06 -07:00
|
|
|
#include "types.h"
|
|
|
|
|
2021-01-17 13:33:10 -08:00
|
|
|
__attribute__((nonnull(3,4), returns_nonnull))
|
|
|
|
def_t *with_def(def_t *defs, size_t namelen, const char *name, pat_t *pat);
|
2021-01-10 01:45:40 -08:00
|
|
|
__attribute__((nonnull(2)))
|
|
|
|
def_t *load_grammar(def_t *defs, file_t *f);
|
2021-01-17 23:28:19 -08:00
|
|
|
__attribute__((pure, nonnull(3)))
|
|
|
|
def_t *lookup(def_t *defs, size_t namelen, const char *name);
|
2021-01-13 01:48:36 -08:00
|
|
|
__attribute__((nonnull(1)))
|
2021-07-26 20:59:45 -07:00
|
|
|
def_t *free_defs(def_t *defs, def_t *stop);
|
2020-09-11 01:28:06 -07:00
|
|
|
|
|
|
|
#endif
|
2020-09-11 01:38:44 -07:00
|
|
|
// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1
|