diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-18 00:35:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-18 00:35:36 +0000 |
commit | ff3def13189580da6fe5254355c8f3b8091bb0fb (patch) | |
tree | 13092e119e26dd5354f66cf3746dd0a0cbdd8cb2 /Build/source/utils/pmx/pmx-2.6.18/libf2c/sfe.c | |
parent | 2721345a8954f1846ff48ba10e634bc65e7b954d (diff) |
pmx 2.6.18 (16may12)
git-svn-id: svn://tug.org/texlive/trunk@26478 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/pmx/pmx-2.6.18/libf2c/sfe.c')
-rw-r--r-- | Build/source/utils/pmx/pmx-2.6.18/libf2c/sfe.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Build/source/utils/pmx/pmx-2.6.18/libf2c/sfe.c b/Build/source/utils/pmx/pmx-2.6.18/libf2c/sfe.c new file mode 100644 index 00000000000..21e1f044645 --- /dev/null +++ b/Build/source/utils/pmx/pmx-2.6.18/libf2c/sfe.c @@ -0,0 +1,43 @@ +/* sequential formatted external common routines*/ +#include "f2c.h" +#include "fio.h" +#ifdef __cplusplus +extern "C" { +#endif + +extern char *f__fmtbuf; + +integer e_rsfe(Void) +{ int n; + n=en_fio(); + f__fmtbuf=NULL; + return(n); +} + + int +#ifdef KR_headers +c_sfe(a) cilist *a; /* check */ +#else +c_sfe(cilist *a) /* check */ +#endif +{ unit *p; + f__curunit = p = &f__units[a->ciunit]; + if(a->ciunit >= MXUNIT || a->ciunit<0) + err(a->cierr,101,"startio"); + if(p->ufd==NULL && fk_open(SEQ,FMT,a->ciunit)) err(a->cierr,114,"sfe") + if(!p->ufmt) err(a->cierr,102,"sfe") + return(0); +} +integer e_wsfe(Void) +{ + int n = en_fio(); + f__fmtbuf = NULL; +#ifdef ALWAYS_FLUSH + if (!n && fflush(f__cf)) + err(f__elist->cierr, errno, "write end"); +#endif + return n; +} +#ifdef __cplusplus +} +#endif |