mined.h File Reference

#include <minix/config.h>
#include <sys/types.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <limits.h>

Include dependency graph for mined.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Line
struct  regex

Defines

#define YMAX   24
#define X_PLUS   ' '
#define Y_PLUS   ' '
#define XMAX   79
#define SCREENMAX   (YMAX - 1)
#define XBREAK   (XMAX - 0)
#define SHIFT_SIZE   25
#define SHIFT_MARK   '!'
#define MAX_CHARS   1024
#define LINE_START
#define LINE_END   (MAX_CHARS + 1)
#define LINE_LEN   (XMAX + 1)
#define SCREEN_SIZE   (XMAX * YMAX)
#define BLOCK_SIZE   1024
#define ERRORS   -1
#define NO_LINE   (ERRORS - 1)
#define FINE   (ERRORS + 1)
#define NO_INPUT   (ERRORS + 2)
#define STD_OUT   1
#define MEMORY_SIZE   (50 * 1024)
#define REPORT   2
#define FALSE   0
#define TRUE   1
#define NOT_VALID   2
#define VALID   3
#define OFF   4
#define ON   5
#define FORWARD   6
#define REVERSE   7
#define SMALLER   8
#define BIGGER   9
#define SAME   10
#define EMPTY   11
#define NO_DELETE   12
#define DELETE   13
#define READ   14
#define WRITE   15
#define DUMMY   0x80
#define DUMMY_MASK   0x7F
#define NO_MATCH   0
#define MATCH   1
#define REG_ERROR   2
#define BEGIN_LINE   (2 * REG_ERROR)
#define END_LINE   (2 * BEGIN_LINE)
#define NIL_PTR   ((char *) 0)
#define NIL_LINE   ((LINE *) 0)
#define NIL_REG   ((REGEX *) 0)
#define NIL_INT   ((int *) 0)
#define clear_buffer()   (out_count = 0)
#define putchar(c)   (void) write_char(STD_OUT, (c))
#define ring_bell()   putchar('\07')
#define string_print(str)   (void) writeline(STD_OUT, (str))
#define flush()   (void) flush_buffer(STD_OUT)
#define tab(cnt)   (((cnt) + 8) & ~07)
#define is_tab(c)   ((c) == '\t')
#define white_space(c)   ((c) == ' ' || (c) == '\t')
#define alpha(c)   ((c) != ' ' && (c) != '\t' && (c) != '\n')
#define line_print(line)   put_line(line, 0, TRUE)
#define move_to(nx, ny)   move((nx), NIL_PTR, (ny))
#define move_address(address)   move(0, (address), y)
#define status_line(str1, str2)
#define error(str1, str2)
#define get_string(str1, str2, fl)   bottom_line(ON, (str1), NIL_PTR, (str2), fl)
#define clear_status()
#define fstatus(mess, cnt)
#define get_shift(cnt)   ((cnt) & DUMMY_MASK)

Typedefs

typedef int FLAG
typedef Line LINE
typedef regex REGEX

Functions

 _PROTOTYPE (void FS,(void))
 _PROTOTYPE (int WT,(void))
 _PROTOTYPE (LINE *proceed,(LINE *line, int count))
 _PROTOTYPE (int bottom_line,(FLAG revfl, char *s1, char *s2, char *inbuf, FLAG statfl))
 _PROTOTYPE (int count_chars,(LINE *line))
 _PROTOTYPE (void move,(int new_x, char *new_address, int new_y))
 _PROTOTYPE (int find_x,(LINE *line, char *address))
 _PROTOTYPE (char *find_address,(LINE *line, int x_coord, int *old_x))
 _PROTOTYPE (int length_of,(char *string))
 _PROTOTYPE (void copy_string,(char *to, char *from))
 _PROTOTYPE (void reset,(LINE *head_line, int screen_y))
 _PROTOTYPE (void set_cursor,(int nx, int ny))
 _PROTOTYPE (void display,(int x_coord, int y_coord, LINE *line, int count))
 _PROTOTYPE (int write_char,(int fd, int c))
 _PROTOTYPE (int writeline,(int fd, char *text))
 _PROTOTYPE (void put_line,(LINE *line, int offset, FLAG clear_line))
 _PROTOTYPE (int flush_buffer,(int fd))
 _PROTOTYPE (void bad_write,(int fd))
 _PROTOTYPE (void catch,(int sig))
 _PROTOTYPE (void raw_mode,(FLAG state))
 _PROTOTYPE (void panic,(char *message))
 _PROTOTYPE (char *alloc,(int bytes))
 _PROTOTYPE (void free_space,(char *p))
 _PROTOTYPE (char *basename,(char *path))
 _PROTOTYPE (void load_file,(char *file))
 _PROTOTYPE (int get_line,(int fd, char *buffer))
 _PROTOTYPE (LINE *install_line,(char *buffer, int length))
 _PROTOTYPE (void main,(int argc, char *argv[]))
 _PROTOTYPE (void file_status,(char *message, long count, char *file, int lines, FLAG writefl, FLAG changed))
