summaryrefslogtreecommitdiff
path: root/libgfortran/m4/types.m4
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/m4/types.m4')
-rw-r--r--libgfortran/m4/types.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/libgfortran/m4/types.m4 b/libgfortran/m4/types.m4
new file mode 100644
index 000000000..cb808290c
--- /dev/null
+++ b/libgfortran/m4/types.m4
@@ -0,0 +1,4 @@
+define(get_typename2, `GFC_$1_$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(get_arraytype, `gfc_array_$1$2')dnl
+define(name, regexp(regexp(file, `[^/]*$', `\&'), `^\([^_]*\)_', `\1'))dnl