This file is indexed.

/usr/include/ncarg/hlu/BaseP.h is in libncarg-dev 6.3.0-6build1.

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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/*
 *      $Id: BaseP.h,v 1.17 1997-08-11 23:16:10 ethan Exp $
 */
/************************************************************************
*									*
*			     Copyright (C)  1992			*
*	     University Corporation for Atmospheric Research		*
*			     All Rights Reserved			*
*									*
************************************************************************/
/*
 *	File:		BaseP.h
 *
 *	Author:		Jeff W. Boote
 *			National Center for Atmospheric Research
 *			PO 3000, Boulder, Colorado
 *
 *	Date:		Mon Aug 31 13:37:49 MDT 1992
 *
 *	Description:	This file makes all the declarations neccessary to
 *			sub-class the BaseClass.
 */
#ifndef _NBaseP_h
#define _NBaseP_h

#include <ncarg/hlu/hluP.h>
#include <ncarg/hlu/NresDB.h>
#include <ncarg/hlu/ConvertP.h>
#include <ncarg/hlu/BaseI.h>

/*
 * Class name for resources that are used to determine which programming lang.
 * mode to use.
 */
#define	_NhlClangMode	"Lang.Mode"

typedef struct _NhlObjLayerRec *NhlObjLayer;
typedef struct _NhlObjClassRec *NhlObjClass;

typedef struct _NhlBaseLayerRec *NhlBaseLayer;
typedef struct _NhlBaseClassRec *NhlBaseClass;

typedef struct _NhlChildRec _NhlChildNode, *_NhlChildList;

struct _NhlChildRec {
	int			pid;
	NhlBoolean		svalscalled;
	NhlClass		theclass;
	NrmNameList		resources;
	_NhlChildList		next;
};

typedef struct _NhlAllChildRec _NhlAllChildNode, *_NhlAllChildList;

struct _NhlAllChildRec {
	int			pid;
	_NhlAllChildList	next;
};

/*
 * This structure is a simplified version of the BaseLayerPart.
 * It is used to create objects that don't do graphics and stuff.
 */
typedef struct _NhlObjLayerPart {
	int		id;		/* index into global layer Table*/
	NhlLayer	self;		/* pointer to self		*/
	NhlClass	layer_class;	/* pointer to ClassRec		*/
	NhlLayer	parent;		/* parent Layer			*/
	NrmName		nrm_name;	/* Layer resource name quarkified*/
	Const char	*name;		/* Layer resource name		*/
	NhlLayer	appobj;		/* App Class Object		*/
	NhlBoolean	being_destroyed;
	_NhlCBList	destroycb;
	_NhlCBList	resvaluesetcb;
	_NhlCBList	cchildcb;
	_NhlAllChildList	all_children;
	int		appid;
	_NhlCB		app_destroy;
	NhlPointer	ncl_data;
	NhlPointer	gui_data;
	NhlPointer	gui_data2;
} NhlObjLayerPart;


NhlDOCREF(/design/hlu/Base.html,Base Object Design)
NhlDOCTAG(NhlBaseLayerPart)
typedef struct _NhlBaseLayerPart {
	int		id;		/* index into global layer Table*/
	NhlLayer	self;		/* pointer to self		*/
	NhlClass	layer_class;	/* pointer to ClassRec		*/
	NhlLayer	parent;		/* parent Layer			*/
	NrmName		nrm_name;	/* Layer resource name quarkified*/
	Const char	*name;		/* Layer resource name		*/
	NhlLayer	appobj;		/* App Class Object		*/
	NhlBoolean	being_destroyed;
	_NhlCBList	destroycb;
	_NhlCBList	resvaluesetcb;
	_NhlCBList	cchildcb;
	_NhlAllChildList	all_children;
	int		appid;
	_NhlCB		app_destroy;
	NhlPointer	ncl_data;
	NhlPointer	gui_data;
	NhlPointer	gui_data2;

/* NOTHING CAN BE ADDED BEFORE HERE UNLESS IT IS ALSO ADDED IN ObjLayerPart */

	NhlBoolean		in_init;	/* NhlCreateChild valid call */
	_NhlChildList		children;
	_NhlChildArgList	child_args;

	NhlLayer		wkptr;
	/* import Values */
} NhlBaseLayerPart;

typedef struct _NhlObjRec {
	NhlObjLayerPart	base;
} NhlObjLayerRec;

typedef struct _NhlLayerRec {
	NhlBaseLayerPart	base;
} NhlBaseLayerRec, NhlLayerRec;

typedef struct _NhlChildResRec _NhlChildResNode, *_NhlChildResList;

struct _NhlChildResRec {
	NhlClass		theclass;
	NhlBoolean		autosetval;
	NrmNameList		resources;
	_NhlChildResList	next;
};

typedef struct _NhlRawObjCBRec{
	NhlString	cbname;
	unsigned int	offset;
	int		hash_mult;
	_NhlCBAddHash	add_hash;
	_NhlCBCallHash	call_hash;
	_NhlCBTaskProc	task_proc;
} _NhlRawObjCB, *_NhlRawObjCBList;

typedef struct _NhlCookedObjCBRec{
	NrmQuark	cbquark;
	unsigned int	offset;
	int		hash_mult;
	_NhlCBAddHash	add_hash;
	_NhlCBCallHash	call_hash;
	_NhlCBTaskProc	task_proc;
} _NhlCookedObjCB, *_NhlCookedObjCBList;

typedef struct _NhlRawClassCBRec{
	NhlString	cbname;
	_NhlCBList	cblist;
	int		hash_mult;
	_NhlCBAddHash	add_hash;
	_NhlCBCallHash	call_hash;
	_NhlCBTaskProc	task_proc;
} _NhlRawClassCB, *_NhlRawClassCBList;

