projects
/
ncurses.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ncurses 6.2 - patch 20200418
[ncurses.git]
/
test
/
test_instr.c
diff --git
a/test/test_instr.c
b/test/test_instr.c
index e203cc6594780b1eccb3ae60b547e122c25a2894..f04d8a3dadef4785707760ef8abf16f8824f0f74 100644
(file)
--- a/
test/test_instr.c
+++ b/
test/test_instr.c
@@
-1,5
+1,6
@@
/****************************************************************************
/****************************************************************************
- * Copyright (c) 2007-2010,2017 Free Software Foundation, Inc. *
+ * Copyright 2020 Thomas E. Dickey *
+ * Copyright 2007-2010,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@
-26,7
+27,7
@@
* authorization. *
****************************************************************************/
/*
* authorization. *
****************************************************************************/
/*
- * $Id: test_instr.c,v 1.
6 2017/04/08 23:21:53
tom Exp $
+ * $Id: test_instr.c,v 1.
10 2020/02/02 23:34:34
tom Exp $
*
* Author: Thomas E Dickey
*
*
* Author: Thomas E Dickey
*
@@
-68,7
+69,7
@@
showmore(WINDOW *win, int line, char *buffer)
}
static int
}
static int
-
test_inchs
(int level, char **argv, WINDOW *chrwin, WINDOW *strwin)
+
recursive_test
(int level, char **argv, WINDOW *chrwin, WINDOW *strwin)
{
WINDOW *txtbox = 0;
WINDOW *txtwin = 0;
{
WINDOW *txtbox = 0;
WINDOW *txtwin = 0;
@@
-151,7
+152,7
@@
test_inchs(int level, char **argv, WINDOW *chrwin, WINDOW *strwin)
beep();
break;
case 'w':
beep();
break;
case 'w':
-
test_inchs
(level + 1, argv, chrwin, strwin);
+
recursive_test
(level + 1, argv, chrwin, strwin);
if (txtbox != 0) {
touchwin(txtbox);
wnoutrefresh(txtbox);
if (txtbox != 0) {
touchwin(txtbox);
wnoutrefresh(txtbox);
@@
-254,7
+255,7
@@
main(int argc, char *argv[])
chrwin = derwin(chrbox, 2, COLS - 2, 1, 1);
strwin = derwin(chrbox, 2, COLS - 2, 3, 1);
chrwin = derwin(chrbox, 2, COLS - 2, 1, 1);
strwin = derwin(chrbox, 2, COLS - 2, 3, 1);
-
test_inchs
(1, argv, chrwin, strwin);
+
recursive_test
(1, argv, chrwin, strwin);
endwin();
ExitProgram(EXIT_SUCCESS);
endwin();
ExitProgram(EXIT_SUCCESS);