Skip to content

Commit

Permalink
Comment changes only. In some places, 'PDCurses' was used to refer to…
Browse files Browse the repository at this point in the history
… PDCursesMod-specific features; you could reasonably have thought that the features in question were part of PDCurses, but they weren't. I haven't fixed everything yet.
  • Loading branch information
Bill-Gray committed Dec 16, 2023
1 parent 70d2724 commit 2a5719d
Show file tree
Hide file tree
Showing 26 changed files with 32 additions and 32 deletions.
10 changes: 5 additions & 5 deletions pdcurses/addch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

/* On Linux, and probably some other platforms, we can just
use the built-in wcwidth() function. */
Expand Down Expand Up @@ -142,7 +142,7 @@ PDCEX int PDC_wcwidth( const int32_t ucs)
/* A greatly modified version of Markus Kuhn's excellent
wcwidth implementation. For his latest version and many
comments, see http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c
For PDCurses, only PDC_wcwidth is used, modified to take an
For PDCursesMod, only PDC_wcwidth is used, modified to take an
int argument instead of wchar_t, because in MS-land, wchar_t
is 16 bits; getting the full Unicode range requires 21 bits.
Also modified format/indenting to conform to PDCurses norms,
Expand Down Expand Up @@ -405,7 +405,7 @@ const uint16_t tbl_for_fullwidth_chars[][2] = {

/* The handling of "fullwidth" characters (those consuming two "normal"
columns) and combining characters (characters that can add accents to a
preceding character) in PDCurses is, of necessity, complex.
preceding character) in PDCursesMod is, of necessity, complex.
Unicode is defined to have 17 planes of 2^16 characters each, so that
the maximum Unicode code point is U+10FFFF. When addch() is given a
Expand All @@ -414,7 +414,7 @@ stores the non-Unicode character DUMMY_CHAR_NEXT_TO_FULLWIDTH
(U+110000) next to it, just as a placeholder. (That part is actually
rather simple.)
PDCurses handles combining characters by creating entirely new "Unicode"
PDCursesMod handles combining characters by creating entirely new "Unicode"
(let's call them "post-Unicode") characters, at code point U+110001
(COMBINED_CHAR_START) and beyond. The 'combos' table keeps track of
these newly-created characters, essentially saying: "This post-Unicode
Expand All @@ -439,7 +439,7 @@ actual series of characters.
'ncurses' handles combined characters in a very different manner: a
'cchar' is defined as an array of five characters, so that you can
add up to four combining characters in any given cell. I had to reject
that solution because backward compatibility within PDCurses would be
that solution because backward compatibility within PDCurseMod would be
broken. Quite aside from that, this is a simpler solution, and allows
for any number of combining characters (though four ought to be enough
for anybody). */
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/addchstr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/addstr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions pdcurses/attr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down Expand Up @@ -81,7 +81,7 @@ attr
attributes. In PDCurses, these are the same as A_*, and there is no
difference in behavior from the chtype-based functions. If opts is
non-NULL, it is used as a pointer to an integer and the color pair
is stored in it (this is an ncurses extension).
is stored in it (this is an ncurses and PDCursesMod extension).
wattr_get() retrieves the attributes and color pair for the specified
window.
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/beep.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/bkgd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/border.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/clear.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/color.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>

Expand Down
2 changes: 1 addition & 1 deletion pdcurses/debug.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/delch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/deleteln.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/getstr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/getyx.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/inch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <assert.h>
#include <curspriv.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/inchstr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
4 changes: 2 additions & 2 deletions pdcurses/initscr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <panel.h>
Expand Down Expand Up @@ -71,7 +71,7 @@ initscr
KEY_RESIZE is generally preferable, unless you're not handling the
keyboard.
curses_version() returns a string describing the version of PDCurses.
curses_version() returns a string describing the version of PDCursesMod.
PDC_get_version() fills a PDC_VERSION structure provided by the user
with more detailed version info (see curses.h).
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/insch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/insstr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/instr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/kernel.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/termattr.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/terminfo.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>

Expand Down
2 changes: 1 addition & 1 deletion pdcurses/touch.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/util.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <curspriv.h>
#include <assert.h>
Expand Down
2 changes: 1 addition & 1 deletion pdcurses/window.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* PDCurses */
/* PDCursesMod */

#include <stdlib.h>
#include <curspriv.h>
Expand Down

0 comments on commit 2a5719d

Please sign in to comment.