w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fmt.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  syl
 
union  ufloat
 
union  Uint
 

Macros

#define RET1   1
 
#define REVERT   2
 
#define GOTO   3
 
#define X   4
 
#define SLASH   5
 
#define STACK   6
 
#define I   7
 
#define ED   8
 
#define NED   9
 
#define IM   10
 
#define APOS   11
 
#define H   12
 
#define TL   13
 
#define TR   14
 
#define T   15
 
#define COLON   16
 
#define S   17
 
#define SP   18
 
#define SS   19
 
#define P   20
 
#define BN   21
 
#define BZ   22
 
#define F   23
 
#define E   24
 
#define EE   25
 
#define D   26
 
#define G   27
 
#define GE   28
 
#define L   29
 
#define A   30
 
#define AW   31
 
#define O   32
 
#define NONL   33
 
#define OM   34
 
#define Z   35
 
#define ZM   36
 
#define Cextern   extern
 
#define GET(x)   if((x=(*f__getn)())<0) return(x)
 
#define VAL(x)   (x!='\n'?x:' ')
 
#define PUT(x)   (*f__putn)(x)
 
#define longint   long
 

Functions

void fmt_bg (void)
 
int pars_f (char *)
 
int rd_ed (struct syl *, char *, ftnlen)
 
int rd_ned (struct syl *)
 
int signbit_f2c (double *)
 
int w_ed (struct syl *, char *, ftnlen)
 
int w_ned (struct syl *)
 
int wrt_E (ufloat *, int, int, int, ftnlen)
 
int wrt_F (ufloat *, int, int, ftnlen)
 
int wrt_L (Uint *, int, ftnlen)
 
char * f__icvt (long, int *, int *, int)
 

Variables

int f__pc
 
int f__parenlvl
 
int f__revloc
 
int(* f__doed )(struct syl *, char *, ftnlen)
 
int(*)(*) f__doned (struct syl *)
 
int(* f__dorevert )(void)
 
flag f__cblank
 
flag f__cplus
 
flag f__workdone
 
flag f__nonl
 
char * f__fmtbuf
 
int f__scale
 

Macro Definition Documentation

◆ A

#define A   30

Definition at line 35 of file fmt.h.

◆ APOS

#define APOS   11

Definition at line 16 of file fmt.h.

◆ AW

#define AW   31

Definition at line 36 of file fmt.h.

◆ BN

#define BN   21

Definition at line 26 of file fmt.h.

◆ BZ

#define BZ   22

Definition at line 27 of file fmt.h.

◆ Cextern

#define Cextern   extern

Definition at line 69 of file fmt.h.

◆ COLON

#define COLON   16

Definition at line 21 of file fmt.h.

◆ D

#define D   26

Definition at line 31 of file fmt.h.

◆ E

#define E   24

Definition at line 29 of file fmt.h.

◆ ED

#define ED   8

Definition at line 13 of file fmt.h.

◆ EE

#define EE   25

Definition at line 30 of file fmt.h.

◆ F

#define F   23

Definition at line 28 of file fmt.h.

◆ G

#define G   27

Definition at line 32 of file fmt.h.

◆ GE

#define GE   28

Definition at line 33 of file fmt.h.

◆ GET

#define GET (   x)    if((x=(*f__getn)())<0) return(x)

Definition at line 88 of file fmt.h.

◆ GOTO

#define GOTO   3

Definition at line 8 of file fmt.h.

◆ H

#define H   12

Definition at line 17 of file fmt.h.

◆ I

#define I   7

Definition at line 12 of file fmt.h.

◆ IM

#define IM   10

Definition at line 15 of file fmt.h.

◆ L

#define L   29

Definition at line 34 of file fmt.h.

◆ longint

#define longint   long

Definition at line 95 of file fmt.h.

◆ NED

#define NED   9

Definition at line 14 of file fmt.h.

◆ NONL

#define NONL   33

Definition at line 38 of file fmt.h.

◆ O

#define O   32

Definition at line 37 of file fmt.h.

◆ OM

#define OM   34

Definition at line 39 of file fmt.h.

◆ P

#define P   20

Definition at line 25 of file fmt.h.

◆ PUT

#define PUT (   x)    (*f__putn)(x)

Definition at line 90 of file fmt.h.

◆ RET1

#define RET1   1

Definition at line 6 of file fmt.h.

◆ REVERT

#define REVERT   2

Definition at line 7 of file fmt.h.

◆ S

#define S   17

Definition at line 22 of file fmt.h.

◆ SLASH

#define SLASH   5

Definition at line 10 of file fmt.h.

◆ SP

#define SP   18

Definition at line 23 of file fmt.h.

◆ SS

#define SS   19

Definition at line 24 of file fmt.h.

◆ STACK

#define STACK   6

Definition at line 11 of file fmt.h.

◆ T

#define T   15

Definition at line 20 of file fmt.h.

◆ TL

#define TL   13

Definition at line 18 of file fmt.h.

◆ TR

#define TR   14

Definition at line 19 of file fmt.h.

◆ VAL

#define VAL (   x)    (x!='\n'?x:' ')

Definition at line 89 of file fmt.h.

◆ X

#define X   4

Definition at line 9 of file fmt.h.

◆ Z

#define Z   35

