ref-filter: bump 'used_atom' and related code to the top
authorKarthik Nayak <karthik.188@gmail.com>
Wed, 17 Feb 2016 18:06:10 +0000 (23:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2016 22:06:45 +0000 (14:06 -0800)
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>
ref-filter.c
index 19367ce705cb0ddd4dc54c82cef0fde4d1ac868b..6a73c5b8931b9354f16486f06778766c64c6ed2b 100644 (file)
 
 typedef enum { FIELD_STR, FIELD_ULONG, FIELD_TIME } cmp_type;
 
+/*
+ * An atom is a valid field atom listed below, possibly prefixed with
+ * a "*" to denote deref_tag().
+ *
+ * We parse given format string and sort specifiers, and make a list
+ * of properties that we need to extract out of objects.  ref_array_item
+ * structure will hold an array of values extracted that can be
+ * indexed with the "atom number", which is an index into this
+ * array.
+ */
+static const char **used_atom;
+static cmp_type *used_atom_type;
+static int used_atom_cnt, need_tagged, need_symref;
+static int need_color_reset_at_eol;
+
 static struct {
        const char *name;
        cmp_type cmp_type;
@@ -91,21 +106,6 @@ struct atom_value {
        unsigned long ul; /* used for sorting when not FIELD_STR */
 };
 
-/*
- * An atom is a valid field atom listed above, possibly prefixed with
- * a "*" to denote deref_tag().
- *
- * We parse given format string and sort specifiers, and make a list
- * of properties that we need to extract out of objects.  ref_array_item
- * structure will hold an array of values extracted that can be
- * indexed with the "atom number", which is an index into this
- * array.
- */
-static const char **used_atom;
-static cmp_type *used_atom_type;
-static int used_atom_cnt, need_tagged, need_symref;
-static int need_color_reset_at_eol;
-
 /*
  * Used to parse format string and sort specifiers
  */