This file is indexed.

/usr/include/ncarg/ncl/NclVar.h is in libncarg-dev 6.4.0-9.

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
/*
 *      $Id: NclVar.h,v 1.11 2010-04-14 21:29:48 huangwei Exp $
 */
/************************************************************************
*									*
*			     Copyright (C)  1994			*
*	     University Corporation for Atmospheric Research		*
*			     All Rights Reserved			*
*									*
************************************************************************/
/*
 *	File:		
 *
 *	Author:		Ethan Alpert
 *			National Center for Atmospheric Research
 *			PO 3000, Boulder, Colorado
 *
 *	Date:		Thu Jan 13 15:04:41 MST 1994
 *
 *	Description:	
 */
#ifndef NclVar_h
#define NclVar_h
#include "NclData.h"

typedef NhlErrorTypes (*NclAssignFunction)(
#if	NhlNeedProto
	struct _NclVarRec * /*self*/,
	struct _NclMultiDValDataRec * /* value */,
	struct _NclSelectionRecord * /* sel_ptr */
#endif
);

typedef NhlErrorTypes (*NclAssignVarToVarFunc)(
#if	NhlNeedProto
	struct _NclVarRec * /*lhs*/,
	NclSelectionRecord * /*lhs_sel_ptr*/,
	struct _NclVarRec * /* rhs */,
	NclSelectionRecord * /*rhs_sel_ptr*/
#endif
);

typedef struct _NclVarRec *(*NclReadFunction)(
#if	NhlNeedProto
	struct _NclVarRec * /*self*/,
	struct _NclSelectionRecord * /* sel_ptr */
#endif
);

typedef struct _NclDataRec *(*NclReadValueFunction)(
#if	NhlNeedProto
	struct _NclVarRec * /*self*/,
	struct _NclSelectionRecord * /* sel_ptr */,
	NclScalar * /*new_missing*/
#endif
);

typedef void (*NclVarPrintFunction)(
#if	NhlNeedProto
struct 	_NclObjRec	* /*self*/,
FILE	*		  /*fp*/
#endif
);

typedef struct _NclMultiDValDataRec * (*NclReadAttribute)(
#if	NhlNeedProto
struct  _NclVarRec	* /*self*/,
char	*		/* attname */,
struct 	_NclSelectionRecord * /*sel_ptr*/
#endif
);

typedef NhlErrorTypes (*NclWriteAttribute)(
#if	NhlNeedProto
struct  _NclVarRec	* /*self*/,
char	*		/* attname */,
struct  _NclMultiDValDataRec	* /*value */,
struct 	_NclSelectionRecord * /*sel_ptr*/
#endif
);

typedef struct _NclMultiDValDataRec * (*NclReadDimension)(
#if	NhlNeedProto
struct  _NclVarRec	* /*self*/,
char	*		/*dim_name*/,
long			/*dim_num*/
#endif
);

typedef NhlErrorTypes  (*NclWriteDimension)(
#if	NhlNeedProto
struct  _NclVarRec	* /*self*/,
long			/*dim_num*/,
char	*		/*dim_name*/
#endif
);

typedef struct _NclVarRec * (*NclReadCoordinate)(
#if     NhlNeedProto
struct  _NclVarRec 	* /*self*/,
char	*		/* coord_name */,
struct  _NclSelectionRecord * /*sel_ptr*/
#endif
);

typedef NclObjTypes (*NclRepValueFunc) (
#if	NhlNeedProto
struct  _NclVarRec	* /*self */
#endif
);

typedef struct  _NclDataRec * (*NclGetValFunc)(
#if	NhlNeedProto
struct _NclVarRec 	* /*self*/
#endif
);

typedef struct _NclDataRec *(*NclVarCoerceFunc)(
#if     NhlNeedProto
        struct _NclVarRec*     /*self*/,
        NclObjTypes             /*coerce_to_obj*/,
        NclScalar *		/*coerce_to_obj*/
#endif
);

typedef NhlErrorTypes (*NclDeleteCoordinate)(
#if     NhlNeedProto
struct  _NclVarRec 	* /*self*/,
char	*		/* coord_name */
#endif
);

