Back to index

tetex-bin  3.0
Enumerations | Functions
xref.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  reftype { menu_reference, followed_reference }

Functions

char * get_xref_token (int expand)

Enumeration Type Documentation

enum reftype
Enumerator:
menu_reference 
followed_reference 

Definition at line 23 of file xref.h.


Function Documentation

char* get_xref_token ( int  expand)

Definition at line 63 of file xref.c.

{
  char *string = 0;

  if (docbook)
    xml_in_xref_token = 1;

  if (expand)
    {
      int old_offset = input_text_offset;
      int old_lineno = line_number;

      get_until_in_braces ("}", &string);
      if (curchar () == '}')    /* as opposed to end of text */
        input_text_offset++;
      if (input_text_offset > old_offset)
        {
          int limit = input_text_offset;

          input_text_offset = old_offset;
          line_number = old_lineno;
          only_macro_expansion++;
          replace_with_expansion (input_text_offset, &limit);
          only_macro_expansion--;
        }
      free (string);
    }

  get_until_in_braces (",", &string);
  if (curchar () == ',')
    input_text_offset++;
  fix_whitespace (string);

  if (docbook)
    xml_in_xref_token = 0;

  return string;
}

Here is the call graph for this function:

Here is the caller graph for this function: