~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to libsrc/plot/ptk-2.fc

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*===========================================================================
 
2
  Copyright (C) 1995-2009 European Southern Observatory (ESO)
 
3
 
 
4
  This program is free software; you can redistribute it and/or 
 
5
  modify it under the terms of the GNU General Public License as 
 
6
  published by the Free Software Foundation; either version 2 of 
 
7
  the License, or (at your option) any later version.
 
8
 
 
9
  This program is distributed in the hope that it will be useful,
 
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
  GNU General Public License for more details.
 
13
 
 
14
  You should have received a copy of the GNU General Public 
 
15
  License along with this program; if not, write to the Free 
 
16
  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, 
 
17
  MA 02139, USA.
 
18
 
 
19
  Correspondence concerning ESO-MIDAS should be addressed as follows:
 
20
        Internet e-mail: midas@eso.org
 
21
        Postal address: European Southern Observatory
 
22
                        Data Management Division 
 
23
                        Karl-Schwarzschild-Strasse 2
 
24
                        D 85748 Garching bei Muenchen 
 
25
                        GERMANY
 
26
===========================================================================*/
 
27
 
 
28
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
29
.IDENTifier     ptk.fc
 
30
.AUTHOR         Rein H. Warmels, ESO-IPG
 
31
.KEYWORDS       High level graphics interface, Graphics keywords
 
32
.LANGUAGE       C
 
33
.PURPOSE        Fortran to C interface for PCK
 
34
.COMMENTS       Module contains interfaces for the keyword routines
 
35
.ENVIRONMENT    MIDAS FORTRAN and C standards
 
36
.VERSION        1.0 13-Oct-1993 RHW
 
37
 
 
38
 090611         last modif
 
39
-----------------------------------------------------------------------------*/
 
40
 
 
41
#include <proto_plt.h>
 
42
#include <stdlib.h>
 
43
 
 
44
int  mm;
 
45
 
 
46
char *ptr1, *ptr2;
 
47
char *loc_pntr();
 
48
char *strp_pntr();
 
49
 
 
50
/*
 
51
 
 
52
*/
 
53
 
 
54
/*==========================================================================*/
 
55
 
 
56
/*** idst = PTKRDC(cpar,maxvals,actvals,cval) ***/
 
57
 
 
58
ROUTINE PPP6(maxvals,actvals)
 
59
int     *maxvals;       /* IN : no. of elements to get */
 
60
int     *actvals;       /* OUT: actual no. of elements returned */
 
61
 
 
62
{
 
63
int  n;
 
64
 
 
65
 
 
66
ptr1 = strp_pntr(1);         /* get stripped string of "cpar" */
 
67
ptr2 = loc_pntr(1,&mm);      /* get location of "cval" */
 
68
 
 
69
PCKRDC(ptr1,*maxvals,actvals,ptr2);
 
70
 
 
71
n = *actvals;
 
72
if ((n > 0) && (n < mm)) *(ptr2+n) = ' ';
 
73
 
 
74
return 0;
 
75
}
 
76
 
 
77
/*==========================================================================*/
 
78
 
 
79
/*** idst = PTKRDI(ipar,maxvals,actvals,ival) ***/
 
80
 
 
81
ROUTINE PPP7(maxvals,actvals,ival)
 
82
int  *maxvals;  /* IN : no. of elements to get  */
 
83
int  *actvals;  /* OUT: actual no. of elements returned */
 
84
int  *ival;     /* OUT: values for the parameters */
 
85
 
 
86
{       
 
87
ptr1 = strp_pntr(1);         /* get stripped string of "ipar" */
 
88
 
 
89
PCKRDI(ptr1,*maxvals,actvals,ival);
 
90
return 0;
 
91
}
 
92
 
 
93
/*==========================================================================*/
 
94
 
 
95
/*** idst = PTKRDR(rpar,maxvals,actvals,rval) ***/
 
96
 
 
97
ROUTINE PPP8(maxvals,actvals,rval)
 
98
int     *maxvals;       /* IN : no. of elements to get */
 
99
int     *actvals;       /* OUT: actual no. of elements returned */
 
100
float      *rval;       /* OUT: values for the parameters */
 
101
 
 
102
{       
 
103
ptr1 = strp_pntr(1);         /* get stripped string of "ipar" */
 
104
 
 
105
PCKRDR(ptr1,*maxvals,actvals,rval);
 
106
return 0;
 
107
}
 
108
 
 
109
/*==========================================================================*/
 
110
 
 
111
/*** idst = PTKWRC(cpar,value) ***/
 
112
 
 
113
ROUTINE PPP9(idum)
 
114
int  *idum;
 
115
 
 
116
{       
 
117
ptr1 = strp_pntr(1);         /* get stripped string of "cpar" */
 
118
ptr2 = strp_pntr(2);         /* get stripped string of "value" */
 
119
 
 
120
PCKWRC(ptr1,ptr2);
 
121
return 0;
 
122
}
 
123
 
 
124
/*==========================================================================*/
 
125
 
 
126
/*** idst = PTKWRI(ipar,nrval,ival)  ***/
 
127
 
 
128
 
 
129
ROUTINE PPP10(nrval,ival)
 
130
int   *nrval;   /* IN : no. of elements to write  */
 
131
int   *ival;    /* IN : values for the parameters */
 
132
 
 
133
{       
 
134
ptr1 = strp_pntr(1);         /* get stripped string of "ipar" */
 
135
 
 
136
PCKWRI(ptr1,*nrval,ival);
 
137
return 0;
 
138
}
 
139
 
 
140
/*==========================================================================*/
 
141
 
 
142
/*** idst = PTKWRR(rpar,nrval,rval)  ***/
 
143
 
 
144
ROUTINE PPP11(nrval,rval)
 
145
int       *nrval;       /* IN : no. of elements to write  */
 
146
float      *rval;       /* IN : values for the parameters */
 
147
 
 
148
{       
 
149
ptr1 = strp_pntr(1);         /* get stripped string of "ipar" */
 
150
 
 
151
PCKWRR(ptr1,*nrval,rval);
 
152
return 0;
 
153
}
 
154
 
 
155
 
 
156
ROUTINE PTKDEF()
 
157
 
 
158
 
159
PCKDEF();
 
160
return 0;
 
161
}
 
162
 
 
163
 
 
164
 
 
165
 
 
166