This file is indexed.

/usr/include/libdazzle-1.0/util/dzl-int-pair.h is in libdazzle-1.0-dev 3.28.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
/* dzl-int-pair.h
 *
 * Copyright (C) 2017 Christian Hergert <chergert@redhat.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef DZL_INT_PAIR_H
#define DZL_INT_PAIR_H

#ifndef __GI_SCANNER__

#include <glib.h>
#include <stdlib.h>

G_BEGIN_DECLS

#if GLIB_SIZEOF_VOID_P == 8
# define DZL_INT_PAIR_64
#endif

#ifdef DZL_INT_PAIR_64

typedef union
{
  /*< private >*/
  struct {
    gint first;
    gint second;
  };
  gpointer ptr;
} DzlIntPair;

typedef union
{
  /*< private >*/
  struct {
    guint first;
    guint second;
  };
  gpointer ptr;
} DzlUIntPair;

#else

typedef struct
{
  /*< private >*/
  gint first;
  gint second;
} DzlIntPair;

typedef struct
{
  /*< private >*/
  guint first;
  guint second;
} DzlUIntPair;

#endif

/**
 * dzl_int_pair_new: (skip)
 */
static inline DzlIntPair *
dzl_int_pair_new (gint first, gint second)
{
  DzlIntPair pair;

  /* Avoid tripping g-ir-scanner by putting this
   * inside the inline function.
   */
  G_STATIC_ASSERT (sizeof (DzlIntPair) == 8);

  pair.first = first;
  pair.second = second;

#ifdef DZL_INT_PAIR_64
  return pair.ptr;
#else
  return g_slice_copy (sizeof (DzlIntPair), &pair);
#endif
}

/**
 * dzl_uint_pair_new: (skip)
 */
static inline DzlUIntPair *
dzl_uint_pair_new (guint first, guint second)
{
  DzlUIntPair pair;

  /* Avoid tripping g-ir-scanner by putting this
   * inside the inline function.
   */
  G_STATIC_ASSERT (sizeof (DzlUIntPair) == 8);

  pair.first = first;
  pair.second = second;

#ifdef DZL_INT_PAIR_64
  return pair.ptr;
#else
  return g_slice_copy (sizeof (DzlUIntPair), &pair);
#endif
}

/**
 * dzl_int_pair_first: (skip)
 */
static inline gint
dzl_int_pair_first (DzlIntPair *pair)
{
  DzlIntPair p;
#ifdef DZL_INT_PAIR_64
  p.ptr = pair;
#else
  p = *pair;
#endif
  return p.first;
}

/**
 * dzl_int_pair_second: (skip)
 */
static inline gint
dzl_int_pair_second (DzlIntPair *pair)
{
  DzlIntPair p;
#ifdef DZL_INT_PAIR_64
  p.ptr = pair;
#else
  p = *pair;
#endif
  return p.second;
}

/**
 * dzl_uint_pair_first: (skip)
 */
static inline guint
dzl_uint_pair_first (DzlUIntPair *pair)
{
  DzlUIntPair p;
#ifdef DZL_INT_PAIR_64
  p.ptr = pair;
#else
  p = *pair;
#endif
  return p.first;
}

/**
 * dzl_uint_pair_second: (skip)
 */
static inline guint
dzl_uint_pair_second (DzlUIntPair *pair)
{
  DzlUIntPair p;
#ifdef DZL_INT_PAIR_64
  p.ptr = pair;
#else
  p = *pair;
#endif
  return p.second;
}

/**
 * dzl_int_pair_free: (skip)
 */
static inline void
dzl_int_pair_free (DzlIntPair *pair)
{
#ifdef DZL_INT_PAIR_64
  /* Do Nothing */
#else
  g_slice_free (DzlIntPair, pair);
#endif
}

/**
 * dzl_uint_pair_free: (skip)
 */
static inline void
dzl_uint_pair_free (DzlUIntPair *pair)
{
#ifdef DZL_INT_PAIR_64
  /* Do Nothing */
#else
  g_slice_free (DzlUIntPair, pair);
#endif
}

G_END_DECLS

#endif /* __GI_SCANNER__ */

#endif /* DZL_INT_PAIR_H */