typedef NhlErrorTypes (*NclWriteCoordinate)(
#if     NhlNeedProto
struct  _NclVarRec 	* /*self*/,
struct  _NclMultiDValDataRec 	* /*value*/,
char	*		/* coord_name */,
struct  _NclSelectionRecord * /*sel_ptr*/
#endif
);

typedef int (*NclIsAFunc) (
#if	NhlNeedProto
	struct _NclVarRec * /*self*/,
	char * /*name*/
#endif
);

typedef struct  _NclDimRec * (*NclGetDimInfo)(
#if	NhlNeedProto
struct _NclVarRec 	* /*self*/,
char *			/*dim_name*/,
long			/*dim_num*/
#endif
);

typedef struct _NclVarRec * (*NclCopyVarFunction)(
#if	NhlNeedProto
struct 	_NclVarRec * /*thevar*/,
struct _NclSymbol*	/*new_name*/,
struct 	_NclVarRec*	/* storage */
#endif
);

struct _NclVarRec *_NclVarCreate(
#if	NhlNeedProto
	struct _NclVarRec *	/* inst */,
	struct _NclObjClassRec *	/* theclass */,
	NclObjTypes 	/* obj_type */,
	unsigned int 	/* obj_type_mask */,
	struct _NclSymbol  * /* thesym */,
	struct _NclMultiDValDataRec * /* value */,
	struct _NclDimRec * /*dim_info*/,
	int		/*att_id*/,
	int* 		/*coords*/,
	NclVarTypes /* var_type */,
	char * /*var_name*/,
	NclStatus /*status*/
#endif
);


typedef struct _NclVarClassPart {
	NclRepValueFunc		rep_val;
	NclGetValFunc		get_val;
	NclVarCoerceFunc	var_coerce;
	NclCopyVarFunction	copy_var;
	

	NclAssignFunction	write_func;
	NclAssignVarToVarFunc	write_vv_func;
	NclReadFunction		read_func;
	NclReadValueFunction	read_val_func;
	
	NclReadAttribute	read_att_func;	
	NclIsAFunc		is_att_func;	
	NclWriteAttribute	write_att_func;	

	NclIsAFunc		is_dim_func;	
	NclReadDimension 	read_dim_func;	
	NclGetDimInfo   	get_dim_info;	
	NclWriteDimension 	write_dim_func;	

	NclIsAFunc		is_coord_func;	
	NclReadCoordinate	read_coordinate;
	NclWriteCoordinate	write_coordinate;
	NclDeleteCoordinate	delete_coordinate;
} NclVarClassPart;

typedef struct _NclVarPart {
	NclVarTypes	var_type;
	int	var_quark;
	struct _NclSymbol* thesym;
	int thevalue_id;
	int n_dims;
	NclDimRec  dim_info[NCL_MAX_DIMENSIONS];
	int				att_id;
	_NhlCB				att_cb;
	int coord_vars[NCL_MAX_DIMENSIONS];
	NclSelectionRecord *sel_rec;
	NclObj ref_var;  /* the referenced variable: used only inside func_proc calls */
}NclVarPart;
 
typedef struct _NclVarClassRec{
	NclObjClassPart	obj_class;
	NclVarClassPart var_class;
}NclVarClassRec;

typedef struct _NclVarRec {
	NclObjPart      obj;
	NclVarPart	var;
}NclVarRec;

typedef NclVarRec *NclVar;
typedef NclVarClassRec *NclVarClass;

extern NclObjClass nclVarClass;

extern NclVarClassRec nclVarClassRec;

extern NhlErrorTypes VarPrint(NclObj theobj,FILE *fp);
extern NhlErrorTypes VarPrintVarSummary(NclObj theobj,FILE *fp);

void _NclVarMissingNotify(
#if     NhlNeedProto
NhlArgVal /*cbdata*/,
NhlArgVal /*udata*/
#endif
);

NhlErrorTypes _NclReplaceCoordVar(struct _NclVarRec *self,
                                  struct _NclMultiDValDataRec *value,
                                  char *coord_name,
                                  struct _NclSelectionRecord *sel_ptr);
#endif /* NclVar_h */