Classes | Macros | 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
 

Macros

#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

void add_node (NODE *node, NODE *cur_node)
 
void C_entries ()
 
char * concat ()
 
char * concat (char *s1, char *s2, char *s3)
 
int consider_token (char **lpp, char *token, int *f, int level)
 
void e_getline (long atchar)
 
void error (char *s1, char *s2)
 
void fatal (char *s1, char *s2)
 
void find_entries (char *file)
 
void free_tree (NODE *node)
 
long ftell ()
 
static void get_scheme ()
 
void getit ()
 
char * index (char *sp, char c)
 
void init ()
 
void initbuffer ()
 
void initbuffer (struct linebuffer *linebuffer)
 
void L_funcs (FILE *fi)
 
void L_getit ()
 
 main (int ac, av)
 
int PF_funcs (FILE *fi)
 
void pfnote (char *name, logical f, char *linestart, int linelen, int lno, long cno)
 
void put_entries (NODE *node)
 
void 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)
 
void Scheme_funcs (FILE *fi)
 
 tail (char *cp)
 
void takeprec ()
 
struct TEX_tabentTEX_decode_env ()
 
struct TEX_tabentTEX_decode_env (char *evarname, char *defenv)
 
void TEX_funcs (FILE *fi)
 
void TEX_getit (char *name, int len)
 
void TEX_mode (FILE *f)
 
int TEX_Token (char *cp)
 
int 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
 
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
 

Macro Definition Documentation

◆ BAD

#define BAD   (1)

Definition at line 119 of file eustags.c.

◆ begtoken

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

Definition at line 129 of file eustags.c.

◆ CNL

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

Definition at line 797 of file eustags.c.

◆ CNL_SAVE_NUMBER

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

Definition at line 789 of file eustags.c.

◆ endtoken

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

Definition at line 131 of file eustags.c.

◆ FALSE

#define FALSE   (0)

Definition at line 126 of file eustags.c.

◆ GOOD

#define GOOD   (0)

Definition at line 118 of file eustags.c.

◆ intoken

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

Definition at line 130 of file eustags.c.

◆ isgood

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

Definition at line 132 of file eustags.c.

◆ istoken

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

Definition at line 138 of file eustags.c.

◆ iswhite

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

Definition at line 128 of file eustags.c.

◆ logical

#define logical   char

Definition at line 123 of file eustags.c.

◆ max

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

Definition at line 134 of file eustags.c.

◆ reg

#define reg   register

Definition at line 122 of file eustags.c.

◆ TEX_LESC

#define TEX_LESC   '\\'

Definition at line 1450 of file eustags.c.

◆ TEX_SESC

#define TEX_SESC   '!'

Definition at line 1451 of file eustags.c.

◆ TRUE

#define TRUE   (1)

Definition at line 125 of file eustags.c.

◆ VMS_SET_LINECHARNO

#define VMS_SET_LINECHARNO

Definition at line 786 of file eustags.c.

Typedef Documentation

◆ NODE

typedef struct nd_st NODE

Definition at line 152 of file eustags.c.

Enumeration Type Documentation

◆ TYST

enum TYST
Enumerator
none 
begin 
tag_ok 
middle 
end 

Definition at line 162 of file eustags.c.

Function Documentation

◆ add_node()

void add_node ( NODE node,
NODE cur_node 
)

Definition at line 639 of file eustags.c.

◆ C_entries()

void C_entries ( )

Definition at line 805 of file eustags.c.

◆ concat() [1/2]

char* concat ( )

◆ concat() [2/2]

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

Definition at line 1705 of file eustags.c.

◆ consider_token()

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

Definition at line 965 of file eustags.c.

◆ e_getline()

void e_getline ( long  atchar)

Definition at line 1086 of file eustags.c.

◆ error()

void error ( char *  s1,
char *  s2 
)

Definition at line 1694 of file eustags.c.

◆ fatal()

void fatal ( char *  s1,
char *  s2 
)

Definition at line 1684 of file eustags.c.

◆ find_entries()

void find_entries ( char *  file)

Definition at line 498 of file eustags.c.

◆ free_tree()

void free_tree ( NODE node)

Definition at line 627 of file eustags.c.

◆ ftell()

long ftell ( )

◆ get_scheme()

static void get_scheme ( )
static

Definition at line 1346 of file eustags.c.

◆ getit()

void getit ( )

Definition at line 1217 of file eustags.c.

◆ index()

char* index ( char *  sp,
char  c 
)

Definition at line 1669 of file eustags.c.

◆ init()

void init ( )

Definition at line 461 of file eustags.c.

◆ initbuffer() [1/2]

void initbuffer ( )

◆ initbuffer() [2/2]

void initbuffer ( struct linebuffer linebuffer)

Definition at line 1578 of file eustags.c.

◆ L_funcs()

void L_funcs ( FILE *  fi)

Definition at line 1244 of file eustags.c.

◆ L_getit()

void L_getit ( )

Definition at line 1279 of file eustags.c.

◆ main()

main ( int  ac,
av   
)

Definition at line 244 of file eustags.c.

◆ PF_funcs()

int PF_funcs ( FILE *  fi)

Definition at line 1104 of file eustags.c.

◆ pfnote()

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

Definition at line 569 of file eustags.c.

◆ put_entries() [1/2]

void put_entries ( NODE node)

◆ put_entries() [2/2]

void put_entries ( reg NODE node)

Definition at line 684 of file eustags.c.

◆ readline() [1/2]

long readline ( )

◆ readline() [2/2]

