diff options
author | tkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-14 19:26:38 +0000 |
---|---|---|
committer | tkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-14 19:26:38 +0000 |
commit | 0a6b5f6b02d7417cf1267d62c8cd6a6a9cc0774f (patch) | |
tree | 30e3cd3e0ab7d3d112d7ba8f0a2d73539d5d59fd /libgfortran/m4/reshape.m4 | |
parent | d0660800d70a8f2b1a83125748cbec0dba43e7ab (diff) | |
download | gcc-0a6b5f6b02d7417cf1267d62c8cd6a6a9cc0774f.tar.gz |
2007-03-14 Thomas Koenig <Thomas.Koenig@online.de>
PR libfortran/30690
* all.m4: Quote everything, except for m4 macros.
* any.m4: Likewise.
* count.m4: Likewise.
* cshift1.m4: Likewise.
* eoshift1.m4: Likewise.
* eoshift3.m4: Likewise.
* exponent.m4: Likewise.
* fraction.m4: Likewise.
* in_pack.m4: Likewise.
* in_unpack.m4: Likewise.
* matmul.m4: Likewise.
* matmull.m4: Likewise.
* nearest.m4: Likewise.
* pow.m4: Likewise.
* product.m4: Likewise.
* reshape.m4: Likewise.
* rrspacing.m4: Likewise.
* set_exponent.m4: Likewise.
* shape.m4: Likewise.
* spacing.m4: Likewise.
* transpose.m4: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122927 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/m4/reshape.m4')
-rw-r--r-- | libgfortran/m4/reshape.m4 | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/libgfortran/m4/reshape.m4 b/libgfortran/m4/reshape.m4 index 345837a32cc..2a877a2f8ab 100644 --- a/libgfortran/m4/reshape.m4 +++ b/libgfortran/m4/reshape.m4 @@ -34,27 +34,27 @@ Boston, MA 02110-1301, USA. */ #include "libgfortran.h"' include(iparm.m4)dnl -`#if defined (HAVE_'rtype_name`)' +`#if defined (HAVE_'rtype_name`) -typedef GFC_ARRAY_DESCRIPTOR(1, index_type) shape_type; +typedef GFC_ARRAY_DESCRIPTOR(1, 'index_type`) 'shape_type`;' dnl For integer routines, only the kind (ie size) is used to name the dnl function. The same function will be used for integer and logical dnl arrays of the same kind. -extern void reshape_`'rtype_ccode (rtype * const restrict, - rtype * const restrict, - shape_type * const restrict, - rtype * const restrict, - shape_type * const restrict); -export_proto(reshape_`'rtype_ccode); +`extern void reshape_'rtype_ccode` ('rtype` * const restrict, + 'rtype` * const restrict, + 'shape_type` * const restrict, + 'rtype` * const restrict, + 'shape_type` * const restrict); +export_proto(reshape_'rtype_ccode`); void -reshape_`'rtype_ccode (rtype * const restrict ret, - rtype * const restrict source, - shape_type * const restrict shape, - rtype * const restrict pad, - shape_type * const restrict order) +reshape_'rtype_ccode` ('rtype` * const restrict ret, + 'rtype` * const restrict source, + 'shape_type` * const restrict shape, + 'rtype` * const restrict pad, + 'shape_type` * const restrict order) { /* r.* indicates the return array. */ index_type rcount[GFC_MAX_DIMENSIONS]; @@ -65,7 +65,7 @@ reshape_`'rtype_ccode (rtype * const restrict ret, index_type rsize; index_type rs; index_type rex; - rtype_name *rptr; + 'rtype_name` *rptr; /* s.* indicates the source array. */ index_type scount[GFC_MAX_DIMENSIONS]; index_type sextent[GFC_MAX_DIMENSIONS]; @@ -73,16 +73,16 @@ reshape_`'rtype_ccode (rtype * const restrict ret, index_type sstride0; index_type sdim; index_type ssize; - const rtype_name *sptr; + const 'rtype_name` *sptr; /* p.* indicates the pad array. */ index_type pcount[GFC_MAX_DIMENSIONS]; index_type pextent[GFC_MAX_DIMENSIONS]; index_type pstride[GFC_MAX_DIMENSIONS]; index_type pdim; index_type psize; - const rtype_name *pptr; + const 'rtype_name` *pptr; - const rtype_name *src; + const 'rtype_name` *src; int n; int dim; int sempty, pempty; @@ -100,7 +100,7 @@ reshape_`'rtype_ccode (rtype * const restrict ret, rs *= rex; } ret->offset = 0; - ret->data = internal_malloc_size ( rs * sizeof (rtype_name)); + ret->data = internal_malloc_size ( rs * sizeof ('rtype_name`)); ret->dtype = (source->dtype & ~GFC_DTYPE_RANK_MASK) | rdim; } else @@ -184,9 +184,9 @@ reshape_`'rtype_ccode (rtype * const restrict ret, if (rsize != 0 && ssize != 0 && psize != 0) { - rsize *= sizeof (rtype_name); - ssize *= sizeof (rtype_name); - psize *= sizeof (rtype_name); + rsize *= sizeof ('rtype_name`); + ssize *= sizeof ('rtype_name`); + psize *= sizeof ('rtype_name`); reshape_packed ((char *)ret->data, rsize, (char *)source->data, ssize, pad ? (char *)pad->data : NULL, psize); return; @@ -210,7 +210,7 @@ reshape_`'rtype_ccode (rtype * const restrict ret, scount[dim] = pcount[dim]; sextent[dim] = pextent[dim]; sstride[dim] = pstride[dim]; - sstride0 = sstride[0] * sizeof (rtype_name); + sstride0 = sstride[0] * sizeof ('rtype_name`); } } @@ -286,4 +286,4 @@ reshape_`'rtype_ccode (rtype * const restrict ret, } } -#endif +#endif' |