The NetBSD Project

CVS log for src/tests/lib/libcurses/slave/curses_commands.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / lib / libcurses / slave

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 7 06:55:44 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

tests/libcurses: fix grammar in comment (since yesterday)

Revision 1.30 / (download) - annotate - [select for diffs], Mon Dec 6 22:45:42 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.29: +3 -3 lines
Diff to previous 1.29 (colored)

tests/libcurses: clean up comments

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jun 13 21:54:51 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

tests/libcurses: fix argument handling for mvwget_wch

There's currently no test for that function, therefore no functional
change.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jun 13 19:17:53 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.27: +11 -11 lines
Diff to previous 1.27 (colored)

tests/libcurses: unexport argument handling functions

No functional change.

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 13 19:13:20 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.26: +4 -2 lines
Diff to previous 1.26 (colored)

tests/libcurses: KNF for while loop

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 13 18:11:44 2021 UTC (2 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.25: +744 -744 lines
Diff to previous 1.25 (colored)

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.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Apr 4 09:49:13 2021 UTC (3 years ago) by rin
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.24: +12 -3 lines
Diff to previous 1.24 (colored)

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.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Apr 4 09:42:08 2021 UTC (3 years ago) by rin
Branch: MAIN
Changes since 1.23: +8 -3 lines
Diff to previous 1.23 (colored)

When mvscanw(3) fails, string is not modified.
Let's ignore the 2nd result for this case.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 4 09:34:24 2021 UTC (3 years ago) by rin
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

s/&string/string/ for mvscanw(3); string is already pointer to buffer.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 13 08:14:46 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.21: +2 -3 lines
Diff to previous 1.21 (colored)

tests/libcurses: clean up inclusion guards, function declarations

No functional change.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 12 20:45:00 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.20: +1 -14 lines
Diff to previous 1.20 (colored)

tests/libcurses: remove excess empty lines

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 12 20:41:37 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.19: +56 -24 lines
Diff to previous 1.19 (colored)

tests/libcurses: query function arguments in consistent order

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 12 18:20:05 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.18: +145 -110 lines
Diff to previous 1.18 (colored)

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.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Feb 12 16:59:32 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.17: +55 -55 lines
Diff to previous 1.17 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Feb 12 16:49:18 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.16: +23 -25 lines
Diff to previous 1.16 (colored)

tests/libcurses: add shortcut macros for SCREEN and unsigned int

Revision 1.16 / (download) - annotate - [select for diffs], Fri Feb 12 14:05:57 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.15: +10 -36 lines
Diff to previous 1.15 (colored)

tests/libcurses: remove redundant comments

There is nothing surprising about call2, call3 or call4.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Feb 12 12:58:52 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.14: +540 -1337 lines
Diff to previous 1.14 (colored)

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.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 12 08:55:32 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.13: +510 -1263 lines
Diff to previous 1.13 (colored)

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.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 9 20:22:11 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

tests/libcurses: fix scanf parameter for unsigned int

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 8 19:15:21 2021 UTC (3 years, 2 months ago) by rillig
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

tests/libcurses: fix typo in license text

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 24 04:46:17 2020 UTC (3 years, 5 months ago) by blymn
Branch: MAIN
Changes since 1.10: +1726 -2332 lines
Diff to previous 1.10 (colored)

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.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 20 07:50:16 2020 UTC (3 years, 9 months ago) by rin
Branch: MAIN
Changes since 1.9: +9 -3 lines
Diff to previous 1.9 (colored)

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.

Revision 1.7.30.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:06 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.7: +10 -9 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Sun May 26 07:47:37 2019 UTC (4 years, 10 months ago) by blymn
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored)

Start supporting wide char tests.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 26 02:46:00 2019 UTC (4 years, 11 months ago) by blymn
Branch: MAIN
Changes since 1.7: +5 -8 lines
Diff to previous 1.7 (colored)

Fix argument parsing for mvinsch, last arg is a chtype not a string.

Revision 1.6.8.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:55 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.6: +22 -37 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:02 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.6: +22 -37 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.7 / (download) - annotate - [select for diffs], Wed Sep 19 11:51:08 2012 UTC (11 years, 6 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi
Changes since 1.6: +22 -37 lines
Diff to previous 1.6 (colored)

* Fix mvscanw return
* Fix the *vline family of calls, one argument is chtype not int

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 15 11:46:19 2011 UTC (12 years, 7 months ago) by blymn
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.5: +76 -38 lines
Diff to previous 1.5 (colored)

- add support for getparyx and getyx calls
- allow a NULL pointer to be returned to the director
- add support for passing back a single chtype character
- fix some indentation
- fix a lot of curses command calls that were just plain wrong
- don't try to allocate storage for a NULL parameter, it doesn't need it

Revision 1.5 / (download) - annotate - [select for diffs], Mon Aug 29 12:46:03 2011 UTC (12 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.4: +5 -5 lines
Diff to previous 1.4 (colored)

fix bug where we read the same argument twice. Name the timeout val the
same 'tval' in both timeout routines.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:40 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.3: +137 -139 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jun 11 18:03:18 2011 UTC (12 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.3: +137 -139 lines
Diff to previous 1.3 (colored)

Turn warns on for all tests and fix all the bugs.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 11 09:06:24 2011 UTC (13 years ago) by blymn
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.2: +31 -3 lines
Diff to previous 1.2 (colored)

Apply patch provided by mrg to fix bad calls to vw_printw and vw_scanw

Revision 1.2 / (download) - annotate - [select for diffs], Sun Apr 10 23:31:30 2011 UTC (13 years ago) by dholland
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix obvious bug.
(note: this file still doesn't build on amd64)

Revision 1.1 / (download) - annotate - [select for diffs], Sun Apr 10 09:55:10 2011 UTC (13 years ago) by blymn
Branch: MAIN

Add atf for libcurses with some tests

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>