void build_string ()
 _PROTOTYPE (char *num_out,(long number))
 _PROTOTYPE (int get_number,(char *message, int *result))
 _PROTOTYPE (int input,(char *inbuf, FLAG clearfl))
 _PROTOTYPE (int get_file,(char *message, char *file))
 _PROTOTYPE (void _putchar,(int c))
 _PROTOTYPE (void move_previous_word,(FLAG remove))
 _PROTOTYPE (void S,(int character))
 _PROTOTYPE (LINE *line_insert,(LINE *line, char *string, int len))
 _PROTOTYPE (int insert,(LINE *line, char *location, char *string))
 _PROTOTYPE (LINE *line_delete,(LINE *line))
 _PROTOTYPE (void delete,(LINE *start_line, char *start_textp, LINE *end_line, char *end_textp))
 _PROTOTYPE (void file_insert,(int fd, FLAG old_pos))
 _PROTOTYPE (void yank,(LINE *start_line, char *start_textp, LINE *end_line, char *end_textp, FLAG remove))
 _PROTOTYPE (int scratch_file,(FLAG mode))
 _PROTOTYPE (REGEX *get_expression,(char *message))
 _PROTOTYPE (void change,(char *message, FLAG file))
 _PROTOTYPE (char *substitute,(LINE *line, REGEX *program, char *replacement))
 _PROTOTYPE (void search,(char *message, FLAG method))
 _PROTOTYPE (int find_y,(LINE *match_line))
 _PROTOTYPE (void finished,(REGEX *program, int *last_exp))
 _PROTOTYPE (void compile,(char *pattern, REGEX *program))
 _PROTOTYPE (LINE *match,(REGEX *program, char *string, FLAG method))
 _PROTOTYPE (int line_check,(REGEX *program, char *string, FLAG method))
 _PROTOTYPE (int check_string,(REGEX *program, char *string, int *expression))
 _PROTOTYPE (int star,(REGEX *program, char *end_position, char *string, int *expression))
 _PROTOTYPE (int in_list,(int *list, int c, int list_length, int opcode))

Variables

char * enter_string
char * rev_video
char * normal_video
char * rev_scroll
char * pos_string
int nlines
LINEheader
LINEtail
LINEtop_line
LINEbot_line
LINEcur_line
char * cur_text
int last_y
int ymax
int screenmax
char screen [SCREEN_SIZE]
int x
int y
FLAG modified
FLAG stat_visible
FLAG writable
FLAG quit
FLAG rpipe
int input_fd
FLAG loading
int out_count
char file_name [LINE_LEN]
char text_buffer [MAX_CHARS]
char * blank_line
char yank_file []
FLAG yank_status
long chars_saved


Define Documentation

#define alpha c   )     ((c) != ' ' && (c) != '\t' && (c) != '\n')
 

Definition at line 203 of file mined.h.

Referenced by move_next_word(), and move_previous_word().

#define BEGIN_LINE   (2 * REG_ERROR)
 

Definition at line 110 of file mined.h.

Referenced by change(), check_string(), compile(), line_check(), and match().

#define BIGGER   9
 

Definition at line 79 of file mined.h.

Referenced by checkmark(), and set_up().

#define BLOCK_SIZE   1024
 

Definition at line 47 of file mined.h.

