2001-05-16 20:59:29 +02:00
|
|
|
#include "config.h"
|
1998-02-01 02:37:08 +01:00
|
|
|
#include "f2c.h"
|
|
|
|
#include "fio.h"
|
|
|
|
#include "lio.h"
|
|
|
|
#include "fmt.h"
|
|
|
|
|
|
|
|
extern int f__Aquote;
|
|
|
|
|
g2c.hin, [...]: Kill VOID, Void and Int.
* g2c.hin, libF77/d_cnjg.c, libF77/main.c, libF77/r_cnjg.c,
libF77/s_cat.c, libF77/s_paus.c, libF77/s_rnge.c, libF77/setarg.c,
libF77/setsig.c, libF77/signal1.h0, libI77/dfe.c, libI77/due.c,
libI77/err.c, libI77/fio.h, libI77/fmt.c, libI77/iio.c,
libI77/ilnw.c, libI77/lread.c, libI77/lwrite.c, libI77/rsfe.c,
libI77/rsli.c, libI77/rsne.c, libI77/sfe.c, libI77/sue.c,
libI77/util.c, libI77/wrtfmt.c, libI77/wsfe.c, libI77/wsle.c,
libI77/xwsne.c, libU77/date_.c: Kill VOID, Void and Int.
From-SVN: r54134
2002-06-01 03:58:10 +02:00
|
|
|
static void
|
2002-06-01 14:38:32 +02:00
|
|
|
nl_donewrec (void)
|
1998-02-01 02:37:08 +01:00
|
|
|
{
|
2002-06-01 14:38:32 +02:00
|
|
|
(*f__donewrec) ();
|
|
|
|
PUT (' ');
|
|
|
|
}
|
1998-02-01 02:37:08 +01:00
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
g2c.hin, [...]: Kill VOID, Void and Int.
* g2c.hin, libF77/d_cnjg.c, libF77/main.c, libF77/r_cnjg.c,
libF77/s_cat.c, libF77/s_paus.c, libF77/s_rnge.c, libF77/setarg.c,
libF77/setsig.c, libF77/signal1.h0, libI77/dfe.c, libI77/due.c,
libI77/err.c, libI77/fio.h, libI77/fmt.c, libI77/iio.c,
libI77/ilnw.c, libI77/lread.c, libI77/lwrite.c, libI77/rsfe.c,
libI77/rsli.c, libI77/rsne.c, libI77/sfe.c, libI77/sue.c,
libI77/util.c, libI77/wrtfmt.c, libI77/wsfe.c, libI77/wsle.c,
libI77/xwsne.c, libU77/date_.c: Kill VOID, Void and Int.
From-SVN: r54134
2002-06-01 03:58:10 +02:00
|
|
|
void
|
2002-06-01 14:38:32 +02:00
|
|
|
x_wsne (cilist * a)
|
1998-02-01 02:37:08 +01:00
|
|
|
{
|
2002-06-01 14:38:32 +02:00
|
|
|
Namelist *nl;
|
|
|
|
char *s;
|
|
|
|
Vardesc *v, **vd, **vde;
|
|
|
|
ftnint number, type;
|
|
|
|
ftnlen *dims;
|
|
|
|
ftnlen size;
|
|
|
|
extern ftnlen f__typesize[];
|
1998-02-01 02:37:08 +01:00
|
|
|
|
2002-06-01 14:38:32 +02:00
|
|
|
nl = (Namelist *) a->cifmt;
|
|
|
|
PUT ('&');
|
|
|
|
for (s = nl->name; *s; s++)
|
|
|
|
PUT (*s);
|
|
|
|
PUT (' ');
|
|
|
|
f__Aquote = 1;
|
|
|
|
vd = nl->vars;
|
|
|
|
vde = vd + nl->nvars;
|
|
|
|
while (vd < vde)
|
|
|
|
{
|
|
|
|
v = *vd++;
|
|
|
|
s = v->name;
|
1998-02-01 02:37:08 +01:00
|
|
|
#ifdef No_Extra_Namelist_Newlines
|
2002-06-01 14:38:32 +02:00
|
|
|
if (f__recpos + strlen (s) + 2 >= L_len)
|
1998-02-01 02:37:08 +01:00
|
|
|
#endif
|
2002-06-01 14:38:32 +02:00
|
|
|
nl_donewrec ();
|
|
|
|
while (*s)
|
|
|
|
PUT (*s++);
|
|
|
|
PUT (' ');
|
|
|
|
PUT ('=');
|
|
|
|
number = (dims = v->dims) ? dims[1] : 1;
|
|
|
|
type = v->type;
|
|
|
|
if (type < 0)
|
|
|
|
{
|
|
|
|
size = -type;
|
|
|
|
type = TYCHAR;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
size = f__typesize[type];
|
|
|
|
l_write (&number, v->addr, size, type);
|
|
|
|
if (vd < vde)
|
|
|
|
{
|
|
|
|
if (f__recpos + 2 >= L_len)
|
|
|
|
nl_donewrec ();
|
|
|
|
PUT (',');
|
|
|
|
PUT (' ');
|
1998-02-01 02:37:08 +01:00
|
|
|
}
|
2002-06-01 14:38:32 +02:00
|
|
|
else if (f__recpos + 1 >= L_len)
|
|
|
|
nl_donewrec ();
|
|
|
|
}
|
|
|
|
f__Aquote = 0;
|
|
|
|
PUT ('/');
|
|
|
|
}
|