Classes | Defines | Typedefs | Enumerations | Functions | Variables
eustags.c File Reference
#include <stdio.h>
#include <ctype.h>
Include dependency graph for eustags.c:

Go to the source code of this file.

Classes

struct  linebuffer
struct  nd_st
struct  TEX_tabent

Defines

#define BAD   (1)
#define begtoken(arg)   (_btk[arg]) /* T if char can start token */
#define CNL
#define CNL_SAVE_NUMBER
#define endtoken(arg)   (_etk[arg]) /* T if char ends tokens */
#define FALSE   (0)
#define GOOD   (0)
#define intoken(arg)   (_itk[arg]) /* T if char can be in token */
#define isgood(arg)   (_gd[arg]) /* T if char can be after ')' */
#define istoken(s, tok, len)   (!strncmp(s,tok,len) && endtoken(*((s)+(len))))
#define iswhite(arg)   (_wht[arg]) /* T if char is white */
#define logical   char
#define max(I1, I2)   (I1 > I2 ? I1 : I2)
#define reg   register
#define TEX_LESC   '\\'
#define TEX_SESC   '!'
#define TRUE   (1)
#define VMS_SET_LINECHARNO

Typedefs

typedef struct nd_st NODE

Enumerations

enum  TYST {
  none, begin, tag_ok, middle,
  end
}

Functions

 add_node (NODE *node, NODE *cur_node)
 C_entries ()
char * concat ()
char * concat (char *s1, char *s2, char *s3)
 consider_token (char **lpp, char *token, int *f, int level)
 error (char *s1, char *s2)
 fatal (char *s1, char *s2)
 find_entries (char *file)
 free_tree (NODE *node)
long ftell ()
static get_scheme ()
 getit ()
 getline (long atchar)
char * index (char *sp, char c)
 init ()
void initbuffer ()
void initbuffer (struct linebuffer *linebuffer)
 L_funcs (FILE *fi)
 L_getit ()
 main (int ac, av)
 PF_funcs (FILE *fi)
 pfnote (char *name, logical f, char *linestart, int linelen, int lno, long cno)
 put_entries (reg NODE *node)
long readline ()
long readline (struct linebuffer *linebuffer, FILE *stream)
char * rindex (char *sp, char c)
char * savenstr ()
char * savenstr (char *cp, int len)
char * savestr ()
char * savestr (char *cp)
 Scheme_funcs (FILE *fi)
 tail (char *cp)
 takeprec ()
struct TEX_tabentTEX_decode_env ()
struct TEX_tabentTEX_decode_env (char *evarname, char *defenv)
 TEX_funcs (FILE *fi)
 TEX_getit (char *name, int len)
 TEX_mode (FILE *f)
 TEX_Token (char *cp)
 total_size_of_entries (reg NODE *node)
int xmalloc (int size)
int xrealloc (char *ptr, int size)

Variables

logical _btk [0177]
logical _etk [0177]
logical _gd [0177]
logical _itk [0177]
logical _wht [0177]
int aflag = 0
char * begtk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$"
long charno
char * curfile
char * dbp
int eflag = 0
char * endtk = " \t\n\"'#()[]{}=-+%*/&|^~!<>;,.:?"
int file_num = 0
logical gotone
NODEhead
FILE * inf
char * intk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$0123456789"
struct linebuffer lb lb1
long linecharno
int lineno
char * notgd = ",;"
int number
FILE * outf
char * outfile = 0
int pfcnt
char * progname
char searchar = '/'
static char TEX_clgrp = '}'
static char * TEX_defenv = ":chapter:section:subsection:subsubsection:eqno:label:ref:cite:bibitem:typeout"
static char TEX_esc = '\\'
static char TEX_opgrp = '{'
struct TEX_tabentTEX_toktab = NULL
int tflag = 0
TYST tydef = none
int uflag = 0
int vflag = 0
int wflag = 0
char * white = " \f\t\n"
int xflag = 0

Define Documentation

#define BAD   (1)

Definition at line 119 of file eustags.c.

#define begtoken (   arg)    (_btk[arg]) /* T if char can start token */