Referenced by allocbitmap(), blk_ok(), chkdirzone(), chksuper(), conv2_blkcpy(), conv4_blkcpy(), cw_inode_block(), devio(), devread(), devwrite(), dump_file(), dumpbitmap(), enter_dir(), file(), get_rawblock(), init_super(), list_dir(), list_file(), loadbitmap(), look_up(), main(), p1_rw_inodes(), print_fs(), printtotal(), proc_ind(), rd_indirects(), read_block(), readfs(), recurse_dir(), rw_boot(), rw_data_zones(), rw_ibmap(), rw_init_super(), rw_inode(), rw_super(), rw_zbmap(), set_bit(), show_info(), sizeup(), super(), valid_fs(), was_blk_special(), and write_block().

 
#define clear_buffer  )     (out_count = 0)
 

Definition at line 171 of file mined.h.

Referenced by bad_write(), flush_buffer(), load_file(), scratch_file(), and WT().

 
#define clear_status  ) 
 

Value:

Definition at line 228 of file mined.h.

Referenced by abort_mined(), bottom_line(), change(), CTL(), main(), and search().

#define DELETE   13
 

Definition at line 83 of file mined.h.

#define DUMMY   0x80
 

Definition at line 102 of file mined.h.

Referenced by dummy_line(), and WT().

#define DUMMY_MASK   0x7F
 

Definition at line 103 of file mined.h.

#define EMPTY   11
 

Definition at line 81 of file mined.h.

#define END_LINE   (2 * BEGIN_LINE)
 

Definition at line 111 of file mined.h.

Referenced by change(), compile(), and match().

#define error str1,
str2   ) 
 

Value:

(void) bottom_line(ON, (str1), \
                                                    (str2), NIL_PTR, FALSE)

Definition at line 225 of file mined.h.

Referenced by _catch(), a_free(), add(), add_path(), addent(), allocbuf(), Arith(), Array(), Assign(), bad_write(), calendar(), Call(), cdcmd(), change(), chrsave(), ckmalloc(), ckrealloc(), clear_vses(), close1(), compact(), compare(), copy(), copy_member(), copydir(), crc(), CTL(), date_exp(), del_entry(), delete(), Delete(), div_ext(), do_chkm(), do_chown(), do_error(), do_lcomm(), do_nextfile(), do_previousfile(), do_search(), do_visit(), do_writefile(), dodecl(), dodefine(), dodiv(), doevent(), doincl(), doinclude(), dopushdef(), dump_stack(), efopen(), emalloc(), eopen(), epopen(), error2(), eval(), evalbackcmd(), evalpipe(), evalvar(), execute(), expr_operator(), extract(), find_command(), Forin(), forkshell(), ftpget(), get1(), get2(), get_expression(), get_header(), get_ipconf(), get_member(), get_opts(), get_slots(), getbuf(), getdiv(), getfp(), getjob(), getoptscmd(), getpwd(), getrec(), GOTO(), grep(), gz_uncompress(), IF(), In(), initkeys(), input(), insert(), inspect(), install(), ListHosts(), localcmd(), macro(), main(), make_dir(), makepat(), mbrk(), mkrec(), mread(), msbrk(), mwrite(), n_or_rn_search(), new_field(), newaccess(), newdisk(), newline(), nextblock(), nextopt(), number(), onintr(), open_archive(), open_outfile(), openhere(), openredirect(), options(), output(), parsefield(), parsenode(), pbstr(), print_table(), printentry(), process(), PT(), push_attr(), putback(), rd_fatal(), read_conf(), read_registers(), read_segmap(), readcmd(), readcmdfile(), readline(), regerror(), reply_thr_put(), rsource(), savestr(), scanreg(), scratch_file(), set_up(), setinputfile(), setoption(), setsignal(), setvarcmd(), setvareq(), SH(), shellescape(), sink(), size(), source(), Split(), stalloc(), stat_all(), Strfun(), Subst(), substitute(), synerror(), tar(), tmpfil(), token(), umaskcmd(), usage(), verifydir(), vfat_lookup_loop_common(), visitfile(), waitforjob(), WB(), win32_error_file_func(), win32_read_file_func(), win32_seek_file_func(), win32_tell_file_func(), win32_write_file_func(), wr_fatal(), wrt_fd(), WT(), and zcopy().

#define ERRORS   -1
 

Definition at line 50 of file mined.h.

