diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-10-08 09:32:37 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-10-08 09:32:37 +0000 |
commit | 690babd46a4f0a6025de3b39caeddcde39e3638a (patch) | |
tree | 8234819a81f1542e6dfa67a640d154c3cd78e0bc | |
parent | 4c29528601ef04095a1d07b5e75484ef70648485 (diff) |
Import ee 1.5.1.vendor/ee/1.5.1
Notes
Notes:
svn path=/vendor/ee/dist/; revision=213562
svn path=/vendor/ee/ee-1.5.1/; revision=213563; tag=vendor/ee/1.5.1
-rwxr-xr-x | ee.c | 37 | ||||
-rw-r--r-- | ee_version.h | 4 |
2 files changed, 20 insertions, 21 deletions
@@ -50,7 +50,7 @@ | proprietary information which is protected by | copyright. All rights are reserved. | - | $Header: /home/hugh/sources/old_ae/RCS/ee.c,v 1.102 2009/02/17 03:22:50 hugh Exp hugh $ + | $Header: /home/hugh/sources/old_ae/RCS/ee.c,v 1.103 2010/05/20 03:40:29 hugh Exp hugh $ | */ @@ -59,7 +59,7 @@ char *ee_copyright_message = #include "ee_version.h" -char *version = "@(#) ee, version " EE_VERSION " $Revision: 1.102 $"; +char *version = "@(#) ee, version " EE_VERSION " $Revision: 1.103 $"; #ifdef NCURSE #include "new_curse.h" @@ -308,7 +308,7 @@ void undel_word P_((void)); void del_line P_((void)); void undel_line P_((void)); void adv_word P_((void)); -void move_rel P_((char *direction, int lines)); +void move_rel P_((char direction, int lines)); void eol P_((void)); void bol P_((void)); void adv_line P_((void)); @@ -552,7 +552,7 @@ char *argv[]; { int counter; - for (counter = 1; counter < 24; counter++) + for (counter = 1; counter < SIGUNUSED; counter++) signal(counter, SIG_IGN); signal(SIGCHLD, SIG_DFL); @@ -825,7 +825,6 @@ int disp; } else if (curr_line->prev_line != NULL) { - absolute_lin--; text_changes = TRUE; left(disp); /* go to previous line */ temp_buff = curr_line->next_line; @@ -1221,11 +1220,11 @@ control() /* use control for commands */ else if (in == 13) /* control m */ insert_line(TRUE); else if (in == 14) /* control n */ - move_rel("d", max(5, (last_line - 5))); + move_rel('d', max(5, (last_line - 5))); else if (in == 15) /* control o */ eol(); else if (in == 16) /* control p */ - move_rel("u", max(5, (last_line - 5))); + move_rel('u', max(5, (last_line - 5))); else if (in == 17) /* control q */ ; else if (in == 18) /* control r */ @@ -1276,7 +1275,7 @@ emacs_control() else if (in == 6) /* control f */ right(TRUE); else if (in == 7) /* control g */ - move_rel("u", max(5, (last_line - 5))); + move_rel('u', max(5, (last_line - 5))); else if (in == 8) /* control h */ delete(TRUE); else if (in == 9) /* control i */ @@ -1315,7 +1314,7 @@ emacs_control() else if (in == 21) /* control u */ bottom(); else if (in == 22) /* control v */ - move_rel("d", max(5, (last_line - 5))); + move_rel('d', max(5, (last_line - 5))); else if (in == 23) /* control w */ del_word(); else if (in == 24) /* control x */ @@ -1550,9 +1549,9 @@ function_key() /* process function key */ else if (in == KEY_DOWN) down(); else if (in == KEY_NPAGE) - move_rel("d", max( 5, (last_line - 5))); + move_rel('d', max( 5, (last_line - 5))); else if (in == KEY_PPAGE) - move_rel("u", max(5, (last_line - 5))); + move_rel('u', max(5, (last_line - 5))); else if (in == KEY_DL) del_line(); else if (in == KEY_DC) @@ -1990,7 +1989,7 @@ char *cmd_str; int number; int i; char *ptr; - char *direction = NULL; + char direction = '\0'; struct text *t_line; ptr = cmd_str; @@ -2007,12 +2006,12 @@ char *cmd_str; { i++; t_line = t_line->prev_line; - direction = "u"; + direction = 'u'; } while ((t_line->line_number < number) && (t_line->next_line != NULL)) { i++; - direction = "d"; + direction = 'd'; t_line = t_line->next_line; } if ((i < 30) && (i > 0)) @@ -2021,7 +2020,7 @@ char *cmd_str; } else { - if (!strcmp(direction, "d")) + if (direction != 'd') { absolute_lin += i; } @@ -2218,7 +2217,7 @@ check_fp() /* open or close files according to flags */ if (start_at_line != NULL) { line_num = atoi(start_at_line) - 1; - move_rel("d", line_num); + move_rel('d', line_num); line_num = 0; start_at_line = NULL; } @@ -2661,7 +2660,7 @@ int display_message; { if (lines_moved < 30) { - move_rel("d", lines_moved); + move_rel('d', lines_moved); while (position < iter) right(TRUE); } @@ -2941,13 +2940,13 @@ while ((position < curr_line->line_length) && ((*point == 32) || (*point == 9))) void move_rel(direction, lines) /* move relative to current line */ -char *direction; +char direction; int lines; { int i; char *tmp; - if (*direction == 'u') + if (direction == 'u') { scr_pos = 0; while (position > 1) diff --git a/ee_version.h b/ee_version.h index 339e4806a942..c8e9ae42cf2a 100644 --- a/ee_version.h +++ b/ee_version.h @@ -2,5 +2,5 @@ | provide a version number for ee */ -#define EE_VERSION "1.5.0" -#define DATE_STRING "$Date: 2009/02/17 03:32:30 $" +#define EE_VERSION "1.5.1" +#define DATE_STRING "$Date: 2010/05/20 03:43:33 $" |