From 1632b2484cd5efd138ef9fc3a2071d4c5fd555b7 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 12 Jan 2011 14:57:37 +0100 Subject: [PATCH] iscc.c: use C99 designated initializers Signed-off-by: Sven Verdoolaege --- iscc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/iscc.c b/iscc.c index c7e2010..d81e59c 100644 --- a/iscc.c +++ b/iscc.c @@ -22,7 +22,14 @@ static int isl_bool_error = -1; enum iscc_op { ISCC_READ, ISCC_SOURCE, ISCC_VERTICES, ISCC_LAST, ISCC_ANY, ISCC_BEFORE, ISCC_UNDER, ISCC_N_OP }; static const char *op_name[ISCC_N_OP] = { - "read", "source", "vertices", "last", "any", "before", "under" }; + [ISCC_READ] = "read", + [ISCC_SOURCE] = "source", + [ISCC_VERTICES] = "vertices", + [ISCC_LAST] = "last", + [ISCC_ANY] = "any", + [ISCC_BEFORE] = "before", + [ISCC_UNDER] = "under" +}; static enum isl_token_type iscc_op[ISCC_N_OP]; struct isl_arg_choice iscc_format[] = { -- 2.11.4.GIT