Referenced by change(), checkmark(), file_insert(), flush_buffer(), forward_scroll(), get_expression(), get_line(), GOTO(), insert(), legal(), load_file(), PD(), PT(), PU(), reverse_scroll(), S(), scratch_file(), SD(), VI(), WB(), writeline(), WT(), XT(), and yank().

#define FALSE   0
 

Definition at line 66 of file mined.h.

#define FINE   (ERRORS + 1)
 

Definition at line 52 of file mined.h.

Referenced by bottom_line(), flush_buffer(), forward_scroll(), IF(), insert(), legal(), reverse_scroll(), WB(), write_char(), writeline(), and WT().

#define flush void   )     (void) flush_buffer(STD_OUT)
 

Definition at line 191 of file mined.h.

Referenced by abort_mined(), bottom_line(), change(), cons_echo(), cons_putk(), cons_write(), def(), do_escape(), error(), getch(), give_prompt(), initialize(), load_file(), main(), n_or_rn_search(), out_char(), partcompress(), pexit(), print(), put(), quit(), readline(), recompress(), resettty(), scroll_screen(), search(), SH(), shellescape(), tarfile(), unzReadCurrentFile(), and XT().

#define FORWARD   6
 

Definition at line 74 of file mined.h.

#define fstatus mess,
cnt   ) 
 

Value:

file_status((mess), (cnt), file_name, \
                                             nlines, writable, modified)

Definition at line 234 of file mined.h.

Referenced by FS(), load_file(), and WT().

#define get_shift cnt   )     ((cnt) & DUMMY_MASK)
 

Definition at line 240 of file mined.h.

Referenced by count_chars(), delete(), find_address(), find_x(), LF(), and put_line().

#define get_string str1,
str2,
fl   )     bottom_line(ON, (str1), NIL_PTR, (str2), fl)
 

Definition at line 227 of file mined.h.

Referenced by change(), get_expression(), get_list(), and set_var().

#define is_tab c   )     ((c) == '\t')
 

Definition at line 197 of file mined.h.

Referenced by count_chars(), find_address(), find_x(), and put_line().

#define LINE_END   (MAX_CHARS + 1)
 

Definition at line 43 of file mined.h.

Referenced by EL(), LF(), and LIB().

#define LINE_LEN   (XMAX + 1)
 

Definition at line 45 of file mined.h.

#define line_print line   )     put_line(line, 0, TRUE)
 

Definition at line 208 of file mined.h.

Referenced by change(), delete(), display(), file_insert(), forward_scroll(), move(), reverse_scroll(), and S().

#define LINE_START
 

Value:

Definition at line 41 of file mined.h.

Referenced by BL(), EF(), HO(), move_next_word(), and RT().

#define MATCH   1
 

Definition at line 107 of file mined.h.

#define MAX_CHARS   1024
 

Definition at line 38 of file mined.h.

Referenced by delete(), file_insert(), insert(), and substitute().

#define MEMORY_SIZE   (50 * 1024)
 

Definition at line 58 of file mined.h.

Referenced by check_file(), get_file(), last_line(), main(), and merge().

#define move_address address   )     move(0, (address), y)
 

Definition at line 218 of file mined.h.

Referenced by move_next_word(), and move_previous_word().

#define move_to nx,
ny   )     move((nx), NIL_PTR, (ny))
 

Definition at line 213 of file mined.h.

Referenced by BL(), change(), delete(), DN(), EF(), EL(), file_insert(), GOTO(), HIGH(), HO(), LF(), LIB(), load_file(), LOW(), move_next_word(), PD(), PU(), RD(), RT(), S(), SD(), SU(), UP(), and yank().

#define NIL_INT   ((int *) 0)
 

Definition at line 134 of file mined.h.

Referenced by check_string(), and line_check().

#define NIL_LINE   ((LINE *) 0)
 

Definition at line 132 of file mined.h.

Referenced by match(), and search().

#define NIL_PTR   ((char *) 0)
 

Definition at line 131 of file mined.h.

#define NIL_REG   ((REGEX *) 0)
 

Definition at line 133 of file mined.h.

Referenced by change(), get_expression(), and search().

#define NO_DELETE   12
 

Definition at line 82 of file mined.h.

Referenced by MN(), MP(), and YA().

