aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parser.c b/src/parser.c
index f68bbf0..a8fa207 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -4,7 +4,7 @@
#include "../include/alloc.h"
#include <stdio.h>
-static WARN_UNUSED_RESULT int parser_parse_body(Parser *self, Ast *ast);
+static CHECK_RESULT int parser_parse_body(Parser *self, Ast *ast);
int parser_init(Parser *self) {
buffer_init(&self->ast_objects);
@@ -22,7 +22,7 @@ void parser_deinit(Parser *self) {
/*
LHS = 'const'|'var' IDENTIFIER
*/
-static WARN_UNUSED_RESULT int parser_parse_lhs(Parser *self, LhsExpr **result) {
+static CHECK_RESULT int parser_parse_lhs(Parser *self, LhsExpr **result) {
bool isConst;
BufferView var_name;
*result = NULL;
@@ -46,7 +46,7 @@ static WARN_UNUSED_RESULT int parser_parse_lhs(Parser *self, LhsExpr **result) {
/*
FUNC_DECL = '(' PARAM* ')' '{' BODY* '}'
*/
-static WARN_UNUSED_RESULT int parser_parse_function_decl(Parser *self, FunctionDecl **func_decl) {
+static CHECK_RESULT int parser_parse_function_decl(Parser *self, FunctionDecl **func_decl) {
bool result;
*func_decl = NULL;
@@ -85,7 +85,7 @@ static WARN_UNUSED_RESULT int parser_parse_function_decl(Parser *self, FunctionD
/*
FUNC_CALL = IDENTIFIER '(' ARGS* ')'
*/
-static WARN_UNUSED_RESULT int parser_parse_function_call(Parser *self, FunctionCall **func_call) {
+static CHECK_RESULT int parser_parse_function_call(Parser *self, FunctionCall **func_call) {
bool result;
BufferView func_name;
*func_call = NULL;
@@ -107,7 +107,7 @@ static WARN_UNUSED_RESULT int parser_parse_function_call(Parser *self, FunctionC
/*
RHS = FUNC_DECL | FUNC_CALL
*/
-static WARN_UNUSED_RESULT int parser_parse_rhs(Parser *self, Ast *rhs_expr) {
+static CHECK_RESULT int parser_parse_rhs(Parser *self, Ast *rhs_expr) {
FunctionDecl *func_decl;
FunctionCall *func_call;
Token token;