diff options
author | Thiago Farina <tfransosi@gmail.com> | 2010-08-29 22:21:42 -0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-09-07 13:47:00 -0700 |
commit | b71ee14235e13382fd1f69d96bd42cbf5c2a0a11 (patch) | |
tree | 1aa54d54ff292300a3b7a1fef8d314df0d07d97f | |
parent | 9f801a88222af6aa07102414ae0d203dfca3812a (diff) | |
download | uemacs-b71ee14235e13382fd1f69d96bd42cbf5c2a0a11.tar.gz |
uemacs: Remove two completly unused functions (fnclabel and spal).
The implementation of these functions are doing anything at all at this moment.
So cleanup a bit the code by removing fnclabel and spal functions completly.
Signed-off-by: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | ansi.c | 17 | ||||
-rw-r--r-- | efunc.h | 3 | ||||
-rw-r--r-- | estruct.h | 1 | ||||
-rw-r--r-- | eval.c | 4 | ||||
-rw-r--r-- | ibmpc.c | 18 | ||||
-rw-r--r-- | names.c | 3 | ||||
-rw-r--r-- | tcap.c | 71 | ||||
-rw-r--r-- | vmsvt.c | 25 | ||||
-rw-r--r-- | vt52.c | 16 |
9 files changed, 23 insertions, 135 deletions
@@ -179,12 +179,6 @@ int ansicres() return TRUE; } -/* Change pallette settings. */ -void spal(void) -{ - /* none for now */ -} - void ansibeep(void) { ttputc(BEL); @@ -244,15 +238,4 @@ void ansikclose(void) { } -#if FNLABEL -/* Label a function key. - * f: default flag - * n: numeric argument [unused] - */ -int fnclabel(int f, int n) -{ - /* On machines with no function keys...don't bother. */ - return TRUE; -} -#endif #endif @@ -375,6 +375,3 @@ extern void lckerror(char *errstr); /* pklock.c */ extern char *dolock(char *fname); extern char *undolock(char *fname); - -/* tcap.c */ -extern void spal(char *dummy); @@ -150,7 +150,6 @@ #define ISRCH 1 /* Incremental searches like ITS EMACS */ #define WORDPRO 1 /* Advanced word processing features */ -#define FNLABEL 0 /* function key label code [HP150] */ #define APROP 1 /* Add code for Apropos command */ #define CRYPT 1 /* file encryption enabled? */ #define MAGIC 1 /* include regular expression matching? */ @@ -571,10 +571,6 @@ int svar(VDESC *var, char *value) case EVSTATUS: cmdstatus = stol(value); break; - case EVPALETTE: - strncpy(palstr, value, 48); - spal(palstr); - break; case EVASAVE: gasave = atoi(value); break; @@ -285,12 +285,6 @@ void ibmscroll_reg(from, to, howmany) #endif -/* Reset the pallette registers. */ -void spal(void) -{ - /* nothin here now..... */ -} - void ibmbeep(void) { bdos(6, BEL, 0); @@ -498,16 +492,4 @@ void scwrite(int row, char *outstr, int forg, int bacg) movmem(&sline[0], scptr[row], term.t_ncol * 2); } -#if FNLABEL -/* Label a function key. - * - * @f: default flag - * @n: numeric argument [unused]. - */ -int fnclabel(int f, int n) -{ - /* on machines with no function keys...don't bother */ - return TRUE; -} -#endif #endif @@ -139,9 +139,6 @@ struct name_bind names[] = { #endif {"kill-region", killregion}, {"kill-to-end-of-line", killtext}, -#if FNLABEL - {"label-function-key", fnclabel}, -#endif {"list-buffers", listbuffers}, {"meta-prefix", metafn}, {"move-window-down", mvdnwind}, @@ -1,4 +1,4 @@ -/* TCAP.C +/* tcap.c * * Unix V7 SysV and BS4 Termcap video driver * @@ -6,21 +6,20 @@ */ /* - * defining this to 1 breaks tcapopen() - it doesn't check if the + * Defining this to 1 breaks tcapopen() - it doesn't check if the * sceen size has changed. * -lbt */ #define USE_BROKEN_OPTIMIZATION 0 -#define termdef 1 /* don't define "term" external */ +#define termdef 1 /* Don't define "term" external. */ -#include <stdio.h> #include <curses.h> +#include <stdio.h> #include <term.h> -#include "estruct.h" -#include "edef.h" -#include "efunc.h" - +#include "estruct.h" +#include "edef.h" +#include "efunc.h" #if TERMCAP @@ -30,7 +29,7 @@ #define MARGIN 8 #define SCRSIZ 64 -#define NPAUSE 10 /* # times thru update to pause */ +#define NPAUSE 10 /* # times thru update to pause. */ #define BEL 0x07 #define ESC 0x1B @@ -46,32 +45,31 @@ static void tcapscrollregion(int top, int bot); static void putpad(char *str); static void tcapopen(void); -#if PKCODE +#if PKCODE static void tcapclose(void); #endif -#if COLOR +#if COLOR static void tcapfcol(void); static void tcapbcol(void); #endif -#if SCROLLCODE +#if SCROLLCODE static void tcapscroll_reg(int from, int to, int linestoscroll); static void tcapscroll_delins(int from, int to, int linestoscroll); #endif - #define TCAPSLEN 315 static char tcapbuf[TCAPSLEN]; static char *UP, PC, *CM, *CE, *CL, *SO, *SE; -#if PKCODE +#if PKCODE static char *TI, *TE; #if USE_BROKEN_OPTIMIZATION static int term_init_ok = 0; #endif #endif -#if SCROLLCODE +#if SCROLLCODE static char *CS, *DL, *AL, *SF, *SR; #endif @@ -217,7 +215,6 @@ static void tcapopen(void) } #if PKCODE - static void tcapclose(void) { putpad(tgoto(CM, 0, term.t_nrow)); @@ -256,9 +253,9 @@ static void tcapeeop(void) } /* - * change reverse video status + * Change reverse video status * - * int state; FALSE = normal video, TRUE = reverse video + * @state: FALSE = normal video, TRUE = reverse video. */ static void tcaprev(int state) { @@ -269,8 +266,9 @@ static void tcaprev(int state) putpad(SE); } +/* Change screen resolution. */ static int tcapcres(char *res) -{ /* change screen resolution */ +{ return TRUE; } @@ -328,18 +326,14 @@ static void tcapscrollregion(int top, int bot) #endif -void spal(char *dummy) -{ /* change palette string */ - /* Does nothing here */ -} - -#if COLOR +#if COLOR +/* No colors here, ignore this. */ static void tcapfcol(void) -{ /* no colors here, ignore this */ +{ } - +/* No colors here, ignore this. */ static void tcapbcol(void) -{ /* no colors here, ignore this */ +{ } #endif @@ -352,23 +346,4 @@ static void putpad(char *str) { tputs(str, 1, ttputc); } - -#if FNLABEL -/* - * label a function key - * - * int f, n; default flag, numeric argument [unused] - */ -static int fnclabel(int f, int n) -{ - /* on machines with no function keys...don't bother */ - return TRUE; -} -#endif -#else - -static void hello(void) -{ -} - -#endif +#endif /* TERMCAP */ @@ -486,29 +486,4 @@ vmskclose() { } - -/*** - * fnclabel - Label function keys (not used) - * - * Nothing returned - ***/ -#if FNLABEL -fnclabel(f, n) /* label a function key */ -int f, n; /* default flag, numeric argument [unused] */ -{ - /* on machines with no function keys...don't bother */ - return TRUE; -} -#endif - - -/*** - * spal - Set palette type (Are you kidding?) - * - * Nothing returned - ***/ -spal() -{ -} - #endif @@ -115,11 +115,6 @@ vt52cres() return TRUE; } -spal() -{ /* change palette string */ - /* Does nothing here */ -} - #if COLOR vt52fcol() { /* set the forground color [NOT IMPLIMENTED] */ @@ -164,15 +159,4 @@ vt52kclose() { } - -#if FNLABEL -fnclabel(f, n) - /* label a function key */ -int f, n; /* default flag, numeric argument [unused] */ - -{ - /* on machines with no function keys...don't bother */ - return TRUE; -} -#endif #endif |