ifdtool: redesign some structures

Redesign some array-like structures as true arrays,
and rewrite functions to dump them as loops.

This commit is one separated from the original I6d05418c.

Change-Id: I161c9a2ae83d26e658d67d0804e943fff95fe076
Signed-off-by: Bill XIE <persmule@gmail.com>
Reviewed-on: https://review.coreboot.org/21510
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
This commit is contained in:
Bill XIE
2017-09-12 11:54:48 +08:00
committed by Nico Huber
parent 1bf6506e97
commit 4651d4501c
3 changed files with 25 additions and 121 deletions

View File

@@ -18,7 +18,7 @@ PROGRAM = ifdtool
CC = gcc
INSTALL = /usr/bin/install
PREFIX = /usr/local
CFLAGS = -O2 -g -Wall -W -Werror
CFLAGS = -O2 -g -Wall -W -Werror -I../../src/commonlib/include
LDFLAGS =
OBJS = ifdtool.o