Definition at line 129 of file eustags.c.

#define CNL
Value:
{ \
  CNL_SAVE_NUMBER; \
  number = 0; \
}

Definition at line 779 of file eustags.c.

#define CNL_SAVE_NUMBER
Value:
{ \
  VMS_SET_LINECHARNO; \
  linecharno = charno; lineno++; \
  charno += 1 + readline (&lb, inf); \
  lp = lb.buffer; \
}

Definition at line 771 of file eustags.c.

#define endtoken (   arg)    (_etk[arg]) /* T if char ends tokens */

Definition at line 131 of file eustags.c.

#define FALSE   (0)

Definition at line 126 of file eustags.c.

#define GOOD   (0)

Definition at line 118 of file eustags.c.

#define intoken (   arg)    (_itk[arg]) /* T if char can be in token */

Definition at line 130 of file eustags.c.

#define isgood (   arg)    (_gd[arg]) /* T if char can be after ')' */

Definition at line 132 of file eustags.c.

#define istoken (   s,
  tok,
  len 
)    (!strncmp(s,tok,len) && endtoken(*((s)+(len))))

Definition at line 138 of file eustags.c.

#define iswhite (   arg)    (_wht[arg]) /* T if char is white */

Definition at line 128 of file eustags.c.

#define logical   char

Definition at line 123 of file eustags.c.

#define max (   I1,
  I2 
)    (I1 > I2 ? I1 : I2)

Definition at line 134 of file eustags.c.

#define reg   register

Definition at line 122 of file eustags.c.

#define TEX_LESC   '\\'

Definition at line 1415 of file eustags.c.

#define TEX_SESC   '!'

Definition at line 1416 of file eustags.c.

#define TRUE   (1)

Definition at line 125 of file eustags.c.

Definition at line 768 of file eustags.c.


Typedef Documentation

typedef struct nd_st NODE

Definition at line 152 of file eustags.c.


Enumeration Type Documentation

enum TYST
Enumerator:
none 
begin 
tag_ok 
middle 
end 

Definition at line 162 of file eustags.c.


Function Documentation

add_node ( NODE node,
NODE cur_node 
)

Definition at line 623 of file eustags.c.

C_entries ( )

Definition at line 785 of file eustags.c.

char* concat ( )
char* concat ( char *  s1,
char *  s2,
char *  s3 
)

Definition at line 1664 of file eustags.c.

consider_token ( char **  lpp,
char *  token,
int *  f,
int  level 
)

Definition at line 944 of file eustags.c.

error ( char *  s1,
char *  s2 
)

Definition at line 1653 of file eustags.c.

fatal ( char *  s1,
char *  s2 
)

Definition at line 1644 of file eustags.c.

find_entries ( char *  file)

Definition at line 487 of file eustags.c.

free_tree ( NODE node)

Definition at line 612 of file eustags.c.

long ftell ( )
static get_scheme ( ) [static]

Definition at line 1314 of file eustags.c.

getit ( )

Definition at line 1190 of file eustags.c.

getline ( long  atchar)

Definition at line 1064 of file eustags.c.

char* index ( char *  sp,
char  c 
)

Definition at line 1631 of file eustags.c.

init ( void  )

Definition at line 455 of file eustags.c.

void initbuffer ( )
void initbuffer ( struct linebuffer linebuffer)

Definition at line 1540 of file eustags.c.

L_funcs ( FILE *  fi)

Definition at line 1215 of file eustags.c.

L_getit ( )

Definition at line 1249 of file eustags.c.

main ( int  ac,
av   
)

Definition at line 239 of file eustags.c.

PF_funcs ( FILE *  fi)

Definition at line 1079 of file eustags.c.

pfnote ( char *  name,
logical  f,
char *  linestart,
int  linelen,
int  lno,
long  cno 
)

Definition at line 555 of file eustags.c.

put_entries ( reg NODE node)

Definition at line 667 of file eustags.c.

long readline ( )
long readline ( struct linebuffer linebuffer,
FILE *  stream 
)

Definition at line 1551 of file eustags.c.