#define NO_INPUT   (ERRORS + 2)
 

Definition at line 53 of file mined.h.

#define NO_LINE   (ERRORS - 1)
 

Definition at line 51 of file mined.h.

Referenced by file_insert(), and get_line().

#define NO_MATCH   0
 

Definition at line 106 of file mined.h.

Referenced by check_string(), in_list(), main(), match(), and star().

#define NOT_VALID   2
 

Definition at line 68 of file mined.h.

Referenced by change(), checkmark(), LR(), scratch_file(), and set_up().

#define OFF   4
 

Definition at line 70 of file mined.h.

#define ON   5
 

Definition at line 71 of file mined.h.

#define putchar c   )     (void) write_char(STD_OUT, (c))
 

Definition at line 176 of file mined.h.

Referenced by abort_mined(), Block_Pointers(), Charput(), check(), chktree(), concise_view_attrib(), dbgprint(), del_entry(), df(), dfhand(), differ(), disbss(), disdata(), display(), do_indent(), docmds1(), dos_showfat(), Draw_Map(), Draw_Strings(), dump_stack(), Expand(), extract(), fmt(), fmtdate(), Fold(), footnotes(), fputchar(), getendif(), interact(), key(), leaveDirectory(), list(), list_file(), list_part_types(), listfiles(), mahand(), main(), Map_Pointers(), mark(), mjhand(), mmhand(), mygets(), netfinger(), objout(), out_char(), outc(), output(), parse(), personprint(), pldecimal(), princhar(), Print(), print(), print1(), Print_Ascii(), Print_Number(), printname(), printpath(), printperm(), printrec(), printSummary(), Process(), prolog(), prt(), prteoln(), pstring(), put_line(), Putchar(), putchr(), quickprint(), rdupto(), ScreenPut(), Search(), SH(), shortprint(), show_info(), Sigint(), srhand(), tail(), Unexpand(), update(), view_attrib(), vlook(), Word_Pointers(), and XT().

#define READ   14
 

Definition at line 84 of file mined.h.

#define REG_ERROR   2
 

Definition at line 108 of file mined.h.

Referenced by at_intr_wait(), atapi_intr_wait(), get_expression(), and match().

#define REPORT   2
 

Definition at line 61 of file mined.h.

Referenced by change(), and file_insert().

#define REVERSE   7
 

Definition at line 75 of file mined.h.

Referenced by line_check(), and SR().

 
#define ring_bell  )     putchar('\07')
 

Definition at line 181 of file mined.h.

Referenced by c_complete(), c_possible(), cmd_xct(), copy_region(), delete_string(), do_hist(), do_insert_hist(), do_macro(), e_wding(), exchange(), f_repline(), f_retsup(), f_throw(), f_unkill(), f_unkpop(), f_vtbuttons(), h_search(), kill_buf(), kill_win(), last_argument(), meta(), sayall(), and wipe().

#define SAME   10
 

Definition at line 80 of file mined.h.

Referenced by checkmark(), cmp(), cmp_fields(), digits(), do_rename(), print_table(), set_up(), and uniq_lines().

#define SCREEN_SIZE   (XMAX * YMAX)
 

Definition at line 46 of file mined.h.

Referenced by get_line(), and write_char().

#define SCREENMAX   (YMAX - 1)
 

Definition at line 34 of file mined.h.

#define SHIFT_MARK   '!'
 

Definition at line 37 of file mined.h.

Referenced by put_line().

#define SHIFT_SIZE   25
 

Definition at line 36 of file mined.h.

Referenced by count_chars(), delete(), find_address(), find_x(), move(), and put_line().

#define SMALLER   8
 

Definition at line 78 of file mined.h.

Referenced by checkmark(), and set_up().

#define status_line str1,
str2   ) 
 

Value:

(void) bottom_line(ON, (str1), \
                                                    (str2), NIL_PTR, FALSE)

Definition at line 223 of file mined.h.

Referenced by abort_mined(), change(), CTL(), file_insert(), load_file(), MA(), search(), set_up(), WB(), WT(), and yank().

#define STD_OUT   1
 

Definition at line 55 of file mined.h.

#define string_print str   )     (void) writeline(STD_OUT, (str))
 

Definition at line 186 of file mined.h.

