This file is indexed.

/usr/include/ncarg/hlu/ConvertersP.h is in libncarg-dev 6.3.0-13.

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
/*
 *      $Id: ConvertersP.h,v 1.6 1998-05-27 22:50:13 dbrown Exp $
 */
/************************************************************************
*									*
*			     Copyright (C)  1994			*
*	     University Corporation for Atmospheric Research		*
*			     All Rights Reserved			*
*									*
************************************************************************/
/*
 *	File:		ConvertersP.h
 *
 *	Author:		Jeff W. Boote
 *			National Center for Atmospheric Research
 *			PO 3000, Boulder, Colorado
 *
 *	Date:		Mon Jul 4 01:37:44 MDT 1994
 *
 *	Description:	
 */

#ifndef	_CNVTRS_P_H
#define	_CNVTRS_P_H

#include <ncarg/hlu/Convert.h>

#define	_NhlSTACK_ARGS_SIZE	(100)

typedef struct _NhlEnumVals_ _NhlEnumVals;

struct _NhlEnumVals_ {
	int		value;
	NhlString	name;
};

extern NhlErrorTypes _NhlRegisterEnumType(
#if	NhlNeedProto
	NhlClass	ref_class,
	NhlString	enum_name,
	_NhlEnumVals	*enum_vals,
	int		nvals
#endif
);

extern NhlErrorTypes _NhlRegisterEnumSubtype(
#if	NhlNeedProto
	NhlClass	ref_class,
	NhlString	enum_name,
        NhlString	enum_supertype_name,
	_NhlEnumVals	*enum_vals,
	int		nvals
#endif
);

extern void _NhlConvertersInitialize(
#if	NhlNeedProto
	void
#endif
);

typedef enum _NhlIndxRng {
	_NhlRngMIN,
	_NhlRngMAX,
	_NhlRngMINMAX
} _NhlIndxRng;

extern NhlErrorTypes
_NhlCvtScalarToIndex(
#if	NhlNeedProto
	NrmValue		*from,
	NrmValue		*to,
	NhlConvertArgList	args,
	int			nargs
#endif
);

extern NhlErrorTypes
_NhlCvtGenArrayToIndexGenArray(
#if	NhlNeedProto
	NrmValue		*from,
	NrmValue		*to,
	NhlConvertArgList	args,
	int			nargs
#endif
);

extern int _NhlCmpString(
#if	NhlNeedProto
	char	*s1,
	char	*s2
#endif
);

extern NhlGenArray _NhlStringToStringGenArray(
#if	NhlNeedProto
	Const char*	s
#endif
);

/*
 * This macro is used because most of the converters end the same way.
 */
#define	_NhlSetVal(type,sz,value)				\
{								\
	if((to->size > 0) && (to->data.ptrval != NULL)){	\
								\
		/* caller provided space */			\
								\
		if(to->size < sz){				\
			/* Not large enough */			\
			to->size = (unsigned int)sz;		\
			return(NhlFATAL);			\
		}						\
								\
		/* give caller copy */				\
								\
		to->size = (unsigned int)sz;			\
		*((type *)(to->data.ptrval)) = value;		\
		return(ret);					\
	}							\
	else{							\
								\
	/* caller didn't provide space - give pointer	*/	\
	/* into static data - if they modify it they	*/	\
	/* may die.					*/	\
								\
		static type val;				\
								\
		to->size = sz;					\
		val = value;					\
		to->data.ptrval = &val;				\
		return(ret);					\
	}							\
}

#endif	/* _CNVTRS_P_H */