| 1 |
/*=========================================================================== |
| 2 |
Copyright (C) 1995-2005 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: [email protected] |
| 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 |
#include <ftoc.h> |
| 30 |
#include <midas_def.h> |
| 31 |
|
| 32 |
|
| 33 |
static int savdsp, *pin1, *pin2, *pin3, *pin4; |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
ROUTINE IIG1(dsplay,in1,in2,in3,in4) |
| 38 |
fint2c *dsplay; |
| 39 |
fint2c *in1; |
| 40 |
fint2c *in2; |
| 41 |
fint2c *in3; |
| 42 |
fint2c *in4; |
| 43 |
|
| 44 |
{ |
| 45 |
savdsp = *dsplay; |
| 46 |
pin1 = in1; |
| 47 |
pin2 = in2; |
| 48 |
pin3 = in3; |
| 49 |
pin4 = in4; |
| 50 |
return 0; |
| 51 |
} |
| 52 |
|
| 53 |
|
| 54 |
SUBROUTINE IIG2(string,orient,intens,ht,idst) |
| 55 |
CHARACTER string; |
| 56 |
fint2c *orient; |
| 57 |
fint2c *intens; |
| 58 |
fint2c *ht; |
| 59 |
fint2c *idst; |
| 60 |
|
| 61 |
{ |
| 62 |
int IIGTXT_C(); |
| 63 |
|
| 64 |
char mystring[TEXT_LEN]; |
| 65 |
|
| 66 |
/* |
| 67 |
* Temporary string needs to contain original Fortran string |
| 68 |
*/ |
| 69 |
|
| 70 |
oscopy(mystring,CHAR_LOC(string),CHAR_LEN(string)); |
| 71 |
mystring[CHAR_LEN(string)] = '\0'; |
| 72 |
|
| 73 |
*idst = IIGTXT_C(savdsp,*pin1,mystring,*pin2,*pin3, |
| 74 |
*pin4,*orient,*intens,*ht); |
| 75 |
return 0; |
| 76 |
} |
| 77 |
|
| 78 |
ROUTINE IIG3(ndim,intens,style,idst) |
| 79 |
fint2c *ndim; |
| 80 |
fint2c *intens; |
| 81 |
fint2c *style; |
| 82 |
fint2c *idst; |
| 83 |
|
| 84 |
{ |
| 85 |
int IIGPLY_C(); |
| 86 |
|
| 87 |
*idst = IIGPLY_C(savdsp,*pin1,pin2,pin3,*ndim,*intens,*style); |
| 88 |
return 0; |
| 89 |
} |
| 90 |
|
| 91 |
ROUTINE IIGCPY(dsplay,chan,append,idst) |
| 92 |
fint2c *dsplay; |
| 93 |
fint2c *chan; |
| 94 |
fint2c *append; |
| 95 |
fint2c *idst; |
| 96 |
|
| 97 |
{ |
| 98 |
int IIGCPY_C(); |
| 99 |
|
| 100 |
*idst = IIGCPY_C(*dsplay,*chan,*append); |
| 101 |
return 0; |
| 102 |
} |
| 103 |
|