long readline ( struct linebuffer linebuffer,
FILE *  stream 
)

Definition at line 1589 of file eustags.c.

◆ rindex()

char* rindex ( char *  sp,
char  c 
)

Definition at line 1647 of file eustags.c.

◆ savenstr() [1/2]

char* savenstr ( )

◆ savenstr() [2/2]

char* savenstr ( char *  cp,
int  len 
)

Definition at line 1627 of file eustags.c.

◆ savestr() [1/2]

char* savestr ( )

◆ savestr() [2/2]

char* savestr ( char *  cp)

Definition at line 1620 of file eustags.c.

◆ Scheme_funcs()

void Scheme_funcs ( FILE *  fi)

Definition at line 1306 of file eustags.c.

◆ tail()

tail ( char *  cp)

Definition at line 1181 of file eustags.c.

◆ takeprec()

void takeprec ( )

Definition at line 1197 of file eustags.c.

◆ TEX_decode_env() [1/2]

struct TEX_tabent* TEX_decode_env ( )

◆ TEX_decode_env() [2/2]

struct TEX_tabent* TEX_decode_env ( char *  evarname,
char *  defenv 
)

Definition at line 1485 of file eustags.c.

◆ TEX_funcs()

void TEX_funcs ( FILE *  fi)

Definition at line 1400 of file eustags.c.

◆ TEX_getit()

void TEX_getit ( char *  name,
int  len 
)

Definition at line 1538 of file eustags.c.

◆ TEX_mode()

void TEX_mode ( FILE *  f)

Definition at line 1457 of file eustags.c.

◆ TEX_Token()

int TEX_Token ( char *  cp)

Definition at line 1564 of file eustags.c.

◆ total_size_of_entries()

int total_size_of_entries ( reg NODE node)

Definition at line 742 of file eustags.c.

◆ xmalloc()

int xmalloc ( int  size)

Definition at line 1722 of file eustags.c.

◆ xrealloc()

int xrealloc ( char *  ptr,
int  size 
)

Definition at line 1732 of file eustags.c.

Variable Documentation

◆ _btk

logical _btk[0177]

Definition at line 157 of file eustags.c.

◆ _etk

logical _etk[0177]

Definition at line 157 of file eustags.c.

◆ _gd

logical _gd[0177]

Definition at line 157 of file eustags.c.

◆ _itk

logical _itk[0177]

Definition at line 157 of file eustags.c.

◆ _wht

logical _wht[0177]

Definition at line 157 of file eustags.c.

◆ aflag

int aflag = 0

Definition at line 184 of file eustags.c.

◆ begtk

char * begtk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$"

Definition at line 177 of file eustags.c.

◆ charno

long charno

Definition at line 169 of file eustags.c.

◆ curfile

char* curfile

Definition at line 172 of file eustags.c.

◆ dbp

char* dbp

Definition at line 1098 of file eustags.c.

◆ eflag

int eflag = 0

Definition at line 190 of file eustags.c.

◆ endtk

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

Definition at line 175 of file eustags.c.

◆ file_num

int file_num = 0

Definition at line 183 of file eustags.c.

◆ gotone

logical gotone

Definition at line 155 of file eustags.c.

◆ head

NODE* head

Definition at line 198 of file eustags.c.

◆ inf

FILE* inf

Definition at line 195 of file eustags.c.

◆ intk

char * intk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$0123456789"

Definition at line 179 of file eustags.c.

◆ lb1

struct linebuffer lb lb1

Definition at line 223 of file eustags.c.

◆ linecharno

long linecharno

Definition at line 170 of file eustags.c.

◆ lineno

int lineno

Definition at line 168 of file eustags.c.

◆ notgd

char * notgd = ",;"

Definition at line 181 of file eustags.c.

◆ number

int number

Definition at line 154 of file eustags.c.

◆ outf

FILE * outf

Definition at line 196 of file eustags.c.

◆ outfile

char * outfile = 0

Definition at line 173 of file eustags.c.

◆ pfcnt

int pfcnt

Definition at line 1099 of file eustags.c.

◆ progname

char* progname

Definition at line 193 of file eustags.c.

◆ searchar

char searchar = '/'

Definition at line 166 of file eustags.c.

◆ TEX_clgrp

char TEX_clgrp = '}'
static

Definition at line 1391 of file eustags.c.

◆ TEX_defenv

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

Definition at line 1384 of file eustags.c.

◆ TEX_esc

char TEX_esc = '\\'
static

Definition at line 1389 of file eustags.c.

◆ TEX_opgrp

char TEX_opgrp = '{'
static

Definition at line 1390 of file eustags.c.

◆ TEX_toktab

struct TEX_tabent* TEX_toktab = NULL

Definition at line 1379 of file eustags.c.

◆ tflag

int tflag = 0

Definition at line 185 of file eustags.c.

◆ tydef

TYST tydef = none

Definition at line 164 of file eustags.c.

◆ uflag

int uflag = 0

Definition at line 186 of file eustags.c.

◆ vflag

int vflag = 0

Definition at line 188 of file eustags.c.

◆ wflag

int wflag = 0

Definition at line 187 of file eustags.c.

◆ white

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

Definition at line 174 of file eustags.c.

◆ xflag

int xflag = 0

Definition at line 189 of file eustags.c.

readline
long readline()
charno
long charno
Definition: eustags.c:169
inf
FILE * inf
Definition: eustags.c:195
lineno
int lineno
Definition: eustags.c:168


euslisp
Author(s): Toshihiro Matsui
autogenerated on Thu Jun 15 2023 02:06:43