From 1a8095c6d774e3448f6afa1aeec2bc79c5bb545e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 28 Sep 2020 21:30:43 -0700 Subject: Starting to add better error messages --- compiler.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler.h') diff --git a/compiler.h b/compiler.h index d5b4ff1..89693af 100644 --- a/compiler.h +++ b/compiler.h @@ -9,13 +9,13 @@ #include "types.h" #include "file_loader.h" -__attribute__((nonnull(2))) +__attribute__((nonnull(1,2))) vm_op_t *bpeg_simplepattern(file_t *f, const char *str); -__attribute__((nonnull(2))) +__attribute__((nonnull(1,2))) vm_op_t *bpeg_stringpattern(file_t *f, const char *str); __attribute__((nonnull(1,2))) vm_op_t *bpeg_replacement(vm_op_t *pat, const char *replacement); -__attribute__((nonnull(2))) +__attribute__((nonnull(1,2))) vm_op_t *bpeg_pattern(file_t *f, const char *str); #endif -- cgit v1.2.3