From 4786554c2072f6736a464101da43cc90e21f2326 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Oct 2022 21:48:51 -0400 Subject: Add trailing commas to enum declarations This has been supported since C99 and C++11, and makes for less noisy diffs and fewer conflicts when things are added. --- src/writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/writer.c b/src/writer.c index e78e100b..26ed01c0 100644 --- a/src/writer.c +++ b/src/writer.c @@ -22,7 +22,7 @@ typedef enum { FIELD_SUBJECT, FIELD_PREDICATE, FIELD_OBJECT, - FIELD_GRAPH + FIELD_GRAPH, } Field; typedef struct { @@ -50,7 +50,7 @@ typedef enum { SEP_GRAPH_BEGIN, ///< Start of graph ('{') SEP_GRAPH_END, ///< End of graph ('}') SEP_URI_BEGIN, ///< URI start quote ('<') - SEP_URI_END ///< URI end quote ('>') + SEP_URI_END, ///< URI end quote ('>') } Sep; typedef struct { -- cgit v1.2.1