1
/* @(#)ftoc_commb.h 19.1 (ESO-IPG) 02/25/03 13:49:32 */
3
.IDENTIFICATION ftoc_commb.h
5
.AUTHOR Francois Ochsenbein
8
.VERSION 1.0 12-Dec-1990
9
.COMMENTS Here there is the definition of the COMMON used
10
for address passing between FORTRAN routines (replaces %LOC)
11
Only Apollo is currently using this definition
15
#define VMR_DEF 0 /* To avoid redefinitions */
17
/* structure for COMMON in main Fortran programs */
18
/*typedef struct { int addr; } vmmidas; */
19
/*vmmidas vmr #attribute[section(vmr)]; */
21
struct { int addr;} vmr #attribute[section(vmr)];
23
/* translate address into FORTRAN index in VMR common */
24
#define COMMON_INDEX(a) (int *)a - (int *)&((&(vmr.addr))[-1])