/usr/include/ncarg/hlu/hlu.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 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 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 | /*
* $Id: hlu.h,v 1.42 2010-04-14 21:29:47 huangwei Exp $
*/
/************************************************************************
* *
* Copyright (C) 1992 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: hlu.h
*
* Author: Jeff W. Boote
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Mon Aug 31 09:09:12 MDT 1992
*
* Description: This file contains all the public information neccessary
* to write a program using the hlu library.
*/
#ifndef _NHLU_h
#define _NHLU_h
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <ncarg/hlu/defs.h>
#ifndef NhlNeedProto
#ifdef __STDC__
#define Const const
#define NhlNeedProto 1
#else
#define Const
#define NhlNeedProto 0
#endif
#endif /* NhlNeedProto */
#if NhlNeedProto
#define NhlNeedVarArgProto True
#include <stdlib.h>
#else
#define NhlNeedVarArgProto False
#endif
#include <ncarg/c.h>
/*
* Macro: _NHLCALLF
*
* Description: This macro is used whenever a Fortran fuction is being called
* from C. It is used to deal with different calling conventions.
* It is also used when defining a function in C that will be
* called from Fortran.
*/
#ifndef _NHLCALLF
#define _NHLCALLF(reg,caps) NGCALLF(reg,caps)
#endif /* _NHLCALLF */
#define True 1
#define False 0
#define BIGNUMBER 99e99
#define LITTLENUMBER -99e99
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
#define NhlTImmediate "Immediate"
#define NhlTProcedure "Procedure"
/* public pointer types supported */
#define NhlTPointer "Pointer"
#define NhlTString "String"
#define NhlTScalar "Scalar"
/*
* Character is different from Byte when it comes to conversions to and from
* String.
*/
/* public int types supported */
#define NhlTCharacter "Character"
#define NhlTByte "Byte"
#define NhlTShort "Short"
#define NhlTInteger "Integer"
#define NhlTLong "Long"
#define NhlTInt64 "Int64"
#define NhlTUshort "Ushort"
#define NhlTUint "Uint"
#define NhlTUlong "Ulong"
#define NhlTUint64 "Uint64"
#define NhlTUbyte "Ubyte"
/* public real types supported */
#define NhlTFloat "Float"
#define NhlTDouble "Double"
#define NhlTEnum "Enum"
/* public enumerations supported */
#define NhlTBoolean "Boolean"
#define NhlTFont "Font"
/* public Array types */
#define NhlTGenArray "GenArray"
/*
* This type is a one element GenArray - used for "variable" type scalar's.
*/
#define NhlTVariable "Variable"
#define NhlTStringGenArray "StringGenArray"
#define NhlTByteGenArray "ByteGenArray"
#define NhlTCharacterGenArray "CharacterGenArray"
#define NhlTShortGenArray "ShortGenArray"
#define NhlTIntegerGenArray "IntegerGenArray"
#define NhlTLongGenArray "LongGenArray"
#define NhlTInt64GenArray "Int64GenArray"
#define NhlTUshortGenArray "UshortGenArray"
#define NhlTUintGenArray "UintGenArray"
#define NhlTUlongGenArray "UlongGenArray"
#define NhlTUint64GenArray "Uint64GenArray"
#define NhlTUbyteGenArray "UbyteGenArray"
#define NhlTFloatGenArray "FloatGenArray"
#define NhlTDoubleGenArray "DoubleGenArray"
#define NhlTEnumGenArray "EnumGenArray"
#define NhlTBooleanGenArray "BooleanGenArray"
/* These types are needed by ncl - it is a semi-public type */
/* They are only supported in converters as a "from" type */
#define NhlTQuark "Quark"
#define NhlTQuarkGenArray "QuarkGenArray"
#ifndef LLONG_MAX
/* Minimum and maximum values a `signed long long int' can hold. */
# define LLONG_MAX 9223372036854775807LL
# define LLONG_MIN (-LLONG_MAX - 1LL)
#endif
#ifndef ULLONG_MAX
/* Maximum value an `unsigned long long int' can hold. (Minimum is 0.) */
# define ULLONG_MAX 18446744073709551615ULL
#endif
extern long long local_strtoll(const char *nptr, char **endptr, int base);
typedef char *NhlString;
typedef void *NhlPointer;
typedef int NhlBoolean;
typedef int NhlFont;
typedef char NhlByte;
/* This declaration will hopefully move to hluP.h */
typedef struct NhlGenArrayRec_ *NhlGenArray;
typedef enum _NhlErrType{
NhlFATAL = -4,
NhlWARNING = -3,
NhlINFO = -2,
NhlNOERROR = -1
} NhlErrorTypes;
#define NhlOffset(p_type,field) \
((unsigned int) (((char *) (&(((p_type*)NULL)->field))) - ((char *) NULL)))
#define NhlNumber(arr) ((unsigned int) (sizeof(arr) / sizeof(arr[0])))
union _NhlType_ {
NhlPointer ptrval;
unsigned char byteval;
char charval;
unsigned char ubyteval;
int listval;
short shrtval;
int intval;
long lngval;
float fltval;
NhlString strval;
double dblval;
long long int64val;
unsigned short ushortval;
unsigned int uintval;
unsigned long ulongval;
unsigned long long uint64val;
};
typedef union _NhlType_ NhlArgVal;
#if DEBUG
#define NhlINITVAR(var) memset(&(var),0,sizeof(var))
#else
#define NhlINITVAR(var)
#endif
NhlDOCTAG(NhlSArg)
typedef struct NhlSArgRec{
NhlString name;
NhlArgVal value;
} NhlSArg, *NhlSArgList;
NhlDOCTAG(NhlGArg)
typedef struct NhlGArgRec{
NhlString resname;
NhlArgVal value;
} NhlGArg, *NhlGArgList;
typedef void (*NhlFreeFunc)(
#if NhlNeedProto
NhlPointer ptr
#endif
);
typedef struct _NhlClassRec *NhlClass;
/* These are here because they needs defs from above. */
#include <ncarg/hlu/Error.h>
#include <ncarg/hlu/ResList.h>
/*
* These functions are used to create and destroy NhlGenArray description
* records.
*/
NhlDOCTAG(NhlCreateGenArray)
NhlSRCREF(hlu/hlu.c#NhlCreateGenArray)
extern NhlGenArray NhlCreateGenArray(
#if NhlNeedProto
NhlPointer data, /* data array */
NhlString type, /* type of each element */
unsigned int size, /* size of each element */
int num_dimensions, /* number of dimensions */
ng_size_t *len_dimensions /* number of dimensions */
#endif
);
NhlDOCTAG(NhlFreeGenArray)
NhlSRCREF(hlu/hlu.c#NhlFreeGenArray)
extern void NhlFreeGenArray(
#if NhlNeedProto
NhlGenArray gen /* GenArray description record to free */
#endif
);
/*
* These functions will allow us to impliment our own malloc if we need to
*/
extern void *NhlMalloc(
#if NhlNeedProto
ng_usize_t size
#endif
);
extern void *NhlCalloc(
#if NhlNeedProto
ng_usize_t num,
ng_usize_t size
#endif
);
extern void *NhlRealloc(
#if NhlNeedProto
void*, /* pointer to copy */
ng_usize_t /* size of requested memory */
#endif
);
extern NhlErrorTypes NhlFree(
#if NhlNeedProto
void* /* pointer to memory to free */
#endif
);
extern Const char *NhlName(
#if NhlNeedProto
int pid /* id of an object */
#endif
);
extern Const char *NhlClassName(
#if NhlNeedProto
int pid /* id of object whose class name is requested */
#endif
);
extern NhlBoolean NhlClassIsSubclass(
#if NhlNeedProto
NhlClass cl,
NhlClass ref_class
#endif
);
extern NhlBoolean NhlIsClass(
#if NhlNeedProto
int id,
NhlClass cl
#endif
);
extern NhlClass NhlClassOfObject(
#if NhlNeedProto
int id
#endif
);
NhlDOCTAG(NhlSetSArg)
NhlSRCREF(hlu/hlu.c#NhlSetSArg)
/*VARARGS2*/
extern void NhlSetSArg(
#if NhlNeedVarArgProto
NhlSArg *arg, /* arg to set */
NhlString resname, /* resource to set */
... /* value to set arg to */
#endif
);
NhlDOCTAG(NhlSetGArg)
NhlSRCREF(hlu/hlu.c#NhlSetGArg)
/*VARARGS2*/
extern void NhlSetGArg(
#if NhlNeedVarArgProto
NhlGArg *arg, /* arg to set */
NhlString resname, /* resource to set */
... /* value to set arg to */
#endif
);
NhlDOCTAG(NhlVACreate)
NhlSRCREF(hlu/hlu.c#NhlSetGArg)
/*VARARGS4*/
extern NhlErrorTypes NhlVACreate(
#if NhlNeedVarArgProto
int*, /* return plot id */
Const char*, /* name */
NhlClass, /* requested class */
int, /* parent's id */
... /* res names/values - NULL terminated */
#endif
);
NhlDOCTAG(NhlALCreate)
extern NhlErrorTypes NhlALCreate(
#if NhlNeedProto
int*, /* return plot id */
Const char*, /* name */
NhlClass, /* requested class */
int, /* parent's id */
NhlSArgList, /* setarg list */
int /* number of Sarg's */
#endif
);
extern NhlErrorTypes NhlCreate(
#if NhlNeedProto
int*, /* return plot id */
Const char*, /* name */
NhlClass, /* requested class */
int, /* parent's id */
int /* RL list id */
#endif
);
NhlDOCTAG(NhlDestroy)
extern NhlErrorTypes NhlDestroy(
#if NhlNeedProto
int /* plot id */
#endif
);
NhlDOCTAG(NhlDraw)
extern NhlErrorTypes NhlDraw(
#if NhlNeedProto
int /* id */
#endif
);
NhlDOCTAG(NhlOpen)
extern void NhlOpen(
#if NhlNeedProto
void
#endif
);
extern void NhlInitialize(
#if NhlNeedProto
void
#endif
);
NhlDOCTAG(NhlClose)
extern void NhlClose(
#if NhlNeedProto
void
#endif
);
NhlDOCTAG(NhlVASetValues)
/*VARARGS1*/
extern NhlErrorTypes NhlVASetValues(
#if NhlNeedVarArgProto
int, /* id */
... /* resource names and values - NULL terminated */
#endif
);
NhlDOCTAG(NhlALSetValues)
extern NhlErrorTypes NhlALSetValues(
#if NhlNeedProto
int pid, /* id */
NhlSArgList args, /* args to set */
int nargs /* num args */
#endif
);
extern NhlErrorTypes NhlSetValues(
#if NhlNeedProto
int pid, /* id of object */
int rlid /* RL list id */
#endif
);
NhlDOCTAG(NhlVAGetValues)
/*VARARGS1*/
extern NhlErrorTypes NhlVAGetValues(
#if NhlNeedVarArgProto
int, /* id */
... /* resource names and values - NULL terminated */
#endif
);
extern NhlErrorTypes NhlALGetValues(
#if NhlNeedProto
int pid, /* id */
NhlGArgList args, /* args to retrieve */
int nargs /* num args */
#endif
);
extern NhlErrorTypes NhlGetValues(
#if NhlNeedProto
int pid, /* id of object */
int rlid /* RL list id */
#endif
);
/*
* Currently only access to "reparent" method.
*/
extern NhlErrorTypes NhlChangeWorkstation(
#if NhlNeedProto
int /*plotid*/, /* plotid to move to new workstation */
int /*workid*/ /* workid of workstation */
#endif
);
extern int NhlGetParentWorkstation(
#if NhlNeedProto
int pid
#endif
);
extern int NhlGetParentId(
#if NhlNeedProto
int pid
#endif
);
#endif /* _NHLU_h */
|