예제 #1
0
파일: rsfe.c 프로젝트: SemiSQ/OpenModelica
integer s_rsfe(cilist *a) /* start */
#endif
{  int n;
  if(!f__init) f_init();
  f__reading=1;
  f__sequential=1;
  f__formatted=1;
  f__external=1;
  if(n=c_sfe(a)) return(n);
  f__elist=a;
  f__cursor=f__recpos=0;
  f__scale=0;
  f__fmtbuf=a->cifmt;
  f__cf=f__curunit->ufd;
  if(pars_f(f__fmtbuf)<0) err(a->cierr,100,"startio");
  f__getn= x_getc;
  f__doed= rd_ed;
  f__doned= rd_ned;
  fmt_bg();
  f__doend=x_endp;
  f__donewrec=xrd_SL;
  f__dorevert=x_rev;
  f__cblank=f__curunit->ublnk;
  f__cplus=0;
  if(f__curunit->uwrt && f__nowreading(f__curunit))
         err(a->cierr,errno,"read start");
  if(f__curunit->uend)
         err(f__elist->ciend,(EOF),"read start");
  return(0);
}
예제 #2
0
파일: due.c 프로젝트: 3deggi/levmar-ndk
integer s_rdue(cilist *a)
#endif
{
	int n;
	f__reading=1;
	if(n=c_due(a)) return(n);
	if(f__curunit->uwrt && f__nowreading(f__curunit))
		err(a->cierr,errno,"read start");
	return(0);
}
예제 #3
0
파일: dfe.c 프로젝트: parkerclayton/python
integer s_rdfe(cilist *a)
#endif
{
    int n;
    if(!f__init) f_init();
    f__reading=1;
    if((n=c_dfe(a))) return(n);
    if(f__curunit->uwrt && f__nowreading(f__curunit))
        err(a->cierr,errno,"read start");
    f__getn = y_getc;
    f__doed = rd_ed;
    f__doned = rd_ned;
    f__dorevert = f__donewrec = y_err;
    f__doend = y_rsk;
    if(pars_f(f__fmtbuf)<0)
        err(a->cierr,100,"read start");
    fmt_bg();
    return(0);
}
예제 #4
0
파일: rsne.c 프로젝트: barak/f2c-1
integer s_rsne(cilist *a)
{
	extern int l_eof;
	int n;

	f__external=1;
	l_eof = 0;
	if(n = c_le(a))
		return n;
	if(f__curunit->uwrt && f__nowreading(f__curunit))
		err(a->cierr,errno,where0);
	l_getc = t_getc;
	l_ungetc = un_getc;
	f__doend = xrd_SL;
	n = x_rsne(a);
	nml_read = 0;
	if (n)
		return n;
	return e_rsle();
}
예제 #5
0
파일: sue.c 프로젝트: Sciumo/f2c
integer s_rsue(cilist *a)
{
	int n;
	if(!f__init) f_init();
	f__reading=1;
	if(n=c_sue(a)) return(n);
	f__recpos=0;
	if(f__curunit->uwrt && f__nowreading(f__curunit))
		err(a->cierr, errno, "read start");
	if(fread((char *)&f__reclen,sizeof(uiolen),1,f__cf)
		!= 1)
	{	if(feof(f__cf))
		{	f__curunit->uend = 1;
			err(a->ciend, EOF, "start");
		}
		clearerr(f__cf);
		err(a->cierr, errno, "start");
	}
	return(0);
}
예제 #6
0
파일: lread.c 프로젝트: angelhunt/SNP
integer s_rsle(cilist *a)
#endif
{
	int n;

	if(!f__init) f_init();
	if(n=c_le(a)) return(n);
	f__reading=1;
	f__external=1;
	f__formatted=1;
	f__lioproc = l_read;
	f__lquit = 0;
	f__lcount = 0;
	l_eof = 0;
	if(f__curunit->uwrt && f__nowreading(f__curunit))
		err(a->cierr,errno,"read start");
	l_getc = t_getc;
	l_ungetc = un_getc;
	f__doend = xrd_SL;
	return(0);
}