Referenced by add_file(), bottom_line(), copy(), display(), error(), extract(), main(), make_header(), path_name(), PU(), put_line(), RD(), reverse_scroll(), set_cursor(), SU(), tarfile(), verb_print(), and VI().

#define tab cnt   )     (((cnt) + 8) & ~07)
 

Definition at line 196 of file mined.h.

Referenced by count_chars(), find_address(), find_x(), isbuiltin(), iscntl(), iskeywd(), load_crontabs(), put_line(), putword(), reap_or_find(), run_job(), tab_find_atjob(), tab_parse(), tab_print(), tab_purge(), and vgets().

#define TRUE   1
 

Definition at line 67 of file mined.h.

#define VALID   3
 

Definition at line 69 of file mined.h.

Referenced by change(), gid_name(), GR(), name_gid(), name_uid(), uid_name(), and yank().

#define white_space c   )     ((c) == ' ' || (c) == '\t')
 

Definition at line 202 of file mined.h.

Referenced by move_next_word(), and move_previous_word().

#define WRITE   15
 

Definition at line 85 of file mined.h.

#define X_PLUS   ' '
 

Definition at line 29 of file mined.h.

#define XBREAK   (XMAX - 0)
 

Definition at line 35 of file mined.h.

Referenced by delete(), move(), put_line(), and S().

#define XMAX   79
 

Definition at line 33 of file mined.h.

#define Y_PLUS   ' '
 

Definition at line 30 of file mined.h.

#define YMAX   24
 

Definition at line 22 of file mined.h.


Typedef Documentation

typedef int FLAG
 

Definition at line 63 of file mined.h.

typedef struct Line LINE
 

Definition at line 99 of file mined.h.

typedef struct regex REGEX
 

Definition at line 128 of file mined.h.


Function Documentation

