Skip to content
Permalink
Browse files

uemacs: Fix return statements

Return statement is not a function so remove superfluous use of parenthesis.

Cc: Thiago Farina <tfransosi@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information...
penberg authored and torvalds committed Aug 29, 2010
1 parent 3246438 commit 0f05e53f99c07afcd4fa8040c8631bc3caf4de56
Showing with 760 additions and 760 deletions.
  1. +2 −2 ansi.c
  2. +3 −3 basic.c
  3. +39 −39 bind.c
  4. +36 −36 buffer.c
  5. +3 −3 crypt.c
  6. +17 −17 display.c
  7. +136 −136 eval.c
  8. +49 −49 exec.c
  9. +44 −44 file.c
  10. +17 −17 fileio.c
  11. +4 −4 ibmpc.c
  12. +26 −26 input.c
  13. +20 −20 isearch.c
  14. +37 −37 line.c
  15. +13 −13 lock.c
  16. +24 −24 main.c
  17. +1 −1 pklock.c
  18. +1 −1 posix.c
  19. +77 −77 random.c
  20. +18 −18 region.c
  21. +30 −30 search.c
  22. +43 −43 spawn.c
  23. +2 −2 tcap.c
  24. +12 −12 termio.c
  25. +1 −1 vmsvt.c
  26. +2 −2 vt52.c
  27. +41 −41 window.c
  28. +62 −62 word.c
4 ansi.c
@@ -176,7 +176,7 @@ void ansirev(int state)
/* Change screen resolution. */
int ansicres()
{
return (TRUE);
return TRUE;
}

/* Change pallette settings. */
@@ -252,7 +252,7 @@ void ansikclose(void)
int fnclabel(int f, int n)
{
/* On machines with no function keys...don't bother. */
return (TRUE);
return TRUE;
}
#endif
#endif
@@ -68,7 +68,7 @@ int backchar(int f, int n)
while (n--) {
if (curwp->w_doto == 0) {
if ((lp = lback(curwp->w_dotp)) == curbp->b_linep)
return (FALSE);
return FALSE;
curwp->w_dotp = lp;
curwp->w_doto = llength(lp);
curwp->w_flag |= WFMOVE;
@@ -100,7 +100,7 @@ int forwchar(int f, int n)
while (n--) {
if (curwp->w_doto == llength(curwp->w_dotp)) {
if (curwp->w_dotp == curbp->b_linep)
return (FALSE);
return FALSE;
curwp->w_dotp = lforw(curwp->w_dotp);
curwp->w_doto = 0;
curwp->w_flag |= WFMOVE;
@@ -125,7 +125,7 @@ int gotoline(int f, int n)
if ((status =
mlreply("Line to GOTO: ", arg, NSTRING)) != TRUE) {
mlwrite("(Aborted)");
return (status);
return status;
}
n = atoi(arg);
}
78 bind.c
@@ -29,18 +29,18 @@ int help(int f, int n)
fname = flook(pathname[1], FALSE);
if (fname == NULL) {
mlwrite("(Help file is not online)");
return (FALSE);
return FALSE;
}
}

/* split the current window to make room for the help stuff */
if (splitwind(FALSE, 1) == FALSE)
return (FALSE);
return FALSE;

if (bp == NULL) {
/* and read the stuff in */
if (getfile(fname, FALSE) == FALSE)
return (FALSE);
return FALSE;
} else
swbuffer(bp);

@@ -52,7 +52,7 @@ int help(int f, int n)
wp->w_flag |= WFMODE;
wp = wp->w_wndp;
}
return (TRUE);
return TRUE;
}

int deskey(int f, int n)
@@ -78,7 +78,7 @@ int deskey(int f, int n)

/* output the command sequence */
ostring(ptr);
return (TRUE);
return TRUE;
}

/*
@@ -102,7 +102,7 @@ int bindtokey(int f, int n)
kfunc = getname();
if (kfunc == NULL) {
mlwrite("(No such function)");
return (FALSE);
return FALSE;
}
ostring(" ");

@@ -157,7 +157,7 @@ int bindtokey(int f, int n)
/* if we run out of binding room, bitch */
if (ktp >= &keytab[NBINDS]) {
mlwrite("Binding table FULL!");
return (FALSE);
return FALSE;
}

ktp->k_code = c; /* add keycode */
@@ -166,7 +166,7 @@ int bindtokey(int f, int n)
ktp->k_code = 0;
ktp->k_fp = NULL;
}
return (TRUE);
return TRUE;
}

/*
@@ -195,9 +195,9 @@ int unbindkey(int f, int n)
/* if it isn't bound, bitch */
if (unbindchar(c) == FALSE) {
mlwrite("(Key not bound)");
return (FALSE);
return FALSE;
}
return (TRUE);
return TRUE;
}


@@ -225,7 +225,7 @@ int unbindchar(int c)

/* if it isn't bound, bitch */
if (!found)
return (FALSE);
return FALSE;

/* save the pointer and scan to the end of the table */
sktp = ktp;
@@ -240,7 +240,7 @@ int unbindchar(int c)
/* null out the last one */
ktp->k_code = 0;
ktp->k_fp = NULL;
return (TRUE);
return TRUE;
}