char* rindex ( char *  sp,
char  c 
)

Definition at line 1609 of file eustags.c.

char* savenstr ( )
char* savenstr ( char *  cp,
int  len 
)

Definition at line 1589 of file eustags.c.

char* savestr ( )
char* savestr ( char *  cp)

Definition at line 1582 of file eustags.c.

Scheme_funcs ( FILE *  fi)

Definition at line 1275 of file eustags.c.

tail ( char *  cp)

Definition at line 1156 of file eustags.c.

takeprec ( )

Definition at line 1171 of file eustags.c.

struct TEX_tabent* TEX_decode_env ( ) [read]
struct TEX_tabent* TEX_decode_env ( char *  evarname,
char *  defenv 
) [read]

Definition at line 1449 of file eustags.c.

TEX_funcs ( FILE *  fi)

Definition at line 1365 of file eustags.c.

TEX_getit ( char *  name,
int  len 
)

Definition at line 1501 of file eustags.c.

TEX_mode ( FILE *  f)

Definition at line 1421 of file eustags.c.

TEX_Token ( char *  cp)

Definition at line 1526 of file eustags.c.

Definition at line 724 of file eustags.c.

int xmalloc ( int  size)

Definition at line 1681 of file eustags.c.

int xrealloc ( char *  ptr,
int  size 
)

Definition at line 1691 of file eustags.c.


Variable Documentation

logical _btk[0177]

Definition at line 155 of file eustags.c.

logical _etk[0177]

Definition at line 155 of file eustags.c.

logical _gd[0177]

Definition at line 155 of file eustags.c.

logical _itk[0177]

Definition at line 155 of file eustags.c.

logical _wht[0177]

Definition at line 155 of file eustags.c.

int aflag = 0

Definition at line 184 of file eustags.c.

char * begtk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$"

Definition at line 177 of file eustags.c.

long charno

Definition at line 169 of file eustags.c.

char* curfile

Definition at line 172 of file eustags.c.

char* dbp

Definition at line 1076 of file eustags.c.

int eflag = 0

Definition at line 190 of file eustags.c.

char * endtk = " \t\n\"'#()[]{}=-+%*/&|^~!<>;,.:?"

Definition at line 175 of file eustags.c.

int file_num = 0

Definition at line 183 of file eustags.c.

Definition at line 155 of file eustags.c.

Definition at line 198 of file eustags.c.

FILE* inf

Definition at line 195 of file eustags.c.

char * intk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$0123456789"

Definition at line 179 of file eustags.c.

struct linebuffer lb lb1

Definition at line 218 of file eustags.c.

long linecharno

Definition at line 170 of file eustags.c.

int lineno

Definition at line 168 of file eustags.c.

char * notgd = ",;"

Definition at line 181 of file eustags.c.

int number

Definition at line 154 of file eustags.c.

FILE * outf

Definition at line 195 of file eustags.c.

char * outfile = 0

Definition at line 173 of file eustags.c.

int pfcnt

Definition at line 1077 of file eustags.c.

char* progname

Definition at line 193 of file eustags.c.

char searchar = '/'

Definition at line 166 of file eustags.c.

char TEX_clgrp = '}' [static]

Definition at line 1359 of file eustags.c.

char* TEX_defenv = ":chapter:section:subsection:subsubsection:eqno:label:ref:cite:bibitem:typeout" [static]

Definition at line 1352 of file eustags.c.

char TEX_esc = '\\' [static]

Definition at line 1357 of file eustags.c.

char TEX_opgrp = '{' [static]

Definition at line 1358 of file eustags.c.

Definition at line 1347 of file eustags.c.

int tflag = 0

Definition at line 185 of file eustags.c.

Definition at line 164 of file eustags.c.

int uflag = 0

Definition at line 186 of file eustags.c.

int vflag = 0

Definition at line 188 of file eustags.c.

int wflag = 0

Definition at line 187 of file eustags.c.

char * white = " \f\t\n"

Definition at line 174 of file eustags.c.

int xflag = 0

Definition at line 189 of file eustags.c.



euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Mar 9 2017 04:57:51