Skip to content

Commit

Permalink
PORT: Use C99 constructs for a portable version of struct functor
Browse files Browse the repository at this point in the history
Structs may use ``type name[]`` as last field for a dynamic array.
  • Loading branch information
JanWielemaker committed Jan 4, 2025
1 parent 7b25563 commit cfb2b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pl-incl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1602,7 +1602,7 @@ struct mark

struct functor
{ word definition; /* Tagged definition pointer */
word arguments[1]; /* arguments vector */
word arguments[]; /* arguments vector */
};

struct clause_bucket
Expand Down

0 comments on commit cfb2b8f

Please sign in to comment.