Definition at line 40 of file fmt.h.

◆ ZM

#define ZM   36

Definition at line 41 of file fmt.h.

Function Documentation

◆ f__icvt()

char* f__icvt ( long  value,
int ndigit,
int sign,
int  base 
)

Definition at line 19 of file fmtlib.c.

References base, buf, i, MAXINTLENGTH, sign, ulongint, and uvalue.

Referenced by lwrt_I(), wrt_I(), and wrt_IM().

◆ fmt_bg()

void fmt_bg ( void  )

Definition at line 518 of file fmt.c.

References f__cnt, f__cp, f__cursor, f__pc, f__ret, f__rp, and f__workdone.

Referenced by c_si(), s_rdfe(), s_rsfe(), s_wdfe(), and s_wsfe().

◆ pars_f()

int pars_f ( char *  s)

Definition at line 368 of file fmt.c.

References f__parenlvl, f__pc, f__revloc, f_s(), NULL, and s.

Referenced by c_si(), s_rdfe(), s_rsfe(), s_wdfe(), and s_wsfe().

◆ rd_ed()

int rd_ed ( struct syl ,
char *  ,
ftnlen   
)

Referenced by s_rdfe(), s_rsfe(), and s_rsfi().

◆ rd_ned()

int rd_ned ( struct syl p)

Definition at line 526 of file rdfmt.c.

References APOS, f__cursor, f__donewrec, f__fmtbuf, f__recpos, fprintf, H, p, rd_H(), rd_POS(), sig_die(), SLASH, T, TL, TR, and X.

Referenced by s_rdfe(), s_rsfe(), and s_rsfi().

◆ signbit_f2c()

int signbit_f2c ( double *  x)

Definition at line 11 of file signbit.c.

References cordic::x.

Referenced by l_g(), wrt_E(), and wrt_F().

◆ w_ed()

int w_ed ( struct syl ,
char *  ,
ftnlen   
)

Referenced by s_wdfe(), s_wsfe(), and s_wsfi().

◆ w_ned()

int w_ned ( struct syl p)

Definition at line 350 of file wrtfmt.c.

References APOS, f__cursor, f__donewrec, f__fmtbuf, f__recpos, fprintf, H, p, sig_die(), SLASH, T, TL, TR, wrt_AP(), wrt_H(), and X.

Referenced by s_wdfe(), s_wsfe(), and s_wsfi().

◆ wrt_E()

int wrt_E ( ufloat p,
int  w,
int  d,
int  e,
ftnlen  len 
)

Definition at line 25 of file wref.c.

References atoi(), buf, d, d1, delta, e, EXPMAXDIGS, f__cplus, f__scale, FMAX, i, int(), isdigit, len, p, PUT, s, shift, sign, signbit_f2c(), sprintf, strcpy(), strlen(), and w.

Referenced by w_ed(), and wrt_G().

◆ wrt_F()

int wrt_F ( ufloat p,
int  w,
int  d,
ftnlen  len 
)

Definition at line 207 of file wref.c.

References b, buf, d, d1, f__cplus, f__scale, len, MAXFRACDIGS, MAXINTDIGS, n, p, PUT, real, s, sign, signbit_f2c(), sprintf, strlen(), w, and cordic::x.

Referenced by w_ed(), and wrt_G().

◆ wrt_L()

int wrt_L ( Uint n,
int  len,
ftnlen  sz 
)

Definition at line 228 of file wrtfmt.c.

References f__putn, i, len, n, sz, and cordic::x.

Referenced by lwrt_L(), and w_ed().

Variable Documentation

◆ f__cblank

flag f__cblank
extern

Definition at line 23 of file err.c.

Referenced by c_si(), rd_F(), rd_I(), s_rsfe(), and s_wsfe().

◆ f__cplus

flag f__cplus

Definition at line 85 of file fmt.h.

◆ f__doed

int(* f__doed) (struct syl *, char *, ftnlen) ( struct syl ,
char *  ,
ftnlen   
)
extern

Definition at line 34 of file err.c.

Referenced by do_fio(), s_rdfe(), s_rsfe(), s_rsfi(), s_wdfe(), s_wsfe(), and s_wsfi().

◆ f__doned

int(*)(*) f__doned(struct syl *) ( struct syl )

Definition at line 71 of file fmt.h.

◆ f__dorevert

int(* f__dorevert) (void) ( void  )
extern

Definition at line 35 of file err.c.

Referenced by do_fio(), s_rdfe(), s_rsfe(), s_rsfi(), s_wdfe(), s_wsfe(), and s_wsfi().

◆ f__fmtbuf

char* f__fmtbuf
extern

Definition at line 24 of file err.c.

◆ f__nonl

flag f__nonl

Definition at line 85 of file fmt.h.

◆ f__parenlvl

int f__parenlvl

Definition at line 42 of file fmt.h.

◆ f__pc

int f__pc
extern

Definition at line 24 of file fmt.c.

Referenced by do_fio(), e_d(), fmt_bg(), op_gen(), and pars_f().

◆ f__revloc

int f__revloc

Definition at line 42 of file fmt.h.

◆ f__scale

int f__scale
extern

Definition at line 43 of file err.c.

◆ f__workdone

flag f__workdone

Definition at line 85 of file fmt.h.