scc

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

commit de94ca2cddfae5beede22d0533c17ec32ff3653b
parent 1d8907008746478155d91a4e12962e41378c393a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 21 Aug 2019 11:54:07 +0100

[ld] Simplify Segment

There isn't any reason to have an unsigned count
and the name is not needed at all.

Diffstat:
Msrc/cmd/ld/ld.h | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cmd/ld/ld.h b/src/cmd/ld/ld.h @@ -18,9 +18,8 @@ struct section { }; struct segment { - char *name; int type; - unsigned nsec; + int nsec; unsigned long long base; unsigned long size; Section **sections;