Back to index

tetex-bin  3.0
Classes | Defines | Typedefs | Functions | Variables
info.h File Reference
#include "system.h"
#include "filesys.h"
#include "doc.h"
#include "display.h"
#include "session.h"
#include "echo-area.h"
#include "footnotes.h"
#include "gc.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  INFO_WINDOW

Defines

#define HANDLE_MAN_PAGES
#define NAMED_FUNCTIONS
#define INFOKEY
#define info_toupper(x)   (islower (x) ? toupper (x) : x)
#define info_tolower(x)   (isupper (x) ? tolower (x) : x)
#define add_pointer_to_array(pointer, idx, array, slots, grow, type)
#define maybe_free(x)   do { if (x) free (x); } while (0)

Typedefs

typedef int Function ()
typedef void VFunction ()
typedef char * CFunction ()

Functions

void info_error (char *format, void *arg1, void *arg2)
void add_file_directory_to_path (char *filename)
void set_variable_to_value (char *name, char *value)
char * read_function_name (char *prompt, WINDOW *window)

Variables

INFO_WINDOW ** info_windows
int info_windows_initialized_p
int info_error_was_printed
int info_error_rings_bell_p
int vi_keys_p
int raw_escapes_p
const char * msg_cant_find_node
const char * msg_cant_file_node
const char * msg_cant_find_window
const char * msg_cant_find_point
const char * msg_cant_kill_last
const char * msg_no_menu_node
const char * msg_no_foot_node
const char * msg_no_xref_node
const char * msg_no_pointer
const char * msg_unknown_command
const char * msg_term_too_dumb
const char * msg_at_node_bottom
const char * msg_at_node_top
const char * msg_one_window
const char * msg_win_too_small
const char * msg_cant_make_help

Class Documentation

struct INFO_WINDOW

Definition at line 95 of file info.h.

Collaboration diagram for INFO_WINDOW:
Class Members
int current
NODE ** nodes
int nodes_index
int nodes_slots
int * pagetops
long * points
WINDOW * window

Define Documentation

#define add_pointer_to_array (   pointer,
  idx,
  array,
  slots,
  grow,
  type 
)
Value:
do { \
    if (idx + 2 >= slots) \
      array = (type *)(xrealloc (array, (slots += grow) * sizeof (type))); \
    array[idx++] = (type)pointer; \
    array[idx] = (type)NULL; \
  } while (0)

Definition at line 63 of file info.h.

Definition at line 27 of file info.h.

#define info_tolower (   x)    (isupper (x) ? tolower (x) : x)

Definition at line 48 of file info.h.

#define info_toupper (   x)    (islower (x) ? toupper (x) : x)

Definition at line 47 of file info.h.

#define INFOKEY

Definition at line 29 of file info.h.

#define maybe_free (   x)    do { if (x) free (x); } while (0)

Definition at line 71 of file info.h.

#define NAMED_FUNCTIONS

Definition at line 28 of file info.h.


Typedef Documentation

typedef char* CFunction()

Definition at line 37 of file info.h.

typedef int Function()

Definition at line 35 of file info.h.

typedef void VFunction()

Definition at line 36 of file info.h.


Function Documentation

void add_file_directory_to_path ( char *  filename)

Definition at line 517 of file info.c.

{
  char *directory_name = xstrdup (filename);
  char *temp = filename_non_directory (directory_name);

  if (temp != directory_name)
    {
      if (HAVE_DRIVE (directory_name) && temp == directory_name + 2)
       {
         /* The directory of "d:foo" is stored as "d:.", to avoid
            mixing it with "d:/" when a slash is appended.  */
         *temp = '.';
         temp += 2;
       }
      temp[-1] = 0;
      info_add_path (directory_name, INFOPATH_PREPEND);
    }

  free (directory_name);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void info_error ( char *  format,
void arg1,
void arg2 
)

Definition at line 551 of file info.c.

{
  info_error_was_printed = 1;

  if (!info_windows_initialized_p || display_inhibited)
    {
      fprintf (stderr, "%s: ", program_name);
      fprintf (stderr, format, arg1, arg2);
      fprintf (stderr, "\n");
      fflush (stderr);
    }
  else
    {
      if (!echo_area_is_active)
        {
          if (info_error_rings_bell_p)
            terminal_ring_bell ();
          window_message_in_echo_area (format, arg1, arg2);
        }
      else
        {
          NODE *temp;

          temp = build_message_node (format, arg1, arg2);
          if (info_error_rings_bell_p)
            terminal_ring_bell ();
          inform_in_echo_area (temp->contents);
          free (temp->contents);
          free (temp);
        }
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

char* read_function_name ( char *  prompt,
WINDOW window 
)

Definition at line 36 of file m-x.c.

{
  register int i;
  char *line;
  REFERENCE **array = (REFERENCE **)NULL;
  int array_index = 0, array_slots = 0;

  /* Make an array of REFERENCE which actually contains the names of
     the functions available in Info. */
  for (i = 0; function_doc_array[i].func; i++)
    {
      REFERENCE *entry;

      entry = (REFERENCE *)xmalloc (sizeof (REFERENCE));
      entry->label = xstrdup (function_doc_array[i].func_name);
      entry->nodename = (char *)NULL;
      entry->filename = (char *)NULL;

      add_pointer_to_array
        (entry, array_index, array, array_slots, 200, REFERENCE *);
    }

  line = info_read_completing_in_echo_area (window, prompt, array);

  info_free_references (array);

  if (!echo_area_is_active)
    window_clear_echo_area ();

  return (line);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void set_variable_to_value ( char *  name,
char *  value 
)

Here is the caller graph for this function:


Variable Documentation

Definition at line 545 of file info.c.

Definition at line 542 of file info.c.

Definition at line 59 of file session.c.

Definition at line 135 of file info.c.

Definition at line 660 of file info.c.

Definition at line 661 of file info.c.

Definition at line 650 of file info.c.

Definition at line 649 of file info.c.

Definition at line 652 of file info.c.

Definition at line 651 of file info.c.

Definition at line 653 of file info.c.

Definition at line 664 of file info.c.

Definition at line 655 of file info.c.

Definition at line 654 of file info.c.

Definition at line 657 of file info.c.

Definition at line 656 of file info.c.

Definition at line 662 of file info.c.

Definition at line 659 of file info.c.

Definition at line 658 of file info.c.

Definition at line 663 of file info.c.

Definition at line 81 of file info.c.

Definition at line 78 of file info.c.