![Silicon Graphics IRIS Workstation Скачать руководство пользователя страница 83](http://html.mh-extra.com/html/silicon-graphics/iris-workstation/iris-workstation_user-manual_1271586083.webp)
Version 1.0
IRIS WORKSTATION GUIDE 79
Appendix D:
FORTRAN character variable is treated specially (as discussed in
the next section). When calling FORTRAN from C, the address of
the string and
a length
is passed. The length defaults to
one
. In this
case, the FORTRAN declaration for the parameter
carray[]
will be
effectively
character*1 carray()
and the FORTRAN routine must access characters of the array
individually. If an array length is given in the parameter list,
mkc2f
will pass this length to FORTRAN. If the parameter list entry for
carray
above is
char carray[20];
FORTRAN will treat the passed character array as if its individual
elements were of the FORTRAN type
character*20
The C type
char array
is treated in this fashion.
•
pointer
. The value found on the stack is treated as a pointer, and is
passed without alteration. Any array or pointer that is not of
char
type, any multiply indirect object, or any indirect array is assumed
to be of
pointer
type. If the type of a parameter is specified, but is
not one of the standard C types,
mkf2c
and
mkc2f
assume it to be a
pointer
.
test(i,s,c,ptr1,ptr2,ar1,u,f,d,d1,str1,str2,str3)
short s;
unsigned char c;
int *ptr1;
char *ptr2[];
short ar1[];
sometype u;
float f;
long float d,*d1;
char *str1;
char str2[],str3[30];
{
/* The C function body may go here. Nothing
except the opening and closing braces are necessary.
*/
}
The above would be an example of a C specification for a function. If this were
a function passed to
mkf2c
, the parameters would be transformed as follows:
•
ptrl
,
ptr2
,
arl
,
d1
and
u
would be passed as simple pointers.
mkf2c
will complain about not understanding the type
sometype
, but will
use its default rule of reducing unknown types to pointers.
•
s
,
f
,
d
, and
c
would be passed as values of length 16, 32, 64, and 8,
respectively. Since the type of
i
is not specified, it is assumed to be
Содержание IRIS Workstation
Страница 1: ...IRIS Workstation Guide Version 1 0 Silicon Graphics Inc Mountain View California 94043 ...
Страница 6: ...2 IRIS WORKSTATION GUIDE Version 1 0 Introduction ...
Страница 10: ...6 IRIS WORKSTATION GUIDE Version 1 0 IRIS Workstation Specifications Figure 3 1 IRIS Workstation System ...
Страница 14: ...10 IRIS WORKSTATION GUIDE Version 1 0 IRIS Workstation Specifications Figure 3 3 Monitor Back Panel ...
Страница 16: ...12 IRIS WORKSTATION GUIDE Version 1 0 IRIS Workstation Specifications Figure 3 4 IRIS 1400 Cabinet Back Panel ...
Страница 24: ...20 IRIS WORKSTATION GUIDE Version 1 0 Hardware Installation ...
Страница 30: ...26 IRIS WORKSTATION GUIDE Version 1 0 Operation ...
Страница 48: ...44 IRIS WORKSTATION GUIDE Version 1 0 System Administration ...
Страница 50: ...46 IRIS WORKSTATION GUIDE Version 1 0 Appendix A ...
Страница 74: ...70 IRIS WORKSTATION GUIDE Version 1 0 Appendix B ...
Страница 77: ...Version 1 0 IRIS WORKSTATION GUIDE 73 Appendix C e random gr error f wnrepaint ...
Страница 78: ...74 IRIS WORKSTATION GUIDE Version 1 0 Appendix C ...
Страница 92: ...88 IRIS WORKSTATION GUIDE Version 1 0 Appendix D ...
Страница 102: ...98 IRIS WORKSTATION GUIDE Version 1 0 Appendix E ...
Страница 103: ...Appendix F Manual Pages ...
Страница 104: ......
Страница 131: ...Version 1 0 126 IRIS WORKSTATION GUIDE Appendix F ...
Страница 132: ......
Страница 136: ...130 IRIS WORKSTATION GUIDE Version 1 0 Appendix H ...
Страница 152: ...146 IRIS WORKSTATION GUIDE Version 1 0 Appendix J ...