1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 17:50:58 +01:00

Wayne: 24273: curses macros dont return a value

This commit is contained in:
Peter Stephenson 2007-12-17 09:41:08 +00:00
parent 6176062298
commit 2fe664de46
2 changed files with 13 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2007-12-17 Peter Stephenson <pws@csr.com>
* Wayne: 24273: Src/Modules/curses.c: various macros
aren't supposed to return a value.
2007-12-16 Peter Stephenson <p.w.stephenson@ntlworld.com> 2007-12-16 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 24271: Src/lex.c, Test/C01arith.ztst: handle parse failures * 24271: Src/lex.c, Test/C01arith.ztst: handle parse failures

View file

@ -1329,9 +1329,14 @@ zccmd_position(const char *nam, char **args)
w = (ZCWin)getdata(node); w = (ZCWin)getdata(node);
/* Look no pointers: these are macros. */ /* Look no pointers: these are macros. */
if (getyx(w->win, intarr[0], intarr[1]) == ERR || getyx(w->win, intarr[0], intarr[1]);
getbegyx(w->win, intarr[2], intarr[3]) == ERR || if (intarr[0] == -1)
getmaxyx(w->win, intarr[4], intarr[5]) == ERR) return 1;
getbegyx(w->win, intarr[2], intarr[3]);
if (intarr[2] == -1)
return 1;
getmaxyx(w->win, intarr[4], intarr[5]);
if (intarr[4] == -1)
return 1; return 1;
array = (char **)zalloc(7*sizeof(char *)); array = (char **)zalloc(7*sizeof(char *));