/* describe bindings
@@ -251,7 +251,7 @@ int desbind(int f, int n)
#if APROP
{
buildlist(TRUE, "");
return (TRUE);
return TRUE;
}

int apro(int f, int n)
@@ -261,9 +261,9 @@ int apro(int f, int n)

status = mlreply("Apropos string: ", mstring, NSTRING - 1);
if (status != TRUE)
return (status);
return status;

return (buildlist(FALSE, mstring));
return buildlist(FALSE, mstring);
}

/*
@@ -284,13 +284,13 @@ int buildlist(int type, char *mstring)

/* split the current window to make room for the binding list */
if (splitwind(FALSE, 1) == FALSE)
return (FALSE);
return FALSE;

/* and get a buffer for it */
bp = bfind("*Binding list*", TRUE, 0);
if (bp == NULL || bclear(bp) == FALSE) {
mlwrite("Can not display binding list");
return (FALSE);
return FALSE;
}

/* let us know this is in progress */
@@ -346,7 +346,7 @@ int buildlist(int type, char *mstring)

/* and add it as a line into the buffer */
if (linstr(outseq) != TRUE)
return (FALSE);
return FALSE;

cpos = 0; /* and clear the line */
}
@@ -358,7 +358,7 @@ int buildlist(int type, char *mstring)
outseq[cpos++] = '\n';
outseq[cpos] = 0;
if (linstr(outseq) != TRUE)
return (FALSE);
return FALSE;
}

fail: /* and on to the next name */
@@ -375,7 +375,7 @@ int buildlist(int type, char *mstring)
wp = wp->w_wndp;
}
mlwrite(""); /* clear the mode line */
return (TRUE);
return TRUE;
}

#if APROP
@@ -408,12 +408,12 @@ int strinc(char *source, char *sub)

/* yes, return a success */
if (*tp == 0)
return (TRUE);
return TRUE;

/* no, onward */
sp++;
}
return (FALSE);
return FALSE;
}
#endif

@@ -430,15 +430,15 @@ unsigned int getckey(int mflag)
/* check to see if we are executing a command line */
if (clexec) {
macarg(tok); /* get the next token */
return (stock(tok));
return stock(tok);
}

/* or the normal way */
if (mflag)
c = get1key();
else
c = getcmd();
return (c);
return c;
}

/*
@@ -458,10 +458,10 @@ int startup(char *sfname)

/* if it isn't around, don't sweat it */
if (fname == NULL)
return (TRUE);
return TRUE;

/* otherwise, execute the sucker */
return (dofile(fname));
return dofile(fname);
}

/*
@@ -493,7 +493,7 @@ char *flook(char *fname, int hflag)
/* and try it out */
if (ffropen(fspec) == FIOSUC) {
ffclose();
return (fspec);
return fspec;
}
}
}
@@ -502,7 +502,7 @@ char *flook(char *fname, int hflag)
/* always try the current directory first */
if (ffropen(fname) == FIOSUC) {
ffclose();
return (fname);
return fname;
}
#if ENVFUNC
/* get the PATH variable */
@@ -524,7 +524,7 @@ char *flook(char *fname, int hflag)
/* and try it out */
if (ffropen(fspec) == FIOSUC) {
ffclose();
return (fspec);
return fspec;
}

if (*path == PATHCHR)
@@ -540,11 +540,11 @@ char *flook(char *fname, int hflag)
/* and try it out */
if (ffropen(fspec) == FIOSUC) {
ffclose();
return (fspec);
return fspec;
}
}

return (NULL); /* no such luck */
return NULL; /* no such luck */
}

/*
@@ -601,12 +601,12 @@ int (*getbind(int c))(int, int)
ktp = &keytab[0]; /* Look in key table. */
while (ktp->k_fp != NULL) {
if (ktp->k_code == c)
return (ktp->k_fp);
return ktp->k_fp;
++ktp;
}

/* no such binding */
return (NULL);
return NULL;
}

/*
@@ -622,10 +622,10 @@ char *getfname(fn_t func)
nptr = &names[0];
while (nptr->n_func != NULL) {
if (nptr->n_func == func)
return (nptr->n_name);
return nptr->n_name;
++nptr;
}
return (NULL);
return NULL;
}

/*
@@ -642,10 +642,10 @@ int (*fncmatch(char *fname)) (int, int)
ffp = &names[0];
while (ffp->n_func != NULL) {
if (strcmp(fname, ffp->n_name) == 0)
return (ffp->n_func);
return ffp->n_func;
++ffp;
}
return (NULL);
return NULL;
}

/*
@@ -696,7 +696,7 @@ unsigned int stock(char *keyname)

/* the final sequence... */
c |= *keyname;
return (c);
return c;
}

/*
@@ -712,5 +712,5 @@ char *transbind(char *skey)
if (bindname == NULL)
bindname = "ERROR";

return (bindname);
return bindname;
}

0 comments on commit 0f05e53

Please sign in to comment.
You can’t perform that action at this time.