ref-filter: bump 'used_atom' and related code to the top
Bump code to the top for usage in further patches. Signed-off-by: Karthik Nayak <Karthik.188@gmail.com> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Karthik Nayak committed
Feb 17, 2016 at 23:36 UTC
50cd83dca100174ba95baa9f6ed8426bce731ac2
1 file changed
+15
-15
ref-filter.c
+15
-15
@@ -16,6 +16,21 @@
16
17
typedef enum { FIELD_STR, FIELD_ULONG, FIELD_TIME } cmp_type;
18
19
+/*
20
+ * An atom is a valid field atom listed below, possibly prefixed with
21
+ * a "*" to denote deref_tag().
22
+ *
23
+ * We parse given format string and sort specifiers, and make a list
24
+ * of properties that we need to extract out of objects. ref_array_item
25
+ * structure will hold an array of values extracted that can be
26
+ * indexed with the "atom number", which is an index into this
27
+ * array.
28
+ */
29
+static const char **used_atom;
30
+static cmp_type *used_atom_type;
31
+static int used_atom_cnt, need_tagged, need_symref;
32
+static int need_color_reset_at_eol;
33
+
34
static struct {
35
const char *name;
36
cmp_type cmp_type;
@@ -91,21 +106,6 @@ struct atom_value {
106
unsigned long ul; /* used for sorting when not FIELD_STR */
107
};
108
94
-/*
95
- * An atom is a valid field atom listed above, possibly prefixed with
96
- * a "*" to denote deref_tag().
97
- *
98
- * We parse given format string and sort specifiers, and make a list
99
- * of properties that we need to extract out of objects. ref_array_item
100
- * structure will hold an array of values extracted that can be
101
- * indexed with the "atom number", which is an index into this
102
- * array.
103
- */
104
-static const char **used_atom;
105
-static cmp_type *used_atom_type;
106
-static int used_atom_cnt, need_tagged, need_symref;
107
-static int need_color_reset_at_eol;
108
-
109
/*
110
* Used to parse format string and sort specifiers
111
*/