scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 538badcbb8c30721292a1ffae1c2a3257e23ed3e
parent aa246eb1d1ffd3f5ce9b6fc297bf01789f0b79c8
Author: Eddie Thieda <eddie.thieda@gmail.com>
Date:   Fri, 16 Aug 2019 02:26:06 -0400

Fixed some typos in the comments about the union.

Diffstat:
Msrc/libscc/alloc.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/libscc/alloc.c b/src/libscc/alloc.c @@ -3,14 +3,14 @@ /* * This is the most pedantic piece of code that I have written - * in my life. The next union is used to enforce the aligmnet - * of the address returned by new(). A union has the aligment - * of the field with the biggest aligment. This union has all - * the types that we use in scc, and we round all the address - * to the aligment of this struct, so we can be sure that any + * in my life. The next union is used to enforce the alignment + * of the address returned by new(). A union has the alignment + * of the field with the biggest alignment. This union has all + * the types that we use in scc, and we round all the addresses + * to the alignment of this struct, so we can be sure that any * pointer using that address will be safe. The field ap is * in the union to be sure that struct pointers are included - * in the list, although they will have the same aligment or + * in the list, although they will have the same alignment or * smaller than void *, but I wanted to be pedantic. */ union hdr {