This file is indexed.

/usr/include/ug/numproc.h is in libug-dev 3.12.1-2.

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
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
/****************************************************************************/
/*                                                                          */
/* File:        numproc.h                                                       */
/*                                                                          */
/* Purpose: definition of the basic num proc type                           */
/*                                                                          */
/* Author:  Peter Bastian                                                   */
/*          Institut fuer Computeranwendungen III                           */
/*          Universitaet Stuttgart                                          */
/*          Pfaffenwaldring 27                                              */
/*          70569 Stuttgart                                                 */
/*          email: ug@iwr.uni-stuttgart.de                                  */
/*                                                                          */
/* History: November 29, 1996                                               */
/*                                                                          */
/* Remarks:                                                                 */
/*                                                                          */
/****************************************************************************/


/* RCS_ID
   $Header$
 */

/****************************************************************************/
/*                                                                          */
/* auto include mechanism and other include files                           */
/*                                                                          */
/****************************************************************************/

#ifndef __NUMPROC__
#define __NUMPROC__

#include "ugenv.h"
#include "gm.h"

#include "namespace.h"

START_UGDIM_NAMESPACE

/****************************************************************************/
/*                                                                          */
/* defines in the following order                                           */
/*                                                                          */
/* compile time constants defining static data size (i.e. arrays)                       */
/* other constants                                                                                                                      */
/* macros                                                                                                                                       */
/*                                                                                                                                                      */
/****************************************************************************/

/* status for num procs  */
#define NP_NOT_INIT             0
#define NP_NOT_ACTIVE   1
#define NP_ACTIVE               2
#define NP_EXECUTABLE   3
#define NP_PDT_SIZE             32

/* macros for NP_BASE access */
#define NP_MG(p)                (((NP_BASE*)(p))->mg)
#define NP_FMT(p)               MGFORMAT(((NP_BASE*)(p))->mg)
#define NP_GRID(p,l)    GRID_ON_LEVEL(NP_MG(p),l)
#define NP_STATUS(p)    (((NP_BASE*)(p))->status)
#define NP_INIT(p)              (((NP_BASE*)(p))->Init)
#define NP_DISPLAY(p)   (((NP_BASE*)(p))->Display)
#define NP_EXECUTE(p)   (((NP_BASE*)(p))->Execute)

/****************************************************************************/
/*                                                                          */
/* definition of exported data structures                                   */
/*                                                                          */
/****************************************************************************/

struct np_base {

  /* data */
  NS_PREFIX ENVVAR v;                             /* is an environment variable                                   */
  MULTIGRID *mg;                        /* associated multigrid                         */
  INT status;                           /* has a status, NO type and size...                    */

  /* functions */
  INT (*Init)(struct np_base *, INT, char **);    /* initializing routine   */
  INT (*Display)(struct np_base *);                      /* Display routine */
  INT (*Execute)(struct np_base *, INT, char **);        /* Execute routine */
};
typedef struct np_base NP_BASE;

typedef INT (*InitNumProcProcPtr)(NP_BASE *, INT, char **);
typedef INT (*DisplayNumProcProcPtr)(NP_BASE *);
typedef INT (*ExecuteNumProcProcPtr)(NP_BASE *, INT, char **);

typedef INT (*ConstructorProcPtr)(NP_BASE *);

typedef struct
{
  NS_PREFIX ENVVAR v;                         /* class name                           */
  INT size;                         /* size of the object                   */
  ConstructorProcPtr Construct;     /* construct one object of this class   */
} NP_CONSTRUCTOR;

/****************************************************************************/
/*                                                                                                                                                      */
/* definition of exported functions                                                                                     */
/*                                                                                                                                                      */
/****************************************************************************/

INT                             CreateClass                     (const char *classname, INT size, ConstructorProcPtr Construct);
NP_CONSTRUCTOR *GetConstructor          (const char *classname);
INT                             CreateObject            (MULTIGRID *theMG, const char *objectname, const char *classname);

NP_BASE                 *GetNumProcByName   (const MULTIGRID *theMG, const char *objectname, const char *classname);
INT                             MGListNPClasses         (const MULTIGRID *theMG);
INT             MGListNPsOfClass        (const MULTIGRID *theMG, const char *ClassName);
INT             MGListAllNPs            (const MULTIGRID *theMG);
INT             ListNumProc                     (NP_BASE *np);

INT             InitNumProcManager  (void);

END_UGDIM_NAMESPACE

#endif