Home | History | Annotate | Line # | Download | only in more
extern.h revision 1.2.10.1
      1  1.2.10.1       jmc /*	$NetBSD: extern.h,v 1.2.10.1 2004/09/01 03:34:10 jmc Exp $	 */
      2       1.1  christos 
      3       1.1  christos /*
      4       1.1  christos  * Copyright (c) 1997 Christos Zoulas. All rights reserved.
      5       1.1  christos  *
      6       1.1  christos  * Redistribution and use in source and binary forms, with or without
      7       1.1  christos  * modification, are permitted provided that the following conditions
      8       1.1  christos  * are met:
      9       1.1  christos  * 1. Redistributions of source code must retain the above copyright
     10       1.1  christos  *    notice, this list of conditions and the following disclaimer.
     11       1.1  christos  * 2. Redistributions in binary form must reproduce the above copyright
     12       1.1  christos  *    notice, this list of conditions and the following disclaimer in the
     13       1.1  christos  *    documentation and/or other materials provided with the distribution.
     14       1.1  christos  * 3. All advertising materials mentioning features or use of this software
     15       1.1  christos  *    must display the following acknowledgement:
     16       1.1  christos  *	This product includes software developed by Christos Zoulas.
     17       1.1  christos  * 4. The name of the author may not be used to endorse or promote products
     18       1.1  christos  *    derived from this software without specific prior written permission.
     19       1.1  christos  *
     20       1.1  christos  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     21       1.1  christos  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     22       1.1  christos  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23       1.1  christos  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     24       1.1  christos  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     25       1.1  christos  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     26       1.1  christos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     27       1.1  christos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     28       1.1  christos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     29       1.1  christos  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     30       1.1  christos  */
     31       1.1  christos /* ch.c */
     32       1.1  christos int ch_seek __P((off_t));
     33       1.1  christos int ch_end_seek __P((void));
     34       1.1  christos int ch_beg_seek __P((void));
     35       1.1  christos off_t ch_length __P((void));
     36       1.1  christos off_t ch_tell __P((void));
     37       1.1  christos int ch_forw_get __P((void));
     38       1.1  christos int ch_back_get __P((void));
     39       1.1  christos void ch_init __P((int, int));
     40       1.1  christos int ch_addbuf __P((int));
     41       1.1  christos 
     42       1.1  christos /* command.c */
     43       1.1  christos void start_mca __P((int, char *));
     44       1.1  christos int prompt __P((void));
     45       1.1  christos void commands __P((void));
     46       1.1  christos void editfile __P((void));
     47       1.1  christos void showlist __P((void));
     48       1.1  christos 
     49       1.1  christos /* decode.c */
     50       1.1  christos void noprefix __P((void));
     51       1.1  christos int cmd_decode __P((int));
     52       1.1  christos int cmd_search __P((char *, char *));
     53       1.1  christos 
     54       1.1  christos /* help.c */
     55       1.1  christos void help __P((void));
     56       1.1  christos 
     57       1.1  christos /* input.c */
     58       1.1  christos off_t forw_line __P((off_t));
     59       1.1  christos off_t back_line __P((off_t));
     60       1.1  christos 
     61       1.1  christos /* line.c */
     62       1.1  christos void prewind __P((void));
     63       1.1  christos int pappend __P((int));
     64       1.1  christos off_t forw_raw_line __P((off_t));
     65       1.1  christos off_t back_raw_line __P((off_t));
     66       1.1  christos 
     67       1.1  christos /* linenum.c */
     68       1.1  christos void clr_linenum __P((void));
     69       1.1  christos void add_lnum __P((int, off_t));
     70       1.1  christos int find_linenum __P((off_t));
     71       1.1  christos int currline __P((int));
     72       1.1  christos 
     73       1.1  christos /* main.c */
     74       1.1  christos int edit __P((char *));
     75       1.1  christos void next_file __P((int));
     76       1.1  christos void prev_file __P((int));
     77       1.1  christos int main __P((int, char **));
     78       1.1  christos char *save __P((char *));
     79       1.1  christos void quit __P((void)) __attribute__((noreturn));
     80       1.1  christos 
     81       1.1  christos /* option.c */
     82       1.1  christos int option __P((int, char **));
     83       1.1  christos 
     84       1.1  christos /* os.c */
     85       1.1  christos void lsystem __P((char *));
     86       1.1  christos int iread __P((int, char *, int));
     87       1.1  christos void intread __P((void));
     88       1.1  christos char *glob __P((char *));
     89       1.1  christos char *bad_file __P((char *, char *, u_int));
     90       1.1  christos void strtcpy __P((char *, char *, int));
     91       1.1  christos 
     92       1.1  christos /* output.c */
     93       1.1  christos void put_line __P((void));
     94       1.1  christos void flush __P((void));
     95       1.1  christos void purge __P((void));
     96       1.2        pk int  putchr __P((int));
     97       1.1  christos void putstr __P((char *));
     98       1.1  christos void error __P((char *));
     99       1.1  christos void ierror __P((char *));
    100       1.1  christos 
    101       1.1  christos /* position.c */
    102       1.1  christos off_t position __P((int));
    103       1.1  christos void add_forw_pos __P((off_t));
    104       1.1  christos void add_back_pos __P((off_t));
    105       1.1  christos void copytable __P((void));
    106       1.1  christos void pos_clear __P((void));
    107       1.1  christos int onscreen __P((off_t));
    108       1.1  christos 
    109       1.1  christos /* prim.c */
    110       1.1  christos void eof_check __P((void));
    111       1.1  christos void squish_check __P((void));
    112       1.1  christos void forw __P((int, off_t, int));
    113       1.1  christos void back __P((int, off_t, int));
    114       1.1  christos void forward __P((int, int));
    115       1.1  christos void backward __P((int, int));
    116       1.1  christos void prepaint __P((off_t));
    117       1.1  christos void repaint __P((void));
    118       1.1  christos void jump_forw __P((void));
    119       1.1  christos void jump_back __P((int));
    120       1.1  christos void jump_percent __P((int));
    121       1.1  christos void jump_loc __P((off_t));
    122       1.1  christos void init_mark __P((void));
    123       1.1  christos void setmark __P((int));
    124       1.1  christos void lastmark __P((void));
    125       1.1  christos void gomark __P((int));
    126       1.1  christos int get_back_scroll __P((void));
    127       1.1  christos int search __P((int, char *, int, int));
    128       1.1  christos 
    129       1.1  christos /* screen.c */
    130       1.1  christos void raw_mode __P((int));
    131       1.1  christos void get_term __P((void));
    132       1.1  christos void init __P((void));
    133       1.1  christos void deinit __P((void));
    134       1.1  christos void home __P((void));
    135       1.1  christos void add_line __P((void));
    136       1.1  christos void lower_left __P((void));
    137       1.1  christos void bell __P((void));
    138       1.1  christos void clear __P((void));
    139       1.1  christos void clear_eol __P((void));
    140       1.1  christos void so_enter __P((void));
    141       1.1  christos void so_exit __P((void));
    142       1.1  christos void ul_enter __P((void));
    143       1.1  christos void ul_exit __P((void));
    144       1.1  christos void bo_enter __P((void));
    145       1.1  christos void bo_exit __P((void));
    146       1.1  christos void backspace __P((void));
    147       1.1  christos void putbs __P((void));
    148       1.1  christos 
    149       1.1  christos /* signal.c */
    150       1.1  christos void winch __P((int));
    151       1.1  christos void init_signals __P((int));
    152       1.1  christos void psignals __P((void));
    153       1.1  christos 
    154       1.1  christos /* ttyin.c */
    155       1.1  christos void open_getchr __P((void));
    156       1.1  christos int getchr __P((void));
    157       1.1  christos 
    158       1.1  christos extern char **av;
    159       1.1  christos extern char *current_file;
    160       1.1  christos extern char *current_name;
    161       1.1  christos extern char *firstsearch;
    162       1.1  christos extern char *line;
    163       1.1  christos extern char *next_name;
    164       1.1  christos extern int ac;
    165       1.1  christos extern int any_display;
    166       1.1  christos extern int auto_wrap;
    167       1.1  christos extern int back_scroll;
    168       1.1  christos extern int be_width;
    169       1.1  christos extern int bo_width;
    170       1.1  christos extern int bs_mode;
    171       1.1  christos extern int caseless;
    172       1.1  christos extern int cbufs;
    173       1.1  christos extern int cmdstack;
    174       1.1  christos extern int curr_ac;
    175       1.1  christos extern int erase_char;
    176       1.1  christos extern int errmsgs;
    177       1.1  christos extern int file;
    178       1.1  christos extern int hit_eof;
    179       1.1  christos extern int ignaw;
    180       1.1  christos extern int ispipe;
    181       1.1  christos extern int kill_char;
    182       1.1  christos extern int linenums;
    183       1.1  christos extern int lnloop;
    184       1.1  christos extern int quit_at_eof;
    185       1.1  christos extern int quitting;
    186       1.1  christos extern int reading;
    187       1.1  christos extern int retain_below;
    188       1.1  christos extern int sc_height;
    189       1.1  christos extern int sc_width;
    190       1.1  christos extern int sc_window;
    191       1.1  christos extern int screen_trashed;
    192  1.2.10.1       jmc extern int scroll_lines;
    193       1.1  christos extern int se_width;
    194       1.1  christos extern int short_file;
    195       1.1  christos extern int sigs;
    196       1.1  christos extern int so_width;
    197       1.1  christos extern int squeeze;
    198       1.1  christos extern int tabstop;
    199       1.1  christos extern int top_scroll;
    200       1.1  christos extern int ue_width;
    201       1.1  christos extern int ul_width;
    202       1.1  christos extern int werase_char;
    203