|
16 | 16 |
|
17 | 17 | typedef enum { FIELD_STR, FIELD_ULONG, FIELD_TIME } cmp_type; |
18 | 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 | + |
19 | 34 | static struct { |
20 | 35 | const char *name; |
21 | 36 | cmp_type cmp_type; |
@@ -91,21 +106,6 @@ struct atom_value { |
91 | 106 | unsigned long ul; /* used for sorting when not FIELD_STR */ |
92 | 107 | }; |
93 | 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 | 109 | /* |
110 | 110 | * Used to parse format string and sort specifiers |
111 | 111 | */ |
|
0 commit comments