Skip to content

Commit

Permalink
preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
thradams committed Mar 23, 2024
1 parent 47d5fce commit 4e6aca0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -11218,6 +11218,8 @@ void checked_read_object(struct parser_ctx* ctx,
const struct token* position_token,
bool check_pointed_object);

bool object_is_zero_or_null(const struct object* p_object);



#if __STDC_VERSION__ >= 202311L
Expand Down Expand Up @@ -23088,6 +23090,11 @@ void object_assignment(struct parser_ctx* ctx,

}

bool object_is_zero_or_null(const struct object* p_object)
{
return (p_object->state == OBJECT_STATE_NULL) ||
(p_object->state == OBJECT_STATE_ZERO);
}



Expand Down
5 changes: 5 additions & 0 deletions src/object.c
Original file line number Diff line number Diff line change
Expand Up @@ -2192,3 +2192,8 @@ void object_assignment(struct parser_ctx* ctx,

}

bool object_is_zero_or_null(const struct object* p_object)
{
return (p_object->state == OBJECT_STATE_NULL) ||
(p_object->state == OBJECT_STATE_ZERO);
}
2 changes: 2 additions & 0 deletions src/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,5 @@ void checked_read_object(struct parser_ctx* ctx,
struct object* p_object,
const struct token* position_token,
bool check_pointed_object);

bool object_is_zero_or_null(const struct object* p_object);

0 comments on commit 4e6aca0

Please sign in to comment.