/usr/include/wcslib-5.18/cpgsbox.h is in wcslib-dev 5.18-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 | /*============================================================================
PGSBOX 5.18 - draw curvilinear coordinate axes for PGPLOT.
Copyright (C) 1997-2018, Mark Calabretta
This file is part of PGSBOX.
PGSBOX is free software: you can redistribute it and/or modify it under the
terms of the GNU Lesser General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
PGSBOX is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
more details.
You should have received a copy of the GNU Lesser General Public License
along with PGSBOX. If not, see http://www.gnu.org/licenses.
Direct correspondence concerning PGSBOX to mark@calabretta.id.au
Author: Mark Calabretta, Australia Telescope National Facility, CSIRO.
http://www.atnf.csiro.au/people/Mark.Calabretta
$Id: cpgsbox.h,v 5.18 2018/01/10 08:32:14 mcalabre Exp $
*=============================================================================
*
* cpgsbox() and cpglbox() are C wrappers for PGSBOX and PGLBOX. Refer to the
* prologue of pgsbox.f for an explanation of the argument list and usage
* notes.
*
* The argument lists for cpgsbox()/cpglbox() differ from PGSBOX/PGLBOX in
* the following respects:
*
* idents char[3][80]
* Fixed length character array.
* opt char[2] Fixed length character array.
* nlfunc nlfunc_t typedef for external function defined in cpgsbox.h.
* cache double[][4]
* Array indices reversed.
*
* Note also that the array arguments to cpgsbox()/cpglbox() are all
* 0-relative, while several of those of PGSBOX/PGLBOX are 0-relative (GRID1,
* GRID2, and CACHE) with the remainder 1-relative. In particular, the two-
* dimensional CACHE array has a mixture of 0-, and 1-relative indices, and
* the indices are reversed in C because of the differing C and FORTRAN array
* indexing policy. Moreover, as in PGSBOX/PGLBOX, nc is the upper array
* index, not the array length, so the array should be dimensioned as
* cache[nc+1][4].
*
*===========================================================================*/
#ifndef PGSBOX_CPGSBOX
#define PGSBOX_CPGSBOX
#ifdef __cplusplus
extern "C" {
#endif
typedef void nlfunc_t(int *, int *, int *, int *, char *, int *, double *,
double *, double *, int *, double *, int *);
void cpgsbox(
const float blc[2],
const float trc[2],
char (*idents)[80],
const char opt[2],
int labctl,
int labden,
const int ci[7],
const int gcode[2],
double tiklen,
int ng1,
const double *grid1,
int ng2,
const double *grid2,
int doeq,
nlfunc_t nlfunc,
int nlc,
int nli,
int nld,
char nlcprm[],
int nliprm[],
double nldprm[],
int nc,
int *ic,
double cache[][4],
int *ierr);
void cpglbox(
char (*idents)[80],
const char opt[2],
int labctl,
int labden,
const int ci[7],
const int gcode[2],
double tiklen,
int ng1,
const double *grid1,
int ng2,
const double *grid2,
int doeq,
int nc,
int *ic,
double cache[][4],
int *ierr);
#ifdef __cplusplus
}
#endif
#endif /* PGSBOX_CPGSBOX */
|