[9] | 1 | /* $Header: /cvsup/minix/src/commands/patch/pch.h,v 1.1.1.1 2005/04/21 14:55:11 beng Exp $
|
---|
| 2 | *
|
---|
| 3 | * $Log: pch.h,v $
|
---|
| 4 | * Revision 1.1.1.1 2005/04/21 14:55:11 beng
|
---|
| 5 | * Initial import of pre-3.0.1
|
---|
| 6 | *
|
---|
| 7 | * Revision 1.1.1.1 2005/04/20 13:33:19 beng
|
---|
| 8 | * Initial import of minix 2.0.4
|
---|
| 9 | *
|
---|
| 10 | * Revision 2.0.1.1 87/01/30 22:47:16 lwall
|
---|
| 11 | * Added do_ed_script().
|
---|
| 12 | *
|
---|
| 13 | * Revision 2.0 86/09/17 15:39:57 lwall
|
---|
| 14 | * Baseline for netwide release.
|
---|
| 15 | *
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | EXT FILE *pfp INIT(Nullfp); /* patch file pointer */
|
---|
| 19 | #ifdef SMALL
|
---|
| 20 | EXT FILE *sfp INIT(Nullfp); /* string file pointer */
|
---|
| 21 | #endif
|
---|
| 22 |
|
---|
| 23 | _PROTOTYPE(void re_patch , (void));
|
---|
| 24 | _PROTOTYPE(void open_patch_file , (char *filename ));
|
---|
| 25 | _PROTOTYPE(void set_hunkmax , (void));
|
---|
| 26 | _PROTOTYPE(void grow_hunkmax , (void));
|
---|
| 27 | _PROTOTYPE(bool there_is_another_patch , (void));
|
---|
| 28 | _PROTOTYPE(int intuit_diff_type , (void));
|
---|
| 29 | _PROTOTYPE(void next_intuit_at , (long file_pos , long file_line ));
|
---|
| 30 | _PROTOTYPE(void skip_to , (long file_pos , long file_line ));
|
---|
| 31 | _PROTOTYPE(bool another_hunk , (void));
|
---|
| 32 | _PROTOTYPE(char *pgets , (char *bf , int sz , FILE *fp ));
|
---|
| 33 | _PROTOTYPE(bool pch_swap , (void));
|
---|
| 34 | _PROTOTYPE(LINENUM pch_first , (void));
|
---|
| 35 | _PROTOTYPE(LINENUM pch_ptrn_lines , (void));
|
---|
| 36 | _PROTOTYPE(LINENUM pch_newfirst , (void));
|
---|
| 37 | _PROTOTYPE(LINENUM pch_repl_lines , (void));
|
---|
| 38 | _PROTOTYPE(LINENUM pch_end , (void));
|
---|
| 39 | _PROTOTYPE(LINENUM pch_context , (void));
|
---|
| 40 | _PROTOTYPE(short pch_line_len , (LINENUM line ));
|
---|
| 41 | _PROTOTYPE(char pch_char , (LINENUM line ));
|
---|
| 42 | _PROTOTYPE(char *pfetch , (LINENUM line ));
|
---|
| 43 | _PROTOTYPE(LINENUM pch_hunk_beg , (void));
|
---|
| 44 | _PROTOTYPE(void do_ed_script , (void));
|
---|
| 45 | #ifdef SMALL
|
---|
| 46 | _PROTOTYPE(long saveStr , (char *string , short *length ));
|
---|
| 47 | _PROTOTYPE(void strEdit , (long pos , int from , int to ));
|
---|
| 48 | #endif
|
---|