mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-26 04:14:06 +08:00
c9e66eda1a
* Makefile.am: Remove references to types.m4. * m4/iparm.m4: Merge with types.m4. * m4/types.m4: Remove. * m4/cshift1.m4, m4/dotprod.m4, m4/dotprodc.m4, m4/dotprodl.m4, m4/eoshift1.m4, m4/eoshift3.m4, m4/iforeach.m4, m4/ifunction.m4, m4/in_pack.m4, m4/in_unpack.m4, m4/iparm.m4, m4/matmul.m4, m4/matmull.m4, m4/maxloc0.m4, m4/maxloc1.m4, m4/maxval.m4, m4/minloc0.m4, m4/minloc1.m4, m4/minval.m4, m4/reshape.m4, m4/shape.m4, m4/specific.m4, m4/specific2.m4, m4/transpose.m4): Update to use new iparm.m4. * generated/*.c: Regenerate. From-SVN: r82003
17 lines
695 B
Plaintext
17 lines
695 B
Plaintext
include(head.m4)
|
|
define(atype_code,regexp(file,`_\([ircl][0-9]+\).f90',`\1'))dnl
|
|
define(atype_letter,substr(atype_code, 0, 1))dnl
|
|
define(atype_kind,substr(atype_code, 1))dnl
|
|
define(get_typename2, `$1 (kind=$2)')dnl
|
|
define(get_typename, `get_typename2(ifelse($1,i,integer,ifelse($1,r,real,ifelse($1,l,logical,ifelse($1,c,complex,unknown)))),`$2')')dnl
|
|
define(atype_name, get_typename(atype_letter,atype_kind))dnl
|
|
define(name, regexp(regexp(file, `[^/]*$', `\&'), `^_\([^_]*\)_', `\1'))dnl
|
|
define(function_name,`specific__'name`_'atype_code)dnl
|
|
|
|
elemental function function_name (parm)
|
|
atype_name, intent (in) :: parm
|
|
atype_name :: function_name
|
|
|
|
function_name = name (parm)
|
|
end function
|