/usr/include/ug/cw.h is in libdune-uggrid-dev 2.5.0-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 | // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/****************************************************************************/
/* */
/* File: cw.h */
/* */
/* Purpose: control word definitions header file */
/* */
/* Author: Peter Bastian */
/* Institut fuer Computeranwendungen III */
/* Universitaet Stuttgart */
/* Pfaffenwaldring 27 */
/* 70569 Stuttgart */
/* email: ug@ica3.uni-stuttgart.de */
/* */
/* History: 11.01.95 begin, ug version 3.0 */
/* */
/* Remarks: */
/* */
/****************************************************************************/
/****************************************************************************/
/* */
/* auto include mechanism and other include files */
/* */
/****************************************************************************/
#ifndef __CW__
#define __CW__
#include "namespace.h"
START_UGDIM_NAMESPACE
/** @name Macros for the control word management */
/*@{*/
/** \brief maximum number of control words */
#define MAX_CONTROL_WORDS 20
/** \brief max number of entries */
#define MAX_CONTROL_ENTRIES 100
/*@}*/
/** \brief Description of a control word */
typedef struct {
/** \brief this struct is used */
INT used;
/** \brief name string */
const char *name;
/** \brief where in object is it ? */
UINT offset_in_object;
/** \brief bitwise object ID */
INT objt_used;
/** \brief used bits */
UINT used_mask;
} CONTROL_WORD;
/** \brief Manage part of a control word */
typedef struct {
/** \brief this struct is used */
INT used;
/** \brief name string */
const char *name;
/** \brief pointer to corresponding control word */
INT control_word;
/** \brief shift in control word */
INT offset_in_word;
/** \brief number of bits used */
INT length;
/** \brief bitwise object ID */
INT objt_used;
/** \brief copy from control word (faster) */
UINT offset_in_object;
/** \brief 1 where bits are used */
UINT mask;
/** \brief 0 where bits are used */
UINT xor_mask;
} CONTROL_ENTRY;
/** \brief Global array with descriptions */
extern CONTROL_WORD
control_words[];
/** \brief Predefined control words */
extern CONTROL_ENTRY
control_entries[MAX_CONTROL_ENTRIES];
/****************************************************************************/
/* */
/* function definitions */
/* */
/****************************************************************************/
INT InitCW (void);
END_UGDIM_NAMESPACE
#endif
|