-
Notifications
You must be signed in to change notification settings - Fork 1
/
fortran_call_stubs.c
59 lines (51 loc) · 1.32 KB
/
fortran_call_stubs.c
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
#include "ccp4_fortran.h"
#include <stdio.h>
static void
bail(const char* function_name)
{
fprintf(stderr, "FATAL ERROR: %s() not implemented.", function_name);
exit(1);
}
FORTRAN_FUN ( int, IARGC, iargc,
(),
(),
())
{
/*bail("FORTRAN iargc");*/
return 0;
}
FORTRAN_SUBR ( GETARG, getarg,
(int *i, char *arg, int arg_len),
(int *i, char *arg, int arg_len),
(int *i, char *arg, int arg_len))
{ /*bail("FORTRAN getarg");*/
*arg = '\0';
}
FORTRAN_SUBR ( CCP4H_INIT, ccp4h_init,
(),
(),
())
{ /*bail("ccp4h_init");*/
/*access environment variables and construct output*/}
FORTRAN_SUBR ( CCP4H_INIT_LIB, ccp4h_init_lib,
(int* ihtml, int* isumm),
(int* ihtml, int* isumm),
(int* ihtml, int* isumm))
{
// ignoring calls from mtzini() in cmtzlib_f.c
}
FORTRAN_SUBR ( CCP4H_PRE_BEG, ccp4h_pre_beg,
(),
(),
())
{ bail("ccp4h_pre_beg"); }
FORTRAN_SUBR ( CCP4H_SUMMARY_BEG, ccp4h_summary_beg,
(),
(),
())
{ bail("ccp4h_summary_beg"); }
FORTRAN_SUBR ( CCP4H_SUMMARY_END, ccp4h_summary_end,
(),
(),
())
{ bail("ccp4h_summary_end"); }