#
ab60a37e |
| 07-Dec-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: fix grammar in comment (since yesterday)
|
#
97890ea6 |
| 06-Dec-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: clean up comments
|
#
45c07264 |
| 13-Jun-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: fix argument handling for mvwget_wch
There's currently no test for that function, therefore no functional change.
|
#
b74bdd6e |
| 13-Jun-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: unexport argument handling functions
No functional change.
|
#
355257bf |
| 13-Jun-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: KNF for while loop
|
#
5a0172fe |
| 13-Jun-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: remove redundant argument numbers
Since all arguments are processed in increasing order, there is no need to add the redundant argument numbers. Most of the curses functions have l
tests/libcurses: remove redundant argument numbers
Since all arguments are processed in increasing order, there is no need to add the redundant argument numbers. Most of the curses functions have less than 5 arguments, which makes it easy enough to count the ARG macros.
Changes to curses_commands.c:
* replace ^(\tARG_\w+\()\d(?:, |) with $1 * replace (define ARG_\w+\()i,\s with $1 * replace args\[i\] with *args++ * replace \(i\) with () * replace \(void\)0 with args++
The wrong argument count in cmd_mvwget_wch is still detected by lint.lua, as it was before. There is no test yet that covers this function.
show more ...
|
#
17dd6d11 |
| 04-Apr-2021 |
rin <rin@NetBSD.org> |
Reapply fix for big-endian environments, which was lost when GSoC results were merged...
http://www.nerv.org/netbsd/?q=id:20200620T075016Z.3584036ccf31f69ee76ea4a02e9be30ff081df21
> Fix false posit
Reapply fix for big-endian environments, which was lost when GSoC results were merged...
http://www.nerv.org/netbsd/?q=id:20200620T075016Z.3584036ccf31f69ee76ea4a02e9be30ff081df21
> Fix false positive for mvscanw tests on big endian machines. > > When conversion specifier is not a derivative form of "%s", retrieve > input as 32bit integer, and then convert to string literal. Then we > can avoid interpretation from ASCII code to integer, which is > apparently byte-order depended.
show more ...
|
#
9c306247 |
| 04-Apr-2021 |
rin <rin@NetBSD.org> |
When mvscanw(3) fails, string is not modified. Let's ignore the 2nd result for this case.
|
#
f81bbc7c |
| 04-Apr-2021 |
rin <rin@NetBSD.org> |
s/&string/string/ for mvscanw(3); string is already pointer to buffer.
|
#
c821d4df |
| 13-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: clean up inclusion guards, function declarations
No functional change.
|
#
75f0f923 |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: remove excess empty lines
|
#
a4f2ea50 |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: query function arguments in consistent order
|
#
6c8fab35 |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: don't access args directly
By providing declarative syntax for accessing the arguments, the unnecessarily detailed boilerplate code is hidden. This allows easy inspection by tools
tests/libcurses: don't access args directly
By providing declarative syntax for accessing the arguments, the unnecessarily detailed boilerplate code is hidden. This allows easy inspection by tools and humans, to check for typos and other mistakes.
show more ...
|
#
631df4db |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: replace ARG_CHTYPE_STRING with ARG_CHTYPE
All uses of the previous macro did not treat the argument as a string or array of chtype, but as a single chtype. It's strange that the pr
tests/libcurses: replace ARG_CHTYPE_STRING with ARG_CHTYPE
All uses of the previous macro did not treat the argument as a string or array of chtype, but as a single chtype. It's strange that the previous code arbitrarily split the access to the argument by first storing it as a pointer and then dereferencing it.
No functional change.
show more ...
|
#
d74881ad |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: add shortcut macros for SCREEN and unsigned int
|
#
51061162 |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: remove redundant comments
There is nothing surprising about call2, call3 or call4.
|
#
9c9a81b6 |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: reduce boilerplate in function dispatcher
No functional change. The generated code for GCC 9.3 on NetBSD 9.99.80 x86_64 is exactly the same as before.
|
#
e288e176 |
| 12-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: reduce boilerplate in function dispatcher
This makes the code more declarative and easier to reason about.
The generated code stays exactly the same.
|
#
0e60f9cc |
| 09-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: fix scanf parameter for unsigned int
|
#
ec23199b |
| 08-Feb-2021 |
rillig <rillig@NetBSD.org> |
tests/libcurses: fix typo in license text
|
#
e18fbc08 |
| 24-Oct-2020 |
blymn <blymn@NetBSD.org> |
Merge in code from Google Summer of Code project which dramatically increases the number of tests performed.
Thanks to Naman Jain <jnaman806@gmail.com> for his excellent work on this GSoC project.
|
#
4ee5aaab |
| 20-Jun-2020 |
rin <rin@NetBSD.org> |
Fix false positive for mvscanw tests on big endian machines.
When conversion specifier is not a derivative form of "%s", retrieve input as 32bit integer, and then convert to string literal. Then we
Fix false positive for mvscanw tests on big endian machines.
When conversion specifier is not a derivative form of "%s", retrieve input as 32bit integer, and then convert to string literal. Then we can avoid interpretation from ASCII code to integer, which is apparently byte-order depended.
show more ...
|
#
97949cc3 |
| 26-May-2019 |
blymn <blymn@NetBSD.org> |
Start supporting wide char tests.
|
#
acc45d8d |
| 26-Apr-2019 |
blymn <blymn@NetBSD.org> |
Fix argument parsing for mvinsch, last arg is a chtype not a string.
|
#
7b6e835f |
| 19-Sep-2012 |
blymn <blymn@NetBSD.org> |
* Fix mvscanw return * Fix the *vline family of calls, one argument is chtype not int
|