2 define(atype_code,regexp(file,`_\([ircl][0-9]+\).[fF]90',`\1'))dnl
3 define(atype_letter,substr(atype_code, 0, 1))dnl
4 define(atype_kind,substr(atype_code, 1))dnl
5 define(get_typename2, `$1 (kind=$2)')dnl
6 define(get_typename, `get_typename2(ifelse($1,i,integer,ifelse($1,r,real,ifelse($1,l,logical,ifelse($1,c,complex,unknown)))),`$2')')dnl
7 define(name_kind, ifelse(atype_kind,17,16,atype_kind))dnl
8 define(atype_name, get_typename(atype_letter,name_kind))dnl
9 define(name, regexp(regexp(file, `[^/]*$', `\&'), `^_\([^_]*\)_', `\1'))dnl
10 define(function_name,`_gfortran_specific__'name`_'atype_code)dnl
13 ifelse(atype_kind,4,F,dnl
14 ifelse(atype_kind,8,`',dnl
15 ifelse(atype_kind,10,L,dnl
16 ifelse(atype_kind,16,L,dnl
17 ifelse(atype_kind,17,L,dnl
18 `_'atype_kind))))))dnl
22 #include "c99_protos.inc"
24 `#if defined (HAVE_GFC_'ifelse(atype_letter,l,LOGICAL,ifelse(atype_letter,i,INTEGER,ifelse(atype_letter,r,REAL,ifelse(atype_letter,c,COMPLEX,UNKNOW))))`_'atype_kind`)'
26 ifelse(name,atan2,`#ifdef HAVE_ATAN2'Q,)
28 elemental function function_name (p1, p2)
29 atype_name, intent (in) :: p1, p2
30 atype_name :: function_name
32 function_name = name (p1, p2)
35 ifelse(name,atan2,`#endif',)