1
/* @(#)ag_iset.c 19.1 (ES0-DMD) 02/25/03 13:52:59 */
2
/*===========================================================================
3
Copyright (C) 1995 European Southern Observatory (ESO)
5
This program is free software; you can redistribute it and/or
6
modify it under the terms of the GNU General Public License as
7
published by the Free Software Foundation; either version 2 of
8
the License, or (at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public
16
License along with this program; if not, write to the Free
17
Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
Corresponding concerning ESO-MIDAS should be addressed as follows:
21
Internet e-mail: midas@eso.org
22
Postal address: European Southern Observatory
23
Data Management Division
24
Karl-Schwarzschild-Strasse 2
25
D 85748 Garching bei Muenchen
27
===========================================================================*/
29
/* @(#)ag_iset.c 19.1 (OAA-ASTRONET) 02/25/03 13:52:59 */
31
* HEADER : ag_iset.c - Vers 3.6.000 - Oct 1991 - L. Fini, OAA
45
/*****************************************************************************/
46
/*++ AG_ISET (C callable) */
48
/* AG_ISET Set integer status parameters */
51
/* Set up to ten (10) integer values into the user defined parameters area. */
52
/* This call may be used by applications in order to store numerical values */
53
/* to be retrieved later on. These values remain associated with the current */
54
/* viewport and can be retrieved by a call to AG_IGET (item USER) */
56
void AG_ISET (number,values)
58
int number; /* Number of items to store (n<=10) */
59
int values[]; /* Array of values to be stored */
60
/* If n<=0 the parameter area is cleared */
63
static char *modnam = "ISET";
72
AGL_status.errstat=TOOMANYWNG;
76
DY(int_user)[i] = values[i];
78
DY(n_int_user)=number;