typedef struct _NhlCookedClassCBRec{
	NrmQuark	cbquark;
	_NhlCBList	cblist;
	int		hash_mult;
	_NhlCBAddHash	add_hash;
	_NhlCBCallHash	call_hash;
	_NhlCBTaskProc	task_proc;
} _NhlCookedClassCB, *_NhlCookedClassCBList;

typedef NhlErrorTypes (*NhlClassPartInitProc)(
#if	NhlNeedProto
	NhlClass	/* lc to initialize */
#endif
);

typedef NhlErrorTypes (*NhlClassInitProc)(
#if	NhlNeedProto
	void
#endif
);

typedef NhlErrorTypes (*NhlInitProc)(
#if	NhlNeedProto
	NhlClass,	/* class of instance to init	*/
	NhlLayer,	/* request layer		*/
	NhlLayer,	/* new layer			*/
	_NhlArgList,	/* args to set in layer		*/
	int		/* nargs			*/
#endif
);

typedef NhlErrorTypes (*NhlSetValuesProc)(
#if	NhlNeedProto
	NhlLayer	old,		/* old		*/
	NhlLayer	req,		/* requested	*/
	NhlLayer	new,		/* new		*/
	_NhlArgList	args,		/* args to set	*/
	int		nargs		/* nargs	*/
#endif
);

typedef NhlErrorTypes (*NhlGetValuesProc)(
#if	NhlNeedProto
	NhlLayer,	/* layer	*/
	_NhlArgList,	/* args to get	*/
	int		/* nargs	*/
#endif
);

typedef NhlErrorTypes (*NhlReparentProc)(
#if	NhlNeedProto
	NhlLayer	l,
	NhlLayer	parent
#endif
);

typedef NhlErrorTypes (*NhlDrawProc)(
#if	NhlNeedProto
	NhlLayer		/* layer to draw	*/
#endif
);

typedef NhlErrorTypes (*NhlDestroyProc)(
#if	NhlNeedProto
	NhlLayer		/* layer to destroy	*/
#endif
);

typedef struct _NhlObjClassPart {
	NhlString		class_name;
	NrmClass		nrm_class;
	unsigned int		layer_size;
	int			class_inited;
	NhlClass 		superclass;
	NhlConvertPtr		*cvt_table;

	NhlResourceList		resources;
	int			num_resources;
	NrmNameList		all_resources;
	_NhlRawObjCBList	callbacks;
	int			num_callbacks;
	_NhlRawClassCBList	class_callbacks;
	int			num_class_callbacks;

	NhlClassPartInitProc	class_part_initialize;
	NhlClassInitProc	class_initialize;
	NhlInitProc		layer_initialize;
	NhlSetValuesProc	layer_set_values;
	NhlSetValuesProc	layer_set_values_hook;
	NhlGetValuesProc	layer_get_values;
	NhlReparentProc		layer_reparent;
	NhlDestroyProc		layer_destroy;
} NhlObjClassPart;

/*
 * NhlDOCREF(/design/hlu/Base.html,Base Object Design)
 */
NhlDOCTAG(NhlBaseClassPart)
typedef struct _NhlBaseClassPart {
	NhlString		class_name;
	NrmClass		nrm_class;
	unsigned int		layer_size;
	int			class_inited;
	NhlClass 		superclass;
	NhlConvertPtr		*cvt_table;

	NhlResourceList		resources;
	int			num_resources;
	NrmNameList		all_resources;
	_NhlRawObjCBList	callbacks;
	int			num_callbacks;
	_NhlRawClassCBList	class_callbacks;
	int			num_class_callbacks;

	NhlClassPartInitProc	class_part_initialize;
	NhlClassInitProc	class_initialize;
	NhlInitProc		layer_initialize;
	NhlSetValuesProc	layer_set_values;
	NhlSetValuesProc	layer_set_values_hook;
	NhlGetValuesProc	layer_get_values;
	NhlReparentProc		layer_reparent;
	NhlDestroyProc		layer_destroy;
/* NOTHING CAN BE ADDED ABOVE HERE WITHOUT ADDING IT TO ObjClassPart */

	_NhlChildResList	child_resources;

	NhlDrawProc		layer_draw;

	NhlDrawProc		layer_pre_draw;
	NhlDrawProc		layer_draw_segonly;
	NhlDrawProc		layer_post_draw;
	NhlDrawProc		layer_clear;
} NhlBaseClassPart;

typedef struct _NhlObjClassRec {
	NhlObjClassPart	base_class;
} NhlObjClassRec;

typedef struct _NhlClassRec {
	NhlBaseClassPart	base_class;
} NhlBaseClassRec, NhlClassRec ;

extern NhlObjClassRec NhlobjClassRec;
extern NhlClassRec NhllayerClassRec;

#define NhlbaseClassRec NhllayerClassRec

#define _NhlName(instance) ((instance!=NULL)?(((NhlLayer)instance)->base.name):"(null)")

extern void _NhlBaseAppDestroyCB(
#if	NhlNeedProto
	NhlArgVal	cbdata,
	NhlArgVal	udata
#endif
);

extern NhlBoolean _NhlBaseAddChild(
#if	NhlNeedProto
	NhlLayer	parent,
	int		child
#endif
);

extern void _NhlBaseRemoveChild(
#if	NhlNeedProto
	NhlLayer	l
#endif
);

extern NhlBoolean _NhlBaseMoveChild(
#if	NhlNeedProto
	NhlLayer	parent,	/* new parent	*/
	NhlLayer	child	/* child	*/
#endif
);

#endif /* _NBaseP_h */