Back to index

tetex-bin  3.0
Classes | Defines | Typedefs | Functions | Variables
term_entry.h File Reference
#include <term.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  entry
struct  entry.uses

Defines

#define MAX_USES   32
#define MAX_CROSSLINKS   16
#define NUM_BOOLEANS(tp)   BOOLCOUNT
#define NUM_NUMBERS(tp)   NUMCOUNT
#define NUM_STRINGS(tp)   STRCOUNT
#define EXT_NAMES(tp, i, limit, index, table)   table[i]
#define NUM_EXT_NAMES(tp)   ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings)
#define for_each_boolean(n, tp)   for(n = 0; n < NUM_BOOLEANS(tp); n++)
#define for_each_number(n, tp)   for(n = 0; n < NUM_NUMBERS(tp); n++)
#define for_each_string(n, tp)   for(n = 0; n < NUM_STRINGS(tp); n++)
#define ExtBoolname(tp, i, names)   EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Booleans)), names)
#define ExtNumname(tp, i, names)   EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)
#define ExtStrname(tp, i, names)   EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)
#define for_entry_list(qp)   for (qp = _nc_head; qp; qp = qp->next)
#define MAX_LINE   132
#define NULLHOOK   (bool(*)(ENTRY *))0
#define WANTED(s)   ((s) == ABSENT_STRING)
#define PRESENT(s)   (((s) != ABSENT_STRING) && ((s) != CANCELLED_STRING))
#define ANDMISSING(p, q)   {if (PRESENT(p) && !PRESENT(q)) _nc_warning(#p " but no " #q);}
#define PAIRED(p, q)

Typedefs

typedef struct entry ENTRY

Functions

 NCURSES_EXPORT_VAR (ENTRY *) _nc_head
 NCURSES_EXPORT (ENTRY *) _nc_copy_entry(ENTRY *oldp)
 NCURSES_EXPORT (char *) _nc_save_str(const char *const )
 NCURSES_EXPORT (void) _nc_init_entry(TERMTYPE *const )
 NCURSES_EXPORT (int) _nc_parse_entry(ENTRY *
 NCURSES_EXPORT (bool) _nc_entry_match(char *

Variables

TERMTYPE * const
 bool
 int
NCURSES_IMPEXP void NCURSES_API(* _nc_check_termtype )(TERMTYPE *)
NCURSES_IMPEXP void NCURSES_API(* _nc_check_termtype2 )(TERMTYPE *, bool)

Class Documentation

struct entry

Definition at line 53 of file term_entry.h.

Collaboration diagram for entry:
Class Members
long cend
struct entry * crosslinks
long cstart
struct entry * last
int ncrosslinks
struct entry * next
int nuses
long startline
TERMTYPE tterm
struct entry uses
struct entry.uses

Definition at line 56 of file term_entry.h.

Class Members
long line
struct entry * link
char * name

Define Documentation

#define ANDMISSING (   p,
 
)    {if (PRESENT(p) && !PRESENT(q)) _nc_warning(#p " but no " #q);}

Definition at line 109 of file term_entry.h.

#define EXT_NAMES (   tp,
  i,
  limit,
  index,
  table 
)    table[i]

Definition at line 81 of file term_entry.h.

#define ExtBoolname (   tp,
  i,
  names 
)    EXT_NAMES(tp, i, BOOLCOUNT, (i - (tp->num_Booleans - tp->ext_Booleans)), names)

Definition at line 90 of file term_entry.h.

#define ExtNumname (   tp,
  i,
  names 
)    EXT_NAMES(tp, i, NUMCOUNT, (i - (tp->num_Numbers - tp->ext_Numbers)) + tp->ext_Booleans, names)

Definition at line 91 of file term_entry.h.

#define ExtStrname (   tp,
  i,
  names 
)    EXT_NAMES(tp, i, STRCOUNT, (i - (tp->num_Strings - tp->ext_Strings)) + (tp->ext_Numbers + tp->ext_Booleans), names)

Definition at line 92 of file term_entry.h.

#define for_each_boolean (   n,
  tp 
)    for(n = 0; n < NUM_BOOLEANS(tp); n++)

Definition at line 86 of file term_entry.h.

#define for_each_number (   n,
  tp 
)    for(n = 0; n < NUM_NUMBERS(tp); n++)

Definition at line 87 of file term_entry.h.

#define for_each_string (   n,
  tp 
)    for(n = 0; n < NUM_STRINGS(tp); n++)

Definition at line 88 of file term_entry.h.

#define for_entry_list (   qp)    for (qp = _nc_head; qp; qp = qp->next)

Definition at line 96 of file term_entry.h.

#define MAX_CROSSLINKS   16

Definition at line 51 of file term_entry.h.

#define MAX_LINE   132

Definition at line 98 of file term_entry.h.

#define MAX_USES   32

Definition at line 50 of file term_entry.h.

#define NULLHOOK   (bool(*)(ENTRY *))0

Definition at line 100 of file term_entry.h.

#define NUM_BOOLEANS (   tp)    BOOLCOUNT

Definition at line 78 of file term_entry.h.

#define NUM_EXT_NAMES (   tp)    ((tp)->ext_Booleans + (tp)->ext_Numbers + (tp)->ext_Strings)

Definition at line 84 of file term_entry.h.

#define NUM_NUMBERS (   tp)    NUMCOUNT

Definition at line 79 of file term_entry.h.

#define NUM_STRINGS (   tp)    STRCOUNT

Definition at line 80 of file term_entry.h.

#define PAIRED (   p,
 
)
Value:
{ \
              if (PRESENT(q) && !PRESENT(p)) \
                     _nc_warning(#q " but no " #p); \
              if (PRESENT(p) && !PRESENT(q)) \
                     _nc_warning(#p " but no " #q); \
              }

Definition at line 112 of file term_entry.h.

#define PRESENT (   s)    (((s) != ABSENT_STRING) && ((s) != CANCELLED_STRING))

Definition at line 107 of file term_entry.h.

#define WANTED (   s)    ((s) == ABSENT_STRING)

Definition at line 106 of file term_entry.h.


Typedef Documentation

char bool ENTRY

Definition at line 150 of file term_entry.h.


Function Documentation

NCURSES_EXPORT ( char *  ) const
NCURSES_EXPORT ( void  ) const

Definition at line 86 of file comp_parse.c.

{
    ENTRY *newp = _nc_copy_entry(ep);

    if (newp == 0)
       _nc_err_abort(MSG_NO_MEMORY);

    newp->last = _nc_tail;
    _nc_tail = newp;

    newp->next = 0;
    if (newp->last)
       newp->last->next = newp;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 63 of file comp_parse.c.

Definition at line 59 of file comp_parse.c.

Definition at line 125 of file term_entry.h.

TERMTYPE* const

Definition at line 124 of file term_entry.h.

char int

Definition at line 142 of file term_entry.h.