_PROTOTYPE int  in_list,
(int *list, int c, int list_length, int opcode
 

_PROTOTYPE int  star,
(REGEX *program, char *end_position, char *string, int *expression
 

_PROTOTYPE int  check_string,
(REGEX *program, char *string, int *expression
 

_PROTOTYPE int  line_check,
(REGEX *program, char *string, FLAG method) 
 

_PROTOTYPE LINE match,
(REGEX *program, char *string, FLAG method) 
 

_PROTOTYPE void  compile,
(char *pattern, REGEX *program
 

_PROTOTYPE void  finished,
(REGEX *program, int *last_exp) 
 

_PROTOTYPE int  find_y,
(LINE *match_line) 
 

_PROTOTYPE void  search,
(char *message, FLAG method) 
 

_PROTOTYPE char *  substitute,
(LINE *line, REGEX *program, char *replacement) 
 

_PROTOTYPE void  change,
(char *message, FLAG file
 

_PROTOTYPE REGEX get_expression,
(char *message
 

_PROTOTYPE int  scratch_file,
(FLAG mode
 

_PROTOTYPE void  yank,
(LINE *start_line, char *start_textp, LINE *end_line, char *end_textp, FLAG remove) 
 

_PROTOTYPE void  file_insert,
(int fd, FLAG old_pos) 
 

_PROTOTYPE void  delete,
(LINE *start_line, char *start_textp, LINE *end_line, char *end_textp) 
 

_PROTOTYPE LINE line_delete,
(LINE *line
 

_PROTOTYPE int  insert,
(LINE *line, char *location, char *string
 

_PROTOTYPE LINE line_insert,
(LINE *line, char *string, int len) 
 

_PROTOTYPE void  S,
(int character) 
 

_PROTOTYPE void  move_previous_word,
(FLAG remove) 
 

_PROTOTYPE void  _putchar,
(int c
 

_PROTOTYPE int  get_file,
(char *message, char *file
 

_PROTOTYPE int  input,
(char *inbuf, FLAG clearfl
 

_PROTOTYPE int  get_number,
(char *message, int *result
 

_PROTOTYPE char *  num_out,
(long number) 
 

_PROTOTYPE void  file_status,
(char *message, long count, char *file, int lines, FLAG writefl, FLAG changed
 

_PROTOTYPE void  main,
(int argc, char *argv[]) 
 

_PROTOTYPE LINE install_line,
(char *buffer, int length) 
 

_PROTOTYPE int  get_line,
(int fd, char *buffer
 

_PROTOTYPE void  load_file,
(char *file
 

_PROTOTYPE char *  basename,
(char *path) 
 

_PROTOTYPE void  free_space,
(char *p
 

_PROTOTYPE char *  alloc,
(int bytes
 

_PROTOTYPE void  panic,
(char *message
 

_PROTOTYPE void  raw_mode,
(FLAG state
 

_PROTOTYPE void  catch,
(int sig
 

_PROTOTYPE void  bad_write,
(int fd
 

_PROTOTYPE int  flush_buffer,
(int fd
 

_PROTOTYPE void  put_line,
(LINE *line, int offset, FLAG clear_line) 
 

_PROTOTYPE int  writeline,
(int fd, char *text
 

_PROTOTYPE int  write_char,
(int fd, int c
 

_PROTOTYPE void  display,
(int x_coord, int y_coord, LINE *line, int count) 
 

_PROTOTYPE void  set_cursor,
(int nx, int ny) 
 

_PROTOTYPE void  reset,
(LINE *head_line, int screen_y) 
 

_PROTOTYPE void  copy_string,
(char *to, char *from) 
 

_PROTOTYPE int  length_of,
(char *string
 

_PROTOTYPE char *  find_address,
(LINE *line, int x_coord, int *old_x) 
 

_PROTOTYPE int  find_x,
(LINE *line, char *address) 
 

_PROTOTYPE void  move,
(int new_x, char *new_address, int new_y) 
 

_PROTOTYPE int  count_chars,
(LINE *line
 

_PROTOTYPE int  bottom_line,
(FLAG revfl, char *s1, char *s2, char *inbuf, FLAG statfl) 
 

_PROTOTYPE LINE proceed,
(LINE *line, int count) 
 

_PROTOTYPE int  WT,
(void) 
 

_PROTOTYPE void  FS,
(void) 
 

void build_string  ) 
 

Referenced by bad_write(), change(), panic(), and set_cursor().


Variable Documentation

char* blank_line
 

Definition at line 1246 of file mined1.c.

Referenced by bottom_line(), display(), PU(), put_line(), RD(), and SU().

LINE* bot_line
 

Definition at line 1220 of file mined1.c.

Referenced by DN(), dummy_line(), EF(), file_insert(), find_y(), forward_scroll(), reset(), and reverse_scroll().

long chars_saved
 

Definition at line 1254 of file mined1.c.

Referenced by set_up(), WB(), and yank().

LINE* cur_line
 

Definition at line 1218 of file mined1.c.

Referenced by change(), checkmark(), DCC(), DLN(), DPC(), DPW(), file_insert(), forward_scroll(), LF(), load_file(), MA(), match(), move(), move_next_word(), move_previous_word(), reset(), reverse_scroll(), RT(), S(), and set_up().

char* cur_text
 

Definition at line 1221 of file mined1.c.

Referenced by checkmark(), DCC(), DLN(), DNW(), DPW(), file_insert(), MA(), move(), move_next_word(), move_previous_word(), RT(), S(), search(), and set_up().

char* enter_string
 

Definition at line 1241 of file mined1.c.

Referenced by panic(), RD(), and VI().

char file_name[LINE_LEN]
 

Definition at line 41 of file ctags.c.

LINE* header
 

Definition at line 49 of file skeleton.c.

int input_fd
 

Definition at line 1232 of file mined1.c.

Referenced by getchar(), open_device(), and raw_mode().

int last_y
 

Definition at line 1222 of file mined1.c.

Referenced by delete(), DN(), dummy_line(), EF(), LOW(), move(), RD(), reset(), reverse_scroll(), and S().

FLAG loading
 

Definition at line 1229 of file mined1.c.

Referenced by alloc(), display(), and panic().

FLAG modified
 

Definition at line 1226 of file mined1.c.

Referenced by delete(), insert(), substitute(), VI(), WT(), and XT().

int nlines
 

Definition at line 23 of file vars.c.

char* normal_video
 

Definition at line 1245 of file mined1.c.

Referenced by bottom_line(), and put_line().

int out_count
 

Definition at line 40 of file global.h.

char* pos_string
 

Definition at line 1242 of file mined1.c.

Referenced by set_cursor().

void quit
 

Definition at line 424 of file acd.c.

Referenced by abort_mined(), catch(), change(), check_string(), cmdcomp(), cmdline(), command(), do_comm(), err(), fatal(), getchar(), getdesc(), initialize(), input(), main(), match(), openfile(), panic(), reader(), search(), set_uart(), shellescape(), split(), start(), test20d(), and test2a().

char* rev_scroll
 

Definition at line 1243 of file mined1.c.

Referenced by reverse_scroll().

char* rev_video
 

Definition at line 1244 of file mined1.c.

Referenced by bottom_line(), and put_line().

FLAG rpipe
 

Definition at line 1231 of file mined1.c.

Referenced by cmd_tag(), filter(), SH(), and WT().

static void screen
 

Definition at line 219 of file ttn.c.

Referenced by flush_buffer(), main(), and write_char().

int screenmax
 

Definition at line 422 of file mined1.c.

Referenced by change(), dummy_line(), EF(), file_insert(), find_y(), HO(), main(), PD(), PU(), reset(), reverse_scroll(), S(), and SU().

FLAG stat_visible
 

Definition at line 1227 of file mined1.c.

Referenced by bottom_line().

LINE* tail
 

Definition at line 1217 of file mined1.c.

Referenced by bf_align(), bf_append(), bf_cut(), bf_memreq(), change(), checkmark(), delete(), display(), dissect(), DN(), dummy_line(), EF(), forward_scroll(), fts_build(), GOTO(), initialize(), ipeth_restart_send(), ipeth_send(), main(), makepat(), move_next_word(), proceed(), reset(), RT(), and WT().

char text_buffer[MAX_CHARS]
 

Definition at line 1235 of file mined1.c.

Referenced by bad_write(), delete(), insert(), panic(), set_cursor(), substitute(), and WB().

LINE* top_line
 

Definition at line 1219 of file mined1.c.

Referenced by delete(), file_insert(), find_y(), forward_scroll(), HO(), RD(), reset(), reverse_scroll(), S(), and SU().

FLAG writable
 

Definition at line 1228 of file mined1.c.

Referenced by copy(), copy1(), do1(), remove1(), and WT().

int x
 

Definition at line 1225 of file mined1.c.

Referenced by _ext_str_cvt(), add(), add_exponent(), add_ext(), Arith(), Assign(), bottom_line(), change(), Cond(), delete(), DN(), Do(), DPC(), encrypt(), escape(), f(), file_insert(), For(), format(), getfval(), getLong(), GOTO(), inindex(), initialize(), LF(), lookup(), main(), makepathtables(), Mathfun(), move(), option(), P1stat(), P2stat(), print_cycle(), pushname(), RD(), read_string(), RT(), S(), SD(), show(), source(), Strfun(), SU(), timing_dmp(), topo(), transformline(), transpose(), unzlocal_getLong(), unzlocal_getShort(), UP(), upd_curs(), update(), user_interface(), v_popup(), waddch(), wclrtoeol(), wdelch(), While(), winsch(), ziplocal_getLong(), and ziplocal_getShort().

int y
 

Definition at line 1225 of file mined1.c.

Referenced by Arith(), ask(), Assign(), BL(), bottom_line(), change(), Cond(), d_fgoloff(), delete(), DN(), EL(), f(), file_insert(), LF(), LIB(), main(), Mathfun(), move(), move_next_word(), PD(), PU(), RD(), reset(), RT(), S(), SD(), sinh_cosh(), sinus(), SU(), tan(), touchwin(), UP(), upd_curs(), update(), user_interface(), v_popup(), waddch(), wclrtobot(), wclrtoeol(), wdelch(), wdeleteln(), werase(), winsch(), and winsertln().

char yank_file[]
 

Definition at line 1253 of file mined1.c.

Referenced by panic(), scratch_file(), and XT().

FLAG yank_status
 

Definition at line 1252 of file mined1.c.

Referenced by scratch_file(), set_up(), and yank().

int ymax
 

Definition at line 421 of file mined1.c.

Referenced by abort_mined(), bottom_line(), change(), forward_scroll(), main(), PU(), RD(), search(), SH(), SU(), and XT().


Generated on Fri Apr 14 23:05:30 2006 for minix by  doxygen 1.4.6