sxatedit.c File Reference

#include "sxversion.h"
#include "sxunix.h"
Include dependency graph for sxatedit.c:

Go to the source code of this file.

Defines

#define USER_PTR   SXINT*
#define print_from_arrows   print_a_string
#define print_to_arrows   print_a_string
#define print_horizontal_bar   print_a_string
#define switches   (long) 0

Functions

SXVOID sxpptree (USER_PTR tree, long min_dist_sxpptree, long min_dist_on_subtrees_sxpptree, long page_width_sxpptree, long(*get_key_length)(USER_PTR), USER_PTR(*get_left_son)(USER_PTR), USER_PTR(*get_right_brother)(USER_PTR), long(*get_sons_number)(USER_PTR), SXVOID(*print_from_arrows)(char *), SXVOID(*print_horizontal_bar)(char *), SXVOID(*print_key)(USER_PTR, SXINT, long), SXVOID(*print_to_arrows)(char *), SXVOID(*put_blanks)(long), SXVOID(*put_page)(void), SXVOID(*put_skip)(void), long switches)
SXVOID sxateditinit (FILE *file, long md1, long md2, long pw)
static long get_key_length (SXNODE *node)
static SXNODE * get_left_son (SXNODE *node)
static SXNODE * get_right_brother (SXNODE *node)
static long get_sons_number (SXNODE *node)
static SXVOID print_a_string (char *str)
static SXVOID print_key (SXNODE *node, long start, long lgt)
static SXVOID put_blanks (long count)
static SXVOID put_page (void)
static SXVOID put_skip (void)
SXVOID sxatedit (SXNODE *tree)

Variables

char WHAT_SXATEDIT [] = "@(#)SYNTAX - $Id: sxatedit.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG
static FILE * ateditfile = NULL
static long min_dist = 1
static long min_dist_on_subtrees = 1
static long page_width = 132

Define Documentation

#define print_from_arrows   print_a_string

Referenced by sxatedit(), and sxpptree().

#define print_horizontal_bar   print_a_string

Referenced by sxatedit(), and sxpptree().

#define print_to_arrows   print_a_string

Referenced by sxatedit(), and sxpptree().

#define switches   (long) 0

Referenced by sxatedit().

#define USER_PTR   SXINT*

Definition at line 35 of file sxatedit.c.

Referenced by place(), and sxatedit().


Function Documentation

static long get_key_length ( SXNODE *  node  )  [static]

Definition at line 73 of file sxatedit.c.

static SXNODE* get_left_son ( SXNODE *  node  )  [static]

Definition at line 91 of file sxatedit.c.

static SXNODE* get_right_brother ( SXNODE *  node  )  [static]

Definition at line 101 of file sxatedit.c.

static long get_sons_number ( SXNODE *  node  )  [static]

Definition at line 110 of file sxatedit.c.

static SXVOID print_a_string ( char str  )  [static]

Definition at line 119 of file sxatedit.c.

References ateditfile.

static SXVOID print_key ( SXNODE *  node,
long  start,
long  lgt 
) [static]

Definition at line 130 of file sxatedit.c.

References ateditfile.

static SXVOID put_blanks ( long  count  )  [static]

Definition at line 164 of file sxatedit.c.

References ateditfile.

static SXVOID put_page ( void   )  [static]

Definition at line 174 of file sxatedit.c.

References ateditfile.

static SXVOID put_skip ( void   )  [static]

Definition at line 183 of file sxatedit.c.

References ateditfile.

SXVOID sxatedit ( SXNODE *  tree  ) 
SXVOID sxateditinit ( FILE *  file,
long  md1,
long  md2,
long  pw 
)

Definition at line 58 of file sxatedit.c.

References ateditfile, min_dist, min_dist_on_subtrees, and page_width.

SXVOID sxpptree ( USER_PTR  tree,
long  min_dist_sxpptree,
long  min_dist_on_subtrees_sxpptree,
long  page_width_sxpptree,
long(*)(USER_PTR)  get_key_length,
USER_PTR(*)(USER_PTR)  get_left_son,
USER_PTR(*)(USER_PTR)  get_right_brother,
long(*)(USER_PTR)  get_sons_number,
SXVOID(*)(char *)  print_from_arrows,
SXVOID(*)(char *)  print_horizontal_bar,
SXVOID(*)(USER_PTR, SXINT, long)  print_key,
SXVOID(*)(char *)  print_to_arrows,
SXVOID(*)(long)  put_blanks,
SXVOID(*)(void)  put_page,
SXVOID(*)(void)  put_skip,
long  switches 
)

Variable Documentation

FILE* ateditfile = NULL [static]

Definition at line 37 of file sxatedit.c.

Referenced by print_a_string(), print_key(), put_blanks(), put_page(), put_skip(), and sxateditinit().

long min_dist = 1 [static]

Definition at line 38 of file sxatedit.c.

Referenced by sxatedit(), and sxateditinit().

long min_dist_on_subtrees = 1 [static]

Definition at line 38 of file sxatedit.c.

Referenced by sxatedit(), and sxateditinit().

long page_width = 132 [static]

Definition at line 38 of file sxatedit.c.

Referenced by sxatedit(), and sxateditinit().

char WHAT_SXATEDIT[] = "@(#)SYNTAX - $Id: sxatedit.c 1416 2008-06-25 14:42:55Z rlacroix $" WHAT_DEBUG

Definition at line 33 of file sxatedit.c.


Generated on Wed Apr 21 16:39:36 2010 for syntax-6.0b7 by  doxygen 1.6.1